Note: This is a beta release of Red Hat Bugzilla 5.0. The data contained within is a snapshot of the live data so any changes you make will not be reflected in the production Bugzilla. Also email is disabled so feel free to test any aspect of the site that you want. File any problems you find or give feedback here.

Bug 451859

Summary: ptrace ATTACH, then CONT with signal fails
Product: [Fedora] Fedora Reporter: Tom Fleck <tjf>
Component: kernelAssignee: Kernel Maintainer List <kernel-maint>
Status: CLOSED WONTFIX QA Contact: Fedora Extras Quality Assurance <extras-qa>
Severity: medium Docs Contact:
Priority: low    
Version: 9CC: roland
Target Milestone: ---   
Target Release: ---   
Hardware: All   
OS: Linux   
Fixed In Version: Doc Type: Bug Fix
Doc Text:
Story Points: ---
Clone Of: Environment:
Last Closed: 2009-07-14 18:05:57 UTC Type: ---
Regression: --- Mount Type: ---
Documentation: --- CRM:
Verified Versions: Category: ---
oVirt Team: --- RHEL 7.3 requirements from Atomic Host:
Cloudforms Team: --- Target Upstream Version:

Description Tom Fleck 2008-06-17 19:54:38 UTC
From Bugzilla Helper:
User-Agent: Mozilla/5.0 (Windows; U; Windows NT 5.1; en-US; rv: Gecko/20080404 Firefox/

Description of problem:
ptrace behavior apparently changed big-time between FC3=RHEL4=2.6.9 and FC6=2.6.18, such that continuing the debugged process with a signal after attaching no longer works.

Attached is my test program. It's long and verbose, I'm sorry, but I wanted to be clear. As comments say, there are 2 ways to build it that manifest the bug in different ways.


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

How reproducible:

Steps to Reproduce:
1. Compile test program:
gcc ptracebug.c -o ptrace_from_parent
2. Run test program:

Actual Results:
--- Show that ptrace(CONT, blocked-signal) fails on FC6
 If test dones't print PASSED, it failed.
APP=3440: wait for SIGUSR1 from DEB=3439
DEB=3439 sleeping for a second
DEB=3439: ptrace attach to APP=3440
DEB=3439: CONT APP=3440 with signal 10
DEB=3439 looks ok
PID=3439: DEB OK

Expected Results:
 If test dones't print PASSED, it failed.
APP=13766: wait for SIGUSR1 from DEB=13765
DEB=13765 sleeping for a second
DEB=13765: ptrace attach to APP=13766
DEB=13765: CONT APP=13766 with signal 10
DEB=13765 looks ok
PID=13765: DEB OK

APP=13766 sleeping for a second
ripley:tjf 265>> APP=13766 looks ok

Additional info:
See also

Comment 1 petrosyan 2008-06-17 21:38:23 UTC
Fedora Core 6 and Fedora 7 are no longer maintained.
Can you reproduce this bug in Fedora 8 or Fedora 9?

Comment 2 Jakub Jelinek 2008-06-18 02:18:09 UTC
This has nothing to do with glibc.  ptrace is a syscall.

Comment 3 petrosyan 2008-06-27 17:10:21 UTC
Tom, can you reproduce this bug in Fedora 8 or Fedora 9?

Comment 4 Tom Fleck 2008-06-27 17:14:05 UTC
Sorry, I don't have those available yet.  I've got a vmware machine with FC9 on
it now but no gcc yet.  I'll comment when I've done that.  

Comment 5 Tom Fleck 2008-06-27 17:50:11 UTC
The bug reproduces on FC9 using test-case binary built on rhel4 with gcc 3.4.6,
and a binary built on rhel5 with gcc 4.1.2.  Is that good enough? 

Comment 6 petrosyan 2008-06-27 18:57:56 UTC
I could reproduce your bug by compiling and running your test-binaries on Fedora
9 using gcc-4.3.0 on a x86_64 architecture.

Comment 7 Bug Zapper 2009-06-10 01:40:26 UTC
This message is a reminder that Fedora 9 is nearing its end of life.
Approximately 30 (thirty) days from now Fedora will stop maintaining
and issuing updates for Fedora 9.  It is Fedora's policy to close all
bug reports from releases that are no longer maintained.  At that time
this bug will be closed as WONTFIX if it remains open with a Fedora 
'version' of '9'.

Package Maintainer: If you wish for this bug to remain open because you
plan to fix it in a currently maintained version, simply change the 'version' 
to a later Fedora version prior to Fedora 9's end of life.

Bug Reporter: Thank you for reporting this issue and we are sorry that 
we may not be able to fix it before Fedora 9 is end of life.  If you 
would still like to see this bug fixed and are able to reproduce it 
against a later version of Fedora please change the 'version' of this 
bug to the applicable version.  If you are unable to change the version, 
please add a comment here and someone will do it for you.

Although we aim to fix as many bugs as possible during every release's 
lifetime, sometimes those efforts are overtaken by events.  Often a 
more recent Fedora release includes newer upstream software that fixes 
bugs or makes them obsolete.

The process we are following is described here:

Comment 8 Bug Zapper 2009-07-14 18:05:57 UTC
Fedora 9 changed to end-of-life (EOL) status on 2009-07-10. Fedora 9 is 
no longer maintained, which means that it will not receive any further 
security or bug fix updates. As a result we are closing this bug.

If you can reproduce this bug against a currently maintained version of 
Fedora please feel free to reopen this bug against that version.

Thank you for reporting this bug and we are sorry it could not be fixed.