Bug#479076: Bug in libsqlite3-0

Damyan Ivanov dmn at debian.org
Wed May 7 14:21:50 UTC 2008


clone 479076 -1
reassign -1 libsqlite3-0
retitle -1 locks block forever
forwarded -1 http://www.sqlite.org/cvstrac/tktview?tn=3093
tag -1 fixed-upstream
block 479076 by -1
thanks

-=| Matt Kraai, Mon, May 05, 2008 at 10:32:04AM -0700 |=-
> This problem appears to be caused by SQLite ticket #3093:
> 
>  http://www.sqlite.org/cvstrac/tktview?tn=3093

good catch!

> which has been fixed upstream by the attached patch.  When I rebuilt
> and installed libsqlite3-0 using this patch, I was able to build
> libdbd-sqlite3-perl and pass its test suite.
> 
> Would it be OK to reassign this bug to libsqlite3-0?  Or should it be
> cloned?

I am cloning a bug, making libdbd-sqlite3-perl's bug be blocked by
libsqlite3's one.

> --- sqlite3-3.5.8.orig/src/btree.c	2008/04/24 19:15:10	1.452
> +++ sqlite3-3.5.8/src/btree.c	2008/05/02 14:23:55	1.453
> @@ -1899,8 +1899,10 @@
>  #endif
>  
>    do {
> -    while( rc==SQLITE_OK && pBt->pPage1==0 ){
> -      rc = lockBtree(pBt);
> +    if( pBt->pPage1==0 ){
> +      do{
> +        rc = lockBtree(pBt);
> +      }while( pBt->pPage1==0 && rc==SQLITE_OK );
>      }
>  
>      if( rc==SQLITE_OK && wrflag ){

-- 
dam            JabberID: dam at jabber.minus273.org
-------------- next part --------------
A non-text attachment was scrubbed...
Name: not available
Type: application/pgp-signature
Size: 189 bytes
Desc: Digital signature
Url : http://lists.alioth.debian.org/pipermail/pkg-perl-maintainers/attachments/20080507/887236d8/attachment.pgp 


More information about the pkg-perl-maintainers mailing list