root@freebsd:/usr/local/src/asterisk-21.5.0-rc2 # valgrind asterisk -gc
==95599== Memcheck, a memory error detector
==95599== Copyright (C) 2002-2024, and GNU GPL'd, by Julian Seward et al.
==95599== Using Valgrind-3.23.0 and LibVEX; rerun with -h for copyright info
==95599== Command: asterisk -gc
==95599==
Unable to open specified master config file '/usr/local/etc/asterisk/asterisk.conf', using built-in defaults
Asterisk 21.5.0-rc2, Copyright (C) 1999 - 2022, Sangoma Technologies Corporation and others.
Created by Mark Spencer <[email protected]>
Asterisk comes with ABSOLUTELY NO WARRANTY; type 'core show warranty' for details.
This is free software, with components licensed under the GNU General Public
License version 2 and other licenses; you are welcome to redistribute it under
certain conditions. Type 'core show license' for details.
=========================================================================
==95599== Conditional jump or move depends on uninitialised value(s)
==95599== at 0x52F64D: __ast_pthread_mutex_init (in /usr/local/sbin/asterisk)
==95599== by 0x61A0DD: xmldoc_build_list_responses (in /usr/local/sbin/asterisk)
==95599== by 0x61A380: ast_xmldoc_build_list_responses (in /usr/local/sbin/asterisk)
==95599== by 0x6804B0: ast_manager_register2 (in /usr/local/sbin/asterisk)
==95599== by 0x4F2112: astdb_init (in /usr/local/sbin/asterisk)
==95599== by 0x4669D5: asterisk_daemon (in /usr/local/sbin/asterisk)
==95599== by 0x46647C: main (in /usr/local/sbin/asterisk)
==95599==
xmldoc.c line 2447 (xmldoc_build_list_responses): NOTICE: mutex '&(&root)->lock' is already initialized.
xmldoc.c line 2447 (xmldoc_build_list_responses): NOTICE: mutex '&(&root)->lock' is already initialized.
xmldoc.c line 2447 (xmldoc_build_list_responses): NOTICE: mutex '&(&root)->lock' is already initialized.
xmldoc.c line 2447 (xmldoc_build_list_responses): NOTICE: mutex '&(&root)->lock' is already initialized.
xmldoc.c line 2447 (xmldoc_build_list_responses): NOTICE: mutex '&(&root)->lock' is already initialized.
PBX UUID: fbbdfd21-b32f-4e12-9931-eb720700f50d
==95599== Conditional jump or move depends on uninitialised value(s)
==95599== at 0x52F64D: __ast_pthread_mutex_init (in /usr/local/sbin/asterisk)
==95599== by 0x61B054: ast_xmldoc_build_documentation (in /usr/local/sbin/asterisk)
==95599== by 0x4E52A4: aco_init (in /usr/local/sbin/asterisk)
==95599== by 0x466ACF: asterisk_daemon (in /usr/local/sbin/asterisk)
==95599== by 0x46647C: main (in /usr/local/sbin/asterisk)
==95599==
xmldoc.c line 2750 (ast_xmldoc_build_documentation): NOTICE: mutex '&(&root)->lock' is already initialized.
xmldoc.c line 2750 (ast_xmldoc_build_documentation): NOTICE: mutex '&(&root)->lock' is already initialized.
xmldoc.c line 2750 (ast_xmldoc_build_documentation): NOTICE: mutex '&(&root)->lock' is already initialized.
xmldoc.c line 2750 (ast_xmldoc_build_documentation): NOTICE: mutex '&(&root)->lock' is already initialized.
xmldoc.c line 2750 (ast_xmldoc_build_documentation): NOTICE: mutex '&(&root)->lock' is already initialized.
xmldoc.c line 2750 (ast_xmldoc_build_documentation): NOTICE: mutex '&(&root)->lock' is already initialized.
xmldoc.c line 2750 (ast_xmldoc_build_documentation): NOTICE: mutex '&(&root)->lock' is already initialized.
xmldoc.c line 2750 (ast_xmldoc_build_documentation): NOTICE: mutex '&(&root)->lock' is already initialized.
xmldoc.c line 2750 (ast_xmldoc_build_documentation): NOTICE: mutex '&(&root)->lock' is already initialized.
xmldoc.c line 2750 (ast_xmldoc_build_documentation): NOTICE: mutex '&(&root)->lock' is already initialized.
xmldoc.c line 2750 (ast_xmldoc_build_documentation): NOTICE: mutex '&(&root)->lock' is already initialized.
xmldoc.c line 2750 (ast_xmldoc_build_documentation): NOTICE: mutex '&(&root)->lock' is already initialized.
xmldoc.c line 2750 (ast_xmldoc_build_documentation): NOTICE: mutex '&(&root)->lock' is already initialized.
xmldoc.c line 2750 (ast_xmldoc_build_documentation): NOTICE: mutex '&(&root)->lock' is already initialized.
xmldoc.c line 2750 (ast_xmldoc_build_documentation): NOTICE: mutex '&(&root)->lock' is already initialized.
xmldoc.c line 2750 (ast_xmldoc_build_documentation): NOTICE: mutex '&(&root)->lock' is already initialized.
xmldoc.c line 2750 (ast_xmldoc_build_documentation): NOTICE: mutex '&(&root)->lock' is already initialized.
xmldoc.c line 2750 (ast_xmldoc_build_documentation): NOTICE: mutex '&(&root)->lock' is already initialized.
xmldoc.c line 2750 (ast_xmldoc_build_documentation): NOTICE: mutex '&(&root)->lock' is already initialized.
xmldoc.c line 2750 (ast_xmldoc_build_documentation): NOTICE: mutex '&(&root)->lock' is already initialized.
xmldoc.c line 2750 (ast_xmldoc_build_documentation): NOTICE: mutex '&(&root)->lock' is already initialized.
xmldoc.c line 2750 (ast_xmldoc_build_documentation): NOTICE: mutex '&(&root)->lock' is already initialized.
xmldoc.c line 2750 (ast_xmldoc_build_documentation): NOTICE: mutex '&(&root)->lock' is already initialized.
xmldoc.c line 2750 (ast_xmldoc_build_documentation): NOTICE: mutex '&(&root)->lock' is already initialized.
xmldoc.c line 2750 (ast_xmldoc_build_documentation): NOTICE: mutex '&(&root)->lock' is already initialized.
xmldoc.c line 2750 (ast_xmldoc_build_documentation): NOTICE: mutex '&(&root)->lock' is already initialized.
xmldoc.c line 2750 (ast_xmldoc_build_documentation): NOTICE: mutex '&(&root)->lock' is already initialized.
xmldoc.c line 2750 (ast_xmldoc_build_documentation): NOTICE: mutex '&(&root)->lock' is already initialized.
xmldoc.c line 2750 (ast_xmldoc_build_documentation): NOTICE: mutex '&(&root)->lock' is already initialized.
xmldoc.c line 2750 (ast_xmldoc_build_documentation): NOTICE: mutex '&(&root)->lock' is already initialized.
xmldoc.c line 2750 (ast_xmldoc_build_documentation): NOTICE: mutex '&(&root)->lock' is already initialized.
xmldoc.c line 2750 (ast_xmldoc_build_documentation): NOTICE: mutex '&(&root)->lock' is already initialized.
xmldoc.c line 2750 (ast_xmldoc_build_documentation): NOTICE: mutex '&(&root)->lock' is already initialized.
xmldoc.c line 2750 (ast_xmldoc_build_documentation): NOTICE: mutex '&(&root)->lock' is already initialized.
xmldoc.c line 2750 (ast_xmldoc_build_documentation): NOTICE: mutex '&(&root)->lock' is already initialized.
xmldoc.c line 2750 (ast_xmldoc_build_documentation): NOTICE: mutex '&(&root)->lock' is already initialized.
xmldoc.c line 2750 (ast_xmldoc_build_documentation): NOTICE: mutex '&(&root)->lock' is already initialized.
xmldoc.c line 2750 (ast_xmldoc_build_documentation): NOTICE: mutex '&(&root)->lock' is already initialized.
xmldoc.c line 2750 (ast_xmldoc_build_documentation): NOTICE: mutex '&(&root)->lock' is already initialized.
Unable to load config file 'stasis.conf'
Could not load Stasis configuration; using defaults
logger.c line 2215 (init_logger): NOTICE: mutex '&logmsgs.lock' is already initialized.
logger.c line 2103 (logger_thread): Error obtaining mutex: Invalid argument
logger.c line 2109 (logger_thread): Error waiting on condition mutex 'Invalid argument'
logger.c line 2127 (logger_thread): Error releasing mutex: Invalid argument
logger.c line 2103 (logger_thread): Error obtaining mutex: Invalid argument
logger.c line 2109 (logger_thread): Error waiting on condition mutex 'Invalid argument'
logger.c line 2127 (logger_thread): Error releasing mutex: Invalid argument
logger.c line 2103 (logger_thread): Error obtaining mutex: Invalid argument
logger.c line 2109 (logger_thread): Error waiting on condition mutex 'Invalid argument'
....
logger.c line 2127 (logger_thread): Error releasing mutex: Invalid argument
logger.c line 2103 (logger_thread): Error obtaining mutex: Invalid argument
logger.c line 2109 (logger_thread): Error waiting on condition mutex 'Invalid argument'
logger.c line 2127 (logger_thread): Error releasing mutex: Invalid argument
logger.c line 2103 (logger_thread): Error obtaining mutex: Invalid argument
logger.c line 2109 (logger_thread): Error waiting on condition mutex 'Invalid argument'
logger.c line 2127 (logger_thread): Error releasing mutex: Invalid argument
logger.c line 2103 (logger_thread): Error obtaining mutex: Invalid argument
logger.c line 2109 (logger_thread): Error waiting on condition mutex 'Invalid argument'
logger.c line 2127 (logger_thread): Error releasing mutex: Invalid argument
logger.c line 2103 (logger_thread): Error obtaining mutex: Invalid argument
logger.c line 2109 (logger_thread): Error waiting on condition mutex 'Invalid argument'
logger.c line 2413 (ast_log_full): Error obtaining mutex: Invalid argument
logger.c line 2426 (ast_log_full): Error releasing mutex: Invalid argument
logger.c line 2437 (ast_log_full): Error obtaining mutex: Invalid argument
logger.c line 2446 (ast_log_full): Error releasing mutex: Invalid argument
logger.c line 2127 (logger_thread): Error releasing mutex: Invalid argument
logger.c line 2103 (logger_thread): Error obtaining mutex: Invalid argument
logger.c line 2127 (logger_thread): Error releasing mutex: Invalid argument
[Sep 29 10:34:58] ERROR[100203]: logger.c:2237 init_logger: Errors detected in logger.conf. Default console logging is being used.
WARNING: Freeing unregistered memory 0xa3a6cc0 by ../src/pj/guid_bsd.c pj_generate_unique_string() line 47
logger.c line 2103 (logger_thread): Error obtaining mutex: Invalid argument
logger.c line 2109 (logger_thread): Error waiting on condition mutex 'Invalid argument'
logger.c line 2127 (logger_thread): Error releasing mutex: Invalid argument
logger.c line 2103 (logger_thread): Error obtaining mutex: Invalid argument
logger.c line 2109 (logger_thread): Error waiting on condition mutex 'Invalid argument'
logger.c line 2127 (logger_thread): Error releasing mutex: Invalid argument
logger.c line 2103 (logger_thread): Error obtaining mutex: Invalid argument
logger.c line 2109 (logger_thread): Error waiting on condition mutex 'Invalid argument'
...
logger.c line 2109 (logger_thread): Error waiting on condition mutex 'Invalid argument'
logger.c line 2127 (logger_thread): Error releasing mutex: Invalid argument
logger.c line 2103 (logger_thread): Error obtaining mutex: Invalid argument
logger.c line 2109 (logger_thread): Error waiting on condition mutex 'Invalid argument'
logger.c line 2127 (logger_thread): Error releasing mutex: Invalid argument
logger.c line 2103 (logger_thread): Error obtaining mutex: Invalid argument
logger.c line 2109 (logger_thread): Error waiting on condition mutex 'Invalid argument'
logger.c line 2127 (logger_thread): Error releasing mutex: Invalid argument
logger.c line 2103 (logger_thread): Error obtaining mutex: Invalid argument
logger.c line 2109 (logger_thread): Error waiting on condition mutex 'Invalid argument'
logger.c line 2127 (logger_thread): Error releasing mutex: Invalid argument
logger.c line 2103 (logger_thread): Error obtaining mutex: Invalid argument
logger.c line 2109 (logger_thread): Error waiting on condition mutex 'Invalid argument'
logger.c line 2127 (logger_thread): Error releasing mutex: Invalid argument
logger.c line 2103 (logger_thread): Error obtaining mutex: Invalid argument
==95599==
==95599== Process terminating with default action of signal 6 (SIGABRT): dumping core
==95599== at 0x583886A: thr_kill (in /lib/libc.so.7)
==95599== by 0x57B0F53: raise (in /lib/libc.so.7)
==95599== by 0x5861FC8: abort (in /lib/libc.so.7)
==95599== by 0x61271A: ast_do_crash (in /usr/local/sbin/asterisk)
==95599== by 0x469D48: my_do_crash (in /usr/local/sbin/asterisk)
==95599== by 0x46A6DD: __ast_free (in /usr/local/sbin/asterisk)
==95599== by 0x49DBB64: pj_generate_unique_string (guid_bsd.c:47)
==95599== by 0x49D8EE0: pj_init (os_core_unix.c:214)
==95599== by 0x48ADCA8: ast_pj_init (libasteriskpj.c:49)
==95599== by 0x466D0A: asterisk_daemon (in /usr/local/sbin/asterisk)
==95599== by 0x46647C: main (in /usr/local/sbin/asterisk)
root@freebsd:/usr/local/src/asterisk-21.5.0-rc2 # asterisk -gc
Unable to open specified master config file '/usr/local/etc/asterisk/asterisk.conf', using built-in defaults
Asterisk 21.5.0-rc2, Copyright (C) 1999 - 2022, Sangoma Technologies Corporation and others.
Created by Mark Spencer <[email protected]>
Asterisk comes with ABSOLUTELY NO WARRANTY; type 'core show warranty' for details.
This is free software, with components licensed under the GNU General Public
License version 2 and other licenses; you are welcome to redistribute it under
certain conditions. Type 'core show license' for details.
=========================================================================
xmldoc.c line 2447 (xmldoc_build_list_responses): NOTICE: mutex '&(&root)->lock' is already initialized.
xmldoc.c line 2447 (xmldoc_build_list_responses): NOTICE: mutex '&(&root)->lock' is already initialized.
xmldoc.c line 2447 (xmldoc_build_list_responses): NOTICE: mutex '&(&root)->lock' is already initialized.
xmldoc.c line 2447 (xmldoc_build_list_responses): NOTICE: mutex '&(&root)->lock' is already initialized.
xmldoc.c line 2447 (xmldoc_build_list_responses): NOTICE: mutex '&(&root)->lock' is already initialized.
PBX UUID: fbbdfd21-b32f-4e12-9931-eb720700f50d
xmldoc.c line 2750 (ast_xmldoc_build_documentation): NOTICE: mutex '&(&root)->lock' is already initialized.
xmldoc.c line 2750 (ast_xmldoc_build_documentation): NOTICE: mutex '&(&root)->lock' is already initialized.
xmldoc.c line 2750 (ast_xmldoc_build_documentation): NOTICE: mutex '&(&root)->lock' is already initialized.
xmldoc.c line 2750 (ast_xmldoc_build_documentation): NOTICE: mutex '&(&root)->lock' is already initialized.
xmldoc.c line 2750 (ast_xmldoc_build_documentation): NOTICE: mutex '&(&root)->lock' is already initialized.
xmldoc.c line 2750 (ast_xmldoc_build_documentation): NOTICE: mutex '&(&root)->lock' is already initialized.
xmldoc.c line 2750 (ast_xmldoc_build_documentation): NOTICE: mutex '&(&root)->lock' is already initialized.
xmldoc.c line 2750 (ast_xmldoc_build_documentation): NOTICE: mutex '&(&root)->lock' is already initialized.
xmldoc.c line 2750 (ast_xmldoc_build_documentation): NOTICE: mutex '&(&root)->lock' is already initialized.
xmldoc.c line 2750 (ast_xmldoc_build_documentation): NOTICE: mutex '&(&root)->lock' is already initialized.
xmldoc.c line 2750 (ast_xmldoc_build_documentation): NOTICE: mutex '&(&root)->lock' is already initialized.
xmldoc.c line 2750 (ast_xmldoc_build_documentation): NOTICE: mutex '&(&root)->lock' is already initialized.
xmldoc.c line 2750 (ast_xmldoc_build_documentation): NOTICE: mutex '&(&root)->lock' is already initialized.
xmldoc.c line 2750 (ast_xmldoc_build_documentation): NOTICE: mutex '&(&root)->lock' is already initialized.
xmldoc.c line 2750 (ast_xmldoc_build_documentation): NOTICE: mutex '&(&root)->lock' is already initialized.
xmldoc.c line 2750 (ast_xmldoc_build_documentation): NOTICE: mutex '&(&root)->lock' is already initialized.
xmldoc.c line 2750 (ast_xmldoc_build_documentation): NOTICE: mutex '&(&root)->lock' is already initialized.
xmldoc.c line 2750 (ast_xmldoc_build_documentation): NOTICE: mutex '&(&root)->lock' is already initialized.
xmldoc.c line 2750 (ast_xmldoc_build_documentation): NOTICE: mutex '&(&root)->lock' is already initialized.
xmldoc.c line 2750 (ast_xmldoc_build_documentation): NOTICE: mutex '&(&root)->lock' is already initialized.
xmldoc.c line 2750 (ast_xmldoc_build_documentation): NOTICE: mutex '&(&root)->lock' is already initialized.
xmldoc.c line 2750 (ast_xmldoc_build_documentation): NOTICE: mutex '&(&root)->lock' is already initialized.
xmldoc.c line 2750 (ast_xmldoc_build_documentation): NOTICE: mutex '&(&root)->lock' is already initialized.
xmldoc.c line 2750 (ast_xmldoc_build_documentation): NOTICE: mutex '&(&root)->lock' is already initialized.
xmldoc.c line 2750 (ast_xmldoc_build_documentation): NOTICE: mutex '&(&root)->lock' is already initialized.
xmldoc.c line 2750 (ast_xmldoc_build_documentation): NOTICE: mutex '&(&root)->lock' is already initialized.
xmldoc.c line 2750 (ast_xmldoc_build_documentation): NOTICE: mutex '&(&root)->lock' is already initialized.
xmldoc.c line 2750 (ast_xmldoc_build_documentation): NOTICE: mutex '&(&root)->lock' is already initialized.
xmldoc.c line 2750 (ast_xmldoc_build_documentation): NOTICE: mutex '&(&root)->lock' is already initialized.
xmldoc.c line 2750 (ast_xmldoc_build_documentation): NOTICE: mutex '&(&root)->lock' is already initialized.
xmldoc.c line 2750 (ast_xmldoc_build_documentation): NOTICE: mutex '&(&root)->lock' is already initialized.
xmldoc.c line 2750 (ast_xmldoc_build_documentation): NOTICE: mutex '&(&root)->lock' is already initialized.
xmldoc.c line 2750 (ast_xmldoc_build_documentation): NOTICE: mutex '&(&root)->lock' is already initialized.
xmldoc.c line 2750 (ast_xmldoc_build_documentation): NOTICE: mutex '&(&root)->lock' is already initialized.
xmldoc.c line 2750 (ast_xmldoc_build_documentation): NOTICE: mutex '&(&root)->lock' is already initialized.
xmldoc.c line 2750 (ast_xmldoc_build_documentation): NOTICE: mutex '&(&root)->lock' is already initialized.
xmldoc.c line 2750 (ast_xmldoc_build_documentation): NOTICE: mutex '&(&root)->lock' is already initialized.
xmldoc.c line 2750 (ast_xmldoc_build_documentation): NOTICE: mutex '&(&root)->lock' is already initialized.
xmldoc.c line 2750 (ast_xmldoc_build_documentation): NOTICE: mutex '&(&root)->lock' is already initialized.
Unable to load config file 'stasis.conf'
Could not load Stasis configuration; using defaults
logger.c line 2215 (init_logger): NOTICE: mutex '&logmsgs.lock' is already initialized.
logger.c line 2413 (ast_log_full): Error obtaining mutex: Invalid argument
logger.c line 2103 (logger_thread): Error obtaining mutex: Invalid argument
logger.c line 2426 (ast_log_full): Error releasing mutex: Invalid argument
logger.c line 2109 (logger_thread): Error waiting on condition mutex 'Invalid argument'
logger.c line 2437 (ast_log_full): Error obtaining mutex: Invalid argument
logger.c line 2127 (logger_thread): Error releasing mutex: Invalid argument
logger.c line 2446 (ast_log_full): Error releasing mutex: Invalid argument
logger.c line 2103 (logger_thread): Error obtaining mutex: Invalid argument
WARNING: Freeing unregistered memory 0x3971e218ed80 by ../src/pj/guid_bsd.c pj_generate_unique_string() line 47
logger.c line 2127 (logger_thread): Error releasing mutex: Invalid argument
[Sep 29 10:38:38] ERROR[100203]: logger.c:2237 init_logger: Errors detected in logger.conf. Default console logging is being used.
Abort trap (core dumped)
You must be