[Home]

Summary:ASTERISK-27267: Asterisk crashes after module reload
Reporter:Dalius M. (mdalius)Labels:
Date Opened:2017-09-13 08:44:53Date Closed:2017-09-14 08:15:19
Priority:CriticalRegression?
Status:Closed/CompleteComponents:
Versions:13.17.1 Frequency of
Occurrence
Frequent
Related
Issues:
duplicatesASTERISK-27270 cdr_mysql: various crashes at second module reload if cdr_mysql.conf is configured
Environment:CentOS Linux release 7.3.1611, Attachments:( 0) asterisk-ASTERISK-27267-results.tar.gz
Description:Asterisk crashes randomly with segfault after command "module reload".
In /var/log/messages file there is line similar to
" Sep 13 16:13:41 hostname kernel: asterisk[9009]: segfault at 18 ip 00007f270f8e07fa sp 00007f266bd07570 error 4 in libc-2.17.so[7f270f865000+1b7000]"
Backtrace files attached.
Comments:By: Asterisk Team (asteriskteam) 2017-09-13 08:44:55.830-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: Rusty Newton (rnewton) 2017-09-13 17:59:48.901-0500

We require additional debug to continue with triage of your issue. Please follow the instructions on the wiki [1] for how to collect debugging information from Asterisk. For expediency, where possible, attach the debug with a '.txt' file extension so that the debug will be usable for further analysis.

Thanks!

[1] https://wiki.asterisk.org/wiki/display/AST/Collecting+Debug+Information



By: Rusty Newton (rnewton) 2017-09-13 18:00:38.378-0500

Are you able to reproduce the issue fairly frequently? See if you can get a debug log as linked in the article in the previous comment.

By: Dalius M. (mdalius) 2017-09-14 08:09:24.838-0500

Hello,
I think I have found why Asterisk crashes after reload. It was cdr_mysql modules fault.

Debug log last lines before crash was something like "[2017-09-14 13:56:10.50] DEBUG[4829] cdr.c: Suspending CDR backend mysql", "[2017-09-14 14:02:29.95] DEBUG[5081] cdr_mysql.c: Got DB charset of" and etc.
We migrated to cdr_adaptive_odbc and it looks like everything is alright.

By: Joshua C. Colp (jcolp) 2017-09-14 08:15:19.459-0500

I'm marking this as a duplicate as Tzafrir has filed an issue that has narrowed down what broke this.