[asterisk-bugs] [Asterisk 0014116]: [patch] wrong phtread_mutex_init

Asterisk Bug Tracker noreply at bugs.digium.com
Fri Dec 19 13:37:49 CST 2008


The following issue has been UPDATED. 
====================================================================== 
http://bugs.digium.com/view.php?id=14116 
====================================================================== 
Reported By:                junky
Assigned To:                
====================================================================== 
Project:                    Asterisk
Issue ID:                   14116
Category:                   Addons/chan_ooh323
Reproducibility:            always
Severity:                   crash
Priority:                   normal
Status:                     new
Asterisk Version:           SVN 
SVN Branch (only for SVN checkouts, not tarball releases):  1.4  
SVN Revision (number only!): 712 
Disclaimer on File?:        N/A 
Request Review:              
====================================================================== 
Date Submitted:             2008-12-19 13:37 CST
Last Modified:              2008-12-19 13:37 CST
====================================================================== 
Summary:                    [patch] wrong phtread_mutex_init
Description: 
When I got a OOh323 call, I got this crash:

(gdb) bt
http://bugs.digium.com/view.php?id=0  0x0000003983f07c0c in pthread_mutex_init
() from
/lib64/tls/libpthread.so.0
http://bugs.digium.com/view.php?id=1  0x0000002a97a8f42f in
ooCreateCmdConnection () from
/usr/lib/asterisk/modules/chan_ooh323.so
http://bugs.digium.com/view.php?id=2  0x0000002a97aad9de in ooAnswerCall () from
/usr/lib/asterisk/modules/chan_ooh323.so
http://bugs.digium.com/view.php?id=3  0x0000002a97a89e65 in
ooh323_convert_hangupcause_asteriskToH323 ()
from /usr/lib/asterisk/modules/chan_ooh323.so
http://bugs.digium.com/view.php?id=4  0x000000000043f17b in ast_answer
(chan=0x9e0e20) at channel.c:1629
http://bugs.digium.com/view.php?id=5  0x000000000048da25 in pbx_builtin_answer
(chan=0x9e0e20,
data=0x508fec) at pbx.c:5488
http://bugs.digium.com/view.php?id=6  0x00000000004816eb in pbx_exec
(c=0x9e0e20, app=0x675330,
data=0x6702aa80) at
/usr/src/aheevaTrunk/aheevaAsterisk/asterisk-1.4/include/asterisk/strings.h:35
http://bugs.digium.com/view.php?id=7  0x0000000000484c3a in pbx_extension_helper
(c=0x9e0e20, con=0x0,
context=0x9e1120 "default", exten=0x9e1170 "s", priority=2, label=0x0,
callerid=0x9d1ad0 "5555", action=E_SPAWN) at pbx.c:1862
http://bugs.digium.com/view.php?id=8  0x0000000000486148 in ast_spawn_extension
(c=0x9e0e20,
context=0x9e1120 "default", exten=0x9e1170 "s", priority=2,
callerid=0x9d1ad0 "5555") at pbx.c:2360
http://bugs.digium.com/view.php?id=9  0x000000000048664f in __ast_pbx_run
(c=0x9e0e20) at pbx.c:2462
http://bugs.digium.com/view.php?id=10 0x00000000004872da in pbx_thread
(data=0x9e0e20) at pbx.c:2677
http://bugs.digium.com/view.php?id=11 0x00000000004c1bae in dummy_start
(data=0x9d1fc0) at utils.c:865
http://bugs.digium.com/view.php?id=12 0x0000003983f06137 in start_thread () from
/lib64/tls/libpthread.so.0
http://bugs.digium.com/view.php?id=13 0x00000039836c9883 in clone () from
/lib64/tls/libc.so.6



This patch prevent this segfault and i can get call like a charm now.


====================================================================== 

Issue History 
Date Modified    Username       Field                    Change               
====================================================================== 
2008-12-19 13:37 junky          Summary                  wrong
phtread_mutex_init => [patch] wrong phtread_mutex_init
======================================================================




More information about the asterisk-bugs mailing list