Bugzilla will be upgraded to version 5.0. The upgrade date is tentatively scheduled for 2 December 2018, pending final testing and feedback.
Bug 230423 - ptrace causing SIGSEGV in debugged process when sending SIGKILL to it.
ptrace causing SIGSEGV in debugged process when sending SIGKILL to it.
Product: Fedora
Classification: Fedora
Component: kernel (Show other bugs)
i386 Linux
medium Severity medium
: ---
: ---
Assigned To: Roland McGrath
Brian Brock
Depends On:
  Show dependency treegraph
Reported: 2007-02-28 14:37 EST by Kevin Van Brunt
Modified: 2007-11-30 17:11 EST (History)
3 users (show)

See Also:
Fixed In Version: 2.6.20-1.2925.fc6
Doc Type: Bug Fix
Doc Text:
Story Points: ---
Clone Of:
Last Closed: 2007-03-20 13:27:07 EDT
Type: ---
Regression: ---
Mount Type: ---
Documentation: ---
Verified Versions:
Category: ---
oVirt Team: ---
RHEL 7.3 requirements from Atomic Host:
Cloudforms Team: ---

Attachments (Terms of Use)
A test c program that demonstrates the bug. (1.02 KB, text/plain)
2007-02-28 14:41 EST, Kevin Van Brunt
no flags Details

  None (edit)
Description Kevin Van Brunt 2007-02-28 14:37:56 EST
From Bugzilla Helper:
User-Agent: Mozilla/4.0 (compatible; MSIE 7.0; Windows NT 5.1; .NET CLR 1.1.4322; .NET CLR 2.0.50727; .NET CLR 3.0.04506.30)

Description of problem:
I have written a small program to demonstrate this bug.  It causes ptrace to trace /bin/ls.  After the first waitpid, the parent sends a SIGKILL to ls and ls performs a segmentation fault.  /bin/ls is only used as an example.  Any traced process has the same problem.  I have traced xterm, firefox, and gnome-cd as well and seen the bug.

The code will be attached to this bug report.

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

How reproducible:

Steps to Reproduce:
1. Compile and run the attached code.

Actual Results:
The message "GOT SIGSEGV" should appear because the traced program performs a segmentation fault.

Expected Results:
The traced program should not perform a segmentation fault and no message should appear.

Additional info:
Comment 1 Kevin Van Brunt 2007-02-28 14:41:19 EST
Created attachment 148952 [details]
A test c program that demonstrates the bug.
Comment 2 Albert Cahalan 2007-03-06 23:31:25 EST
A pure kernel does not show the problem at all. I even tried adding
sched_yield in various places to see if scheduling order would affect things.

This is probably a utrace bug.
Comment 3 Roland McGrath 2007-03-19 19:03:55 EDT
I reproduced this on 2.6.19-1.2911.fc6 but not on 2.6.20-1.2925.fc6.
Please try the latest fc6 update kernel and verify that the problem is gone for you.
Comment 4 Kevin Van Brunt 2007-03-20 13:20:41 EDT
It looks to be fixed in 2.6.20-1.2925.fc6.

Note You need to log in before you can comment on or make changes to this bug.