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/12211] New: stapio shouldn't hide the death of its child


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

           Summary: stapio shouldn't hide the death of its child
           Product: systemtap
           Version: unspecified
            Status: NEW
          Severity: normal
          Priority: P2
         Component: runtime
        AssignedTo: systemtap@sources.redhat.com
        ReportedBy: jistone@redhat.com


When the child process given by "-c" has an abnormal exit, we give no
indication at all, as shown below.  It would be nice if we printed a warning
for abnormal exits and passed along the child's exit status (at least when our
own is 0).

$ cat div0.c
int main() { return 1/0; }
$ gcc div0.c -o div0
div0.c: In function âmainâ:
div0.c:1:22: warning: division by zero
$ ./div0
Floating point exception (core dumped)
$ echo $?
136
$ stap -e 'probe never{next}' -c './div0'
$ echo $?
0

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