On 4/14/15 18:13, Dan Kennedy wrote:
> On 04/14/2015 10:00 PM, Ron Aaron wrote:
>> Just updated with the version from sqlite.org and have the same problem:
>
> The line numbers still don't match the 3.8.9 amalgamation on the 
> website. Are you running [make sqlite3.c] yourself or downloading 
> sqlite-amalgamation-3080900.zip or sqlite3-autoconf-3080900.tar.gz?
sqlite-amalgamation-3080900.zip

>
> Are you able to share the test app with us so that we can reproduce 
> the crash?
I can't do that, unfortunately.  I'll try to make an independent test 
scenario.  I do appreciate your efforts!
>
> What is output if you run [where full 7] in gdb?

A pile of output:

ok> "test.db" db:open
CALL_or_compile: 0x92014b8 xt 0x82e5990 name open

Program received signal SIGSEGV, Segmentation fault.
findInodeInfo (pFile=0x928a110, ppInode=0x928a118) at sqlite3.c:26091
26091
(gdb) where full 7
#0  findInodeInfo (pFile=0x928a110, ppInode=0x928a118) at sqlite3.c:26091
         rc = 0
         fd = 5
         fileId = {dev = 613319152320380928, ino = 4432731307}
         statbuf = {st_dev = 25, __pad1 = 420, __st_ino = 85073599, 
st_mode = 33188, st_nlink = 1, st_uid = 1000, st_gid = 1000, st_rdev = 
0, __pad2 = 420,
           st_size = 0, st_blksize = 4096, st_blocks = 16, st_atim = 
{tv_sec = 1429027578, tv_nsec = 801386751}, st_mtim = {tv_sec = 1429027578,
             tv_nsec = 801386751}, st_ctim = {tv_sec = 1429027578, 
tv_nsec = 801386751}, st_ino = 85073599}
         pInode = 0x0
#1  0x085d31c4 in fillInUnixFile (pVfs=0x89422b0 <sqlite3_os_init.aVfs>, 
h=5, pId=0x928a110, zFilename=0x928a200 "/home/ron/proj/8th/test.db", 
ctrlFlags=0)
     at sqlite3.c:30092
         pLockingStyle = 0x8917cec <posixIoMethods>
         pNew = 0x928a110
         rc = 0
#2  0x084fa62e in unixOpen (pVfs=0x89422b0 <sqlite3_os_init.aVfs>, 
zPath=0x928a200 "/home/ron/proj/8th/test.db", pFile=0x928a110, flags=262,
     pOutFlags=0xffffd288) at sqlite3.c:30697
         p = 0x928a110
         fd = 5
         openFlags = 32834
         eType = 256
         noLock = 0
         rc = 0
         ctrlFlags = 0
         isExclusive = 0
         isDelete = 0
         isCreate = 4
         isReadonly = 0
         isReadWrite = 2
         syncDir = 0
         zTmpname = 
"\226\b\370d\230\b\033\000\000\000S\f6\b\000`\236\000\310d\230\b\002\000\000\000F\000\000\000C\000\000\000H\000\000\000\234`\240\b\000\000\375\367`\t\375\367I\000\000\000s\000\000\000\000\300\222\b\033\000\000\000\370d\230\b\200\002\000\000\000\340(\t\000`\236\b\002\000\000\000\230\320\377\377\221\267\065\b\221\267\065\b\001\000\000\000X\250\375\367\221\267\065\b@?\b<\276\226\bT\320\377\377\370d\230\b\240*\226\b\330\320\377\377T\320\377\377\000\300\222\b
 
\031\226\b\350\320\377\377d\320\377\377\212\273\065\b 
\031\226\b\001\000\000\000\344\320\377\377\350\320\377\377\324\320\377\377\240*\226\b\244\320\377\377\000\300\222\b\344\320\377\377
 
\031\226\b\264\320\377\377"...
         zName = 0x928a200 "/home/ron/proj/8th/test.db"
#3  0x0851a3e3 in sqlite3OsOpen (pVfs=0x89422b0 <sqlite3_os_init.aVfs>, 
zPath=0x928a200 "/home/ron/proj/8th/test.db", pFile=0x928a110, flags=262,
     pFlagsOut=0xffffd288) at sqlite3.c:16093
         rc = 153570696
#4  0x08515c18 in sqlite3PagerOpen (pVfs=0x89422b0 
<sqlite3_os_init.aVfs>, ppPager=0x9286008, zFilename=0x926e248 
"test.db", nExtra=76, flags=0,
     vfsFlags=262, xReinit=0x85160a0 <pageReinit>) at sqlite3.c:45520
         fout = 262
         pPtr = 0x928a21c "/home/ron/proj/8th/test.db-journal"
         pPager = 0x928a008
         rc = 0
         tempFile = 0
         memDb = 0
         readOnly = 0
         journalFileSize = 80
---Type <return> to continue, or q <return> to quit---
         zPathname = 0x9274d88 "/home/ron/proj/8th/test.db"
         nPathname = 26
         useJournal = 1
         pcacheSize = 48
         szPageDflt = 1024
         zUri = 0x926e250 ""
         nUri = 1
#5  0x08514882 in sqlite3BtreeOpen (pVfs=0x89422b0 
<sqlite3_os_init.aVfs>, zFilename=0x926e248 "test.db", db=0x9192b48, 
ppBtree=0x9192d04, flags=0,
     vfsFlags=262) at sqlite3.c:54119
         pBt = 0x9286008
         p = 0x919fa08
         mutexOpen = 0x0
         rc = 0
         nReserve = 8 '\b'
         zDbHeader = 
"\000\263'Q\bH+\031\t'\264\202\b\001\000\000\000\t\270O\b\350a!\t\000\300\222\b'\264\202\b\000\300\222\b\000\000\000\000H+\031\t\000\300\222\b~\347P\bH+\031\t\000\000\000\000'\264\202\b\001\000\000\000\000\300\222\b\000\000\000\000\001\000\000\000\374\002\000\200\000\000\000\000Ha!\t\a\000\000\000\032\264\202"
         isTempDb = 0
         isMemdb = 0
#6  0x0850de27 in openDatabase (zFilename=0x919f9d0 "test.db", 
ppDb=0x91a2028, flags=6, zVfs=0x0) at sqlite3.c:127475
         db = 0x9192b48
         rc = 0
         isThreadsafe = 0
         zOpen = 0x926e248 "test.db"
         zErrMsg = 0x0
(More stack frames follow...)
(gdb)

Reply via email to