This is the mail archive of the
systemtap@sourceware.org
mailing list for the systemtap project.
Re: Unable to retrieve pthread mutex symbols
- From: fche at redhat dot com (Frank Ch. Eigler)
- To: David Carter <dcarter at davidcarter dot ca>
- Cc: systemtap at sourceware dot org
- Date: Thu, 28 May 2009 14:45:32 -0400
- Subject: Re: Unable to retrieve pthread mutex symbols
- References: <B97174C0-F221-4535-95BC-6AE4C58B307A@davidcarter.ca>
David Carter <dcarter@davidcarter.ca> writes:
> [...] Basically, I'm trying to debug mutex use in my program. I use
> the pthreads version, which in turn uses futexes. Using the attached
> systemtap script, I get the addresses of the futexes under
> contention, but not the symbols associated with them. This makes
> debugging difficult. [...]
>From scanning your code (including the arm4 library), it appears that
the only pthread mutexes actually declared are embedded into
heap-allocated data structures, or into an mmap'd one
g_shared_memory_ptr. I haven't found one that lives near an actual
symbol. If so, usymname() has little to go on. (Incidentally, you
may benefit from adding "-d /usr/lib/libarm4.so" and the
arm4-debuginfo package on your system.)
- FChE