[PHP-DEV] Bug #10643 Updated: PHP 4.0.5 linked against openldap 2.x segfaults on Apache startup
ID: 10643 Updated by: sniper Reported By: [EMAIL PROTECTED] Old-Status: Open Status: Feedback Bug Type: LDAP related Operating system: PHP Version: 4.0.5 Assigned To: Comments: 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 Previous Comments: --- [2001-05-03 14:06:27] [EMAIL PROTECTED] 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 (0x4015) 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 (0x8000) 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 -- PHP Development Mailing List http://www.php.net/ To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] To contact the list administrators, e-mail: [EMAIL PROTECTED]
[PHP-DEV] Bug #10643 Updated: PHP 4.0.5 linked against openldap 2.x segfaults on Apache startup
ID: 10643 User Update by: [EMAIL PROTECTED] 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] [EMAIL PROTECTED] 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] [EMAIL PROTECTED] 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 (0x4015) 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 (0x8000) 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 -- PHP Development Mailing List http://www.php.net/ To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] To contact the list administrators, e-mail: [EMAIL PROTECTED]