[asterisk-bugs] [Asterisk 0012995]: res_config_ldap crashes consistently with "Illegal Instruction"

noreply at bugs.digium.com noreply at bugs.digium.com
Sat Jul 5 10:00:55 CDT 2008


A NOTE has been added to this issue. 
====================================================================== 
http://bugs.digium.com/view.php?id=12995 
====================================================================== 
Reported By:                flyn
Assigned To:                
====================================================================== 
Project:                    Asterisk
Issue ID:                   12995
Category:                   Resources/res_config_ldap
Reproducibility:            always
Severity:                   crash
Priority:                   normal
Status:                     new
Asterisk Version:           SVN 
SVN Branch (only for SVN checkouts, not tarball releases):  trunk 
SVN Revision (number only!):  
Disclaimer on File?:        N/A 
Request Review:              
====================================================================== 
Date Submitted:             07-04-2008 14:50 CDT
Last Modified:              07-05-2008 10:00 CDT
====================================================================== 
Summary:                    res_config_ldap crashes consistently with "Illegal
Instruction"
Description: 
The problem appeared after we fixed bug
http://bugs.digium.com/view.php?id=12572.

The res_config_ldap.so module consistently crashes with an illegal
instruction on the statement "if (strncasecmp("{md5}", valptr, 5) == 0)" I
have looked at this quite a bit, and have not yet been able to determine
what is causing this.

I've looked at this with both gdb and valgrind and can't figure out the
problem.

I have done some experimenting as documented below. The very odd behavior
seems to indicate there may be some type of memory corruption happening
elsewhere.
====================================================================== 

---------------------------------------------------------------------- 
 Corydon76 - 07-05-08 10:00  
---------------------------------------------------------------------- 
Please report this upstream to the GCC project.  As you correctly attested,
there is nothing wrong with the code, but your version of GCC is generating
invalid code. 

Issue History 
Date Modified   Username       Field                    Change               
====================================================================== 
07-05-08 10:00  Corydon76      Note Added: 0089769                          
======================================================================




More information about the asterisk-bugs mailing list