[Home]

Summary:ASTERISK-27201: Asterisk crashing when using SRTP
Reporter:Pcatman (pcatman)Labels:
Date Opened:2017-08-16 12:56:55Date Closed:2020-01-14 11:14:13.000-0600
Priority:MajorRegression?
Status:Closed/CompleteComponents:
Versions:14.6.0 Frequency of
Occurrence
Occasional
Related
Issues:
Environment:CentOS 7 updated within last 3 days, Intel Atom x5-Z8350, 2 Gb ramAttachments:
Description:Asterisk randomly crashes when extensions are using SRTP. The following log entries are from /var/log/messages:

Aug 16 11:00:40 kernel: asterisk[24461]: segfault at 7f5fb4e8818e ip 00007f5e375de1fb sp 00007f5eb4e87ad8 error 4 in libsrtp.so.0.0.0[7f5e375d0000+16000]
Aug 16 11:00:41 abrt-hook-ccpp: Process 2609 (asterisk) of user 1000 killed by SIGSEGV - dumping core
Aug 16 11:01:00 abrt-hook-ccpp: Failed to create core_backtrace: waitpid failed: No child processes
Aug 16 11:01:01 abrt-server: Executable '/usr/sbin/asterisk' doesn't belong to any package and ProcessUnpackaged is set to 'no'
Aug 16 11:01:01 abrt-server: 'post-create' on '/var/spool/abrt/ccpp-2017-08-16-11:00:41-2609' exited with 1
Aug 16 11:01:01 abrt-server: Deleting problem directory '/var/spool/abrt/ccpp-2017-08-16-11:00:41-2609'
Comments:By: Asterisk Team (asteriskteam) 2017-08-16 12:56:56.350-0500

Thanks for creating a report! The issue has entered the triage process. That means the issue will wait in this status until a Bug Marshal has an opportunity to review the issue. Once the issue has been reviewed you will receive comments regarding the next steps towards resolution.

A good first step is for you to review the [Asterisk Issue Guidelines|https://wiki.asterisk.org/wiki/display/AST/Asterisk+Issue+Guidelines] if you haven't already. The guidelines detail what is expected from an Asterisk issue report.

Then, if you are submitting a patch, please review the [Patch Contribution Process|https://wiki.asterisk.org/wiki/display/AST/Patch+Contribution+Process].

By: George Joseph (gjoseph) 2017-08-16 13:34:13.833-0500

Which channel driver are you using chan_pjsip or chan_sip?
If chan_pjsip are you using the bundled version of pjproject?  If not, you must use the bundled version for us to be able to assist you.  https://wiki.asterisk.org/wiki/display/AST/PJSIP-pjproject

What version of libsrtp are you using?  If it's the CentOS7 provided package at 1.4.4, then that's an old version not even available any more.  Try installing the latest version (1.5.4) from source and see if you still get the crashes.  You can get libsrtp from https://github.com/cisco/libsrtp

Finally, you'll need to provide some backtraces for us to examine.  Follow the instructions at https://wiki.asterisk.org/wiki/display/AST/Getting+a+Backtrace on how to generate them.


By: Pcatman (pcatman) 2017-08-16 13:46:42.064-0500

Hi George - I'm using chan_pjsip with libsrtp 1.4.4. Will update libsrtp to 1.5.4 and report back if the crashing continues. Thanks!

edit - also using the bundled version of pjproject.

By: Asterisk Team (asteriskteam) 2017-09-05 12:00:02.122-0500

Suspended due to lack of activity. This issue will be automatically re-opened if the reporter posts a comment. If you are not the reporter and would like this re-opened please create a new issue instead. If the new issue is related to this one a link will be created during the triage process. Further information on issue tracker usage can be found in the Asterisk Issue Guidlines [1].

[1] https://wiki.asterisk.org/wiki/display/AST/Asterisk+Issue+Guidelines