[asterisk-bugs] [JIRA] (ASTERISK-30481) Asterisk stops responding after 2 calls with dialplan CURL
Sebastian Gutierrez (JIRA)
noreply at issues.asterisk.org
Thu Mar 30 13:18:03 CDT 2023
[ https://issues.asterisk.org/jira/browse/ASTERISK-30481?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=261669#comment-261669 ]
Sebastian Gutierrez edited comment on ASTERISK-30481 at 3/30/23 1:17 PM:
-------------------------------------------------------------------------
the core dumper gets stuck but I can show you the held locks, seems an issue with console (Im testing using console dial from CLI)
{code:none}
ucontactx*CLI> core show locks
=======================================================================
=== 20.2.0
=== Currently Held Locks
=======================================================================
===
=== <pending> <lock#> (<file>): <lock type> <line num> <function> <lock name> <lock addr> (times locked)
===
=== Thread ID: 0xffff5d9750a0 LWP:173335 (netconsole started at [ 1569] asterisk.c listener())
=== ---> Waiting for Lock #0 (chan_console.c): MUTEX 865 cli_console_dial pvt 0xaaaacef700c0 (1)
asterisk __ast_pthread_mutex_lock()
asterisk __ao2_lock()
[0xffffa0624afc] chan_console.so chan_console.c:866 cli_console_dial()
asterisk ast_cli_command_full()
asterisk ast_cli_command_multiple_full()
asterisk <unknown>()
asterisk <unknown>()
[0xffffa40dd5c8] libc.so.6 pthread_create.c:442 start_thread()
[0xffffa4145d1c] libc.so.6 clone.S:82 thread_start()
=== --- ---> Locked Here: chan_console.c line 281 (stream_monitor)
=== -------------------------------------------------------------------
===
=== Thread ID: 0xffff5d8e90a0 LWP:173336 (pbx_thread started at [ 4727] pbx.c ast_pbx_start())
=== ---> Lock #0 (channel.c): MUTEX 2576 ast_hangup chan 0xffff64008b00 (1)
asterisk __ast_pthread_mutex_lock()
asterisk __ao2_lock()
asterisk ast_hangup()
asterisk <unknown>()
asterisk <unknown>()
asterisk <unknown>()
[0xffffa40dd5c8] libc.so.6 pthread_create.c:442 start_thread()
[0xffffa4145d1c] libc.so.6 clone.S:82 thread_start()
=== ---> Waiting for Lock #1 (chan_console.c): MUTEX 410 stop_stream pvt 0xaaaacef700c0 (1)
asterisk __ast_pthread_mutex_lock()
asterisk __ao2_lock()
[0xffffa0624afc] chan_console.so chan_console.c:866 cli_console_dial()
asterisk ast_cli_command_full()
asterisk ast_cli_command_multiple_full()
asterisk <unknown>()
asterisk <unknown>()
[0xffffa40dd5c8] libc.so.6 pthread_create.c:442 start_thread()
[0xffffa4145d1c] libc.so.6 clone.S:82 thread_start()
=== --- ---> Locked Here: chan_console.c line 281 (stream_monitor)
=== -------------------------------------------------------------------
===
=======================================================================
{code}
was (Author: sum):
the core dumper gets stuck but I can show you the held locks, seems an issue with console
{code:none}
ucontactx*CLI> core show locks
=======================================================================
=== 20.2.0
=== Currently Held Locks
=======================================================================
===
=== <pending> <lock#> (<file>): <lock type> <line num> <function> <lock name> <lock addr> (times locked)
===
=== Thread ID: 0xffff5d9750a0 LWP:173335 (netconsole started at [ 1569] asterisk.c listener())
=== ---> Waiting for Lock #0 (chan_console.c): MUTEX 865 cli_console_dial pvt 0xaaaacef700c0 (1)
asterisk __ast_pthread_mutex_lock()
asterisk __ao2_lock()
[0xffffa0624afc] chan_console.so chan_console.c:866 cli_console_dial()
asterisk ast_cli_command_full()
asterisk ast_cli_command_multiple_full()
asterisk <unknown>()
asterisk <unknown>()
[0xffffa40dd5c8] libc.so.6 pthread_create.c:442 start_thread()
[0xffffa4145d1c] libc.so.6 clone.S:82 thread_start()
=== --- ---> Locked Here: chan_console.c line 281 (stream_monitor)
=== -------------------------------------------------------------------
===
=== Thread ID: 0xffff5d8e90a0 LWP:173336 (pbx_thread started at [ 4727] pbx.c ast_pbx_start())
=== ---> Lock #0 (channel.c): MUTEX 2576 ast_hangup chan 0xffff64008b00 (1)
asterisk __ast_pthread_mutex_lock()
asterisk __ao2_lock()
asterisk ast_hangup()
asterisk <unknown>()
asterisk <unknown>()
asterisk <unknown>()
[0xffffa40dd5c8] libc.so.6 pthread_create.c:442 start_thread()
[0xffffa4145d1c] libc.so.6 clone.S:82 thread_start()
=== ---> Waiting for Lock #1 (chan_console.c): MUTEX 410 stop_stream pvt 0xaaaacef700c0 (1)
asterisk __ast_pthread_mutex_lock()
asterisk __ao2_lock()
[0xffffa0624afc] chan_console.so chan_console.c:866 cli_console_dial()
asterisk ast_cli_command_full()
asterisk ast_cli_command_multiple_full()
asterisk <unknown>()
asterisk <unknown>()
[0xffffa40dd5c8] libc.so.6 pthread_create.c:442 start_thread()
[0xffffa4145d1c] libc.so.6 clone.S:82 thread_start()
=== --- ---> Locked Here: chan_console.c line 281 (stream_monitor)
=== -------------------------------------------------------------------
===
=======================================================================
{code}
> Asterisk stops responding after 2 calls with dialplan CURL
> ----------------------------------------------------------
>
> Key: ASTERISK-30481
> URL: https://issues.asterisk.org/jira/browse/ASTERISK-30481
> Project: Asterisk
> Issue Type: Bug
> Security Level: None
> Components: Functions/func_curl
> Affects Versions: 20.2.0
> Environment: Ubuntu 22 - 5.15.0-69-generic
> Reporter: Sebastian Gutierrez
> Assignee: Unassigned
> Severity: Major
>
> Asterisk from scratch no modifications after the 2 call to this basic dialplan asterisk gets unresponsive
> {code:none}
> [test]
> exten=> 1,1,Answer()
> exten=> 1,2,Set(result=${CURL(https://dummyjson.com/products)})
> exten=> 1,3,NoOp(${result})
> {code}
--
This message was sent by Atlassian JIRA
(v6.2#6252)
More information about the asterisk-bugs
mailing list