[Bug 627208] Re: return code 0 when failing to ptrace

Adrien Nader 627208 at bugs.launchpad.net
Thu Mar 6 10:15:12 UTC 2025


I can't reproduce that anymore, closing.

** Changed in: strace (Ubuntu)
       Status: New => Fix Released

-- 
You received this bug notification because you are a member of Ubuntu
Foundations Bugs, which is subscribed to strace in Ubuntu.
https://bugs.launchpad.net/bugs/627208

Title:
  return code 0 when failing to ptrace

Status in strace package in Ubuntu:
  Fix Released

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

To manage notifications about this bug go to:
https://bugs.launchpad.net/ubuntu/+source/strace/+bug/627208/+subscriptions




More information about the foundations-bugs mailing list