Bug 171529

Summary: nptl segv's using pthread_kill
Product: [Fedora] Fedora Reporter: Angelo <ang3l0>
Component: glibcAssignee: Jakub Jelinek <jakub>
Status: CLOSED NOTABUG QA Contact: Brian Brock <bbrock>
Severity: high Docs Contact:
Priority: medium    
Version: 4   
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-10-23 07:05:43 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
testcase none

Description Angelo 2005-10-22 12:54:16 UTC
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 12:54:16 UTC
Created attachment 120280 [details]
testcase

Comment 2 Jakub Jelinek 2005-10-23 07:05:43 UTC
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.