Bug 177240
Summary: | ptraced multithreaded exec dies with spurious SIGKILL | ||||||
---|---|---|---|---|---|---|---|
Product: | [Fedora] Fedora | Reporter: | Roland McGrath <roland> | ||||
Component: | kernel | Assignee: | Dave Jones <davej> | ||||
Status: | CLOSED CURRENTRELEASE | QA Contact: | Brian Brock <bbrock> | ||||
Severity: | medium | Docs Contact: | |||||
Priority: | medium | ||||||
Version: | 5 | CC: | cagney, kernel-maint, pfrields, scox, wtogami, zhouwu | ||||
Target Milestone: | --- | ||||||
Target Release: | --- | ||||||
Hardware: | All | ||||||
OS: | Linux | ||||||
Whiteboard: | |||||||
Fixed In Version: | 2.6.16-1.2096_FC5 | Doc Type: | Bug Fix | ||||
Doc Text: | Story Points: | --- | |||||
Clone Of: | Environment: | ||||||
Last Closed: | 2006-10-12 10:34:47 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: | |||||||
Bug Depends On: | |||||||
Bug Blocks: | 150222, 173278, 180484 | ||||||
Attachments: |
|
Description
Roland McGrath
2006-01-08 03:19:51 UTC
Created attachment 122915 [details]
threaded execer program for test case
Verified this bug is in the current upstream kernel. I believe I had found the code which trigger this testcase failure. But I don't the why yet. It is triggered by the following code in kernel/ptrace.c: + if (child->signal->flags & SIGNAL_GROUP_EXIT) { + sigaddset(&child->pending.signal, SIGKILL); + signal_wake_up(child, 1); + } This is checked into 2.6.15 by Andrea Arcangeli to fix a gdb deadlock problem he didn't elaborate on. Here is the link: http://marc.theaimsgroup.com/?l=linux-kernel&m=112833915827432&w=2. After reversing this patch, the above case works ok on both x86 and ppc64. BTW, could I use the above testcase in the public mail-list? I believe it is. But I am not sure. So I just want to ask. :-) Everything about this bug is public. The attached test program is GPL'd code already publically available from the Frysk project. Thanks for looking into this. Andrea's change is one among many recent kernel changes on my backlog to review and about which I have been dubious but not yet had the time to investigate fully and follow up to get them changed. Unfortunately I have still had my time monopolized by other things and that backlog is growing and not shrinking. Can the above code be removed for the FC-5 kernel? I sent an email to Andrea and cc the linux-kernel mail-list about this problem. Here is the link: http://marc.theaimsgroup.com/?l=linux-kernel&m=114178963330524&w=2 Just FYI. 2.6.16.6 has fixed this upstream. FC-5's next rebase should get it. 2.6.17-1.2174_FC5 tests fine, closing |