[Pkg-db-devel] Bug#469602: Bug#469602: libdb4.6: bug in memory pool set_maxsize() causes mutex deadlock

Clint Adams schizo at debian.org
Thu Mar 6 05:37:02 UTC 2008


On Wed, Mar 05, 2008 at 09:10:08PM -0800, Kevin Lindsay wrote:
> I have not yet reported this to upstream. Please let me know if you will be
> doing this or if I can help out in anyway.

Should be in progress.

> --- db-4.6.21.orig/mp/mp_fmethod.c	2007-06-01 16:30:30.000000000 +0000
> +++ db-4.6.21/mp/mp_fmethod.c	2008-03-06 05:02:29.000000000 +0000
> @@ -358,7 +358,7 @@
>  		mfp->maxpgno += (db_pgno_t)
>  		    ((bytes + mfp->stat.st_pagesize - 1) /
>  		    mfp->stat.st_pagesize);
> -		MPOOL_SYSTEM_UNLOCK(dbenv);
> +		MUTEX_UNLOCK(dbenv, mfp->mutex);
>  	}
>  
>  	return (0);

That does indeed look correct.





More information about the Pkg-db-devel mailing list