[asterisk-bugs] [JIRA] (ASTERISK-27006) app_queue: Crash when hanging up with realtime queues

Niklas Larsson (JIRA) noreply at issues.asterisk.org
Tue Jun 27 03:33:57 CDT 2017


    [ https://issues.asterisk.org/jira/browse/ASTERISK-27006?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=237551#comment-237551 ] 

Niklas Larsson commented on ASTERISK-27006:
-------------------------------------------

Hi, extension.conf is a bit intresting - lots of AGI and stuff. Basically I add some hangup-handlers and when they are called the segfault happens. 

Predial handler for agent: 
{noformat}
exten => agent_call,1,Noop()
 same => n,ExecIf($[${DEBUG_DUMPCHAN} = 1]?DumpChan())
 same => n,GotoIf($[${LEN(${NGPBX_QUEUE_PICKUP_INTERFACE})}]?pickup)
 same => n,ExecIf($[${LEN(${NGPBX_QUEUE_INTERFACE})}]?UserEvent(AgentCalled,u_Queue: ${NGPBX_QUEUE_NAME},u_Interface: ${NGPBX_QUEUE_INTERFACE}))
 same => n,Set(CHANNEL(hangup_handler_push)=queue-agent-hangup-handler,s,1)
 same => n,Return()
{noformat}
And queue-agent-hangup-handler:
{noformat}
[queue-agent-hangup-handler]
exten => s,1,Noop()
 same => n,ExecIf($[${DEBUG_DUMPCHAN} = 1]?DumpChan())
 same => n,ExecIf($[${LEN(${CDR(answer)})} = 0]?Return)
 same => n,Set(ANSWEREDTIME=$[${EPOCH} - ${STRPTIME(${CDR(start)},Europe/Stockholm,%Y-%m-%d %H:%M:%S)}])
 same => n,Set(DIALEDTIME=$[${EPOCH} - ${STRPTIME(${CDR(answer)},Europe/Stockholm,%Y-%m-%d %H:%M:%S)}])
 same => n,UserEvent(Cdr,u_start: ${CDR(start)})
 same => n,Return()
{noformat}

The pjsip stuff is also using realtime

And the crash only happens at hangup - always at the same spot.

Since this didn't happen before - I could start trying to find which commit that caused this - do you have any idea where I should start looking? (13.14 did not have this issue)

> app_queue: Crash when hanging up with realtime queues
> -----------------------------------------------------
>
>                 Key: ASTERISK-27006
>                 URL: https://issues.asterisk.org/jira/browse/ASTERISK-27006
>             Project: Asterisk
>          Issue Type: Bug
>      Security Level: None
>          Components: Applications/app_queue
>    Affects Versions: 13.15.0
>         Environment: Debian 8, Asterisk 13
>            Reporter: Niklas Larsson
>            Assignee: Benjamin Keith Ford
>         Attachments: backtrace_core.uc02.nguc.weblink.se-2017-05-17T08-02-12+0200.txt, backtrace_core.uc02.nguc.weblink.se-2017-05-17T13-38-19+0200.txt, backtrace_core.uc02.nguc.weblink.se-2017-05-23T13-31-52+0200.txt, backtrace_core.uc02.nguc.weblink.se-2017-05-26T09-10-53+0200.txt, backtrace_core.uc02.nguc.weblink.se-2017-05-30T16-04-54+0200.txt, C-00000345.txt, log.txt, queue_4.txt
>
>
> Segfault in at hangup:
> [2017-05-17 08:02:12] VERBOSE[12389][C-000003ea] bridge_channel.c: Channel PJSIP/ngcore-00000cd3 left 'simple_bridge' basic-bridge <098609d0-4ae7-47e3-980b-06a3b24f3014>
> Happens around ones a day.
> Running asterisk 13 branch, commit ddbc68b (Thu May 11 10:49:04 2017)



--
This message was sent by Atlassian JIRA
(v6.2#6252)



More information about the asterisk-bugs mailing list