Advertisement

debugging problems

Started by October 25, 2003 10:57 AM
2 comments, last by 666_1337 20 years, 10 months ago
I use the gentoo-2.4.20-kernel (optimized for pentium3 via the make menuconfig-switch, not modified the makefiles), glibc-2.3.2 and gcc 3.3.2 if i compile a (any) program, no matter whether i use the -g option or not, i cannot start the program in the debugger. gdb prints following error message:

(gdb) run 
[Thread debugging using libthread_db enabled]
[New Thread 16384 (LWP 25957)]
(gdb) backtrace 
Stopped due to shared library event
#0  0x4000bc90 in _dl_debug_state_internal () from /lib/ld-linux.so.2
#1  0x40001b8a in dl_main () from /lib/ld-linux.so.2
#2  0x4000db2e in _dl_sysdep_start () from /lib/ld-linux.so.2
#3  0x000000e0 in ?? ()
#4  0xbffff458 in ?? ()
#5  0x2d000000 in ?? ()
#6  0x00000003 in ?? ()
#7  0xbffff4de in ?? ()
 
anyone knows whats going wrong?
our new version has many new and good features. sadly, the good ones are not new and the new ones are not good
post a full strace
Advertisement
in strace it runs...
it''s not that my program has bugs... its that I want to be able to run it in GDB

strace made 110 kBytes output... but not containing "/lib/ld-linux" anywhere in it

our new version has many new and good features. sadly, the good ones are not new and the new ones are not good
oh, so it only won''t run in the debugger?

have you tried running it and then having gdb attach to the already running program?

This topic is closed to new replies.

Advertisement