return code 0 when failing to ptrace
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
ProcVersionSign
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