I also see random crashes with sources from CVS as of Thu Aug 30 12:20:43 EDT 2007 using Ken's program below.
http://marc.info/?l=sqlite-users&m=118848741522192&w=2 It's timing dependent. On a single core Pentium4 machine it crashes once in 10 runs. Sometimes it produces this valgrind error: ==14637== Thread 4: ==14637== Invalid read of size 4 ==14637== at 0x804D951: balance_nonroot (btree.c:4774) ==14637== by 0x804E840: balance (btree.c:5469) ==14637== by 0x805013B: sqlite3BtreeInsert (btree.c:5601) ==14637== by 0x807EAC1: sqlite3VdbeExec (vdbe.c:3506) ==14637== by 0x805C209: sqlite3_step (vdbeapi.c:328) ==14637== by 0x8060951: sqlite3_exec (legacy.c:77) ==14637== by 0x8048FD9: sqlite3_execute (thrd35.c:122) ==14637== by 0x80495B7: testthread (thrd35.c:251) ==14637== by 0x403A561: start_thread (in /lib/i686/libpthread-2.4.so) ==14637== by 0x418D4DD: clone (in /lib/i686/libc-2.4.so) ==14637== Address 0x4C is not stack'd, malloc'd or (recently) free'd ==14637== ==14637== Process terminating with default action of signal 11 (SIGSEGV) ==14637== Access not within mapped region at address 0x4C ==14637== at 0x804D951: balance_nonroot (btree.c:4774) ==14637== by 0x804E840: balance (btree.c:5469) ==14637== by 0x805013B: sqlite3BtreeInsert (btree.c:5601) ==14637== by 0x807EAC1: sqlite3VdbeExec (vdbe.c:3506) ==14637== by 0x805C209: sqlite3_step (vdbeapi.c:328) ==14637== by 0x8060951: sqlite3_exec (legacy.c:77) ==14637== by 0x8048FD9: sqlite3_execute (thrd35.c:122) ==14637== by 0x80495B7: testthread (thrd35.c:251) ==14637== by 0x403A561: start_thread (in /lib/i686/libpthread-2.4.so) ==14637== by 0x418D4DD: clone (in /lib/i686/libc-2.4.so) ==14637== by 0x38134192: (within /usr/lib/valgrind/x86-linux/memcheck) ==14637== by 0x3: ??? --- [EMAIL PROTECTED] wrote: > Ken <[EMAIL PROTECTED]> wrote: > > program received signal SIGSEGV, Segmentation fault. > > [Switching to Thread 1080043872 (LWP 15448)] > > moveToChild (pCur=0x569058, newPgno=<value optimized out>) at btree.c:3304 > > (gdb) > > > > > > if( rc ) return rc; > > pNewPage->idxParent = pCur->idx; > > pOldPage = pCur->pPage; > > pOldPage->idxShift = 0; <---------------- Error Here > > releasePage(pOldPage); > > pCur->pPage = pNewPage; > > pCur->idx = 0; > > pCur->info.nSize = 0; > > > > When did you check-out the sources? There have been a lot > of changes lately. What is the RCS version number on your > btree.c source file (in the header comment at the top)? ____________________________________________________________________________________ Got a little couch potato? Check out fun summer activities for kids. http://search.yahoo.com/search?fr=oni_on_mail&p=summer+activities+for+kids&cs=bz ----------------------------------------------------------------------------- To unsubscribe, send email to [EMAIL PROTECTED] -----------------------------------------------------------------------------