Bug 204950 - strace misbehaves if output pipe breaks prematurely
strace misbehaves if output pipe breaks prematurely
Status: CLOSED CURRENTRELEASE
Product: Fedora
Classification: Fedora
Component: strace (Show other bugs)
rawhide
All Linux
medium Severity medium
: ---
: ---
Assigned To: Roland McGrath
Brian Brock
:
Depends On:
Blocks:
  Show dependency treegraph
 
Reported: 2006-09-01 12:56 EDT by Dmitry V. Levin
Modified: 2007-11-30 17:11 EST (History)
0 users

See Also:
Fixed In Version: 4.5.15-1
Doc Type: Bug Fix
Doc Text:
Story Points: ---
Clone Of:
Environment:
Last Closed: 2007-01-16 22:04:39 EST
Type: ---
Regression: ---
Mount Type: ---
Documentation: ---
CRM:
Verified Versions:
Category: ---
oVirt Team: ---
RHEL 7.3 requirements from Atomic Host:
Cloudforms Team: ---


Attachments (Terms of Use)
strace-4.5.14-alt-trace.patch (656 bytes, patch)
2006-09-01 13:03 EDT, Dmitry V. Levin
no flags Details | Diff

  None (edit)
Description Dmitry V. Levin 2006-09-01 12:56:10 EDT
When trace output is piped to command and this command terminates prematurely,
strace treats pid of finished pipe process as one of children it have to handle.
As result, strace either fails with "unknown pid" message or (in -f mode) loops waiting for non-existent child.

For example,
$ strace -o '|true' true; echo rc=$?
unknown pid: 12345
rc=1
$ strace -f -o '|true' true
[strace falls asleep forever]
Comment 1 Dmitry V. Levin 2006-09-01 13:03:08 EDT
Created attachment 135392 [details]
strace-4.5.14-alt-trace.patch

Proposed fix.
Comment 2 Dmitry V. Levin 2006-12-13 16:45:51 EST
Fixed upstream.
Comment 3 Roland McGrath 2007-01-11 06:14:02 EST
these bugs are fixed upstream in the coming 4.5.15 release
Comment 4 Roland McGrath 2007-01-16 22:04:39 EST
4.5.15 in rawhide and in updates for fc5 and fc6 fixes this.

Note You need to log in before you can comment on or make changes to this bug.