[asterisk-bugs] [JIRA] (ASTERISK-20994) AMI command reception after app_confbridge.so unload results in crash

Walter Doekes (JIRA) noreply at issues.asterisk.org
Mon Feb 25 06:30:19 CST 2013


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

Walter Doekes commented on ASTERISK-20994:
------------------------------------------

@matt: Deleting the .so while loaded is safe. In fact, it is better than not doing it.

If you copy a new .so on top of the old one, strange things happen.
If you delete the old one first, the kernel still keeps the old copy around until all fd's to it are closed. This is what the installer does on make install.
                
> AMI command reception after app_confbridge.so unload results in crash
> ---------------------------------------------------------------------
>
>                 Key: ASTERISK-20994
>                 URL: https://issues.asterisk.org/jira/browse/ASTERISK-20994
>             Project: Asterisk
>          Issue Type: Bug
>      Security Level: None
>          Components: Applications/app_confbridge, General
>    Affects Versions: 11.2.1
>         Environment: debian 6.0.6
>            Reporter: Jeremy Kister
>            Assignee: Rusty Newton
>            Severity: Critical
>         Attachments: backtrace.txt, jira_asterisk_20994_v11.patch, module-unload-backtrace.txt, module-unload-console-debug.txt, module-unload-network.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