[Home]

Summary:ASTERISK-29307: chan_pjsip: Crash during hangup when pushing to taskprocessor
Reporter:Ernest Mavrel (cobram)Labels:
Date Opened:2021-02-22 02:43:11.000-0600Date Closed:
Priority:MinorRegression?
Status:Open/NewComponents:Core/General
Versions:16.13.0 16.15.1 18.2.1 Frequency of
Occurrence
Occasional
Related
Issues:
Environment:Attachments:( 0) core-brief.txt
( 1) core-full.txt
( 2) core-info.txt
( 3) core-locks.txt
( 4) core-thread1.txt
( 5) full
Description:This problem is encountered randomly on different servers and different versions of the asterisk.
Even under different loads.

Backtrace example:
{noformat}
Thread 1 (Thread 0x7f2cbaa83700 (LWP 12002)):
#0  0x00005597fb0b88c1 in taskprocessor_push (tps=0x7f2cbc2b46e0, t=0x7f2ddc0070c0) at taskprocessor.c:1171
       previous_size = 0
       was_empty = 0
       __PRETTY_FUNCTION__ = "taskprocessor_push"
#1  0x00005597fb0b891a in ast_taskprocessor_push (tps=0x7f2cbc2b46e0, task_exe=0x7f2de85fe320 <hangup>, datap=0x7f2ddc08f490) at taskprocessor.c:1177
#2  0x00007f2de87f551e in ast_sip_push_task (serializer=0x7f2cbc2b46e0, sip_task=0x7f2de85fe320 <hangup>, task_data=0x7f2ddc08f490) at res_pjsip.c:4666
#3  0x00007f2de85fe4e9 in chan_pjsip_hangup (ast=0x7f2ddc032b60) at chan_pjsip.c:2589
       channel = 0x7f2ddc006580
       cause = 480
       h_data = 0x7f2ddc08f490
       __PRETTY_FUNCTION__ = "chan_pjsip_hangup"
#4  0x00005597faf8efdb in ast_hangup (chan=0x7f2ddc032b60) at channel.c:2628
       __PRETTY_FUNCTION__ = "ast_hangup"
{noformat}
Comments:By: Asterisk Team (asteriskteam) 2021-02-22 02:43:13.741-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. Please note that log messages and other files should not be sent to the Sangoma Asterisk Team unless explicitly asked for. All files should be placed on this issue in a sanitized fashion as needed.

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.

Please note that by submitting data, code, or documentation to Sangoma through JIRA, you accept the Terms of Use present at [https://www.asterisk.org/terms-of-use/|https://www.asterisk.org/terms-of-use/].

By: Joshua C. Colp (jcolp) 2021-02-22 03:32:18.794-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: Ernest Mavrel (cobram) 2021-02-22 03:54:02.908-0600

backtrace

By: Ernest Mavrel (cobram) 2021-02-22 04:00:34.110-0600

2. Crash happen randomly
3. Asterisk is used as gateway (pjsip). It's also doing some number translation (fastagi script)  and adding costum SIP headers on outbound channels
We are using default configuration files.

By: Joshua C. Colp (jcolp) 2021-02-22 04:03:16.308-0600

Do you have the logs leading up to the crash?

By: Ernest Mavrel (cobram) 2021-02-22 04:20:31.654-0600

last calls just before crash

By: Joshua C. Colp (jcolp) 2021-02-22 04:43:03.989-0600

Can you execute:

/var/lib/asterisk/scripts/ast_coredumper --tarball-coredumps --no-default-search

To create a tarball including core dump and binaries for examination? If you can make it available for download you can then email asteriskteam@digium.com with a link to download it.

By: Ernest Mavrel (cobram) 2021-02-22 05:10:03.342-0600

after execution i receive this: cp: cannot stat '/usr/lib64/libasterisk*': No such file or directory

By: Joshua C. Colp (jcolp) 2021-02-22 05:19:27.379-0600

Have you installed Asterisk in a custom location at all on the system?

By: Ernest Mavrel (cobram) 2021-02-22 05:57:27.652-0600

I just sent the link to email

By: Joshua C. Colp (jcolp) 2021-02-22 06:01:27.038-0600

It's been received.

By: Ernest Mavrel (cobram) 2021-03-06 01:40:15.245-0600

Same crash with asterisk version 18. I sent link with a tarball including core dump and binaries to email