[Home]

Summary:ASTERISK-26768: chan_sip: Crashes with more than 90 SIP endpoints with TCP - in __ast_string_field_ptr_grow at stringfields.c, in parse_register_contact at chan_sip.c
Reporter:Ludovic Gasc (Eyepea) (gmludo)Labels:
Date Opened:2017-02-04 10:58:09.000-0600Date Closed:
Priority:MajorRegression?Yes
Status:Open/NewComponents:Channels/chan_sip/TCP-TLS
Versions:13.12.2 Frequency of
Occurrence
Frequent
Related
Issues:
Environment:Debian 8 64 BitsAttachments:( 0) asterisk_logs_2017-02-04.txt
( 1) backtrace_2017-02-04.txt
Description:Hi,

We have between one and two crashes by day on Asterisk when we use chan_sip with more than 90 devices with TCP mode.

We didn't arrive to reproduce the bug, however, I've discussed with Matt Jordan today at FOSDEM who told me to open an issue with the all information I have.

This is an extract of the Asterisk logs and the backtrace.

It's my first backtrace capture, I hope it will be enough to help you.
If necessary, I've also a SIP pcap capture but I can't share on the Web.

Have a nice week.
Comments:By: Asterisk Team (asteriskteam) 2017-02-04 10:58:10.951-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) 2017-02-05 15:37:19.491-0600

Anyone with a JIRA account can attach a text file to a ticket.

Did you use the "More > Attach Files" dialog? What error did you receive? Can you provide a screen shot?

I'd let to help you attach all the files to the issue as we do require that. External links and sources tend to disappear over time.

By: Ludovic Gasc (Eyepea) (gmludo) 2017-02-05 17:00:01.389-0600

Thanks for your help, I've uploaded files.

By: Ludovic Gasc (Eyepea) (gmludo) 2017-02-07 09:33:53.621-0600

FYI, we use now UDP on Asterisks servers that crashed randomly since this week-end, no more crashes at all.

By: Rusty Newton (rnewton) 2017-02-07 17:55:15.469-0600

That is good to hear. I'm going to open this up since you have a good trace. However you may want to see if you can gather additional or more extensive logs, preferably with the DEBUG log level on and both verbose and debug turned up to 5 or above.

Remember that chan_sip is under extended support (no longer supported by the core dev team directly) since Asterisk 12, so the time until resolution will reflect that.

If you can reproduce a similar issue using PJSIP, a fix would happen quicker there since that is where SIP development is focused. If you do find a similar issue when using PJSIP, you should file a new ticket for that problem.

Thanks,