[asterisk-bugs] [JIRA] (ASTERISK-17386) [patch] res_config_ldap with malloc_debug produces munmap_chunk(): invalid pointer:
Matt Jordan (JIRA)
noreply at issues.asterisk.org
Tue Mar 12 17:30:01 CDT 2013
[ https://issues.asterisk.org/jira/browse/ASTERISK-17386?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=204151#comment-204151 ]
Matt Jordan commented on ASTERISK-17386:
----------------------------------------
So, looking at recent 1.8, the original patch is a bit out of date:
* Some of the *_calloc based calls have been replaced with string dups
* There are some additional *_realloc based calls later on
The attached patch I think gets all of the various memory allocations, such that the later deallocations via the LDAP library should succeed with MALLOC_DEBUG enabled.
Andrew - since you run with LDAP, can you confirm that this works?
> [patch] res_config_ldap with malloc_debug produces munmap_chunk(): invalid pointer:
> -----------------------------------------------------------------------------------
>
> Key: ASTERISK-17386
> URL: https://issues.asterisk.org/jira/browse/ASTERISK-17386
> Project: Asterisk
> Issue Type: Bug
> Components: Resources/res_config_ldap
> Affects Versions: 1.8.2
> Reporter: John Covert
> Assignee: Matt Jordan
> Severity: Critical
> Attachments: ASTERISK-17386-1.8.diff, backtrace.txt, issue18789-1.8-r316873.patch
>
>
> 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.
--
This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators: https://issues.asterisk.org/jira/secure/ContactAdministrators!default.jspa
For more information on JIRA, see: http://www.atlassian.com/software/jira
More information about the asterisk-bugs
mailing list