This is the mail archive of the systemtap@sourceware.org mailing list for the systemtap project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

[Bug runtime/12645] exelib.exp failures (and hung stapio's) on s390x


http://sourceware.org/bugzilla/show_bug.cgi?id=12645

--- Comment #3 from David Smith <dsmith at redhat dot com> 2011-04-18 22:11:55 UTC ---
As mentioned in comment #1, without prelink the test passes.  Here's the output
from the run without prelink (with DEBUG_UPROBES added):

=========
# stap -v -w -DDEBUG_UPROBES --ldd
/root/src/testsuite/systemtap.exelib/mark.stp
./uprobesgcc-O3default-debug-uprobeslibgcc-O3default-prelink-debug_exe
./libuprobeslibgcc-O3default-prelink-debug.so -c
./uprobesgcc-O3default-debug-uprobeslibgcc-O3default-prelink-debug_exe
Pass 1: parsed user script and 76 library script(s) using
125672virt/21744res/2648shr kb, in 190usr/10sys/412real ms.
Pass 2: analyzed script: 2 probe(s), 0 function(s), 0 embed(s), 0 global(s)
using 126220virt/22884res/3224shr kb, in 0usr/0sys/6real ms.
Pass 3: using cached
/root/.systemtap/cache/0e/stap_0e0c9728ef76b1d488292965fb7009de_1911.c
Pass 4: using cached
/root/.systemtap/cache/0e/stap_0e0c9728ef76b1d488292965fb7009de_1911.ko
Pass 5: starting run.
stap_uprobe_change_plus:67: +uprobe spec 0 idx 0 process uprobesgcc-O3de[9900]
addr 0000000080000688 pp
process("/root/s390x/uprobesgcc-O3default-debug-uprobeslibgcc-O3default-prelink-debug_exe").statement(0x80000688)
stap_uprobe_change_plus:67: +uprobe spec 1 idx 1 process uprobesgcc-O3de[9900]
addr 0000020000005614 pp
process("/root/s390x/libuprobeslibgcc-O3default-prelink-debug.so").statement(0x614)
stap_uprobe_change_plus:67: +uprobe spec 1 idx 2 process uprobesgcc-O3de[9900]
addr 0000020000006614 pp
process("/root/s390x/libuprobeslibgcc-O3default-prelink-debug.so").statement(0x614)
main_count: 3
main_count: 2
main_count: 1
func_count: 3
func_count: 2
func_count: 1
systemtap_module_exit:719: -uprobe spec 0 index 0 pid 9900 addr
0000000080000688
systemtap_module_exit:719: -uprobe spec 1 index 1 pid 9900 addr
0000020000005614
systemtap_module_exit:719: -uprobe spec 1 index 2 pid 9900 addr
0000020000006614
Pass 5: run completed in 0usr/40sys/152real ms.
=========

Here's the failing run after the library has been prelinked:

=========
# stap -v -w -DDEBUG_UPROBES --ldd
/root/src/testsuite/systemtap.exelib/mark.stp
./uprobesgcc-O3default-debug-uprobeslibgcc-O3default-prelink-debug_exe
./libuprobeslibgcc-O3default-prelink-debug.so -c
./uprobesgcc-O3default-debug-uprobeslibgcc-O3default-prelink-debug_exe
Pass 1: parsed user script and 76 library script(s) using
125672virt/21744res/2648shr kb, in 190usr/10sys/426real ms.
Pass 2: analyzed script: 2 probe(s), 0 function(s), 0 embed(s), 0 global(s)
using 126220virt/22884res/3224shr kb, in 10usr/10sys/24real ms.
Pass 3: translated to C into
"/tmp/stapL0D0vy/stap_544bd75ae2d773f58b6dc536e78c9618_1919.c" using
200076virt/23500res/3584shr kb, in 90usr/50sys/275real ms.
Pass 4: compiled C into "stap_544bd75ae2d773f58b6dc536e78c9618_1919.ko" in
3060usr/560sys/16876real ms.
Pass 5: starting run.
stap_uprobe_change_plus:67: +uprobe spec 0 idx 0 process uprobesgcc-O3de[10342]
addr 0000000080000688 pp
process("/root/s390x/uprobesgcc-O3default-debug-uprobeslibgcc-O3default-prelink-debug_exe").statement(0x80000688)
stap_uprobe_change_plus:67: +uprobe spec 1 idx 1 process uprobesgcc-O3de[10342]
addr 0000000006400614 pp
process("/root/s390x/libuprobeslibgcc-O3default-prelink-debug.so").statement(0x6400614)
stap_uprobe_change_plus:67: +uprobe spec 1 idx 1 process uprobesgcc-O3de[10342]
addr 0000000006401614 pp
process("/root/s390x/libuprobeslibgcc-O3default-prelink-debug.so").statement(0x6400614)
main_count: 3
main_count: 2
main_count: 1
systemtap_module_exit:719: -uprobe spec 0 index 0 pid 10342 addr
0000000080000688
=========

The marker in the library isn't being hit in the prelinked case, which suggests
systemtap is calculating the wrong address.

-- 
Configure bugmail: http://sourceware.org/bugzilla/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are the assignee for the bug.


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