[asterisk-bugs] [Asterisk 0018789]: [patch] res_config_ldap with malloc_debug produces munmap_chunk(): invalid pointer:

Asterisk Bug Tracker noreply at bugs.digium.com
Wed May 4 16:15:01 CDT 2011


The following issue is now READY FOR TESTING. 
====================================================================== 
https://issues.asterisk.org/view.php?id=18789 
====================================================================== 
Reported By:                jcovert
Assigned To:                
====================================================================== 
Project:                    Asterisk
Issue ID:                   18789
Category:                   Resources/res_config_ldap
Reproducibility:            always
Severity:                   crash
Priority:                   normal
Status:                     ready for testing
Asterisk Version:           SVN 
JIRA:                       SWP-3119 
Regression:                 No 
Reviewboard Link:            
SVN Branch (only for SVN checkouts, not tarball releases): 1.8 
SVN Revision (number only!): 304866 
Request Review:              
====================================================================== 
Date Submitted:             2011-02-11 00:21 CST
Last Modified:              2011-05-04 16:15 CDT
====================================================================== 
Summary:                    [patch] res_config_ldap with malloc_debug produces
munmap_chunk(): invalid pointer:
Description: 
If malloc_debug is turned on, as soon as an ldap realtime peer attempts to
register, wham.

This occurs at the ldap_mods_free call at line 1338.

Problem occurs with or without the patch from issue 18435 (i.e. with
straight 1.8.2.3 or with SVN revision 304866 of res_config_ldap.c)

Runs "ok" without malloc_debug.

Backtrace attached.
====================================================================== 

---------------------------------------------------------------------- 
 (0134456) seanbright (manager) - 2011-05-04 16:15
 https://issues.asterisk.org/view.php?id=18789#c134456 
---------------------------------------------------------------------- 
The attached patch should fix the problem.  Can you test and report
results? 

Issue History 
Date Modified    Username       Field                    Change               
====================================================================== 
2011-05-04 16:15 seanbright     Note Added: 0134456                          
2011-05-04 16:15 seanbright     Status                   acknowledged => ready
for testing
======================================================================




More information about the asterisk-bugs mailing list