[Date Prev][Date Next] [Thread Prev][Thread Next] [Date Index] [Thread Index]

Bug#496494: [libc6] gdb fail to debug with a dlopen() call



Package: libc6
Version: 2.7-13
Severity: normal

--- Please enter the report below this line. ---

Debugging session fail when a dlopen() call is reached. The problem occur when 
trying to debug some gambas2 (in unstable) or gambas3 executable.

These programs run fine without dbg.

Here is an example of the backtrace/session produce with gdb:
lordh@debian:~/gb2projets/TunnelSDL$ gdb gbx3
GNU gdb 6.8-debian
Copyright (C) 2008 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"...
(gdb) run -p
Starting program: /usr/local/bin/gbx3 -p
[Thread debugging using libthread_db enabled]
Error while reading shared library symbols:
Cannot find new threads: generic error
Cannot find new threads: generic error
(gdb) bt
#0  0x00007ff0873787b7 in dl_open_worker () from /lib64/ld-linux-x86-64.so.2
#1  0x00007ff087374366 in _dl_catch_error () from /lib64/ld-linux-x86-64.so.2
#2  0x00007ff0873780eb in _dl_open () from /lib64/ld-linux-x86-64.so.2
#3  0x00007ff086ee0fbb in dlopen_doit () from /lib/libdl.so.2
#4  0x00007ff087374366 in _dl_catch_error () from /lib64/ld-linux-x86-64.so.2
#5  0x00007ff086ee136c in _dlerror_run () from /lib/libdl.so.2
#6  0x00007ff086ee0f21 in dlopen@@GLIBC_2.2.5 () from /lib/libdl.so.2
#7  0x0000000000420685 in LIBRARY_load (lib=0x15dd400) at gbx_library.c:468
#8  0x0000000000441f4b in COMPONENT_load (comp=0x15dd3a0) at 
gbx_component.c:250
#9  0x0000000000441b22 in COMPONENT_load_all () at gbx_component.c:110
#10 0x000000000041fd5f in PROJECT_load () at gbx_project.c:456
#11 0x0000000000432d2e in init (file=0x446378 ".") at gbx.c:85
#12 0x00000000004332ef in main (argc=1, argv=0x7fff8f582968) at gbx.c:299
(gdb)

when trying to find similar problems, i've found this in the gdb ML:
http://sourceware.org/ml/gdb/2008-08/msg00205.html
http://sourceware.org/ml/gdb/2008-08/msg00208.html

I can send you more infos if needed

Regards,
L.C.

--- System information. ---
Architecture: amd64
Kernel:       Linux 2.6.26-1-amd64

Debian Release: lenny/sid
  992 unstable        www.debian-multimedia.org 
  992 unstable        ftp.fr.debian.org 
  991 experimental    ftp.debian.org 
  500 kernel-dists-trunk kernel-archive.buildserver.net 

--- Package information. ---
Depends       (Version) | Installed
=======================-+-===========
libgcc1                 | 1:4.3.1-9






Reply to: