php.net |  support |  documentation |  report a bug |  advanced search |  search howto |  statistics |  random bug |  login
Bug #9019 Segmentation fault using ldap_mod_del()
Submitted: 2001-01-30 21:07 UTC Modified: 2001-05-02 18:16 UTC
From: j_zuilkowski at hotmail dot com Assigned:
Status: Closed Package: LDAP related
PHP Version: 4.0.4pl1 OS: Mandrake 7.2 - stock
Private report: No CVE-ID: None
 [2001-01-30 21:07 UTC] j_zuilkowski at hotmail dot com
Here is the code segment:

--------------snip----------------------------

    if($ACCESS == "No") {
        for ($i=0; $i<$attrs["uniquemember"]["count"]; $i++) {
          if($attrs["uniquemember"][$i] == $dn) {
            $setvar["uniquemember"][$i]=$attrs["uniquemember"][$i];
          }
        }

        $result=ldap_mod_del($ds, "cn=FTP,ou=groups,o=equifax.com", $setvar);
---------------snip----------------------------

Here is the apache log:

[Tue Jan 30 21:02:28 2001] [notice] child pid 3807 exit signal Segmentation fault (11)
[Tue Jan 30 21:02:49 2001] [notice] child pid 3808 exit signal Segmentation fault (11)
[Tue Jan 30 21:02:56 2001] [notice] child pid 3812 exit signal Segmentation fault (11)
[Tue Jan 30 21:05:08 2001] [notice] child pid 3806 exit signal Segmentation fault (11)
[Tue Jan 30 21:05:10 2001] [notice] child pid 3809 exit signal Segmentation fault (11)                                                             


Everytime I click my submit button to send my form (which then calls said code above), I get back  "The document contained no data..." 
and apache dumps another seg fault line in the error log.                            

Patches

Pull Requests

History

AllCommentsChangesGit/SVN commitsRelated reports
 [2001-01-31 08:04 UTC] j_zuilkowski at hotmail dot com
I also tried the function 'ldap_mod_add()' and the same thing happens.
 [2001-02-01 10:14 UTC] j_zuilkowski at hotmail dot com
I should also note that php is running on Mandrake 7.2 with a stock install, and that the directory is Netscape Directory Server 4.12 on a solaris 8 box.
 [2001-04-01 14:14 UTC] sniper@php.net
Which ldap libraries are you using? openldap? Version?
And please generate a GDB backtrace of the crash.
Information how to create a backrace can be found here:

http://www.php.net/bugs-generating-backtrace.php

Remember to add --enable-debug into your configure line
and delete config.cache before configure. And after configure, do 'make clean ; make ; make install'

This way you should get proper gdb backtraces.

--Jani



 [2001-05-02 18:16 UTC] jmoore@php.net
No feedback. Closing

- James
 
PHP Copyright © 2001-2024 The PHP Group
All rights reserved.
Last updated: Sat Dec 21 13:01:31 2024 UTC