[asterisk-bugs] [Asterisk 0010219]: Segmentation fault at channel.c:3275

noreply at bugs.digium.com noreply at bugs.digium.com
Mon Aug 20 11:25:00 CDT 2007


The following issue has been RESOLVED. 
====================================================================== 
http://bugs.digium.com/view.php?id=10219 
====================================================================== 
Reported By:                rajeshcr
Assigned To:                qwell
====================================================================== 
Project:                    Asterisk
Issue ID:                   10219
Category:                   Core/Channels
Reproducibility:            random
Severity:                   crash
Priority:                   normal
Status:                     resolved
Asterisk Version:            1.2.14  
SVN Branch (only for SVN checkouts, not tarball releases): N/A  
SVN Revision (number only!):  
Disclaimer on File?:        No 
Request Review:              
Resolution:                 won't fix
Fixed in Version:           
====================================================================== 
Date Submitted:             07-17-2007 11:01 CDT
Last Modified:              08-20-2007 11:25 CDT
====================================================================== 
Summary:                    Segmentation fault at channel.c:3275
Description: 

Hello,

Sometimes asterisk while getting channel information from the cli results
in seg fault crash. So far it happened two times with a gap of nearly a
month.

Every minute i run the cli command "show channels" and fetch the total
number of active channels and calls for displaying purpose.

Occasionally asterisk crashes while getting this channel information. The
gdb output showed it happened at channel.c:3275

The function at this location of channel.c is ast_bridged_channel and the
line is,

        if (bridged && bridged->tech->bridged_channel)
                bridged = bridged->tech->bridged_channel(chan, bridged);

When i investigated the problem with gdb & asterisk's core dump during
first crash,

the bridged->tech was null (0x0) and while accessing
bridged->tech->bridged_channel got "Cannot access memory at address 0xb0"


In the second time crash (happened today),
bridged->tech was not null
(gdb) print bridged->tech
$15 = (const struct ast_channel_tech *) 0xa6b636174

But when tried to access bridged->tech->bridged_channel got similar error
message,
"Cannot access memory at address 0xa6b636224"


Can anyone help me in solving this problem?


Thanks in advance
-Rajesh.


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

---------------------------------------------------------------------- 
 qwell - 08-20-07 11:25  
---------------------------------------------------------------------- 
Since 1.2 is now in security maintenance mode, I'm going to close this
out.

Please reopen if you are able to reproduce on 1.4. 

Issue History 
Date Modified   Username       Field                    Change               
====================================================================== 
08-20-07 11:25  qwell          Status                   feedback => resolved
08-20-07 11:25  qwell          Resolution               open => won't fix   
08-20-07 11:25  qwell          Assigned To               => qwell           
08-20-07 11:25  qwell          Note Added: 0069099                          
======================================================================




More information about the asterisk-bugs mailing list