This is the mail archive of the
systemtap@sourceware.org
mailing list for the systemtap project.
[Bug translator/10305] New: mark probes fail on prelinked shared library
- From: "mjw at redhat dot com" <sourceware-bugzilla at sourceware dot org>
- To: systemtap at sources dot redhat dot com
- Date: 22 Jun 2009 10:43:45 -0000
- Subject: [Bug translator/10305] New: mark probes fail on prelinked shared library
- Reply-to: sourceware-bugzilla at sourceware dot org
exelib.exp contains a test for putting user space mark probes on a shared
library (currently disabled) that fails.
Enable the prelink tests by adding yes (or replacing the no) in exelib.exp:
foreach libprelink {no} { # BUG! "yes" breaks uname tests
$ /usr/local/systemtap/bin/stap -vv
/home/mark/src/systemtap/testsuite/systemtap.exelib/mark.stp
./uprobesgcc-O0default-debug-uprobeslibgcc-O0default-prelink-debug_exe
./libuprobeslibgcc-O0default-prelink-debug.so -c
./uprobesgcc-O0default-debug-uprobeslibgcc-O0default-prelink-debug_exe
SystemTap translator/driver (version 0.9.8/0.141 commit
release-0.9.8-85-g98a1242 + changes)
Copyright (C) 2005-2009 Red Hat, Inc. and others
This is free software; see the source for copying conditions.
Session arch: x86_64 release: 2.6.29.4-167.fc11.x86_64
Created temporary directory "/tmp/stapZhqoLa"
Searched '/usr/local/systemtap/share/systemtap/tapset/x86_64/*.stp', found 3
Searched '/usr/local/systemtap/share/systemtap/tapset/*.stp', found 51
Pass 1: parsed user script and 54 library script(s) in 340usr/10sys/436real ms.
probe
main_func@/home/mark/src/systemtap/testsuite/systemtap.exelib/uprobes_exe.c:22
process=/home/mark/src/systemtap/testsuite/uprobesgcc-O0default-debug-uprobeslibgcc-O0default-prelink-debug_exe
reloc=.absolute section=.text pc=0x400600
semantic error: no match while resolving probe point
process("./libuprobeslibgcc-O0default-prelink-debug.so").statement(104859104)
Pass 2: analyzed script: 1 probe(s), 1 function(s), 0 embed(s), 0 global(s) in
10usr/10sys/7real ms.
Pass 2: analysis failed. Try again with another '--vp 01' option.
Running rm -rf /tmp/stapZhqoLa
Note how the probe is set at 104859104 (0x64005E0). The library is (p)relinked
at 0x6400000 and the probe (nop) is indeed at 0x64005e0 <lib_func+20>.
--
Summary: mark probes fail on prelinked shared library
Product: systemtap
Version: unspecified
Status: NEW
Severity: normal
Priority: P2
Component: translator
AssignedTo: systemtap at sources dot redhat dot com
ReportedBy: mjw at redhat dot com
CC: scox at redhat dot com
http://sourceware.org/bugzilla/show_bug.cgi?id=10305
------- You are receiving this mail because: -------
You are the assignee for the bug, or are watching the assignee.