#26409 [NEW]: ldap_bind is causing a seg fault
From: pyrox_pro at hotmail dot com
Operating system: RedHat Linux 7.3
PHP version: 4.3.4
PHP Bug Type: LDAP related
Bug description: ldap_bind is causing a seg fault
Description:
------------
ldap_bind is causing a seg fault on every use.
I submitted a similar bug in the past and was supplied a CVS snapshot to
use, I had been using that up until now, I installed php-4.3.4 and a new
problem that is similar rears its head:
http://bugs.php.net/bug.php?id=22686
echo "<BR>Connecting...";
$ds=ldap_connect("ldaps://".$ldap['SERV']."/") or
die("<BR>Died.");
echo "<BR> Connection Established: $ds";
echo "<BR> BINDING...";
$r=ldap_bind($ds,$ldap['user'],$ldap['pass']);
echo "<BR> BIND COMPLETE.";
This results in a seg fault:
Connecting...
Connection Established: Resource id #4
BINDING...
************** -> Segmentation fault
[Tue Nov 25 10:31:38 2003] [notice] child pid 26178 exit signal
Segmentation fault (11)
If I comment this out:
echo "<BR>Connecting...";
$ds=ldap_connect("ldaps://".$ldap['SERV']."/") or
die("<BR>Died.");
echo "<BR> Connection Established: $ds";
echo "<BR> BINDING...";
##$r=ldap_bind($ds,$ldap['user'],$ldap['pass']);
echo "<BR> BIND COMPLETE.";
The page comes up and it seems to work fine.
I am using php 4.3.4 and LDAP:
ldap
LDAP Support enabled
RCS Version $Id: ldap.c,v 1.130.2.9 2003/10/07 00:36:27 iliaa Exp $
Total Links 0/unlimited
API Version 2004
Vendor Name OpenLDAP
Vendor Version 20026
OCI8 Support enabled
Revision $Revision: 1.183.2.5 $
Oracle Version 8.1
Compile-time ORACLE_HOME /u01/app/oracle/product/8.1.6
Libraries Used no value
OpenSSL support enabled
OpenSSL Version OpenSSL 0.9.7 31 Dec 2002
Reproduce code:
---------------
$ds=ldap_connect("ldaps://".$ldap['SERV']."/");
$r=ldap_bind($ds);
Expected result:
----------------
Annon bind to the ldap resource id obtained from ldap_connect.
Actual result:
--------------
Segmentation fault
--
Edit bug report at http://bugs.php.net/?id=26409&edit=1
--
Try a CVS snapshot (php4): http://bugs.php.net/fix.php?id=26409&r=trysnapshot4
Try a CVS snapshot (php5): http://bugs.php.net/fix.php?id=26409&r=trysnapshot5
Fixed in CVS: http://bugs.php.net/fix.php?id=26409&r=fixedcvs
Fixed in release: http://bugs.php.net/fix.php?id=26409&r=alreadyfixed
Need backtrace: http://bugs.php.net/fix.php?id=26409&r=needtrace
Try newer version: http://bugs.php.net/fix.php?id=26409&r=oldversion
Not developer issue: http://bugs.php.net/fix.php?id=26409&r=support
Expected behavior: http://bugs.php.net/fix.php?id=26409&r=notwrong
Not enough info: http://bugs.php.net/fix.php?id=26409&r=notenoughinfo
Submitted twice: http://bugs.php.net/fix.php?id=26409&r=submittedtwice
register_globals: http://bugs.php.net/fix.php?id=26409&r=globals
PHP 3 support discontinued: http://bugs.php.net/fix.php?id=26409&r=php3
Daylight Savings: http://bugs.php.net/fix.php?id=26409&r=dst
IIS Stability: http://bugs.php.net/fix.php?id=26409&r=isapi
Install GNU Sed: http://bugs.php.net/fix.php?id=26409&r=gnused
Floating point limitations: http://bugs.php.net/fix.php?id=26409&r=float
Thread (24 messages)
- pyrox_pro at hotmail dot com
- sniper@php.net#26409 [Opn->Fbk]: ldap_bind is causing a seg fault
- pyrox_pro at hotmail dot com#26409 [Fbk->Opn]: ldap_bind is causing a seg fault
- sniper@php.net#26409 [Opn->Bgs]: ldap_bind is causing a seg fault
- pyrox_pro at hotmail dot com#26409 [Bgs->Opn]: ldap_bind is causing a seg fault
- pyrox_pro at hotmail dot com#26409 [Opn]: ldap_bind is causing a seg fault
- pyrox_pro at hotmail dot com#26409 [Opn]: ldap_bind is causing a seg fault
- sniper@php.net#26409 [Opn->Fbk]: ldap_bind is causing a seg fault
- pyrox_pro at hotmail dot com#26409 [Fbk->Opn]: ldap_bind is causing a seg fault
- sniper@php.net#26409 [Opn->Bgs]: ldap_bind is causing a seg fault
- pyrox_pro at hotmail dot com#26409 [Bgs->Opn]: ldap_bind is causing a seg fault
- sniper@php.net#26409 [Opn->Bgs]: ldap_bind is causing a seg fault
- pyrox_pro at hotmail dot com#26409 [Bgs->Opn]: ldap_bind is causing a seg fault
- sniper@php.net#26409 [Opn->Bgs]: ldap_bind is causing a seg fault
- pyrox_pro at hotmail dot com#26409 [Bgs->Opn]: ldap_bind is causing a seg fault
- sniper@php.net#26409 [Opn->Bgs]: ldap_bind is causing a seg fault
- pyrox_pro at hotmail dot com#26409 [Bgs]: ldap_bind is causing a seg fault
- pyrox_pro at hotmail dot com#26409 [Bgs]: ldap_bind is causing a seg fault
- pyrox_pro at hotmail dot com#26409 [Bgs->Opn]: ldap_bind is causing a seg fault
- pl101 at clez dot net#26409 [Com]: ldap_bind is causing a seg fault
- sniper@php.net#26409 [Opn->Bgs]: ldap_bind is causing a seg fault
- mete0 at op dot pl#26409 [Com]: ldap_bind is causing a seg fault
- mete0 at op dot pl#26409 [Com]: ldap_bind is causing a seg fault
- test at hotmail dot com#26409 [Com]: ldap_bind is causing a seg fault