On 7/17/13, Edward Berner <e...@bernerfam.com> wrote: > Hello, > > Using a recent trunk version of fossil, built with gcc on Solaris 10 on > an UltraSPARC system, I get a bus error from "fossil new": > > $ ./fossil new t.fossil > Bus Error (core dumped) > > > $ ./fossil version -v > This is fossil version 1.26 [5d74ce03da] 2013-07-17 12:56:17 UTC > Compiled on Jul 17 2013 21:46:29 using gcc-4.8.1 (32-bit) > SQLite 3.8.0 2013-07-17 11:54:47 64bf8148b8 > zlib 1.2.3 > > > $ gdb fossil core > Python Exception <type 'exceptions.ImportError'> No module named gdb: > > warning: > Could not load the Python gdb module from `/opt/gdb7.6/share/gdb/python'. > Limited Python support is available from the _gdb module. > Suggest passing --data-directory=/path/to/gdb/data-directory. > > GNU gdb (GDB) 7.6 > Copyright (C) 2013 Free Software Foundation, Inc. > License GPLv3+: GNU GPL version 3 or later > <http://gnu.org/licenses/gpl.html> > This is free software: you are free to change and redistribute it. > There is NO WARRANTY, to the extent permitted by law. Type "show copying" > and "show warranty" for details. > This GDB was configured as "sparc-sun-solaris2.10". > For bug reporting instructions, please see: > <http://www.gnu.org/software/gdb/bugs/>... > Reading symbols from /export/home/erb/tmp/t2/fossil...done. > [New LWP 1] > [Thread debugging using libthread_db enabled] > [New Thread 1 (LWP 1)] > Core was generated by `./fossil new t.fossil'. > Program terminated with signal 10, Bus error. > #0 whereLoopAddAll (pBuilder=0xffbff280) at src/sqlite3.c:109401 > 109401 pNew->maskSelf = getMask(&pWInfo->sMaskSet, pItem->iCursor); > (gdb) list > 109396 /* Loop over the tables in the join, from left to right */ > 109397 pNew = pBuilder->pNew; > 109398 whereLoopInit(pNew); > 109399 for(iTab=0, pItem=pTabList->a; iTab<nTabList; iTab++, pItem++){ > 109400 pNew->iTab = iTab; > 109401 pNew->maskSelf = getMask(&pWInfo->sMaskSet, pItem->iCursor); > 109402 if( ((pItem->jointype|priorJoinType) & (JT_LEFT|JT_CROSS))!=0 > ){ > 109403 mExtra = mPrior; > 109404 } > 109405 priorJoinType = pItem->jointype; > (gdb) q > > The error does not occur if fossil is built with "-m64".
I guess that's one fix then -- what's the output of "bt full" in gdb? > The error occurs using both the Solaris 10 provided gcc 3.4.3 and a > locally built gcc 4.8.1. > > The error does not occur when using the Solaris Studio C compiler. > > -- > Edward Berner > > _______________________________________________ > fossil-users mailing list > fossil-users@lists.fossil-scm.org > http://lists.fossil-scm.org:8080/cgi-bin/mailman/listinfo/fossil-users > -- Brad Harder Method Logic Digital Consulting http://www.methodlogic.net/ http://twitter.com/bcharder _______________________________________________ fossil-users mailing list fossil-users@lists.fossil-scm.org http://lists.fossil-scm.org:8080/cgi-bin/mailman/listinfo/fossil-users