[asterisk-bugs] [Asterisk 0010923]: crash in ast_var_name on SIP hangup
noreply at bugs.digium.com
noreply at bugs.digium.com
Mon Nov 5 16:07:02 CST 2007
The following issue has been ASSIGNED.
======================================================================
http://bugs.digium.com/view.php?id=10923
======================================================================
Reported By: atis
Assigned To: russell
======================================================================
Project: Asterisk
Issue ID: 10923
Category: Channels/chan_sip/General
Reproducibility: N/A
Severity: crash
Priority: normal
Status: assigned
Asterisk Version: 1.4.12.1
SVN Branch (only for SVN checkouts, not tarball releases): N/A
SVN Revision (number only!):
Disclaimer on File?: N/A
Request Review:
======================================================================
Date Submitted: 10-09-2007 08:37 CDT
Last Modified: 11-05-2007 16:07 CST
======================================================================
Summary: crash in ast_var_name on SIP hangup
Description:
I just upgraded to asterisk 1.4.12.1 (from 1.4.10), and within few hours i
got crash.
It occurred on hangup of SIP channel, and it seems to be related to some
SIP data.
======================================================================
----------------------------------------------------------------------
svnbot - 11-05-07 16:07
----------------------------------------------------------------------
Repository: asterisk
Revision: 88805
U branches/1.4/include/asterisk/pbx.h
U branches/1.4/main/pbx.c
------------------------------------------------------------------------
r88805 | russell | 2007-11-05 16:07:00 -0600 (Mon, 05 Nov 2007) | 12 lines
After seeing crashes related to channel variables, I went looking around
at the
ways that channel variables are handled. In general, they were not
handled in
a thread-safe way. The channel _must_ be locked when reading or writing
from/to
the channel variable list.
What I have done to improve this situation is to make
pbx_builtin_setvar_helper()
and friends lock the channel when doing their thing. Asterisk API calls
almost
all lock the channel for you as necessary, but this family of functions
did not.
(closes issue http://bugs.digium.com/view.php?id=10923, reported by atis)
(closes issue http://bugs.digium.com/view.php?id=11159, reported by 850t)
------------------------------------------------------------------------
Issue History
Date Modified Username Field Change
======================================================================
11-05-07 16:07 svnbot Note Added: 0073155
11-05-07 16:07 svnbot Status new => assigned
11-05-07 16:07 svnbot Assigned To => russell
======================================================================
More information about the asterisk-bugs
mailing list