return code 0 when failing to ptrace

Bug #627208 reported by Martin Pool on 2010-08-31
This bug affects 1 person
Affects Status Importance Assigned to Milestone
strace (Ubuntu)

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
Uname: Linux 2.6.35-19-generic x86_64
Architecture: amd64
Date: Tue Aug 31 13:44:24 2010
EcryptfsInUse: Yes
 PATH=(custom, user)
SourcePackage: strace

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

Other bug subscribers