Bug #10643 Updated: PHP 4.0.5 linked against openldap 2.x segfaults on Apache startup

From: Date: Sun, 06 May 2001 19:42:57 +0000
Subject: Bug #10643 Updated: PHP 4.0.5 linked against openldap 2.x segfaults on Apache startup
Groups: php.dev 
Request: Send a blank email to php-dev+get-54152@lists.php.net to get a copy of this message
ID: 10643 User Update by: Edwin.Chiu@e-wares.com Old-Status: Feedback Status: Closed Bug Type: LDAP related Operating system: Linux 2.2.14 PHP Version: 4.0.5 Description: PHP 4.0.5 linked against openldap 2.x segfaults on Apache startup Linking to libpthread in Apache resolved the problem. Previous Comments: --------------------------------------------------------------------------- [2001-05-06 12:07:15] sniper@php.net This might be the infamous pthread lib / glibc bug. Is your Apache linked with pthread? If not, check the instructions how to do it on www.php.net/oci8 (I know, it's Oracle manual page..:) --Jani --------------------------------------------------------------------------- [2001-05-03 14:06:27] Edwin.Chiu@e-wares.com My configure string: ./configure --prefix=/software/php-4 --with-apxs=/software/apache-1.3/bin/apxs --with-gdbm --with-ldap=/software/openldap-2 --with-pgsql=/software/postgresql-7 --with-config-file-path=/software/php-4/lib Using OpenLDAP 2.0.7 and PostgreSQL 7.1 on a SuSE 6.4 box. # ldd libphp4.so libpam.so.0 => /lib/libpam.so.0 (0x40144000) libdl.so.2 => /lib/libdl.so.2 (0x4014c000) libpq.so.2 => /software/postgresql-7/lib/libpq.so.2 (0x40150000) libldap.so.2 => /software/openldap-2/lib/libldap.so.2 (0x4015f000) liblber.so.2 => /software/openldap-2/lib/liblber.so.2 (0x40249000) libgdbm.so.2 => /usr/lib/libgdbm.so.2 (0x40256000) libresolv.so.2 => /lib/libresolv.so.2 (0x4025e000) libm.so.6 => /lib/libm.so.6 (0x4026d000) libcrypt.so.1 => /lib/libcrypt.so.1 (0x4028a000) libnsl.so.1 => /lib/libnsl.so.1 (0x402b7000) libc.so.6 => /lib/libc.so.6 (0x402ce000) /lib/ld-linux.so.2 => /lib/ld-linux.so.2 (0x80000000) Here is an strace of an Apache child that died. I'm using NSS_LDAP and PAM_LDAP. open("/lib/libpthread.so.0", O_RDONLY) = 4 fstat(4, {st_mode=S_IFREG|0755, st_size=289663, ...}) = 0 read(4, "177ELF111

« previous php.dev (#54152) next »