[Home]

Summary:ASTERISK-28646: asterisk segfault at sp error 4 in libsrtp.so.0.0.0
Reporter:Krasen Tsonevski (ktsonevski)Labels:
Date Opened:2019-12-04 00:33:41.000-0600Date Closed:2019-12-05 09:03:53.000-0600
Priority:MajorRegression?
Status:Closed/CompleteComponents:. I did not set the category correctly.
Versions:13.29.2 Frequency of
Occurrence
Related
Issues:
Environment:Attachments:
Description:It is restarted randomly several times a day. The error from the dmesg log is this: "asterisk segfault at sp error 4 in libsrtp.so.0.0.0"

All active modules and OS are updated to the latest version.

SHMZ release 6.6 (Final)
Comments:By: Asterisk Team (asteriskteam) 2019-12-04 00:33:42.737-0600

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].

Please note that once your issue enters an open state it has been accepted. As Asterisk is an open source project there is no guarantee or timeframe on when your issue will be looked into. If you need expedient resolution you will need to find and pay a suitable developer. Asking for an update on your issue will not yield any progress on it and will not result in a response. All updates are posted to the issue when they occur.

By: George Joseph (gjoseph) 2019-12-04 06:44:23.055-0600

Thank you for the crash report. However, we need more information to investigate the crash. Please provide:

1. A backtrace generated from a core dump using the instructions provided on the Asterisk wiki [1].
2. Specific steps taken that lead to the crash.
3. All configuration information necesary to reproduce the crash.

Thanks!

[1]: https://wiki.asterisk.org/wiki/display/AST/Getting+a+Backtrace



By: George Joseph (gjoseph) 2019-12-04 07:27:25.404-0600

There doesn't seem to be any debugging information in the files you posted.  
Did you install from packages or are you running FreePBX perhaps?  If either of those, you need to install the corresponding "debug" package so we can see the symbols in the backtraces.   Once those packages are installed, you can run the ast_coredumper command again and it will regenerate the txt files.  We only need the text files for now.  No need to attach the actual coredumps or the tarballs at this point.

Also what version of libsrtp do you have installed?



By: Krasen Tsonevski (ktsonevski) 2019-12-04 07:37:26.477-0600


How to install "corresponding debug"

FreePBX 13.0.197.14
PBX Firmware:
10.13.66-17
PBX Service Pack:
1.0.0.0


rpm -qa | grep libsrtp
libsrtp-1.4.4-4.20101004cvs.el6.x86_64

rpm -qa | grep libsrtp-devel
libsrtp-devel-1.4.4-4.20101004cvs.el6.x86_64

By: George Joseph (gjoseph) 2019-12-04 11:37:20.477-0600

Ah.  That version of libsrtp is very old and likely to cause issues with recent Asterisk versions.  The minimum libsrtp version for Asterisk is 1.5.4.  

I would have thought that upgrading the FreePBX package of Asterisk would have also upgraded libsrtp.  Did you compile Asterisk yourself from source?  If so, you should also download the source for libsrtp 1.5.4 and build it yourself, then rebuild Asterisk.

If you're using the FreePBX packages, you may want to check in at https://community.freepbx.org/ for advice on how to upgrade.  In the mean time, I'm checking the FreePBX package prerequisites to see if they need updating.





By: Krasen Tsonevski (ktsonevski) 2019-12-05 00:27:54.123-0600

uh, unfortunately the system packages are the latest ones coming from the source as well as all the Freepbx modules and packages. Probably the problem is in the old version of libsrtp, but no newer one. I will contact Freepbx, thank you for your great help

# yum update
Loaded plugins: fastestmirror, kmod
Setting up Update Process
Loading mirror speeds from cached hostfile
base                                                                                                                                                                                        | 2.0 kB     00:00    
extras                                                                                                                                                                                      | 1.3 kB     00:00    
pbx                                                                                                                                                                                         | 2.9 kB     00:00    
schmooze-commercial                                                                                                                                                                         | 2.9 kB     00:00    
updates                                                                                                                                                                                     | 1.3 kB     00:00    
No Packages marked for Update

# fwconsole ma upgradeall
No repos specified, using: [standard,extended,unsupported,commercial] from last GUI settings

Up to date.
Updating Hooks...Done


By: Asterisk Team (asteriskteam) 2019-12-05 04:39:33.347-0600

This issue has been reopened as a result of your commenting on it as the reporter. It will be triaged once again as applicable.