php.net |  support |  documentation |  report a bug |  advanced search |  search howto |  statistics |  random bug |  login
Bug #19106 segfault on ldap_mod_del call
Submitted: 2002-08-26 09:33 UTC Modified: 2002-09-21 02:13 UTC
From: matt at sbi dot co dot nz Assigned:
Status: Closed Package: LDAP related
PHP Version: 4.1.2 OS: debian woody
Private report: No CVE-ID: None
View Add Comment Developer Edit
Welcome! If you don't have a Git account, you can't do anything here.
You can add a comment by following this link or if you reported this bug, you can edit this bug over here.
(description)
Block user comment
Status: Assign to:
Package:
Bug Type:
Summary:
From: matt at sbi dot co dot nz
New email:
PHP Version: OS:

 

 [2002-08-26 09:33 UTC] matt at sbi dot co dot nz
the line:

ldap_mod_del($this->cid, $dn, $attrs);

where $attrs holds:

Array ( [street] => Array ( [0] => test ) )

and currently in openldap (2.0.23) the attributes are:

Array ( [street] => Array ( [0] => test [1] => test1 [2] => test2 ) )

causes apache (1.3.26) to segfault thus:

[Tue Aug 27 01:05:41 2002] [notice] child pid 6589 exit signal Segmentation fault (11)
[Tue Aug 27 01:05:42 2002] [notice] child pid 6590 exit signal Segmentation fault (11)
etc ...

from what i can gather, an attempt to ldap_mod_del an attribute [0] whilst [1] still holds a value causes the segfault. because calling ldap_mod_del to delete all three attributes works fine.

Patches

Add a Patch

Pull Requests

Add a Pull Request

History

AllCommentsChangesGit/SVN commitsRelated reports
 [2002-08-26 09:40 UTC] sander@php.net
Thank you for this bug report. To properly diagnose the problem, we
need a backtrace to see what is happening behind the scenes. To
find out how to generate a backtrace, please read
http://bugs.php.net/bugs-generating-backtrace.php

Once you have generated a backtrace, please submit it to this bug
report and change the status back to "Open". Thank you for helping
us make PHP better.
 [2002-08-26 11:11 UTC] sniper@php.net
Try newer version first..afaik, this is fixed in CVS at least. Try this snapshot:

http://snaps.php.net/php4-STABLE-latest.tar.gz


 [2002-09-21 02:13 UTC] sniper@php.net
Thank you for your bug report. This issue has already been fixed
in the latest released version of PHP, which you can download at 
http://www.php.net/downloads.php


 
PHP Copyright © 2001-2024 The PHP Group
All rights reserved.
Last updated: Wed Apr 17 15:01:31 2024 UTC