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 uprobes/15972] core dump with process probes


https://sourceware.org/bugzilla/show_bug.cgi?id=15972

--- Comment #4 from Mark Wielaard <mjw at redhat dot com> ---
Just looking whether this is stap or uprobes or ...?

Lets extract the address we use from the library:

$ objdump -t /usr/lib/debug/usr/lib64/libglib-2.0.so.0.3600.3.debug | grep
g_main_context_iterate
0000000000047f90 l     F .text    00000000000001ef
g_main_context_iterate.isra.22

stap seems to use an address slightly after the start (skips the prologue of
the function): 47f90+18 = 47FA8

So put that into the raw uprobes/perf tracer thingy:

# echo "p:func_entry /usr/lib64/libglib-2.0.so.0.3600.3:0x0000000000047fa8" >>
/sys/kernel/debug/tracing/uprobe_events

And enable the tracer:

# echo 1 > /sys/kernel/debug/tracing/events/uprobes/enable

Oops, crashing processes... in dmesg:

[ 8241.097226] traps: gnome-shell[1114] general protection ip:7fffffffe080
sp:7fff9630b460 error:0
[ 8241.098619] traps: accounts-daemon[328] general protection ip:7fffffffe080
sp:7fffc4235b50 error:0
[ 8241.325253] traps: gdbus[962] general protection ip:7fffffffe080
sp:7f928e88cd80 error:0
[ 8241.325310] traps: gdbus[939] general protection ip:7fffffffe080
sp:7f4c90f6fdc0 error:0
[ 8241.325384] traps: upowerd[1056] general protection ip:7fffffffe080
sp:7fffd4bb5100 error:0
[ 8241.325525] traps: gdbus[364] general protection ip:7fffffffe080
sp:7f3e10d2fd80 error:0
[ 8241.325811] traps: modem-manager[396] general protection ip:7fffffffe080
sp:7fff383892b0 error:0
[ 8241.325900] traps: firewalld[312] general protection ip:7fffffffe080
sp:7fffeed136c0 error:0
[ 8241.326391] traps: gdbus[381] general protection ip:7fffffffe080
sp:7fcc07881d80 error:0

-- 
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]