Backtraces in Linux

From: TLOlczyk (olczyk2002_at_yahoo.com)
Date: 07/20/04


Date: Tue, 20 Jul 2004 12:43:33 -0500

I have a shared object for which I want to print (stack) backtraces
at certain locations. I've tried backtrace and backtrace_symbols_fd.

The thing is that I don't quite get the output I want.
Many lines are printed simple as:
shared_object_file_name(offset)

sometimes as

shared_object_file_name(function_name+offset)

I've compiled with the -g option.
The shared object is third party with it's own make system,
so I might be missing something in the build. If so, what should
I look for?

Any suggestions?
I'm also open to using more primitive calls if needed.
Can anyone suggest references or web sites?

The reply-to email address is olczyk2002@yahoo.com.
This is an address I ignore.
To reply via email, remove 2002 and change yahoo to
interaccess,

**
Thaddeus L. Olczyk, PhD

There is a difference between
*thinking* you know something,
and *knowing* you know something.



Relevant Pages

  • Backtraces in Linux
    ... I have a shared object for which I want to print (stack) backtraces ... Can anyone suggest references or web sites? ...
    (comp.programming)
  • Symbol Tables and Backtraces in Linux
    ... >> I have a shared object for which I want to print backtraces ... >stack trace for my executable. ...
    (comp.programming)
  • Symbol Tables and Backtraces in Linux
    ... >> I have a shared object for which I want to print backtraces ... >stack trace for my executable. ...
    (comp.os.linux.development.apps)
  • Symbol Tables and Backtraces in Linux
    ... >> I have a shared object for which I want to print backtraces ... >stack trace for my executable. ...
    (comp.os.linux.development.system)
  • User defined stack for threads in Linux 2.6.11 + glibc 2.3.5
    ... I am currently working with threads using linux 2.6.11 and glibc 2.3.5 ... trying to create any thread (for user defined stack) using this shared ... creating a thread using shared object shall result in segfault. ... gdb output for the behavior is: ...
    (comp.unix.programmer)