[asterisk-bugs] [JIRA] (ASTERISK-20994) asterisk crash on module change
Matt Jordan (JIRA)
noreply at issues.asterisk.org
Mon Jan 28 13:12:58 CST 2013
[ https://issues.asterisk.org/jira/browse/ASTERISK-20994?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=202320#comment-202320 ]
Matt Jordan commented on ASTERISK-20994:
----------------------------------------
There haven't been any changes in module loading/unloading. Deleting shared object libraries when something still has it loaded into memory just strikes me as unsafe in any situation, so I'm a little surprised that it worked just fine in the past.
What's interesting about this is that it crashed when executing 'logger mute silent'. I'm curious, if you do unload app_confbridge first (asterisk -rx "module unload app_confbridge.so") and then do the rm/cp, does it still crash?
{quote}
#0 0x00008816 in ?? ()
(gdb) bt
#0 0x00008816 in ?? ()
#1 0x080d9372 in ast_cli_command_multiple_full (uid=0, gid=14, fd=19, size=19, s=0xb52c30b8 "logger mute silent") at cli.c:2583
#2 0x08085944 in netconsole (vconsole=0x824a840) at asterisk.c:1341
#3 0x081b6405 in dummy_start (data=0xb54f5188) at utils.c:1028
#4 0xb724d955 in start_thread () from /lib/i686/cmov/libpthread.so.0
#5 0xb768b1de in clone () from /lib/i686/cmov/libc.so.6
{quote}
> asterisk crash on module change
> -------------------------------
>
> Key: ASTERISK-20994
> URL: https://issues.asterisk.org/jira/browse/ASTERISK-20994
> Project: Asterisk
> Issue Type: Bug
> Security Level: None
> Components: General
> Affects Versions: 11.2.1
> Environment: debian 6.0.6
> Reporter: Jeremy Kister
> Severity: Critical
> Attachments: backtrace.txt
>
>
> # asterisk is running and happy... then:
> {code}
> pbx1> cd /usr/local/src/asterisk/asterisk-11.2.1
> pbx1> rm apps/app_confbridge.so
> pbx1> make
> make[1]: Entering directory `/usr/local/src/asterisk/asterisk-11.2.1'
> [LD] app_confbridge.o confbridge/conf_config_parser.o confbridge/conf_state.o confbridge/conf_state_empty.o confbridge/conf_state_inactive.o confbridge/conf_state_multi.o confbridge/conf_state_multi_marked.o confbridge/conf_state_single.o confbridge/conf_state_single_marked.o -> app_confbridge.so
> make[1]: Leaving directory `/usr/local/src/asterisk/asterisk-11.2.1'
> +--------- Asterisk Build Complete ---------+
> + Asterisk has successfully been built, and +
> + can be installed by running: +
> + +
> + make install +
> +-------------------------------------------+
> pbx1> cp apps/app_confbridge.so /usr/lib/asterisk/modules/
> pbx1> ls /tmp/core*
> ls: cannot access /tmp/core*: No such file or directory
> pbx1> asterisk -r
> Asterisk 11.2.1, Copyright (C) 1999 - 2012 Digium, Inc. and others.
> Created by Mark Spencer <markster at digium.com>
> 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.
> =========================================================================
> Connected to Asterisk 11.2.1 currently running on pbx1 (pid = 16898)
> pbx1*CLI>
> Disconnected from Asterisk server
> Asterisk cleanly ending (0).
> Executing last minute cleanups
> pbx1> ls /tmp/core*
> core.pbx1.example.net-2013-01-27T13:15:04-0500
> pbx1>
> {code}
--
This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators
For more information on JIRA, see: http://www.atlassian.com/software/jira
More information about the asterisk-bugs
mailing list