fernpass / unimrcp

Automatically exported from code.google.com/p/unimrcp
Apache License 2.0
0 stars 0 forks source link

UniMRCP seems to be causing Asterisk Signal 11 crashes #145

Closed GoogleCodeExporter closed 8 years ago

GoogleCodeExporter commented 8 years ago
What steps will reproduce the problem?
1.  Seems that at lease once a day a seemingly random outbound call will cause 
asterisk to sig 11.
2.  Call is a PTSN outbound call via a T1, asterisk dials, does TTS then 
crashes halfway through it.
3.  Other TTS calls work fine, load on the box is about 5 concurrent calls out 
via 1 T1.  No hung channels or anything to indicate an asterisk issue.

What version of the product are you using? On what operating system?
Asterisk 1.6.2.14 + unimrcp-1.0.0 + uni-ast-package-0.3.2 on CentOS release 5.5 
(Final) x86_64

Please provide any additional information below.

Please see attached file for the backtrace.

Original issue reported on code.google.com by skit...@gmail.com on 21 Aug 2012 at 10:39

Attachments:

GoogleCodeExporter commented 8 years ago
Hi, are you using app_unimcp.c in revision 1805?
Update it to a newer version.
See https://groups.google.com/d/topic/unimrcp/erE2eJjkpaM/discussion
You should update UniMRCP to latest svn revision too.

Original comment by rodolfor...@gmail.com on 22 Aug 2012 at 3:05

GoogleCodeExporter commented 8 years ago
Looks promising as our issue, I'm running it by our Asterisk/TTS Dev to see 
which version of app_unimrcp.c we are using.

Thanks.

Original comment by skit...@gmail.com on 22 Aug 2012 at 4:11

GoogleCodeExporter commented 8 years ago
Well looks like the SVN version of UniMRCP tanks our asterisk install when the 
module loaded. Any ideas on why that would be?  Do we need to step up to a 
higher version of asterisk?

Original comment by skit...@gmail.com on 28 Aug 2012 at 1:16

GoogleCodeExporter commented 8 years ago
Below is a one-line change which fixes the problem. The problem was in the 
Sofia-SIP library which deleted a data storage key which was not created. That 
eventually made Asterisk crash because of memory corruption issues. The fix 
will be available in the upcoming release of the dependencies.

diff --git a/libsofia-sip-ua/su/su_uniqueid.c b/libsofia-sip-ua/su/su_uniqueid.c
index 59833cc..eaa8813 100644
--- a/libsofia-sip-ua/su/su_uniqueid.c
+++ b/libsofia-sip-ua/su/su_uniqueid.c
@@ -99,7 +99,7 @@ union state {
 #endif

 static pthread_once_t once = PTHREAD_ONCE_INIT;
-static int done_once = 1;
+static int done_once = 0;
 static pthread_key_t state_key;

Original comment by achalo...@gmail.com on 6 Mar 2013 at 7:34