2009/6/19 hiral <hiralsmaill...@gmail.com>: > Hi Simon / John, > > Thank you for replies. > >> You are able to repeatably corrupt the db under SQLite 3.5.9? It would >> be worthwhile publishing a script that can do that. > > "was getting error often" or "did get error ONCE"?? > I am running application which uses the db over the NFS. If I move the db > over the local drive then it's working fine. > So I m observing this bug in NFS environment frequently. > In the same test environment (in which I am getting db corrupted), if I use > the sqlite-3.6.4 and above it works perfectly fine. > > . . snip . . > Yes, 'disk image malformed' message I am observing on NFS. > Environment: > CentOS 4.4 > nfs-utils-lib-1.0.6-3 > system-config-nfs-1.2.8-1 > nfs-utils-1.0.6-70.EL4 > nfs-utils-lib-devel-1.0.6-3 > nfs-utils-1.0.6-70.EL4 > - db is on NFS drive, but not shared by thread/processes/users > - not using thread > > Some interesting information: > When I debuged the sqlite-3.5.9 code, and observed that it's getting > corrupted at following condition...
This is where corruption is detected, not where caused. > - in sqlite3BtreeInitPage() it returns with SQLITE_CORRUPT_BKPT based on > some condition (see below)... > > SQLITE_PRIVATE int sqlite3BtreeInitPage( > MemPage *pPage, /* The page to be initialized */ > MemPage *pParent /* The parent. Might be NULL */ > ){ > ... > if( pPage->nCell==0 && pParent!=0 && pParent->pgno!=1 ){ > /* All pages must have at least one cell, except for root pages */ > return SQLITE_CORRUPT_BKPT; > } > ... > } > > I would appreciate your help in debuging this bug. If you have found a version that does not manifest the 'bug' why not use that? (It has already been debugged!) > Thank you. > -Hiral > Rgds, Simon _______________________________________________ sqlite-users mailing list sqlite-users@sqlite.org http://sqlite.org:8080/cgi-bin/mailman/listinfo/sqlite-users