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

Asterisk Bug Tracker noreply at bugs.digium.com
Mon Dec 22 11:00:55 CST 2008


A NOTE has been added to this issue. 
====================================================================== 
http://bugs.digium.com/view.php?id=14116 
====================================================================== 
Reported By:                junky
Assigned To:                russell
====================================================================== 
Project:                    Asterisk
Issue ID:                   14116
Category:                   Addons/chan_ooh323
Reproducibility:            always
Severity:                   crash
Priority:                   normal
Status:                     closed
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:              
Resolution:                 fixed
Fixed in Version:           
====================================================================== 
Date Submitted:             2008-12-19 13:37 CST
Last Modified:              2008-12-22 11:00 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.


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

---------------------------------------------------------------------- 
 (0096806) svnbot (reporter) - 2008-12-22 11:00
 http://bugs.digium.com/view.php?id=14116#c96806 
---------------------------------------------------------------------- 
Repository: asterisk-addons
Revision: 717

_U  branches/1.6.1/
U   branches/1.6.1/channels/ooh323c/src/ooCmdChannel.c

------------------------------------------------------------------------
r717 | russell | 2008-12-22 11:00:55 -0600 (Mon, 22 Dec 2008) | 23 lines

Merged revisions 715 via svnmerge from 
https://origsvn.digium.com/svn/asterisk-addons/trunk

................
r715 | russell | 2008-12-22 11:00:07 -0600 (Mon, 22 Dec 2008) | 15 lines

Merged revisions 714 via svnmerge from 
https://origsvn.digium.com/svn/asterisk-addons/branches/1.4

........
r714 | russell | 2008-12-22 10:59:46 -0600 (Mon, 22 Dec 2008) | 7 lines

Fix a bogus pthread_mutex_init()

(closes issue http://bugs.digium.com/view.php?id=14116)
Reported by: junky
Patches:
      mutex_init.diff uploaded by junky (license 177)

........

................

------------------------------------------------------------------------

http://svn.digium.com/view/asterisk-addons?view=rev&revision=717 

Issue History 
Date Modified    Username       Field                    Change               
====================================================================== 
2008-12-22 11:00 svnbot         Checkin                                      
2008-12-22 11:00 svnbot         Note Added: 0096806                          
======================================================================




More information about the asterisk-bugs mailing list