It looks like your binary had the debug symbols stripped. "make
install" does
this by default. You should use the unstripped binary in your build
tree.
Also make sure your CFLAGS had no -O optimization options; they tend to
obscure the information that the debugger works with.
Next time, in gdb try
info threads
thread apply all bt
See "man script" re: saving the session output into a file.
-- Howard Chu
Chief Architect, Symas Corp. Director, Highland Sun
http://www.symas.com http://highlandsun.com/hyc
Symas: Premier OpenSource Development and Support
-----Original Message-----
From: Jason Lixfeld [mailto:jason+lists.openldap@lixfeld.ca]
Ok, I've got gdb installed and I re-compiled openldap 2.1.29 with -g
and am running it through gdb. I've done:
file slapd
run -d 256
and I've sent a transaction to the server and killed it with
-INT. I'm
at the gdb prompt then I do bt full and it gives me multiple lines of
output until line #10211 and spits out this error:
Error accessing memory address 0x6ed000: Bad address.
(gdb)
Now, is there a way to pipe the backtrace into a file or
something? is
a full backtrace what you need? I don't know anything about
debugging,
etc but the info that's in there doesn't say a hell of a lot. For
example:
(gdb) bt full
#0 0x000000020140569c in poll () from /lib/libc.so.5
No symbol table info available.
#1 0x000000020129d5a9 in _thread_kern_sched_state_unlock () from
/usr/lib/libc_r.so.5
No symbol table info available.
#2 0x000000020129cfe3 in _thread_kern_scheduler () from
/usr/lib/libc_r.so.5
No symbol table info available.
#3 0x0000000000000000 in ?? ()
No symbol table info available.
#4 0x0000000000000000 in ?? ()