Summary: | ASTERISK-13250: [patch] wrong phtread_mutex_init | ||
Reporter: | Clod Patry (junky) | Labels: | |
Date Opened: | 2008-12-19 13:37:31.000-0600 | Date Closed: | 2008-12-22 11:00:56.000-0600 |
Priority: | Critical | Regression? | No |
Status: | Closed/Complete | Components: | Addons/chan_ooh323 |
Versions: | Frequency of Occurrence | ||
Related Issues: | |||
Environment: | Attachments: | ( 0) mutex_init.diff | |
Description: | When I got a OOh323 call, I got this crash: (gdb) bt #0 0x0000003983f07c0c in pthread_mutex_init () from /lib64/tls/libpthread.so.0 #1 0x0000002a97a8f42f in ooCreateCmdConnection () from /usr/lib/asterisk/modules/chan_ooh323.so #2 0x0000002a97aad9de in ooAnswerCall () from /usr/lib/asterisk/modules/chan_ooh323.so #3 0x0000002a97a89e65 in ooh323_convert_hangupcause_asteriskToH323 () from /usr/lib/asterisk/modules/chan_ooh323.so #4 0x000000000043f17b in ast_answer (chan=0x9e0e20) at channel.c:1629 ASTERISK-1 0x000000000048da25 in pbx_builtin_answer (chan=0x9e0e20, data=0x508fec) at pbx.c:5488 ASTERISK-2 0x00000000004816eb in pbx_exec (c=0x9e0e20, app=0x675330, data=0x6702aa80) at /usr/src/aheevaTrunk/aheevaAsterisk/asterisk-1.4/include/asterisk/strings.h:35 ASTERISK-3 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 ASTERISK-4 0x0000000000486148 in ast_spawn_extension (c=0x9e0e20, context=0x9e1120 "default", exten=0x9e1170 "s", priority=2, callerid=0x9d1ad0 "5555") at pbx.c:2360 ASTERISK-5 0x000000000048664f in __ast_pbx_run (c=0x9e0e20) at pbx.c:2462 ASTERISK-6 0x00000000004872da in pbx_thread (data=0x9e0e20) at pbx.c:2677 ASTERISK-7 0x00000000004c1bae in dummy_start (data=0x9d1fc0) at utils.c:865 ASTERISK-8 0x0000003983f06137 in start_thread () from /lib64/tls/libpthread.so.0 ASTERISK-9 0x00000039836c9883 in clone () from /lib64/tls/libc.so.6 This patch prevent this segfault and i can get call like a charm now. | ||
Comments: | By: Digium Subversion (svnbot) 2008-12-22 10:59:42.000-0600 Repository: asterisk-addons Revision: 714 U branches/1.4/channels/ooh323c/src/ooCmdChannel.c ------------------------------------------------------------------------ r714 | russell | 2008-12-22 10:59:42 -0600 (Mon, 22 Dec 2008) | 7 lines Fix a bogus pthread_mutex_init() (closes issue ASTERISK-13250) Reported by: junky Patches: mutex_init.diff uploaded by junky (license 177) ------------------------------------------------------------------------ http://svn.digium.com/view/asterisk-addons?view=rev&revision=714 By: Digium Subversion (svnbot) 2008-12-22 11:00:04.000-0600 Repository: asterisk-addons Revision: 715 _U trunk/ U trunk/channels/ooh323c/src/ooCmdChannel.c ------------------------------------------------------------------------ r715 | russell | 2008-12-22 11:00:03 -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 ASTERISK-13250) Reported by: junky Patches: mutex_init.diff uploaded by junky (license 177) ........ ------------------------------------------------------------------------ http://svn.digium.com/view/asterisk-addons?view=rev&revision=715 By: Digium Subversion (svnbot) 2008-12-22 11:00:25.000-0600 Repository: asterisk-addons Revision: 716 _U branches/1.6.0/ U branches/1.6.0/channels/ooh323c/src/ooCmdChannel.c ------------------------------------------------------------------------ r716 | russell | 2008-12-22 11:00:24 -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 ASTERISK-13250) Reported by: junky Patches: mutex_init.diff uploaded by junky (license 177) ........ ................ ------------------------------------------------------------------------ http://svn.digium.com/view/asterisk-addons?view=rev&revision=716 By: Digium Subversion (svnbot) 2008-12-22 11:00:55.000-0600 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 ASTERISK-13250) Reported by: junky Patches: mutex_init.diff uploaded by junky (license 177) ........ ................ ------------------------------------------------------------------------ http://svn.digium.com/view/asterisk-addons?view=rev&revision=717 |