[asterisk-bugs] [Asterisk 0017331]: [patch] segfault on logging

Asterisk Bug Tracker noreply at bugs.digium.com
Thu May 13 09:28:46 CDT 2010


The following issue is now READY FOR TESTING. 
====================================================================== 
https://issues.asterisk.org/view.php?id=17331 
====================================================================== 
Reported By:                under
Assigned To:                
====================================================================== 
Project:                    Asterisk
Issue ID:                   17331
Category:                   General
Reproducibility:            sometimes
Severity:                   minor
Priority:                   normal
Status:                     ready for testing
Asterisk Version:           1.6.0.26 
JIRA:                        
Regression:                 No 
Reviewboard Link:            
SVN Branch (only for SVN checkouts, not tarball releases): N/A 
SVN Revision (number only!):  
Request Review:              
====================================================================== 
Date Submitted:             2010-05-13 07:53 CDT
Last Modified:              2010-05-13 09:28 CDT
====================================================================== 
Summary:                    [patch] segfault on logging
Description: 
(gdb) bt                                                                   
                                                                           
                                                                           
                                                   
https://issues.asterisk.org/view.php?id=0  0x081700ec in __ast_str_helper
(buf=0xbf34da80, max_len=1024,
append=0, fmt=0x81c1938 "%s", ap=0xbf34dab4
"]#))èÚ4¿ë»\026\b\177\n<--- SIP read from %s://%s:%d --->\n%s\n<", '-'
<repeats 13 times>, ">\n")                                                 
                      
    at asterisk/main/utils.c:1685                                         
                                                                           
                                                                           
                                                    
https://issues.asterisk.org/view.php?id=1  0x08101982 in ast_log (level=5,
file=0x81c1500
"asterisk/main/logger.c", line=1156, function=0x81c2b09 "ast_verbose",
fmt=0x81c1938 "%s")                                                        
                                                                           
     
    at asterisk/main/logger.c:1043                                        
                                                                           
                                                                           
                                                    
https://issues.asterisk.org/view.php?id=2  0x08101e63 in ast_verbose
(fmt=0xbf34dac0 "\177\n<--- SIP read from
%s://%s:%d --->\n%s\n<", '-' <repeats 13 times>, ">\n") at
asterisk/main/logger.c:1156                                                
                                                                        
https://issues.asterisk.org/view.php?id=3  0x2b35f623 in handle_request_do
(req=0xbf34dc78, sin=0xbf34dc68) at
asterisk/channels/chan_sip.c:20011                                         
                                                                           
                                                       
https://issues.asterisk.org/view.php?id=4  0x2b35f52a in sipsock_read
(id=0x29225328, fd=11, events=1,
ignore=0x0) at asterisk/channels/chan_sip.c:19994                          
                                                                           
                                                               
https://issues.asterisk.org/view.php?id=5  0x080f670d in ast_io_wait
(ioc=0x2b2567a8, howlong=794) at
asterisk/main/io.c:288                                                     
                                                                           
                                                                
https://issues.asterisk.org/view.php?id=6  0x2b361272 in do_monitor (data=0x0)
at
asterisk/channels/chan_sip.c:20493                                         
                                                                           
                                                                           
        
https://issues.asterisk.org/view.php?id=7  0x0816da02 in dummy_start
(data=0x2b263c28) at
asterisk/main/utils.c:861                                                  
                                                                           
                                                                           

https://issues.asterisk.org/view.php?id=8  0x2821b73f in pthread_getprio () from
/lib/libthr.so.3                
                                                                           
                                                                           
                                                    
https://issues.asterisk.org/view.php?id=9  0x00000000 in ?? ()                  
                                
                                                                           
                                                                           
                                                    
(gdb) fr 0                                                                
                                                                           
                                                                           
                                                    
https://issues.asterisk.org/view.php?id=0  0x081700ec in __ast_str_helper
(buf=0xbf34da80, max_len=1024,
append=0, fmt=0x81c1938 "%s", ap=0xbf34dab4
"]#))èÚ4¿ë»\026\b\177\n<--- SIP read from %s://%s:%d --->\n%s\n<", '-'
<repeats 13 times>, ">\n")                                                 
                      
    at asterisk/main/utils.c:1685                                         
                                                                           
                                                                           
                                                    
1685    in asterisk/main/utils.c                                          
                                                                           
                                                                           
                                                    
(gdb) p buf                                                               
                                                                           
                                                                           
                                                    
$1 = (struct ast_str **) 0xbf34da80                                       
                                                                           
                                                                           
                                                    
(gdb) p *buf                                                              
                                                                           
                                                                           
                                                    
$2 = (struct ast_str *) 0x0
====================================================================== 

Issue History 
Date Modified    Username       Field                    Change               
====================================================================== 
2010-05-13 09:28 lmadsen        Status                   new => ready for
testing
======================================================================




More information about the asterisk-bugs mailing list