* [Bug translator/9768] New: cannot read userspace function parameter
@ 2009-01-20 23:13 tralamazza at gmail dot com
2009-01-21 3:11 ` [Bug translator/9768] cannot read userspace shared library vars fche at redhat dot com
0 siblings, 1 reply; 2+ messages in thread
From: tralamazza at gmail dot com @ 2009-01-20 23:13 UTC (permalink / raw)
To: systemtap
Systemtap can't read the "mutex" parameter in pthread_mutex_lock.
user.stp:
probe process("/lib/libpthread-2.9.so").statement("__pthread_mutex_lock") {
printf("[%d] %s\n", pid(), $$parms)
}
> stap user.stp
[2808] mutex=?
[2808] mutex=?
...
> stap user.stp -p2
process("/lib/libpthread-2.9.so").statement("__pthread_mutex_lock@/usr/src/debug/glibc-
20081113T2206/nptl/pthread_mutex_lock.c:43") /* pc=.dynamic+0x79e0 */ /* <-
process("/lib/libpthread-2.9.so").statement("__pthread_mutex_lock") */
I tried different line numbers (40...44 for example) but nothing changes.
I also tried printing $$vars instead of $$parms (varying line # as well):
[2808] mutex=? oldval=? id=? retval=? __PRETTY_FUNCTION__=?
[2808] mutex=? oldval=? id=? retval=? __PRETTY_FUNCTION__=?
...
Gdb can read the parameter:
Breakpoint 2, __pthread_mutex_lock (mutex=0x836c02c) at pthread_mutex_lock.c:43
(gdb) p mutex
$1 = (pthread_mutex_t *) 0x836c02c
Changing the probe to libc alias doesn't help either "probe process("/lib/libc-
2.9.so").statement("pthread_mutex_lock").
I'm running systemtap (0.8/0.137 git branch master) on Fedora 10 (2.6.27.9-159.fc10.i686)
--
Summary: cannot read userspace function parameter
Product: systemtap
Version: unspecified
Status: NEW
Severity: normal
Priority: P2
Component: translator
AssignedTo: systemtap at sources dot redhat dot com
ReportedBy: tralamazza at gmail dot com
http://sourceware.org/bugzilla/show_bug.cgi?id=9768
------- You are receiving this mail because: -------
You are the assignee for the bug, or are watching the assignee.
^ permalink raw reply [flat|nested] 2+ messages in thread
* [Bug translator/9768] cannot read userspace shared library vars
2009-01-20 23:13 [Bug translator/9768] New: cannot read userspace function parameter tralamazza at gmail dot com
@ 2009-01-21 3:11 ` fche at redhat dot com
0 siblings, 0 replies; 2+ messages in thread
From: fche at redhat dot com @ 2009-01-21 3:11 UTC (permalink / raw)
To: systemtap
------- Additional Comments From fche at redhat dot com 2009-01-21 00:45 -------
The problem appears to be related to address processing for shared libraries.
--
What |Removed |Added
----------------------------------------------------------------------------
AssignedTo|systemtap at sources dot |fche at redhat dot com
|redhat dot com |
Status|NEW |ASSIGNED
Summary|cannot read userspace |cannot read userspace shared
|function parameter |library vars
http://sourceware.org/bugzilla/show_bug.cgi?id=9768
------- You are receiving this mail because: -------
You are the assignee for the bug, or are watching the assignee.
^ permalink raw reply [flat|nested] 2+ messages in thread
end of thread, other threads:[~2009-01-21 0:45 UTC | newest]
Thread overview: 2+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2009-01-20 23:13 [Bug translator/9768] New: cannot read userspace function parameter tralamazza at gmail dot com
2009-01-21 3:11 ` [Bug translator/9768] cannot read userspace shared library vars fche at redhat dot com
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).