return code 0 when failing to ptrace

Bug #627208 reported by Martin Pool
6
This bug affects 1 person
Affects Status Importance Assigned to Milestone
strace (Ubuntu)
New
Undecided
Unassigned

Bug Description

Binary package hint: strace

Maverick made a policy change so that attaching to processes is not allowed by default. That's fine. However, it's a bit strange that strace just exits 0 (with a message to stderr) when ptrace fails.

The manpage says

       When using -p, the exit status of strace is zero unless there
       was an unexpected error in doing the tracing.

and istm this is such a case.

ProblemType: Bug
DistroRelease: Ubuntu 10.10
Package: strace 4.5.20-2ubuntu2
ProcVersionSignature: Ubuntu 2.6.35-19.28-generic 2.6.35.3
Uname: Linux 2.6.35-19-generic x86_64
Architecture: amd64
Date: Tue Aug 31 13:44:24 2010
EcryptfsInUse: Yes
ProcEnviron:
 PATH=(custom, user)
 LANG=en_AU.utf8
 SHELL=/bin/zsh
SourcePackage: strace

Revision history for this message
Martin Pool (mbp) wrote :
To post a comment you must log in.
This report contains Public information  
Everyone can see this information.

Other bug subscribers

Remote bug watches

Bug watches keep track of this bug in other bug trackers.