[asterisk-bugs] [Asterisk 0013400]: [patch] POSIX thread operations errors

Asterisk Bug Tracker noreply at bugs.digium.com
Wed Oct 1 23:53:25 CDT 2008


A NOTE has been added to this issue. 
====================================================================== 
http://bugs.digium.com/view.php?id=13400 
====================================================================== 
Reported By:                Matti
Assigned To:                
====================================================================== 
Project:                    Asterisk
Issue ID:                   13400
Category:                   Channels/chan_h323
Reproducibility:            unable to reproduce
Severity:                   crash
Priority:                   normal
Status:                     feedback
Asterisk Version:           SVN 
SVN Branch (only for SVN checkouts, not tarball releases):  trunk 
SVN Revision (number only!):  
Disclaimer on File?:        N/A 
Request Review:              
====================================================================== 
Date Submitted:             2008-08-29 09:50 CDT
Last Modified:              2008-10-01 23:53 CDT
====================================================================== 
Summary:                    [patch] POSIX thread operations errors
Description: 
POSIX thread functions pthread_cancel, pthread_kill and pthread_join are
called with thread IDs belonging to monitor threads that (may) have ended.
====================================================================== 

---------------------------------------------------------------------- 
 (0093067) Matti (reporter) - 2008-10-01 23:53
 http://bugs.digium.com/view.php?id=13400#c93067 
---------------------------------------------------------------------- 
The driver calls also pthread_join after calling pthread_cancel, which is
an error also according to
http://opengroup.org/onlinepubs/007908799/xsh/pthread_attr_setdetachstate.html.
The following link is a source: "The pthread_detach() function shall
indicate to the implementation that storage for the thread thread can be
reclaimed when that thread terminates."
The Open Group Base Specifications Issue 6
IEEE Std 1003.1, 2004 Edition
http://www.opengroup.org/onlinepubs/000095399/functions/pthread_detach.html 

Issue History 
Date Modified    Username       Field                    Change               
====================================================================== 
2008-10-01 23:53 Matti          Note Added: 0093067                          
======================================================================




More information about the asterisk-bugs mailing list