Re: [sqlite] Segmentation fault in syncJournal (pPager=0x102028) at src/pager.c:2417
Sorry, I use SQLite 3.4.2, NOT SQLite 3.5.2. The code in pager.c:2417 (SQLite 3.4.2) is for(pPg=pPager->pAll; pPg; pPg=pPg->pNextAll){ pPg->needSync = 0;// <= line 2417 } Is there something wrong to pPg ? why ?? And in general, pPager=0x102028 when segmentation fault was occured. (pPager is the parameter of syncJournal (pPager=0x102028) ) Thanks to Richard to remind me the wrong SQLite version number. Sincerely yours, Joseph - Original Message - From: <[EMAIL PROTECTED]> To: Sent: Thursday, November 29, 2007 10:48 PM Subject: Re: [sqlite] Segmentation fault in syncJournal (pPager=0x102028) at src/pager.c:2417 "Joseph Hsu" <[EMAIL PROTECTED]> wrote: Hello, I use SQLite 3.5.2 on ARM9 embedded system. ( Linux 2.4 ) My program sometimes meets segmentation fault ! ( randomly, maybe several hours, maybe several days ! ) Here is a clip from GDB: -- snip -- (gdb) backtrace #0 syncJournal (pPager=0x102028) at src/pager.c:2417 In SQLite 3.5.2, syncJournal begins on line 2748. Are you really user your are running version 3.5.2? Have you modified the sources? -- D. Richard Hipp <[EMAIL PROTECTED]> - To unsubscribe, send email to [EMAIL PROTECTED] - - To unsubscribe, send email to [EMAIL PROTECTED] -
[sqlite] Segmentation fault in syncJournal (pPager=0x102028) at src/pager.c:2417
Hello, I use SQLite 3.5.2 on ARM9 embedded system. ( Linux 2.4 ) My program sometimes meets segmentation fault ! ( randomly, maybe several hours, maybe several days ! ) Here is a clip from GDB: -- snip -- (gdb) backtrace #0 syncJournal (pPager=0x102028) at src/pager.c:2417 #1 0x0007cbbc in sqlite3PagerCommitPhaseOne (pPager=0x102028, zMaster=0x0, nTrunc=0) at src/pager.c:3948 #2 0x00065354 in sqlite3BtreeCommitPhaseOne (p=0x0, zMaster=0x0) at src/btree.c:2074 #3 0x0005e698 in vdbeCommit (db=0x101ec8) at src/vdbeaux.c:1103 #4 0x0005ece0 in sqlite3VdbeHalt (p=0x37ec98) at src/vdbeaux.c:1442 #5 0x0008794c in sqlite3VdbeExec (p=0x37ec98) at src/vdbe.c:686 #6 0x00101ec8 in ?? () It seems that the segmentation fault is occured in syncJournal (pPager=0x102028) at src/pager.c:2417. Is there something wrong ? Such as the parameters of sqlite3BtreeCommitPhaseOne (p=0x0, zMaster=0x0) at src/btree.c:2074 ?? Or am I missing something to make this segmentation fault occured when I use SQLite ? Thanks. Sincerely Yours, Joseph Hsu Email : [EMAIL PROTECTED]