Try to catch a reason for segfault in app_queue.so

Hi

Sometimes a module app_queue.so crashes with an error. And I can not find a reason for this behavior. Possible, someone will be able to indicate what I’m doing wrong.

# dmesg -T | grep -P ‘segfault’
[Wed Nov 13 10:33:52 2019] asterisk[18466]: segfault at 10 ip 00007f21859aad9c sp 00007f21707aeb40 error 4 in app_queue.so[7f2185992000+35000]
[Wed Nov 20 15:13:52 2019] asterisk[310]: segfault at 10 ip 00007feff3540d9c sp 00007fefd19b7b40 error 4 in app_queue.so[7feff3528000+35000]
[Thu Nov 21 10:06:08 2019] asterisk[10940]: segfault at 10 ip 00007f9888f67d9c sp 00007f982f9a5b40 error 4 in app_queue.so[7f9888f4f000+35000]

next i’m get backtrace prom core dump

# gdb /usr/sbin/asterisk /tmp/core.AsterPBX.localdomain-2019-11-21T10:06:12+0300 > ~/core.AsterPBX.localdomain-2019-11-21T10-06-12.new
# gdb /usr/sbin/asterisk /tmp/core.AsterPBX.localdomain-2019-11-20T15:13:56+0300 > ~/core.AsterPBX.localdomain-2019-11-21T15-13-56.new
# gdb /usr/sbin/asterisk /tmp/core.AsterPBX.localdomain-2019-11-13T10:33:56+0300 > ~/core.AsterPBX.localdomain-2019-11-13T10-33-56.new

and get error function from backtrace files

# cat ~/core.AsterPBX.localdomain-2019-11-*new | grep -A 3 Program
Program terminated with signal 11, Segmentation fault.
#0 0x00007f21859aad9c in handle_hangup (userdata=userdata@entry=0x7f21400c5a60, sub=sub@entry=0x7f21401e1460, msg=msg@entry=0x7f224407b910) at app_queue.c:6235
6235 ast_queue_log(queue_data->queue->name, caller_snapshot->uniqueid, queue_data->member->membername,
(gdb) quit

Program terminated with signal 11, Segmentation fault.
#0 0x00007feff3540d9c in handle_hangup (userdata=userdata@entry=0x7ff07005dce0, sub=sub@entry=0x7ff0700d36b0, msg=msg@entry=0x7ff040154140) at app_queue.c:6235
6235 ast_queue_log(queue_data->queue->name, caller_snapshot->uniqueid, queue_data->member->membername,
(gdb) quit

Program terminated with signal 11, Segmentation fault.
#0 0x00007f9888f67d9c in handle_hangup (userdata=userdata@entry=0x7f98e00c00f0, sub=sub@entry=0x7f98e0018ec0, msg=msg@entry=0x7f98f805d340) at app_queue.c:6235
6235 ast_queue_log(queue_data->queue->name, caller_snapshot->uniqueid, queue_data->member->membername,
(gdb) quit

I understand that the problem is in the function “handle_hangup”, but what to do next I can not understand.

asterisk 13.19.1
CentOS Linux release 7.5.1804 (Core) 3.10.0-862.2.3.el7.x86_64
FreePBX framework 14.0.13.12

There is an Asterisk issue[1] already filed for this.

[1] https://issues.asterisk.org/jira/browse/ASTERISK-27006

This topic was automatically closed 7 days after the last reply. New replies are no longer allowed.