public inbox for systemtap@sourceware.org
 help / color / mirror / Atom feed
* [Bug bpf/23580] New: error() does not abort the execution flow nor return a nonzero exit code
@ 2018-08-28 19:14 agentzh at gmail dot com
  2019-10-31 19:43 ` [Bug bpf/23580] " sapatel at redhat dot com
  0 siblings, 1 reply; 2+ messages in thread
From: agentzh at gmail dot com @ 2018-08-28 19:14 UTC (permalink / raw)
  To: systemtap

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

            Bug ID: 23580
           Summary: error() does not abort the execution flow nor return a
                    nonzero exit code
           Product: systemtap
           Version: unspecified
            Status: UNCONFIRMED
          Severity: normal
          Priority: P2
         Component: bpf
          Assignee: systemtap at sourceware dot org
          Reporter: agentzh at gmail dot com
  Target Milestone: ---

Tested with the current master (commit 92bed7d5e9) on Fedora 27 (kernel
4.16.16-200.fc27.x86_64):

```
$ /opt/stap/bin/stap --runtime=bpf -e 'probe oneshot { println("before");
error("ERROR"); println("after") }'; echo $?
before
ERROR: ERROR
after
0
```

For comparison, using the kernel runtime yields the following instead:

```
$ /opt/stap/bin/stap -e 'probe oneshot { println("before"); error("ERROR");
println("after") }'; echo $?
ERROR: ERROR
before
WARNING: Number of errors: 1, skipped probes: 0
WARNING: /opt/stap/bin/staprun exited with status: 1
Pass 5: run failed.  [man error::pass5]
1
```

-- 
You are receiving this mail because:
You are the assignee for the bug.

^ permalink raw reply	[flat|nested] 2+ messages in thread

* [Bug bpf/23580] error() does not abort the execution flow nor return a nonzero exit code
  2018-08-28 19:14 [Bug bpf/23580] New: error() does not abort the execution flow nor return a nonzero exit code agentzh at gmail dot com
@ 2019-10-31 19:43 ` sapatel at redhat dot com
  0 siblings, 0 replies; 2+ messages in thread
From: sapatel at redhat dot com @ 2019-10-31 19:43 UTC (permalink / raw)
  To: systemtap

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

Sagar Patel <sapatel at redhat dot com> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
                 CC|                            |sapatel at redhat dot com
           Assignee|systemtap at sourceware dot org    |sapatel at redhat dot com

-- 
You are receiving this mail because:
You are the assignee for the bug.

^ permalink raw reply	[flat|nested] 2+ messages in thread

end of thread, other threads:[~2019-10-31 19:43 UTC | newest]

Thread overview: 2+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2018-08-28 19:14 [Bug bpf/23580] New: error() does not abort the execution flow nor return a nonzero exit code agentzh at gmail dot com
2019-10-31 19:43 ` [Bug bpf/23580] " sapatel at redhat dot com

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).