[asterisk-bugs] [Asterisk 0011840]: [patch] prevent a segfault when loading

noreply at bugs.digium.com noreply at bugs.digium.com
Fri Jan 25 08:47:55 CST 2008


A NOTE has been added to this issue. 
====================================================================== 
http://bugs.digium.com/view.php?id=11840 
====================================================================== 
Reported By:                junky
Assigned To:                putnopvut
====================================================================== 
Project:                    Asterisk
Issue ID:                   11840
Category:                   Applications/app_queue
Reproducibility:            always
Severity:                   crash
Priority:                   normal
Status:                     assigned
Asterisk Version:           SVN 
SVN Branch (only for SVN checkouts, not tarball releases): N/A 
SVN Revision (number only!): 666 
Disclaimer on File?:        N/A 
Request Review:              
====================================================================== 
Date Submitted:             01-24-2008 20:48 CST
Last Modified:              01-25-2008 08:47 CST
====================================================================== 
Summary:                    [patch] prevent a segfault when loading
Description: 
(gdb) bt
http://bugs.digium.com/view.php?id=0  add_to_interfaces (interface=0x0) at
/usr/src/asterisk-trunk/include/asterisk/strings.h:180
http://bugs.digium.com/view.php?id=1  0xb6e14a30 in add_to_queue
(queuename=<value optimized out>,
interface=0xb6e5e92c "SIP/10", membername=0xb6e5e937 "SIP/10", penalty=0,
paused=0, 
    dump=0, state_interface=0x0) at app_queue.c:3711
http://bugs.digium.com/view.php?id=2  0xb6e16083 in load_module () at
app_queue.c:3974
http://bugs.digium.com/view.php?id=3  0x080ce43c in load_resource
(resource_name=0x81fac7c "app_queue.so",
global_symbols_only=0) at loader.c:685
http://bugs.digium.com/view.php?id=4  0x080cf36c in ast_load_resource
(resource_name=0x81fac7c
"app_queue.so") at loader.c:717
http://bugs.digium.com/view.php?id=5  0x08094e6a in handle_load (e=0x818dd64,
cmd=-4, a=0xb6e61e8c) at
cli.c:160
http://bugs.digium.com/view.php?id=6  0x08093e1e in ast_cli_command (fd=20,
s=0xb6e61ed8 "module load
app_queue.so") at cli.c:1877
http://bugs.digium.com/view.php?id=7  0x080940a7 in ast_cli_command_multiple
(fd=20, size=25, s=0xb6e62128
"module load app_queue.so") at cli.c:1910
http://bugs.digium.com/view.php?id=8  0x08073337 in netconsole
(vconsole=0x81ac960) at asterisk.c:1006
http://bugs.digium.com/view.php?id=9  0x0812eefb in dummy_start (data=0x81f0508)
at utils.c:857
http://bugs.digium.com/view.php?id=10 0xb7e0b46b in start_thread () from
/lib/tls/i686/cmov/libpthread.so.0
http://bugs.digium.com/view.php?id=11 0xb7d136de in clone () from
/lib/tls/i686/cmov/libc.so.6
(gdb) 

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

---------------------------------------------------------------------- 
 putnopvut - 01-25-08 08:47  
---------------------------------------------------------------------- 
I see what the problem is, but I'm actually going to fix it differently. I
mistakenly made it so that add_to_interfaces could be attempting to add a
NULL pointer in a few places, so i'm going to replace that with a
guaranteed non-NULL value instead of printing that message. 

Issue History 
Date Modified   Username       Field                    Change               
====================================================================== 
01-25-08 08:47  putnopvut      Note Added: 0081175                          
======================================================================




More information about the asterisk-bugs mailing list