Asterisk crashed with 13 concurrent calls

Hi,

I’m running Asterisk 13.24.0 and PJSIP 2.8.

I use SIPp to test concurrent call (1 call in 1 second), each call hangup after 3 min. But when establish 13 concurrent call, it cause segmentation fault, then Asterisk crash. I try to change call frequency to 1 call in 10 second, but the same issue happened.

How to solve this issue? Thank you.

GDB backtrace result: gdb.txt (23.0 KB)

#top

Mem: 191192K used, 39408K free, 0K shrd, 18032K buff, 64292K cached
CPU:  16% usr  83% sys   0% nic   0% idle   0% io   0% irq   0% sirq
Load average: 10.98 4.07 2.93 4/192 3152
  PID  PPID USER     STAT   VSZ %VSZ CPU %CPU COMMAND
 2629  2569 1234     R    28076  12%   0  57% asterisk -C /var/asterisk/etc/aste
 2726 22715 1234     R     1940   1%   1  43% top
 2567     1 1234     D    28076  12%   1   0% asterisk -C /var/asterisk/etc/aste
 2598  2569 1234     D    28076  12%   0   0% asterisk -C /var/asterisk/etc/aste
 2597  2569 1234     D    28076  12%   1   0% asterisk -C /var/asterisk/etc/aste
 2585  2569 1234     D    28076  12%   1   0% asterisk -C /var/asterisk/etc/aste
 2619  2569 1234     D    28076  12%   1   0% asterisk -C /var/asterisk/etc/aste
 2584  2569 1234     D    28076  12%   1   0% asterisk -C /var/asterisk/etc/aste
 2590  2569 1234     D    28076  12%   1   0% asterisk -C /var/asterisk/etc/aste
 2626  2569 1234     D    28076  12%   1   0% asterisk -C /var/asterisk/etc/aste
 2569  2567 1234     D    28076  12%   1   0% asterisk -C /var/asterisk/etc/aste
 3089  2569 1234     D    28076  12%   0   0% asterisk -C /var/asterisk/etc/aste
 2853  2569 1234     D    28076  12%   0   0% asterisk -C /var/asterisk/etc/aste
 2869  2569 1234     D    28076  12%   1   0% asterisk -C /var/asterisk/etc/aste
 3045  2569 1234     D    28076  12%   1   0% asterisk -C /var/asterisk/etc/aste
 2899  2569 1234     D    28076  12%   0   0% asterisk -C /var/asterisk/etc/aste
 3060  2569 1234     D    28076  12%   0   0% asterisk -C /var/asterisk/etc/aste
 3074  2569 1234     D    28076  12%   0   0% asterisk -C /var/asterisk/etc/aste
 2994  2569 1234     D    28076  12%   1   0% asterisk -C /var/asterisk/etc/aste
 2599  2569 1234     D    28076  12%   1   0% asterisk -C /var/asterisk/etc/aste

Your backtrace is not really useful. I’d suggest ensuring you are building using the recommended build options[1] so that they are useful. I’d also suggest using the latest version of Asterisk, and describing exactly what environment your system is as it seems to be quite busy/overloaded.

[1] https://wiki.asterisk.org/wiki/display/AST/Getting+a+Backtrace