[asterisk-bugs] [Asterisk 0011953]: segfault on module reload chan_console.so

noreply at bugs.digium.com noreply at bugs.digium.com
Thu Feb 7 22:35:28 CST 2008


A NOTE has been added to this issue. 
====================================================================== 
http://bugs.digium.com/view.php?id=11953 
====================================================================== 
Reported By:                junky
Assigned To:                russell
====================================================================== 
Project:                    Asterisk
Issue ID:                   11953
Category:                   . I did not set the category correctly.
Reproducibility:            always
Severity:                   minor
Priority:                   normal
Status:                     assigned
Asterisk Version:           1.6.0-beta1 
SVN Branch (only for SVN checkouts, not tarball releases): N/A 
SVN Revision (number only!):  
Disclaimer on File?:        N/A 
Request Review:              
====================================================================== 
Date Submitted:             02-07-2008 22:17 CST
Last Modified:              02-07-2008 22:35 CST
====================================================================== 
Summary:                    segfault on module reload chan_console.so
Description: 
you need to not have the console.conf.

rabbit*CLI> load chan_console.so
The 'load' command is deprecated and will be removed in a future release.
Please use 'module load' instead.
[Feb  7 23:06:51] NOTICE[7802]: chan_console.c:1394 load_config: Unable to
open configuration file console.conf!
rabbit*CLI> 
rabbit*CLI> 
rabbit*CLI> 
rabbit*CLI> module reload chan_console.so

====================================================================== 

---------------------------------------------------------------------- 
 junky - 02-07-08 22:35  
---------------------------------------------------------------------- 
if you place that block:
        ast_mutex_lock(&globals_lock);
        set_pvt_defaults(&globals);
        ast_mutex_unlock(&globals_lock);

after the ast_config_load, no more crashes occurs.


based on valgrind:
==10313== Process terminating with default action of signal 11 (SIGSEGV)
==10313==  Access not within mapped region at address 0xE
==10313==    at 0x4F50F3F: ??? (chan_console.c:1233)
==10313==    by 0x4F51FBD: ??? (chan_console.c:1390)
==10313==    by 0x80CECFF: ast_module_reload (loader.c:603)
==10313==    by 0x8095A7D: handle_reload (cli.c:198)
==10313==    by 0x8094BCD: ast_cli_command (cli.c:1879)
==10313==    by 0x8077580: main (asterisk.c:1476)

which was referring to:
set_pvt_defaults(&globals); 

Issue History 
Date Modified   Username       Field                    Change               
====================================================================== 
02-07-08 22:35  junky          Note Added: 0081895                          
======================================================================




More information about the asterisk-bugs mailing list