On Wed, Mar 02, 2011 at 04:56:20AM -0500, Mike Frysinger wrote:
> when testing things on ppc64, `make distcheck` failed because of a core file 
> in the tests/ subdir.  playing with things, it seems that strace doesnt like 
> it when you cut its pipe short.

Yes, here is more reliable reproducer:
$ (strace -df / 2>&1; echo >&2 \$?=$?) |:
$?=141

strace can be killed by SIGPIPE, especially in debug mode which is quite
verbose.  I wouldn't say strace doesnt like it, though.  Many programs get
killed by SIGPIPE because it's quite logical for them to do so.

> the new ptrace_setoptions does just that though -- it calls fgrep with -q 
> which causes fgrep to quite immediately upon a match.  and the match in 
> question happens to be the first line.
> 
> perhaps drop the -q option, have fgrep redirect to /dev/null, and add a 
> comment that the -q option cant be added back in ?

Yes, I think it's OK to use /dev/null here, adding a comment why we should
avoid grep -q.


-- 
ldv

Attachment: pgpbJgtqCKv8t.pgp
Description: PGP signature

------------------------------------------------------------------------------
Free Software Download: Index, Search & Analyze Logs and other IT data in 
Real-Time with Splunk. Collect, index and harness all the fast moving IT data 
generated by your applications, servers and devices whether physical, virtual
or in the cloud. Deliver compliance at lower cost and gain new business 
insights. http://p.sf.net/sfu/splunk-dev2dev 
_______________________________________________
Strace-devel mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/strace-devel

Reply via email to