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/12275] uretprobes break exception handling


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.


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