Bug 143365

Summary: strace -i: undesired behaviour
Product: [Fedora] Fedora Reporter: Dmitry V. Levin <ldv>
Component: straceAssignee: Roland McGrath <roland>
Status: CLOSED NEXTRELEASE QA Contact: Brian Brock <bbrock>
Severity: medium Docs Contact:
Priority: medium    
Version: rawhide   
Target Milestone: ---   
Target Release: ---   
Hardware: All   
OS: Linux   
Whiteboard:
Fixed In Version: Doc Type: Bug Fix
Doc Text:
Story Points: ---
Clone Of: Environment:
Last Closed: 2005-02-06 01:17:44 UTC Type: ---
Regression: --- Mount Type: ---
Documentation: --- CRM:
Verified Versions: Category: ---
oVirt Team: --- RHEL 7.3 requirements from Atomic Host:
Cloudforms Team: --- Target Upstream Version:
Embargoed:
Attachments:
Description Flags
strace-4.5.8-alt-fake_execve.patch none

Description Dmitry V. Levin 2004-12-19 23:51:33 UTC
Description of problem:
strace -i produces unwanted warning and invalid value for instruction
pointer during first execve call.

Version-Release number of selected component (if applicable):
strace-4.5.8

Steps to Reproduce:
Actual results:
$ env -i strace -i /bin/true
upeek: ptrace(PTRACE_PEEKUSER,12345,48,0): No such process
[????????] execve("/bin/true", ["/bin/true"], [/* 0 vars */]) = 0
[08048080] _exit(0)

Expected results:
$ env -i strace -i /bin/true
[001b86f8] execve("/bin/true", ["/bin/true"], [/* 0 vars */]) = 0
[08048080] _exit(0)

Comment 1 Dmitry V. Levin 2004-12-19 23:56:02 UTC
Created attachment 108866 [details]
strace-4.5.8-alt-fake_execve.patch

Proposed patch.

Side effect of this solution is that execve syscall will be always included
into the "strace -c" statistics.

Comment 2 Roland McGrath 2005-02-06 01:17:44 UTC
I've put the patch in.