This is the mail archive of the
systemtap@sourceware.org
mailing list for the systemtap project.
[Bug runtime/12645] exelib.exp failures (and hung stapio's) on s390x
- From: "dsmith at redhat dot com" <sourceware-bugzilla at sourceware dot org>
- To: systemtap at sourceware dot org
- Date: Mon, 18 Apr 2011 19:21:18 +0000
- Subject: [Bug runtime/12645] exelib.exp failures (and hung stapio's) on s390x
- Auto-submitted: auto-generated
- References: <bug-12645-6586@http.sourceware.org/bugzilla/>
http://sourceware.org/bugzilla/show_bug.cgi?id=12645
--- Comment #1 from David Smith <dsmith at redhat dot com> 2011-04-18 19:20:44 UTC ---
>From some additional debugging, here's how to duplicate the first failure
without running the entire testcase:
# gcc /root/src/testsuite/systemtap.exelib/uprobes_lib.c
-isystem/root/src/testsuite -isystem/usr/local/include -g -O3 -fPIC -shared
-lm -o ./libuprobeslibgcc-O3default-prelink-debug.so
# /usr/sbin/prelink -vfNR -r 0x6400000
./libuprobeslibgcc-O3default-prelink-debug.so
# gcc /root/src/testsuite/systemtap.exelib/uprobes_exe.c
-isystem/root/src/testsuite -isystem/usr/local/include -g -O3 -L.
-luprobeslibgcc-O3default-prelink-debug -Wl,-rpath,. -lm -o
./uprobesgcc-O3default-debug-uprobeslibgcc-O3default-prelink-debug_exe
# stap -w --ldd /root/src/testsuite/systemtap.exelib/libmarkunamestack.stp
./uprobesgcc-O3default-debug-uprobeslibgcc-O3default-prelink-debug_exe
./libuprobeslibgcc-O3default-prelink-debug.so -c
./uprobesgcc-O3default-debug-uprobeslibgcc-O3default-prelink-debug_exe
Here's the output you get when running the above stap command:
====
main
exe: main=main
main_func: 3
exe: main_func=main_func
print_ubacktrace exe 0
0x8000067c : main_func+0x0/0x60
[...cc-O3default-debug-uprobeslibgcc-O3default-prelink-debug_exe]
main_count: 3
main_func: 2
exe: main_func=main_func
print_ustack exe 1
0x8000067c : main_func+0x0/0x60
[...cc-O3default-debug-uprobeslibgcc-O3default-prelink-debug_exe]
main_count: 2
main_func: 1
exe: main_func=main_func
main_count: 1
lib_main
lib: lib_main=lib_main
lib_func: 3
lib: lib_func=lib_func
print_ubacktrace lib 2
0x6400608 : lib_func+0x0/0x48
[/root/s390x/libuprobeslibgcc-O3default-prelink-debug.so]
====
At that point stap hangs. You can kill it, but stapio still runs and the
module remains loaded.
Note that without the prelink step (the 2nd command above), everything works
correctly.
--
Configure bugmail: http://sourceware.org/bugzilla/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are the assignee for the bug.