From:             [EMAIL PROTECTED]
Operating system: AIX 4.3.3
PHP version:      4.2.3
PHP Bug Type:     Reproducible crash
Bug description:  LDAP_OPEN causes Segmentation Violation

I have compiled 4.2.3 into my apache 1.3.27 executable with the following
options.

./configure  --with-oci8=/oracle/app/oracle/product/8.1.7
--with-sybase=/sybase/v11.5.1 --with-ldap
--with-apache=/home/mcnicr/apache_1.3.27 --with-debug

./configure --activate-module=src/modules/php4/libphp4.a
--enable-module=rewrite --enable-module=headers --enable-module=so
--prefix=/www-home

Using the example code from the below mentioned web URL configured for our
local LDAP server (MS exchange 5.5).

http://www.php.net/manual/en/ref.ldap.php

I get a segmentation fault everytime the ldap_open call is executed.

I have enclosed the backtrace and any assistance would be greatly
appreciated.

Thanks
Craig

(gdb) bt
#0  0x10003d2c in sig_coredump ()
#1  <signal handler called>
#2  0xd36ed048 in ber_strdup () at memory.c:541
#3  0xd37000e0 in ldap_pvt_get_fqdn (name=0x60017e05 <Address 0x60017e05
out of bounds>) at util-int.c:410
#4  0xd36ecddc in ldap_int_initialize (gopts=0xf0497958,
dbglvl=0xffffffff) at init.c:483
#5  0xd36f6b40 in ldap_create (ldp=0x2ff20418) at open.c:94
#6  0xd36f6d6c in ldap_initialize (ldp=0x2ff20474, url=0x200bcc38 <Address
0x200bcc38 out of bounds>) at open.c:192
#7  0x10170da8 in floatcheck ()
#8  0x1009018c in execute ()
#9  0x1007e9b8 in zend_execute_scripts ()
#10 0x10077728 in php_execute_script ()
#11 0x101792c0 in read_common ()
#12 0x10073e7c in send_php ()
#13 0x10073f18 in send_parsed_php ()
#14 0x10015ea4 in ap_invoke_handler ()
#15 0x1003e0f0 in process_request_internal ()
#16 0x1003e1b4 in ap_process_request ()
#17 0x10005d24 in child_main ()
#18 0x10006074 in make_child ()
#19 0x1000653c in perform_idle_server_maintenance ()
#20 0x10006cd4 in standalone_main ()
#21 0x100074ec in main ()
#22 0x10000204 in __start ()






-- 
Edit bug report at http://bugs.php.net/?id=20967&edit=1
-- 
Try a CVS snapshot:         http://bugs.php.net/fix.php?id=20967&r=trysnapshot
Fixed in CVS:               http://bugs.php.net/fix.php?id=20967&r=fixedcvs
Fixed in release:           http://bugs.php.net/fix.php?id=20967&r=alreadyfixed
Need backtrace:             http://bugs.php.net/fix.php?id=20967&r=needtrace
Try newer version:          http://bugs.php.net/fix.php?id=20967&r=oldversion
Not developer issue:        http://bugs.php.net/fix.php?id=20967&r=support
Expected behavior:          http://bugs.php.net/fix.php?id=20967&r=notwrong
Not enough info:            http://bugs.php.net/fix.php?id=20967&r=notenoughinfo
Submitted twice:            http://bugs.php.net/fix.php?id=20967&r=submittedtwice
register_globals:           http://bugs.php.net/fix.php?id=20967&r=globals
PHP 3 support discontinued: http://bugs.php.net/fix.php?id=20967&r=php3
Daylight Savings:           http://bugs.php.net/fix.php?id=20967&r=dst
IIS Stability:              http://bugs.php.net/fix.php?id=20967&r=isapi

Reply via email to