Bug 171529 - nptl segv's using pthread_kill
nptl segv's using pthread_kill
Status: CLOSED NOTABUG
Product: Fedora
Classification: Fedora
Component: glibc (Show other bugs)
4
All Linux
medium Severity high
: ---
: ---
Assigned To: Jakub Jelinek
Brian Brock
:
Depends On:
Blocks:
  Show dependency treegraph
 
Reported: 2005-10-22 08:54 EDT by Angelo
Modified: 2008-05-09 13:34 EDT (History)
0 users

See Also:
Fixed In Version:
Doc Type: Bug Fix
Doc Text:
Story Points: ---
Clone Of:
Environment:
Last Closed: 2005-10-23 03:05:43 EDT
Type: ---
Regression: ---
Mount Type: ---
Documentation: ---
CRM:
Verified Versions:
Category: ---
oVirt Team: ---
RHEL 7.3 requirements from Atomic Host:
Cloudforms Team: ---


Attachments (Terms of Use)
testcase (1.72 KB, text/x-csrc)
2005-10-22 08:54 EDT, Angelo
no flags Details

  None (edit)
Description Angelo 2005-10-22 08:54:16 EDT
Description of problem:
nptl thread segv's when killed

How reproducible: Sometimes


Steps to Reproduce:
1. run test code
2.
3.
  
Actual results:
Segmentation fault

Expected results:
live gracefully
Comment 1 Angelo 2005-10-22 08:54:16 EDT
Created attachment 120280 [details]
testcase
Comment 2 Jakub Jelinek 2005-10-23 03:05:43 EDT
I haven't been able to reproduce it yet, but the testcase is certainly buggy.
See
http://www.opengroup.org/onlinepubs/009695399/functions/xsh_chap02_04.html#tag_02_04_03
None of the calls you make in sig_handler are allowed in signal handlers,
none of printf, exit, pthread_self and pthread_exit are async-signal safe
functions.
E.g. when thread_function enters pthread_exit call in it and a signal comes in,
a crash is very much expected.

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