Artifact
a07e9861d5d7ca076fb83a8e61dd33971959733c:
Ticket change
[a07e9861d5]
- Fixed ticket
[157ef3e5a7]:
fossil add on a directory causes a core dump plus 2 other changes
by
drh
2011-04-18 12:01:12.
D 2011-04-18T12:01:12.328
J comment When\sattempting\sto\srun\sfossil\sadd\s.\sor\sfossil\sadd\ssomedirectory\sname\sfossil\score\sdumps\swith\sthe\sfollowing\serror:\r\n\r\nfossil\sin\sfree():\serror:\schunk\sis\salready\sfree\s0x203aca520\r\nAbort\strap\s(core\sdumped)\r\n\r\nThis\sis\son\sOpenBSD\samd64\swith\sthe\slatest\sfrom\strunk.\n\n<hr\s/><i>anonymous\sadded\son\s2011-04-17\s17:21:00\sUTC:</i><br\s/>\nDoing\ssomething\slike\sfossil\sadd\ssomedirectory/*\sworks.\n\n<hr\s/><i>anonymous\sclaiming\sto\sbe\sMartin\sadded\son\s2011-04-17\s21:16:27\sUTC:</i><br\s/>\nI\sconfirm,\sI\sget\ssame\sproblem\son\sOpenBSD\s4.7\s(i386)..\sI\sdon't\shave\sthis\sproblem\son\sMacOS\sX\s10.6.7.\r\nHere\sthe\soutput\sof\sa\sbacktrace\son\sgdb\swhen\sadding\sa\sdirectory\sunder\sOpenBSD:\r\n\r\n<verbatim>\r\n$\sgdb\s../fossil-scm/fossil\r\nGNU\sgdb\s6.3\r\nCopyright\s2004\sFree\sSoftware\sFoundation,\sInc.\r\nGDB\sis\sfree\ssoftware,\scovered\sby\sthe\sGNU\sGeneral\sPublic\sLicense,\sand\syou\sare\r\nwelcome\sto\schange\sit\sand/or\sdistribute\scopies\sof\sit\sunder\scertain\sconditions.\r\nType\s"show\scopying"\sto\ssee\sthe\sconditions.\r\nThere\sis\sabsolutely\sno\swarranty\sfor\sGDB.\s\sType\s"show\swarranty"\sfor\sdetails.\r\nThis\sGDB\swas\sconfigured\sas\s"i386-unknown-openbsd4.7"...\r\n(gdb)\sr\sadd\susr\s\r\nStarting\sprogram:\s/home/meeks/fossil/fossil-scm/fossil\sadd\susr\r\nfossil\sin\sfree():\serror:\schunk\sis\salready\sfree\r\n\r\nProgram\sreceived\ssignal\sSIGABRT,\sAborted.\r\n0x02003a71\sin\skill\s()\sfrom\s/usr/lib/libc.so.53.1\r\n(gdb)\sbt\r\n#0\s\s0x02003a71\sin\skill\s()\sfrom\s/usr/lib/libc.so.53.1\r\n#1\s\s0x0204f313\sin\sabort\s()\sat\s/usr/src/lib/libc/stdlib/abort.c:68\r\n#2\s\s0x02024c99\sin\swrterror\s(p=0x21fce6f5\s"chunk\sis\salready\sfree")\r\n\s\s\s\sat\s/usr/src/lib/libc/stdlib/malloc.c:380\r\n#3\s\s0x02026688\sin\sofree\s(p=0x84d271c0)\sat\s/usr/src/lib/libc/stdlib/malloc.c:1296\r\n#4\s\s0x02026781\sin\sfree\s(ptr=0x7fb31800)\sat\s/usr/src/lib/libc/stdlib/malloc.c:1321\r\n#5\s\s0x1c04d79a\sin\ssqlite3_free\s(p=0x7fb31808)\sat\ssrc/sqlite3.c:18157\r\n#6\s\s0x1c068571\sin\ssqlite3VdbeDeleteObject\s(db=0x7c9f5c08,\sp=0x7c48e608)\sat\ssrc/sqlite3.c:59390\r\n#7\s\s0x1c068607\sin\ssqlite3VdbeDelete\s(p=0x52f5)\sat\ssrc/sqlite3.c:59417\r\n#8\s\s0x1c068480\sin\ssqlite3VdbeFinalize\s(p=0x7c48e608)\sat\ssrc/sqlite3.c:59351\r\n#9\s\s0x1c08559b\sin\ssqlite3_exec\s(db=0x7c9f5c08,\s\r\n\s\s\s\szSql=0x87960700\s"INSERT\sINTO\svfile(vid,deleted,rid,mrid,pathname,isexe)VALUES(1,0,0,0,'usr/local/ndt/bin/ums_instrum',1)",\sxCallback=0,\spArg=0x0,\spzErrMsg=0xcfbdbbec)\sat\ssrc/sqlite3.c:86283\r\n#10\s0x1c00ec08\sin\sdb_multi_exec\s(\r\n\s\s\s\szSql=0x3c0001e0\s"INSERT\sINTO\svfile(vid,deleted,rid,mrid,pathname,isexe)VALUES(%d,0,0,0,%Q,%d)")\r\n\s\s\s\sat\sbld/db_.c:446\r\n#11\s0x1c00285b\sin\sadd_one_file\s(zPath=0x88febbc8\s"usr/local/ndt/bin/ums_instrum",\svid=1)\r\n\s\s\s\sat\sbld/add_.c:115\r\n#12\s0x1c002942\sin\sadd_files_in_sfile\s(vid=1)\sat\sbld/add_.c:152\r\n#13\s0x1c002a95\sin\sadd_cmd\s()\sat\sbld/add_.c:234\r\n#14\s0x1c022628\sin\smain\s(argc=2,\sargv=0xcfbdbe18)\sat\sbld/main_.c:289\r\n\r\n</verbatim>\r\n\r\nHope\sthis\scan\shelp\n\n<hr\s/><i>anonymous\sclaiming\sto\sbe\sMartin\sadded\son\s2011-04-17\s21:55:01\sUTC:</i><br\s/>\nI've\snotice\sthat\slatest\srelease\s(OpenBSD\s4.7\sbinary\sfrom\sDownload\spage),\swith\sthe\ssame\stest\sis\sok.\n\n<hr\s/><i>anonymous\sclaiming\sto\sbe\sMartin\sadded\son\s2011-04-17\s22:59:06\sUTC:</i><br\s/>\nSorry,\sI\sgave\sWrong\sinfo\sbefore..\sit's\sthe\ssame\sproblem\son\sOSX..\sWhen\sI\sfirst\stried,\sI've\sbuild\sthe\slatest\sversion\sfrom\strunk,\sbut\sI\sforget\sto\sput\sthe\sexecutable\son\sthe\sPATH.
J resolution Fixed
J status Fixed
K 157ef3e5a7a06bbaf7c917188ca7a8cf061e3ee8
U drh
Z b609de05c92a333b5cdfaa63fcef9553