D 2009-06-07T12:01:07 J comment To\sdevelop\sanother\sproject\sunder\sSolaris\s9\s(sparc),\sI\sdecided\sfirst\sto\sbuild\sFossil\sto\suse\sit\sas\sVCS\sfor\smy\sproject.\sUnfortunately\sit\swas\snot\spossible\sto\sbuild\sit\sstreight\sahead.\sFollowing\swas\snecessary:\r\n\r\n\s\s1\s\ssha1.c\sought\sto\sbe\spatched\svia\s---\ssrc/sha1.c\s\sThu\sMay\s28\s02:44:38\s2009\r\n+++\s../fossil/src/sha1.c\s\s\s\s\s\s\s\sSat\sJun\s\s6\s18:07:39\s2009\r\n@@\s-2,7\s+2,12\s@@\r\n\s**\sThis\simplementation\sof\sSHA1\sis\sadapted\sfrom\sthe\sexample\simplementation\r\n\s**\scontained\sin\sRFC-3174.\r\n\s*/\r\n-#include\s\r\n+#ifdef\s__sparc__\r\n+\s\stypedef\sunsigned\sint\suint32_t;\r\n+\s\stypedef\sunsigned\schar\suint8_t;\r\n+#else\r\n+#\sinclude\s\r\n+#endif\r\n\s#include\s\r\n\s#include\s"config.h"\r\n\s#include\s"sha1.h"\r\n\r\n\s\s2\s\sThe\sbinary\sfossil\shas\sto\sbe\slinked\swith\s-lsocket\s-lnsl\r\n\r\nAfter\sthese,\sthe\sbinary\scould\sbe\sbuilt.\sBut\susing\sit\sto\se.g.\sclone\sor\srebuild\san\sexisting\srepository,\swill\sresult\sin\sa\sbus\serror\swith\score\sdump.\sA\sdebugger\sexcerpt\sshows:bash-2.05$\s./fossil\sclone\s~/repos/t3x.fsl\st3x.fsl\r\n\sRepository\scloned\sinto\st3x.fsl\r\n\sRebuilding\srepository\smeta-data...\r\nBus\sError\s(core\sdumped)\r\nbash-2.05$\sgdb\sfossil\score\r\nGNU\sgdb\s5.0\r\nCopyright\s2000\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"sparc-sun-solaris2.9"...\r\nCore\swas\sgenerated\sby\s`./fossil\sclone\s/export/home/cle/repos/t3x.fsl\st3x.fsl'.\r\nProgram\sterminated\swith\ssignal\s10,\sBus\sError.\r\nReading\ssymbols\sfrom\s/usr/lib/libz.so.1...done.\r\nLoaded\ssymbols\sfor\s/usr/lib/libz.so.1\r\nReading\ssymbols\sfrom\s/usr/lib/libsocket.so.1...done.\r\nLoaded\ssymbols\sfor\s/usr/lib/libsocket.so.1\r\nReading\ssymbols\sfrom\s/usr/lib/libnsl.so.1...done.\r\nLoaded\ssymbols\sfor\s/usr/lib/libnsl.so.1\r\nReading\ssymbols\sfrom\s/usr/lib/libc.so.1...done.\r\nLoaded\ssymbols\sfor\s/usr/lib/libc.so.1\r\nReading\ssymbols\sfrom\s/usr/lib/libdl.so.1...done.\r\nLoaded\ssymbols\sfor\s/usr/lib/libdl.so.1\r\nReading\ssymbols\sfrom\s/usr/lib/libmp.so.2...done.\r\nLoaded\ssymbols\sfor\s/usr/lib/libmp.so.2\r\nReading\ssymbols\sfrom\s/usr/platform/SUNW,Ultra-5_10/lib/libc_psr.so.1...done.\r\nLoaded\ssymbols\sfor\s/usr/platform/SUNW,Ultra-5_10/lib/libc_psr.so.1\r\n#0\s\ssqlite3RowSetInsert\s(p=0x10e7a0,\srowid=16)\sat\ssrc/sqlite3.c:30020\r\n30020\s\s\s\s\spEntry->v\s=\srowid;\r\n(gdb)\sbt\r\n#0\s\ssqlite3RowSetInsert\s(p=0x10e7a0,\srowid=16)\sat\ssrc/sqlite3.c:30020\r\n#1\s\s0x71410\sin\ssqlite3VdbeExec\s(p=0xff568)\sat\ssrc/sqlite3.c:54628\r\n#2\s\s0x6c4dc\sin\ssqlite3Step\s(p=0xff568)\sat\ssrc/sqlite3.c:49092\r\n#3\s\s0x6c624\sin\ssqlite3_step\s(pStmt=0xff568)\sat\ssrc/sqlite3.c:49168\r\n#4\s\s0x85f5c\sin\ssqlite3_exec\s(db=0xf54f8,\szSql=0xff668\s"DROP\sTABLE\s'filename'",\r\n\s\s\s\sxCallback=0,\spArg=0x0,\spzErrMsg=0xffbffa3c)\sat\ssrc/sqlite3.c:5421\r\n#5\s\s0x29af4\sin\sdb_multi_exec\s(zSql=0xc2ae0\s"DROP\sTABLE\s%Q")\sat\sdb_.c:390\r\n#6\s\s0x3cdc4\sin\srebuild_db\s(randomize=0,\sdoOut=1039808)\sat\srebuild_.c:221\r\n#7\s\s0x27288\sin\sclone_cmd\s()\sat\sclone_.c:94\r\n#8\s\s0x3579c\sin\smain\s(argc=0,\sargv=0xffbffc5c)\sat\smain_.c:248\r\n(gdb)\sp\spEntry\r\nNo\ssymbol\s"pEntry"\sin\scurrent\scontext.\r\n(gdb)\slist\r\n30015\s\s\s\s\s\s\sp->pFresh\s=\spNew->aEntry;\r\n30016\s\s\s\s\s\s\sp->nFresh\s=\sROWSET_ENTRY_PER_CHUNK;\r\n30017\s\s\s\s\s}\r\n30018\s\s\s\s\spEntry\s=\sp->pFresh++;\r\n30019\s\s\s\s\sp->nFresh--;\r\n30020\s\s\s\s\spEntry->v\s=\srowid;\r\n30021\s\s\s\s\spEntry->pRight\s=\s0;\r\n30022\s\s\s\s\spLast\s=\sp->pLast;\r\n30023\s\s\s\s\sif(\spLast\s){\r\n30024\s\s\s\s\s\s\sif(\sp->isSorted\s&&\srowid<=pLast->v\s){\r\n(gdb)\sinfo\sloc\r\npLast\s=\s(struct\sRowSetEntry\s*)\s0x0\r\n(gdb)\squit\r\n\r\nHowever,\sif\sI\stook\sthe\sfile\ssqlite3.c\sof\srevision\s[767ae79c3d]\sreplacing\sthe\sactual\sfile\sof\srevision\s[915bfd99fe],\sthen\sall\swill\srun\scorrectly\swithout\sany\sfault!\r\n\r\nSo\sI\sassume,\sthe\serror\swas\sintroduced\sin\srevision\s[3b76c0474e]\s(SQLite\s3.6.14.1),\sas\sreplacing\sthe\sfaulty\sfile\swith\sthat\srevision's\sone,\salso\scaused\sa\sbus\serror.\r\n\r\nIf\sfurther\sinformation\sis\snecessary,\splease\slet\sme\sknow\s...\r\n\r\nCiao,\r\nchi\s:-) J foundin 915bfd99fe J private_contact 63f4cb9d6971f7dbdee05412b8546975182b32e4 J severity Critical J status Open J title Bus\serror\sin\sSQLite\sunder\sSolaris\s9\s(sparc) J type Code_Defect K 95ab8f02c3b8eb314cae8962d8b8ed8a45abde42 U chi Z 2d0c2cffd3780f6fc6223d19b5385142