#19106 [Opn->Fbk]: segfault on ldap_mod_del call
| From: | sander@php.net | Date: | Mon, 26 Aug 2002 13:40:35 +0000 |
| Subject: | #19106 [Opn->Fbk]: segfault on ldap_mod_del call | ||
| References: | 1 | Groups: | php.bugs |
| Request: | Send a blank email to php-bugs+get-17852@lists.php.net to get a copy of this message | ||
ID: 19106
Updated by: sander@php.net
Reported By: matt@sbi.co.nz
-Status: Open
+Status: Feedback
Bug Type: Reproducible crash
Operating System: debian woody
PHP Version: 4.1.2
New Comment:
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.
Previous Comments:
------------------------------------------------------------------------
[2002-08-26 09:33:30] matt@sbi.co.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.
------------------------------------------------------------------------
--
Edit this bug report at http://bugs.php.net/?id=19106&edit=1