[Home]

Summary:ASTERISK-28044: res_stasis : random crash related to ast_channel_varset_type
Reporter:Jean Aunis - Prescom (PrescomJA)Labels:
Date Opened:2018-09-07 09:52:01Date Closed:2018-09-10 04:13:02
Priority:MajorRegression?
Status:Closed/CompleteComponents:Resources/res_stasis
Versions:14.7.6 15.6.0 Frequency of
Occurrence
Frequent
Related
Issues:
Environment:Centos 7.5Attachments:( 0) core.15.6.0-brief.txt
( 1) core.15.6.0-full.txt
( 2) core.15.6.0-locks.txt
( 3) core.15.6.0-thread1.txt
Description:Asterisk is used with a mix of dialplan and ARI applications.
Under normal conditions, Asterisk crashes randomly and generates backtraces which may change from one time to another. Please find attached one of those backtraces.

This crash is reproducible systematically under stress conditions.

The crash stops happening if ast_channel_varset_type events are disabled in stasis.conf.
Comments:By: Asterisk Team (asteriskteam) 2018-09-07 09:52:03.087-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: Jean Aunis - Prescom (PrescomJA) 2018-09-07 09:55:28.245-0500

Backtraces attached

By: Richard Mudgett (rmudgett) 2018-09-07 09:58:14.112-0500

Per the Asterisk versions page [1], the maintenance (bug fix) support for the Asterisk branch you are using has ended. For continued maintenance support please move to a supported branch of Asterisk. After testing with a supported branch, if you find this problem has not been resolved, please open a new issue against the latest version of that Asterisk branch.

Thanks!

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



By: Asterisk Team (asteriskteam) 2018-09-07 10:34:18.819-0500

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

By: Jean Aunis - Prescom (PrescomJA) 2018-09-07 10:36:33.258-0500

The bug is reproducible in version 15.6.0. Please find attached backtraces for this version.

By: Richard Mudgett (rmudgett) 2018-09-07 10:57:00.417-0500

The crash you had in v14 is different than the crash you are having in v15.  IIRC the crash in v14 was fixed in other branches after v14 maintenance support ended.

The v15 crash is in libjansson.  What version of libjansson are you using?

There are fixes in libjansson 2.11 that improve reentrancy issues.  In fact one of the enhancements added in v15.6.0 was to bundle libjansson in a similar manner to pjproject so you could use 2.11.
{noformat}
./configure --with-jansson-bundled --with-pjproject-bundled
{noformat}


By: Jean Aunis - Prescom (PrescomJA) 2018-09-07 11:21:28.754-0500

I'm using the default one provided by CentOS, that is 2.10. I will retry with the bundled version.

By: Jean Aunis - Prescom (PrescomJA) 2018-09-10 04:12:23.611-0500

I've just tested with the bundled libjansson, the crash does not happen anymore. I will close the issue.

By: Jean Aunis - Prescom (PrescomJA) 2018-09-10 04:13:03.033-0500

Fixed in 15.6.0 with bundled libjansson.