[bug]: Seg fault on CLI after PostgreSQL CDR module fails to load for a second time
chrsmj opened this issue · comments
Severity
Minor
Versions
20.8.0
Components/Modules
cdr_pgsql
Operating Environment
Debian 12
Frequency of Occurrence
Constant
Issue Description
Steps to reproduce:
- Make sure loading of cdr_pgsql is failing eg. mv /etc/asterisk/cdr_pgsql.conf /etc/asterisk/cdr_pgsql.conf.bkup
- On the Asterisk CLI, attempt to load the module ie. "module load cdr_pgsql.so"
- Assuming the module failed to load, try loading it again. You should see a cli.c WARNING about Command '(null)' already registered.
- Type the first part of a command on the CLI and press Tab key eg. "core" then Tab. boom
Relevant log output
[2024-05-16 12:55:37] NOTICE[6302] loader.c: Unloading module 'cdr_pgsql' that previously declined to load
[2024-05-16 12:55:37] WARNING[6302] cli.c: Command '(null)' already registered (the same ast_cli_entry)
[2024-05-16 12:55:37] WARNING[6302] cdr_pgsql.c: Unable to load config for PostgreSQL CDR's: cdr_pgsql.conf
Asterisk Issue Guidelines
- Yes, I have read the Asterisk Issue Guidelines