[Date Prev][Date Next][Thread Prev][Thread Next]
[Date Index]
[Thread Index]
- Subject: LuaSQL abort trap/core dump
- From: "Keith Pimmel" <pimmel@...>
- Date: Tue, 20 Nov 2007 08:29:20 -0600
First some background:
I'm running on an oldish FreeBSD system:
,----[ uname -a ]-
| NetBSD faeroes 3.1.1_PATCH NetBSD 3.1.1_PATCH (sdf) #0: Mon Jul 2
| 15:57:43 UTC 2007 root@faeroes:/var/netbsd/arch/alpha/compile/sdf alpha
`----
My compiler:
,----[ gcc -v ]-
| Using built-in specs.
| Configured with:
| /home/nick/work/netbsd/src/tools/gcc/../../gnu/dist/gcc/configure
| --enable-long-long --disable-multilib --enable-threads --disable-symvers
| --build=i386-unknown-netbsdelf2.0. --host=alpha--netbsd
| --target=alpha--netbsd
| Thread model: posix
| gcc version 3.3.3 (NetBSD nb3 20040520)
`----
I'm using a self-built sqlite3 library.
I tried using the Kepler build and also a stand-alone build of LuaSQL
taken from CVS. Both built an sqlite3.so library that was installed where
I expect it to.
When trying to invoke it in something just as simple as a stand-alone lua
interpreter, I get the following:
,----
| $ lua -e 'require"luasql.sqlite3"'
| Abort trap (core dumped)
`----
Using gdb to investigate the core dump didn't reveal anything to me:
,----
| $ gdb lua lua.core
| GNU gdb 5.3nb1
| Copyright 2002 Free Software Foundation, Inc.
| GDB is free software, covered by the GNU General Public License, and you are
| welcome to change it and/or distribute copies of it under certain
| conditions.
| Type "show copying" to see the conditions.
| There is absolutely no warranty for GDB. Type "show warranty" for details.
| This GDB was configured as "alpha--netbsd"...
| Core was generated by `lua'.
| Program terminated with signal 6, Aborted.
| Reading symbols from /usr/lib/libm.so.0...done.
| Loaded symbols for /usr/lib/libm.so.0
| Reading symbols from /usr/lib/libcurses.so.6...done.
| Loaded symbols for /usr/lib/libcurses.so.6
| Reading symbols from /usr/lib/libc.so.12...done.
| Loaded symbols for /usr/lib/libc.so.12
| Reading symbols from /arpa/ns/p/pimmel/opt/lib/lua/5.1/luasql/sqlite3.so...
| done.
| Loaded symbols for /arpa/ns/p/pimmel/opt/lib/lua/5.1/luasql/sqlite3.so
| Reading symbols from /arpa/ns/p/pimmel/opt/lib/libsqlite3.so.8...done.
| Loaded symbols for /arpa/ns/p/pimmel/opt/lib/libsqlite3.so.8
| Reading symbols from /usr/lib/libpthread.so.0...done.
| Loaded symbols for /usr/lib/libpthread.so.0
| Reading symbols from /usr/libexec/ld.elf_so...done.
| Loaded symbols for /usr/libexec/ld.elf_so
| #0 0x000000016014d880 in kill () from /usr/lib/libc.so.12
| (gdb)
`----
I tried compiling against my own-compiled sqlite 2.x branch, and it
worked just fine and dandy,
so I'm guessing I either have an issue with my compiled sqlite3 or
specifically the sqlite3
binding inside of LuaSQL.
Does anyone have any idea of what is going on or what alternative debugging
solutions I can try?
--
Keith Pimmel