public inbox for systemtap@sourceware.org
 help / color / mirror / Atom feed
From: "mjw at redhat dot com" <sourceware-bugzilla@sourceware.org>
To: systemtap@sourceware.org
Subject: [Bug uprobes/15972] core dump with process probes
Date: Fri, 20 Sep 2013 15:07:00 -0000	[thread overview]
Message-ID: <bug-15972-6586-eQjnWxS8K8@http.sourceware.org/bugzilla/> (raw)
In-Reply-To: <bug-15972-6586@http.sourceware.org/bugzilla/>

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.

  parent reply	other threads:[~2013-09-20 15:07 UTC|newest]

Thread overview: 10+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2013-09-20 10:23 [Bug uprobes/15972] New: " mjw at redhat dot com
2013-09-20 10:27 ` [Bug uprobes/15972] " mjw at redhat dot com
2013-09-20 10:39 ` mjw at redhat dot com
2013-09-20 14:45 ` mjw at redhat dot com
2013-09-20 15:07 ` mjw at redhat dot com [this message]
2013-09-20 18:27 ` fche at redhat dot com
2013-09-20 18:33 ` jistone at redhat dot com
2014-03-18 10:27 ` fche at redhat dot com
2014-05-16  0:03 ` fche at redhat dot com
2015-06-19 16:25 ` fche at redhat dot com

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=bug-15972-6586-eQjnWxS8K8@http.sourceware.org/bugzilla/ \
    --to=sourceware-bugzilla@sourceware.org \
    --cc=systemtap@sourceware.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
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).