This is the mail archive of the
systemtap@sourceware.org
mailing list for the systemtap project.
[Bug uprobes/12275] uretprobes break exception handling
- From: "mjw at redhat dot com" <sourceware-bugzilla at sourceware dot org>
- To: systemtap at sources dot redhat dot com
- Date: Wed, 1 Dec 2010 20:32:34 +0000
- Subject: [Bug uprobes/12275] uretprobes break exception handling
- Auto-submitted: auto-generated
- References: <bug-12275-1110@http.sourceware.org/bugzilla/>
http://sourceware.org/bugzilla/show_bug.cgi?id=12275
Mark Wielaard <mjw at redhat dot com> changed:
What |Removed |Added
----------------------------------------------------------------------------
CC| |mjw at redhat dot com
--- Comment #1 from Mark Wielaard <mjw at redhat dot com> 2010-12-01 20:32:32 UTC ---
We were discussing how this relates to the longjmp case, seeing that also has
"strange" stack frames. But a simple example works fine.
$ cat lj.c
#include <setjmp.h>
#include <stdio.h>
jmp_buf b;
void
foo ()
{
longjmp (b, 1);
printf("impossible in func!\n");
}
int
main ()
{
if (setjmp(b) != 0)
{
printf("jumped back!\n");
return 0;
}
foo ();
printf("impossible in main!\n");
return -1;
}
$ gcc -g -Wall -o lj lj.c
$ stap -we 'probe process("./lj").function("foo").return {}' -c ./lj
jumped back!
--
Configure bugmail: http://sourceware.org/bugzilla/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are the assignee for the bug.