[Pkg-db-devel] Bug#343350: marked as done (Cursors and DB_DBT_USERMEM )

Debian Bug Tracking System owner at bugs.debian.org
Thu Dec 15 22:19:30 UTC 2005


Your message dated Thu, 15 Dec 2005 14:02:26 -0800
with message-id <E1En1BC-0007An-AF at spohr.debian.org>
and subject line Bug#343350: fixed in db4.4 4.4.16-2
has caused the attached Bug report to be marked as done.

This means that you claim that the problem has been dealt with.
If this is not the case it is now your responsibility to reopen the
Bug report if necessary, and/or fix the problem forthwith.

(NB: If you are a system administrator and have no idea what I am
talking about this indicates a serious mail system misconfiguration
somewhere.  Please contact me immediately.)

Debian bug tracking system administrator
(administrator, Debian Bugs database)

--------------------------------------
Received: (at submit) by bugs.debian.org; 14 Dec 2005 16:01:46 +0000
>From fw at deneb.enyo.de Wed Dec 14 08:01:46 2005
Return-path: <fw at deneb.enyo.de>
Received: from mail.enyo.de ([212.9.189.167])
	by spohr.debian.org with esmtp (Exim 4.50)
	id 1EmZ4c-0006d3-MC
	for submit at bugs.debian.org; Wed, 14 Dec 2005 08:01:46 -0800
Received: from deneb.vpn.enyo.de ([212.9.189.177] helo=deneb.enyo.de)
	by mail.enyo.de with esmtp id 1EmZ4a-0006d9-83
	for submit at bugs.debian.org; Wed, 14 Dec 2005 17:01:44 +0100
Received: from fw by deneb.enyo.de with local (Exim 4.54)
	id 1EmYwP-0007DZ-4g
	for submit at bugs.debian.org; Wed, 14 Dec 2005 16:53:17 +0100
From: Florian Weimer <fw at deneb.enyo.de>
To: submit at bugs.debian.org
Subject: Cursors and DB_DBT_USERMEM 
Date: Wed, 14 Dec 2005 16:53:17 +0100
Message-ID: <873bkv8yky.fsf at mid.deneb.enyo.de>
MIME-Version: 1.0
Content-Type: text/plain; charset=us-ascii
Delivered-To: submit at bugs.debian.org
X-Spam-Checker-Version: SpamAssassin 2.60-bugs.debian.org_2005_01_02 
	(1.212-2003-09-23-exp) on spohr.debian.org
X-Spam-Level: 
X-Spam-Status: No, hits=-6.4 required=4.0 tests=BAYES_00,HAS_PACKAGE,
	UPPERCASE_25_50 autolearn=no version=2.60-bugs.debian.org_2005_01_02

Package: libdb4.4
Version: 4.4.16-1
Tags: patch upstream

If DBC->c_get is invoked with two DBTs with the DB_DBT_USERMEM flag,
and the flag is DB_NEXT, and the key DBT is too small, and the value
in the database is empty, DBC->c_get returns a DB_BUFFER_SMALL error
code *and* advances the cursor.

The attached patch from Sleepycat fixes this.  Please apply.  Thanks.

*** db/db_cam.c.orig	8 Dec 2005 19:37:44 -0000	12.23
--- db/db_cam.c	14 Dec 2005 01:34:51 -0000	12.24
***************
*** 830,843 ****
  
  	}
  
- 	if ((t_ret = __db_c_cleanup(dbc_arg, dbc_n, ret)) != 0 && ret == 0)
- 		ret = t_ret;
- 
  	if (key_small) {
  		data->ulen = orig_ulen;
  		if (ret == 0)
  			ret = DB_BUFFER_SMALL;
  	}
  
  	if (flags == DB_CONSUME || flags == DB_CONSUME_WAIT)
  		CDB_LOCKING_DONE(dbp, dbc_arg);
--- 830,844 ----
  
  	}
  
  	if (key_small) {
  		data->ulen = orig_ulen;
  		if (ret == 0)
  			ret = DB_BUFFER_SMALL;
  	}
+ 
+ 	if ((t_ret = __db_c_cleanup(dbc_arg, dbc_n, ret)) != 0 &&
+ 	    (ret == 0 || ret == DB_BUFFER_SMALL))
+ 		ret = t_ret;
  
  	if (flags == DB_CONSUME || flags == DB_CONSUME_WAIT)
  		CDB_LOCKING_DONE(dbp, dbc_arg);

---------------------------------------
Received: (at 343350-close) by bugs.debian.org; 15 Dec 2005 22:12:51 +0000
>From katie at ftp-master.debian.org Thu Dec 15 14:12:51 2005
Return-path: <katie at ftp-master.debian.org>
Received: from katie by spohr.debian.org with local (Exim 4.50)
	id 1En1BC-0007An-AF; Thu, 15 Dec 2005 14:02:26 -0800
From: Clint Adams <schizo at debian.org>
To: 343350-close at bugs.debian.org
X-Katie: $Revision: 1.60 $
Subject: Bug#343350: fixed in db4.4 4.4.16-2
Message-Id: <E1En1BC-0007An-AF at spohr.debian.org>
Sender: Archive Administrator <katie at ftp-master.debian.org>
Date: Thu, 15 Dec 2005 14:02:26 -0800
X-Spam-Checker-Version: SpamAssassin 2.60-bugs.debian.org_2005_01_02 
	(1.212-2003-09-23-exp) on spohr.debian.org
X-Spam-Level: 
X-Spam-Status: No, hits=-6.0 required=4.0 tests=BAYES_00,HAS_BUG_NUMBER 
	autolearn=no version=2.60-bugs.debian.org_2005_01_02

Source: db4.4
Source-Version: 4.4.16-2

We believe that the bug you reported is fixed in the latest version of
db4.4, which is due to be installed in the Debian FTP archive:

db4.4-doc_4.4.16-2_all.deb
  to pool/main/d/db4.4/db4.4-doc_4.4.16-2_all.deb
db4.4-util_4.4.16-2_sparc.deb
  to pool/main/d/db4.4/db4.4-util_4.4.16-2_sparc.deb
db4.4_4.4.16-2.diff.gz
  to pool/main/d/db4.4/db4.4_4.4.16-2.diff.gz
db4.4_4.4.16-2.dsc
  to pool/main/d/db4.4/db4.4_4.4.16-2.dsc
libdb4.4++-dev_4.4.16-2_sparc.deb
  to pool/main/d/db4.4/libdb4.4++-dev_4.4.16-2_sparc.deb
libdb4.4++_4.4.16-2_sparc.deb
  to pool/main/d/db4.4/libdb4.4++_4.4.16-2_sparc.deb
libdb4.4-dev_4.4.16-2_sparc.deb
  to pool/main/d/db4.4/libdb4.4-dev_4.4.16-2_sparc.deb
libdb4.4-java-dev_4.4.16-2_sparc.deb
  to pool/main/d/db4.4/libdb4.4-java-dev_4.4.16-2_sparc.deb
libdb4.4-java_4.4.16-2_sparc.deb
  to pool/main/d/db4.4/libdb4.4-java_4.4.16-2_sparc.deb
libdb4.4-tcl_4.4.16-2_sparc.deb
  to pool/main/d/db4.4/libdb4.4-tcl_4.4.16-2_sparc.deb
libdb4.4_4.4.16-2_sparc.deb
  to pool/main/d/db4.4/libdb4.4_4.4.16-2_sparc.deb



A summary of the changes between this version and the previous one is
attached.

Thank you for reporting the bug, which will now be closed.  If you
have further comments please address them to 343350 at bugs.debian.org,
and the maintainer will reopen the bug report if appropriate.

Debian distribution maintenance software
pp.
Clint Adams <schizo at debian.org> (supplier of updated db4.4 package)

(This message was generated automatically at their request; if you
believe that there is a problem with it please contact the archive
administrators by mailing ftpmaster at debian.org)


-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1

Format: 1.7
Date: Thu, 15 Dec 2005 14:30:55 -0500
Source: db4.4
Binary: libdb4.4-java libdb4.4-tcl libdb4.4 libdb4.4++ db4.4-util libdb4.4-java-dev db4.4-doc libdb4.4-dev libdb4.4++-dev
Architecture: source sparc all
Version: 4.4.16-2
Distribution: unstable
Urgency: medium
Maintainer: Debian Berkeley DB Maintainers <pkg-db-devel at lists.alioth.debian.org>
Changed-By: Clint Adams <schizo at debian.org>
Description: 
 db4.4-doc  - Berkeley v4.4 Database Documentation [html]
 db4.4-util - Berkeley v4.4 Database Utilities
 libdb4.4   - Berkeley v4.4 Database Libraries [runtime]
 libdb4.4++ - Berkeley v4.4 Database Libraries for C++ [runtime]
 libdb4.4++-dev - Berkeley v4.4 Database Libraries for C++ [development]
 libdb4.4-dev - Berkeley v4.4 Database Libraries [development]
 libdb4.4-java - Berkeley v4.4 Database Libraries for Java
 libdb4.4-java-dev - Berkeley v4.4 Database Libraries for Java [development]
 libdb4.4-tcl - Berkeley v4.4 Database Libraries for TCL [module]
Closes: 343350
Changes: 
 db4.4 (4.4.16-2) unstable; urgency=medium
 .
   * Use versioned symbols.
   * Apply Sleepycat patch from Florian Weimer to fix "Cursors and
     DB_DBT_USERMEM" bug.  closes: #343350.
   * Temporarily disable java for m68k.
Files: 
 afe7da76d0d2baf797f98eefa255ea85 982 libs standard db4.4_4.4.16-2.dsc
 ff3898a391c4bbdcdf7d0891999ffe54 108011 libs standard db4.4_4.4.16-2.diff.gz
 5fe333dab5a0c3c1ebc4a9bc9d561afb 4901924 libs optional db4.4-doc_4.4.16-2_all.deb
 ba33031a00b9238b7910fb3ea9d14972 444750 libs standard libdb4.4_4.4.16-2_sparc.deb
 dc636c375682096be7cab9b080cff4e7 553882 libdevel extra libdb4.4-dev_4.4.16-2_sparc.deb
 0e9577758c7318402386440f9c977b88 476700 libs optional libdb4.4++_4.4.16-2_sparc.deb
 f6ea4e56e200abb8145458e6a86d8dff 1128004 libdevel extra libdb4.4++-dev_4.4.16-2_sparc.deb
 fde9de214623586dc257b9394e56c2d5 1107000 interpreters extra libdb4.4-tcl_4.4.16-2_sparc.deb
 5ff05562d61447c5daaf6aad40a11959 66946 utils optional db4.4-util_4.4.16-2_sparc.deb
 a8d079a4ef3d1dd04d2e4e468aaf7150 658440 libs optional libdb4.4-java_4.4.16-2_sparc.deb
 9baacf60ccd8b2bd4c580d8e9b92feba 563392 libs optional libdb4.4-java-dev_4.4.16-2_sparc.deb

-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.4.2 (GNU/Linux)
Comment: Debian!

iD8DBQFDodJ95m0u66uWM3ARAhM6AJoDS4ifXRGZUanTO2A7BdYLmiRH2ACg310t
EJCgj19r//jF/QWMjqQmKs4=
=kzQc
-----END PGP SIGNATURE-----




More information about the Pkg-db-devel mailing list