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 runtime/15669] syscall probe handlers are called exactly twice for every syscall on Amazon Linux


http://sourceware.org/bugzilla/show_bug.cgi?id=15669

--- Comment #2 from agentzh <agentzh at gmail dot com> ---
Some test cases in systemtap's existing test suite can demonstrate this bug.
For example, the systemtap.base/at_var.exp is failing due to duplicate syscall
probe handler runs:

  Running ./systemtap.base/at_var.exp ...
  Executing on host: gcc ./systemtap.base/at_var.c  -O2 -g  -lm   -o at_var   
(timeout = 300)                                   
  spawn -ignore SIGHUP gcc ./systemtap.base/at_var.c -O2 -g -lm -o at_var^M
  executing: stap ./systemtap.base/at_var.stp -c ./at_var
  FAIL: at_var
  line 11: expected "user_int(&$foo->bar): 40"
  Got "$utimes$$: {.tv_sec=1, .tv_usec=2}"     
      "$utimes[1]$$: {.tv_sec=3, .tv_usec=4}"
      "@var("utimes")$$: {.tv_sec=1, .tv_usec=2}"
      "@var("utimes")[1]$$: {.tv_sec=3, .tv_usec=4}"
      "user_int(&$foo->bar): 40"     
      "user_int(&@var("foo")->bar): 40"     
      "&@cast($foo->bar, "struct foo")->bar: 42"
      "&@cast(@var("foo")->bar, "struct foo")->bar: 42"
      "$foo->bar == @entry($foo->bar): true"
      "@var("foo")->bar == @entry(@var("foo")->bar): true"
  testcase ./systemtap.base/at_var.exp completed in 8 seconds

Also, also for cast-user:

  Running ./systemtap.base/cast-user.exp ...
  Executing on host: gcc ./systemtap.base/cast-user.c  -g  -lm   -o
/home/ec2-user/git/systemtap2/testsuite/cast-user.exe    (timeout = 300)
  spawn -ignore SIGHUP gcc ./systemtap.base/cast-user.c -g -lm -o
/home/ec2-user/git/systemtap2/testsuite/cast-user.exe^M
  PASS: cast-user compile
  executing: stap ./systemtap.base/cast-user.stp
/home/ec2-user/git/systemtap2/testsuite/cast-user.exe -c
/home/ec2-user/git/systemtap2/testsuite/cast-user.exe
  FAIL: cast-user
  line 5: expected ""
  Got "binary sa_family OK"
      "binary sa_data OK"
      "header sa_family OK"
      "header sa_data OK"
  testcase ./systemtap.base/cast-user.exp completed in 4 seconds

We can see that the outputs in the syscall probe handlers are duplicated for
exactly once.

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