This is the mail archive of the libc-hacker@sources.redhat.com mailing list for the glibc project.

Note that libc-hacker is a closed list. You may look at the archives of this list, but subscription and posting are not open.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

Re: [PATCH] Support backtrace () on IA-64, make it work even with-fomit-frame-pointer on AMD64


Jakub Jelinek <jakub@redhat.com> writes:

> Sorry, I only compiled it outside of glibc and there it worked.
> Here is a better patch (built on amd64, passed make check, checked output
> of a few sample proglets):

Doesn't seem to work on ia64, though.

$ gdb ../cc/debug/backtrace-tst 
GNU gdb 6.0
Copyright 2003 Free Software Foundation, Inc.
GDB is free software, covered by the GNU General Public License, and you are
welcome to change it and/or distribute copies of it under certain conditions.
Type "show copying" to see the conditions.
There is absolutely no warranty for GDB.  Type "show warranty" for details.
This GDB was configured as "ia64-suse-linux"...
(gdb) r
Starting program: /usr/src/packages/BUILD/glibc-2.3/cc/debug/backtrace-tst 

Program received signal SIGABRT, Aborted.
0x200000000009cca2 in kill ()
   from /usr/src/packages/BUILD/glibc-2.3/cc/libc.so.6.1
(gdb) bt
#0  0x200000000009cca2 in kill ()
   from /usr/src/packages/BUILD/glibc-2.3/cc/libc.so.6.1
#1  0x200000000009c990 in *__GI_raise (sig=6)
    at ../linuxthreads/sysdeps/unix/sysv/linux/raise.c:33
#2  0x200000000009f340 in *__GI_abort () at ../sysdeps/generic/abort.c:50
#3  0x20000000002c9de0 in uw_update_reg_address () from /lib/libgcc_s.so.1
#4  0x20000000002ca2a0 in uw_update_context () from /lib/libgcc_s.so.1
#5  0x20000000002cbf30 in _Unwind_Backtrace () from /lib/libgcc_s.so.1
#6  0x2000000000220dc0 in __backtrace (array=0x20000000002b64e8, size=20)
    at ../sysdeps/ia64/backtrace.c:77
#7  0x4000000000000a00 in compare (p1=0x60000fffffffaad0, 
    p2=0x60000fffffffaad4) at backtrace-tst.c:11
#8  0x20000000000a0020 in msort_with_tmp (b=0x60000fffffffaad0, n=2, s=4, 
    cmp=@0x4000000000000f20: 0x40000000000009d0 <compare>, 
    t=0x60000fffffffaa70 "") at msort.c:34
#9  0x200000000009fef0 in msort_with_tmp (b=0x60000fffffffaad0, n=5, s=4, 
    cmp=@0x4000000000000f20: 0x40000000000009d0 <compare>, 
    t=0x60000fffffffaa70 "") at msort.c:47

Andreas.

-- 
Andreas Schwab, SuSE Labs, schwab@suse.de
SuSE Linux AG, Deutschherrnstr. 15-19, D-90429 Nürnberg
Key fingerprint = 58CA 54C7 6D53 942B 1756  01D3 44D5 214B 8276 4ED5
"And now for something completely different."


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]