[asterisk-bugs] [JIRA] (ASTERISK-30420) res_speech_aeap: Crash due to NULL format on setup when message times out

Peter Howell (JIRA) noreply at issues.asterisk.org
Thu Feb 9 07:07:03 CST 2023


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

Peter Howell commented on ASTERISK-30420:
-----------------------------------------

2023-02-08T10:33:03.556682-07:00 v004 tcx-sayit[8255]: handle_asterisk_message: ASTERISK: REC> {"request":"setup","version":"0.1.0","codecs":[{"name":"ulaw"}],"params":{},"id":"250f2e54-468f-480c-a474-090c9e9111df"}
2023-02-08T10:33:03.556934-07:00 v004 tcx-sayit[8255]: handle_asterisk_message: ASTERISK: SND> {"response":"setup","id":"250f2e54-468f-480c-a474-090c9e9111df","codecs":[{"name":"ulaw"}]}

In this example, the response was sent 252us after receiving the setup message -- no error on sending the reply on the websocket.  However, what I'm now seeing is that this timeout message must have been related to a prior connection, because of this:

[2023-02-08 10:32:59.785] ERROR[30265] res_aeap/transaction.c: AEAP transaction (0x7fe8c8010fc0): message 'setup' timed out
[2023-02-08 10:32:59.785] VERBOSE[8438][C-0000003b] pbx.c: Executing [17195559990 at dial-out:7] SpeechStart("IAX2/hwl-pbx-5767", "") in new stack
[2023-02-08 10:32:59.786] VERBOSE[8438][C-0000003b] pbx.c: Spawn extension (dial-out, 17195559990, 7) exited non-zero on 'IAX2/hwl-pbx-5767'
[2023-02-08 10:32:59.786] VERBOSE[8438][C-0000003b] chan_iax2.c: Hungup 'IAX2/hwl-pbx-5767'
[2023-02-08 10:33:05.394] Asterisk 18.14.0 built by root @ v003.nanp.teleconnx.com on a x86_64 running Linux on 2022-10-25 17:46:00 UTC

There were no messages coming from Asterisk at 10:33:03; only the restart at 10:33:05.

> res_speech_aeap: Crash due to NULL format on setup when message times out
> -------------------------------------------------------------------------
>
>                 Key: ASTERISK-30420
>                 URL: https://issues.asterisk.org/jira/browse/ASTERISK-30420
>             Project: Asterisk
>          Issue Type: Bug
>      Security Level: None
>          Components: Resources/NewFeature
>    Affects Versions: 18.14.0, 18.16.0
>         Environment: CentOS 7
>            Reporter: Peter Howell
>            Assignee: Peter Howell
>            Severity: Major
>         Attachments: core-asterisk-2023-02-08T05-54-45Z-brief.txt, core-asterisk-2023-02-08T05-54-45Z-full.txt, core-asterisk-2023-02-08T05-54-45Z-info.txt, core-asterisk-2023-02-08T05-54-45Z-locks.txt, core-asterisk-2023-02-08T05-54-45Z-thread1.txt
>
>
> This occurs randomly but fairly consistently -- 1 out of 20 times maybe.
> We receive from Asterisk:
> {"request":"setup","version":"0.1.0","codecs":[{"name":"ulaw"}],"params":{},"id":"211233a3-48de-4758-b46c-90b3701a3d06"}
> We reply successfully with:
> {"response":"setup","id":"211233a3-48de-4758-b46c-90b3701a3d06","codecs":[{"name":"ulaw"}]}
> Asterisk shows the following, and then SEGFAULTs:
> ERROR[19158] res_aeap/transaction.c: AEAP transaction (0x7f5f0800f8d0): message 'setup' timed out
> VERBOSE[8438][C-0000003b] pbx.c: Executing [17195559990 at dial-out:7] SpeechStart("IAX2/hwl-pbx-5767", "") in new stack
> VERBOSE[8438][C-0000003b] pbx.c: Spawn extension (dial-out, 17195559990, 7) exited non-zero on 'IAX2/hwl-pbx-5767'
> VERBOSE[8438][C-0000003b] chan_iax2.c: Hungup 'IAX2/hwl-pbx-5767'



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



More information about the asterisk-bugs mailing list