[Home]

Summary:ASTERISK-25650: Crash before unload res_pjsip_exten_state.so and load again res_pjsip_exten_state.so
Reporter:Sergio Medina Toledo (lumasepa)Labels:
Date Opened:2015-12-30 07:12:56.000-0600Date Closed:2016-01-07 15:00:21.000-0600
Priority:MinorRegression?
Status:Closed/CompleteComponents:
Versions:13.6.0 Frequency of
Occurrence
Related
Issues:
Environment:OS: Ubuntu 14.04, kernel 3.13.0, Architecture : x86-64 Compiled with gcc version 4.8.4 libpjsip2 2.4Attachments:( 0) bt
( 1) bt_full
( 2) thread_apply_all_bt
Description:I have an asterisk with a PJSIP and h323 setup. When the module res_pjsip_exten_state.so is loaded for a second time it produces a crash.

Example :

load res_pjsip_exten_state.so
unload res_pjsip_exten_state.so
load res_pjsip_exten_state.so

I attach a bt, bt full and thread apply all bt
Comments:By: Asterisk Team (asteriskteam) 2015-12-30 07:12:58.135-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].

By: Rusty Newton (rnewton) 2015-12-30 09:07:58.930-0600

Did you build pjsip without debug assertions?

Also, can you reproduce the issue with default configuration files? Or does reproduction require a specific Asterisk configuration?

By: Sergio Medina Toledo (lumasepa) 2016-01-07 05:15:33.818-0600

I didn't build the pjsip lib, the pjsip lib comes from a launchpad repo.
Now I tried to reproduce the problem with the pjsip lib version 2.1 from the oficial ubuntu repos and the default config files of asterisk and the crash happens too.

By: Joshua C. Colp (jcolp) 2016-01-07 06:20:11.805-0600

The Asterisk project HIGHLY suggests that assertions be disabled in PJSIP, as they will cause an assertion to occur for normal things under standard usage. All of our build instructions and the install_prereq script itself does this. If assertions were disabled this would be working fine. Additionally even fixing this to work without disabling assertions would require modifications to PJSIP, so you'd have to build a version yourself.

By: Rusty Newton (rnewton) 2016-01-07 15:00:21.382-0600

Closing this as won't fix. This assertion is avoided by building pjsip and Asterisk in the recommended way.

https://wiki.asterisk.org/wiki/display/AST/Building+and+Installing+pjproject