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


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

Re: backtrace_symbols function buggy?


suckfish@ihug.co.nz writes:

> Below, I'd expect to see the functions print_bt, foo2 and main in the
> printed backtrace; instead, backtrace_symbols is printed three times.
> 
> ---------------shell transcript------------------
> 
> ~] gcc -o temp -Wall temp.c

Add -rdynamic to the compiler line.

-- 
---------------.                          ,-.   1325 Chesapeake Terrace
Ulrich Drepper  \    ,-------------------'   \  Sunnyvale, CA 94089 USA
Red Hat          `--' drepper at redhat.com   `------------------------

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