[Home]

Summary:ASTERISK-24144: Asterisk 12.4.0 Crashes with DTLS
Reporter:Chetan Goti (chetangoti)Labels:
Date Opened:2014-07-31 06:01:49Date Closed:2014-09-04 15:34:06
Priority:MajorRegression?
Status:Closed/CompleteComponents:Resources/res_rtp_asterisk
Versions:12.4.0 Frequency of
Occurrence
Constant
Related
Issues:
Environment:Ubuntu 14.04 x64 bit on EC2 with 8GB RAMAttachments:( 0) backtrace-1.txt
Description:Recently, we updated our system from 11.6.0 to 12.4.0 with DTLS support.

Asterisk is used only to make outgoing calls. (Chrome -> Asterisk -> VoIP Gateway)

We are seeing random crash with exception:
Program terminated with signal SIGABRT, Aborted.
#0  0x00007f8cee12bf79 in __GI_raise (sig=sig@entry=6) at ../nptl/sysdeps/unix/sysv/linux/raise.c:56

It is really random, at a time with 200 concurrent calls, it was working fine and at other time, it crashed only on 100 concurrent calls.

I have also attached backtrace logs with this.
Comments:By: Chetan Goti (chetangoti) 2014-07-31 06:04:17.387-0500

backtrace

By: Matt Jordan (mjordan) 2014-07-31 06:27:06.355-0500

There is not enough information in the backtrace. All the backtrace shows is that a scheduled call to {{dtls_srtp_handle_timeout}} occurred and this led to an abort in OpenSSL.

{noformat}
#0  0x00007f8cee12bf79 in __GI_raise (sig=sig@entry=6) at ../nptl/sysdeps/unix/sysv/linux/raise.c:56
       resultvar = 0
       pid = 8528
       selftid = 8586
#1  0x00007f8cee12f388 in __GI_abort () at abort.c:89
       save_stage = 2
       act = {__sigaction_handler = {sa_handler = 0x7f8a5c0b0b40, sa_sigaction = 0x7f8a5c0b0b40}, sa_mask = {__val = {140232226442048, 22, 140243272258903, 5, 0, 5, 140243266157864, 1459, 22,
             140232242480688, 140243272287509, 60, 18446744073709551615, 140243270068688, 60, 140240476029840}}, sa_flags = 1203894016, sa_restorer = 0x202c726f72726520}
       sigs = {__val = {32, 0 <repeats 15 times>}}
#2  0x00007f8ced4fd34f in OpenSSLDie () from /lib/x86_64-linux-gnu/libcrypto.so.1.0.0
No symbol table info available.
{noformat}

You'll need to install a version of OpenSSL that has debug symbols in it. Even then, this may not be a bug in Asterisk but in OpenSSL.

By: Chetan Goti (chetangoti) 2014-08-13 08:39:53.949-0500

Yes, that's fair point as its dying from OpenSSL.  We have reverted back to 11.6.0 version to production system and the bug was seen under certain load. So I won't be able to provide more details for the same issue for now.

By: Rusty Newton (rnewton) 2014-09-04 15:29:02.661-0500

Suspending this since you won't be able to update with the required info any time soon. Please request a bug marshal in #asterisk-bugs on the IRC network irc.freenode.net to reopen the issue should you have the additional information requested.  Further information can be found at http://www.asterisk.org/developers/bug-guidelines