php.net |  support |  documentation |  report a bug |  advanced search |  search howto |  statistics |  random bug |  login
Bug #7729 Segfault during IMP LDAP lookups
Submitted: 2000-11-09 11:33 UTC Modified: 2000-11-15 13:41 UTC
From: yoneyama at vet dot upenn dot edu Assigned:
Status: Closed Package: Reproducible Crash
PHP Version: 4.0.3pl1 OS: IRIX 6.5.9m
Private report: No CVE-ID: None
Welcome back! If you're the original bug submitter, here's where you can edit the bug or add additional notes.
If you forgot your password, you can retrieve your password here.
Password:
Status:
Package:
Bug Type:
Summary:
From: yoneyama at vet dot upenn dot edu
New email:
PHP Version: OS:

 

 [2000-11-09 11:33 UTC] yoneyama at vet dot upenn dot edu
I am running Apache 1.3.12 (mod_ssl/openssl), dynamic module, here is my configure line:
env CC=gcc \
./configure \
 --with-mysql=/usr/local \
 --with-imap=../imap-2000.RELEASE-CANDIDATE.7 \
 --with-ldap=../openldap-2.0.7 \
 --with-apxs=/usr/local/apachessl/bin/apxs

I've compiled Apache and all pre-reqs using SGI's MIPSPro 7.3 C compiler *EXCEPT* for PHP4, where I use gcc, because the SGI-compiled libphp4.so library is unusable (cf. bug #6433 for details).

I have set up IMP (2.2.3). Everything is working just hunky-dory except for when I try to do an LDAP search. I see a square symbol where the LDAP search results are supposed to be returned. IMP still continues to function, though. But it does produce the following in my Apache error log:

(today's date) [notice] child pid 2446265 exit signal Segmentation fault (11)

I don't know enough to know if OpenLDAP is causing the problem, or if it's just a bad libphp4.so library. I suspect the latter. So I will start here. Thanks.

Patches

Pull Requests

History

AllCommentsChangesGit/SVN commitsRelated reports
 [2000-11-11 12:41 UTC] sniper@php.net
1. Use the install paths for libraries not the source in --with-imap & --with-ldap
2. Does the ldapsearch binary work from the command line?

--Jani


 [2000-11-13 10:50 UTC] yoneyama at vet dot upenn dot edu
Hey, I did what you said about defining path to openldap (the install path, not source), and plus I was more explicit in defining library and header paths and added:

  LDFLAGS="-L/usr/local/lib" \
  CPPFLAGS="-I/usr/local/include" \

on my configure line. Recompiled PHP. Upon startup Apache couldn't find some library resources (in /usr/lib32), but I made some symbolic links and that resolved my problem. My LDAP searches from IMP are working just fine now!
 [2000-11-15 13:41 UTC] sniper@php.net
User reported problem solved -> Closed.

--Jani
 
PHP Copyright © 2001-2026 The PHP Group
All rights reserved.
Last updated: Sun Jun 28 12:00:02 2026 UTC