[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
backtrace_symbold_fd wrong
From: |
Mike Perry |
Subject: |
backtrace_symbold_fd wrong |
Date: |
Sat, 3 Feb 2001 19:28:55 -0600 |
User-agent: |
Mutt/1.2.5i |
I'm getting the wrong output from backtrace_symbols_fd on my RH7 box. I'm
using their stock glibc-2.2-12 RPM. The symbols being output seem to be the
last function that's called..
Perhaps the library is using sysdeps/generic/backtrace_symbols.c instead of
the elf one?
Attached is an example code snippett that causes the following output:
./return_address(backtrace_symbols_fd+0x2d08)[0x804b0b4]
./return_address(backtrace_symbols_fd+0x2d2b)[0x804b0d7]
./return_address(backtrace_symbols_fd+0x2d3b)[0x804b0e7]
./return_address(backtrace_symbols_fd+0x2d4b)[0x804b0f7]
/lib/libc.so.6(__libc_start_main+0x8c)[0x4003bb5c]
./return_address(backtrace_symbols_fd+0x35)[0x80483e1]
gdb will output the correct symbols..
(gdb) info line *0x804b0b4
Line 44 of "return_address.c" starts at address 0x804b0a6 <ret3+6>
and ends at 0x804b0b7 <ret3+23>.
--
Mike Perry
http://so.fscked.org
return_address.c
Description: Text document
- backtrace_symbold_fd wrong,
Mike Perry <=