Wow!,  Thanks for your very swift reply, Sir.

On Mon, 28 Jul 2008, D. Richard Hipp wrote:

> Perhaps FreeBSD does not implement recursive mutexes.  In that case, you can 
> try to recompile with -DSQLITE_HOMEGROWN_RECURSIVE_MUTEX=1 and see if that 
> helps.  It would be good to review the comments in mutex_unix.c to see if the 
> HOMEGROWN_RECURSIVE_MUTEX implementation really is safe for FreeBSD.
>
> D. Richard Hipp
> [EMAIL PROTECTED]

OK, I just switched to sqlite3.6.0, and I added the following lines to the top 
of mutex.h:

#ifdef __FreeBSD__
  #define SQLITE_HOMEGROWN_RECURSIVE_MUTEX 1
#endif


The Tcl/SQLite code now runs to completion(?), and then cored with the 
following dump.
I'm tracking this down, but it does not appear to involve SQLite ... hmmm ... 
it sort of
appears to be a cleanup of the dlload of the sqlite module ... not quite sure 
though.

Core was generated by `tclsh8.5'.
Program terminated with signal 11, Segmentation fault.
Reading symbols from /usr/local/lib/libtcl8.5.so...(no debugging symbols 
found)...done.
Loaded symbols for /usr/local/lib/libtcl8.5.so
Reading symbols from /lib/libm.so.4...(no debugging symbols found)...done.
Loaded symbols for /lib/libm.so.4
Reading symbols from /lib/libc.so.6...(no debugging symbols found)...done.
Loaded symbols for /lib/libc.so.6
Reading symbols from /libexec/ld-elf.so.1...(no debugging symbols 
found)...done.
Loaded symbols for /libexec/ld-elf.so.1
#0  0x282acda0 in ?? ()
(gdb) bt
#0  0x282acda0 in ?? ()
#1  0x28051180 in wlock_release () from /libexec/ld-elf.so.1
#2  0x28050934 in dlclose () from /libexec/ld-elf.so.1
#3  0x28134d27 in TclpUnloadFile () from /usr/local/lib/libtcl8.5.so
#4  0x280fcb45 in TclFinalizeLoad () from /usr/local/lib/libtcl8.5.so
#5  0x280d0f46 in Tcl_Finalize () from /usr/local/lib/libtcl8.5.so
#6  0x280d0dc5 in Tcl_Exit () from /usr/local/lib/libtcl8.5.so
#7  0x2809c19f in Tcl_ExitObjCmd () from /usr/local/lib/libtcl8.5.so
#8  0x280941a7 in TclEvalObjvInternal () from /usr/local/lib/libtcl8.5.so
#9  0x280d3553 in TclExecuteByteCode () from /usr/local/lib/libtcl8.5.so
#10 0x280d1fa3 in TclCompEvalObj () from /usr/local/lib/libtcl8.5.so
#11 0x28095394 in TclEvalObjEx () from /usr/local/lib/libtcl8.5.so
#12 0x28095029 in Tcl_EvalObjEx () from /usr/local/lib/libtcl8.5.so
#13 0x280fd833 in Tcl_Main () from /usr/local/lib/libtcl8.5.so
#14 0x0804860a in main ()



-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=--=-=-=-=
Robert S. Sciuk         http://www.controlq.com         259 Simcoe St. S.
Control-Q Research      tel: 905.576.8028               Oshawa, Ont.
[EMAIL PROTECTED]       fax: 905.576.8386               Canada, L1H 4H3
_______________________________________________
sqlite-users mailing list
sqlite-users@sqlite.org
http://sqlite.org:8080/cgi-bin/mailman/listinfo/sqlite-users

Reply via email to