[asterisk-bugs] [Asterisk 0016397]: [patch] Segfault in res_config_ldap

Asterisk Bug Tracker noreply at bugs.digium.com
Tue Jan 12 11:14:40 CST 2010


A NOTE has been added to this issue. 
====================================================================== 
https://issues.asterisk.org/view.php?id=16397 
====================================================================== 
Reported By:                bklang
Assigned To:                seanbright
====================================================================== 
Project:                    Asterisk
Issue ID:                   16397
Category:                   Resources/res_config_ldap
Reproducibility:            random
Severity:                   crash
Priority:                   normal
Status:                     closed
Asterisk Version:           SVN 
JIRA:                        
Regression:                 No 
Reviewboard Link:            
SVN Branch (only for SVN checkouts, not tarball releases): 1.6.1 
SVN Revision (number only!): 233048 
Request Review:              
Resolution:                 fixed
Fixed in Version:           
====================================================================== 
Date Submitted:             2009-12-04 17:59 CST
Last Modified:              2010-01-12 11:14 CST
====================================================================== 
Summary:                    [patch] Segfault in res_config_ldap
Description: 
My system has been crashing intermittently today since I enabled
res_config_ldap.  At the moment I don't have many clues because it happens
when I am not watching the console.  However it appears to be related to an
attempt to update LDAP for a RealTime SIP peer, though at the time of the
crash no actual RealTime SIP peers were active.  Non-RealTime SIP peers
were active (configured in sip.conf).

Attached is the output from gdb (bt; bt full; thread apply all bt).
Please let me know if I can provide any additional information.
====================================================================== 

---------------------------------------------------------------------- 
 (0116515) svnbot (reporter) - 2010-01-12 11:14
 https://issues.asterisk.org/view.php?id=16397#c116515 
---------------------------------------------------------------------- 
Repository: asterisk
Revision: 239475

_U  branches/1.6.0/
U   branches/1.6.0/res/res_config_ldap.c

------------------------------------------------------------------------
r239475 | seanbright | 2010-01-12 11:14:39 -0600 (Tue, 12 Jan 2010) | 17
lines

Merged revisions 239473 via svnmerge from 
https://origsvn.digium.com/svn/asterisk/trunk

........
  r239473 | seanbright | 2010-01-12 12:09:12 -0500 (Tue, 12 Jan 2010) | 10
lines
  
  Fix crash in res_config_ldap.
  
  We need to allocate enough room for 2 pointers, not 2 characters.
  
  (closes issue https://issues.asterisk.org/view.php?id=16397)
  Reported by: bklang
  Patches:
        res_config_ldap.patch uploaded by applsplatz (license 949)
  Tested by: applsplatz
........

------------------------------------------------------------------------

http://svn.digium.com/view/asterisk?view=rev&revision=239475 

Issue History 
Date Modified    Username       Field                    Change               
====================================================================== 
2010-01-12 11:14 svnbot         Checkin                                      
2010-01-12 11:14 svnbot         Note Added: 0116515                          
======================================================================




More information about the asterisk-bugs mailing list