[asterisk-bugs] [Asterisk 0013380]: [patch] pthread_cancel segmentation faults
Asterisk Bug Tracker
noreply at bugs.digium.com
Fri Aug 29 00:25:07 CDT 2008
A NOTE has been added to this issue.
======================================================================
http://bugs.digium.com/view.php?id=13380
======================================================================
Reported By: Matti
Assigned To:
======================================================================
Project: Asterisk
Issue ID: 13380
Category: Channels/chan_h323
Reproducibility: always
Severity: minor
Priority: normal
Status: feedback
Asterisk Version: 1.2.X
SVN Branch (only for SVN checkouts, not tarball releases): 1.2
SVN Revision (number only!):
Disclaimer on File?: N/A
Request Review:
======================================================================
Date Submitted: 2008-08-27 01:20 CDT
Last Modified: 2008-08-29 00:25 CDT
======================================================================
Summary: [patch] pthread_cancel segmentation faults
Description:
pthread_cancel segmentation faults when the bind address in h323.conf is
not configured in Linux. A detached thread must not be cancelled.
======================================================================
----------------------------------------------------------------------
(0091883) Matti (reporter) - 2008-08-29 00:25
http://bugs.digium.com/view.php?id=13380#c91883
----------------------------------------------------------------------
The specification of pthread_cancel says that the storage for the cancelled
thread can be reused. That means that if the thread erroneously ends, the
cancellation could cancel a wrong thread. It is not the only restriction on
a detached thread that it cannot be joined. The channel driver also calls
pthread_kill on the thread ID after cancelling it, which means that it can
kill a wrong thread. The driver also joins the thread after cancelling it,
which is a grave error.
Issue History
Date Modified Username Field Change
======================================================================
2008-08-29 00:25 Matti Note Added: 0091883
======================================================================
More information about the asterisk-bugs
mailing list