Package: libsqlite3-0
Version: 3.7.10-1
Severity: normal
File: /usr/lib/libsqlite3.so.0

For some reason gdb can't find any debug symbols files even though I
have libsqlite3-0-dbg installed, but anyway MALLOC_CHECK_=2 causes
libsqlite3.so.0 to abort, meaning that libsqlite3-0 is managing its
memory incorrectly:

http://www.gnu.org/s/libc/manual/html_node/Heap-Consistency-Checking.html

pabs@chianamo ~ $ MALLOC_CHECK_=2 gdb -s 
/usr/lib/debug/usr/lib/libsqlite3.so.0.8.6 -s /usr/lib/debug/usr/bin/sqlite3 
--args sqlite3 ~/.tangogps/poi.db .schema
GNU gdb (GDB) 7.4-debian
Copyright (C) 2012 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 "x86_64-linux-gnu".
For bug reporting instructions, please see:
<http://www.gnu.org/software/gdb/bugs/>...
Reading symbols from /usr/bin/sqlite3...Reading symbols from 
/usr/lib/debug/usr/bin/sqlite3...(no debugging symbols found)...done.
(no debugging symbols found)...done.
(gdb) r
Starting program: /usr/bin/sqlite3 /home/pabs/.tangogps/poi.db .schema
[Thread debugging using libthread_db enabled]
Using host libthread_db library "/lib/x86_64-linux-gnu/libthread_db.so.1".

Program received signal SIGABRT, Aborted.
0x00007ffff759d475 in *__GI_raise (sig=<optimized out>) at 
../nptl/sysdeps/unix/sysv/linux/raise.c:64
64      ../nptl/sysdeps/unix/sysv/linux/raise.c: No such file or directory.
(gdb) thread apply all bt full

Thread 1 (Thread 0x7ffff7fc7700 (LWP 8469)):
#0  0x00007ffff759d475 in *__GI_raise (sig=<optimized out>) at 
../nptl/sysdeps/unix/sysv/linux/raise.c:64
        pid = <optimized out>
        selftid = <optimized out>
#1  0x00007ffff75a06f0 in *__GI_abort () at abort.c:92
        act = {__sigaction_handler = {sa_handler = 0x1, sa_sigaction = 0x1}, 
sa_mask = {__val = {140737349316520, 1, 6427928, 4294967291, 
              17186297112, 0, 0, 0, 0, 0, 0, 0, 0, 0, 6421328, 
140737488333152}}, sa_flags = 1, sa_restorer = 0x621840}
        sigs = {__val = {32, 0 <repeats 15 times>}}
#2  0x00007ffff75e0ae0 in malloc_printerr (action=2, str=0x7ffff76b4aa4 
"realloc(): invalid pointer", ptr=0x2115) at malloc.c:6288
No locals.
#3  0x00007ffff75e6ee5 in realloc_check (oldmem=0x624930, bytes=104, 
caller=<optimized out>) at hooks.c:330
        nb = <optimized out>
        newmem = <optimized out>
        magic_p = <optimized out>
        oldp = 0x0
        oldsize = 4294967296
#4  0x00007ffff7b6a5f0 in sqlite3MemRealloc () from /usr/lib/libsqlite3.so.0
No symbol table info available.
#5  0x00007ffff7b4febb in sqlite3Realloc () from /usr/lib/libsqlite3.so.0
No symbol table info available.
#6  0x00007ffff7b5d16b in sqlite3DbRealloc () from /usr/lib/libsqlite3.so.0
No symbol table info available.
#7  0x00007ffff7b5d1a9 in sqlite3DbReallocOrFree () from 
/usr/lib/libsqlite3.so.0
No symbol table info available.
#8  0x00007ffff7b5e953 in sqlite3VdbeMakeLabel () from /usr/lib/libsqlite3.so.0
No symbol table info available.
#9  0x00007ffff7b7f3ec in sqlite3WhereBegin () from /usr/lib/libsqlite3.so.0
No symbol table info available.
#10 0x00007ffff7b81838 in sqlite3Select () from /usr/lib/libsqlite3.so.0
No symbol table info available.
#11 0x00007ffff7b97e83 in sqlite3Parser () from /usr/lib/libsqlite3.so.0
No symbol table info available.
#12 0x00007ffff7b99ec6 in sqlite3RunParser () from /usr/lib/libsqlite3.so.0
No symbol table info available.
#13 0x00007ffff7b9c17a in sqlite3Prepare () from /usr/lib/libsqlite3.so.0
No symbol table info available.
#14 0x00007ffff7b9c379 in sqlite3LockAndPrepare () from /usr/lib/libsqlite3.so.0
No symbol table info available.
#15 0x00007ffff7b9c805 in sqlite3_prepare () from /usr/lib/libsqlite3.so.0
No symbol table info available.
#16 0x00007ffff7ba2e1e in sqlite3_exec () from /usr/lib/libsqlite3.so.0
No symbol table info available.
#17 0x00000000004070f5 in do_meta_command ()
No symbol table info available.
#18 0x000000000040274b in main ()
No symbol table info available.

-- System Information:
Debian Release: wheezy/sid
  APT prefers testing
  APT policy: (700, 'testing'), (600, 'unstable'), (550, 'experimental')
Architecture: amd64 (x86_64)

Kernel: Linux 3.2.0-2-amd64 (SMP w/4 CPU cores)
Locale: LANG=en_AU.utf8, LC_CTYPE=en_AU.utf8 (charmap=UTF-8)
Shell: /bin/sh linked to /bin/dash

Versions of packages libsqlite3-0 depends on:
ii  libc6  2.13-27

-- 
bye,
pabs

http://wiki.debian.org/PaulWise

Attachment: signature.asc
Description: This is a digitally signed message part

Reply via email to