From: ffrancavilla at poste dot it
Operating system: sparc/solaris 10
PHP version: 5.2.5
PHP Bug Type: Apache2 related
Bug description: Apache2 segmentation fault loading php-module with /etc/group
over ldap
Description:
------------
apache2 return a segmentation fault loading php5 module compiled with
oci8.
The system has /etc/group over ldap in nsswitch.conf, and i've not the
"segmentation fault" when the nsswitch.conf has configured /etc/group over
files.
The problem don't apper also when the line "LoadModule php5_module
modules/libphp5.so" in the httpd.conf is removed.
# /usr/local/apache2/bin/httpd -v
Server version: Apache/2.0.61
Server built: Jan 18 2008 12:43:56
# tail -1 /usr/local/apache2/logs/error_log
[Fri Jan 25 10:31:34 2008] [notice] child pid 21743 exit signal
Segmentation fault (11)
# ldd /usr/local/apache2/modules/libphp5.so
librt.so.1 => /lib/librt.so.1
libresolv.so.2 => /lib/libresolv.so.2
libm.so.2 => /lib/libm.so.2
libnsl.so.1 => /lib/libnsl.so.1
libsocket.so.1 => /lib/libsocket.so.1
libz.so => /usr/local/lib/libz.so
libgen.so.1 => /lib/libgen.so.1
libdl.so.1 => /lib/libdl.so.1
libsched.so.1 => /usr/lib/libsched.so.1
libclntsh.so.9.0 => /usr/local/oracle/lib/libclntsh.so.9.0
libxml2.so.2 => /usr/local/lib/libxml2.so.2
libiconv.so.2 => /usr/local/lib/libiconv.so.2
libc.so.1 => /lib/libc.so.1
libgcc_s.so.1 => /usr/local/lib/libgcc_s.so.1
libaio.so.1 => /lib/libaio.so.1
libmd5.so.1 => /lib/libmd5.so.1
libmp.so.2 => /lib/libmp.so.2
libscf.so.1 => /lib/libscf.so.1
libwtc9.so => /lib/libwtc9.so
libm.so.1 => /lib/libm.so.1
libpthread.so.1 => /usr/lib/libpthread.so.1
libdoor.so.1 => /lib/libdoor.so.1
libuutil.so.1 => /lib/libuutil.so.1
/platform/SUNW,Sun-Fire-T200/lib/libc_psr.so.1
# /usr/local/bin/gdb /usr/local/apache2/bin/httpd
GNU gdb 6.6
Copyright (C) 2006 Free Software Foundation, Inc.
GDB is free software, covered by the GNU General Public License, and you
are
welcome to change it and/or distribute copies of it under certain
conditions.
Type "show copying" to see the conditions.
There is absolutely no warranty for GDB. Type "show warranty" for
details.
This GDB was configured as "sparc-sun-solaris2.10"...
(gdb) run -X
Starting program: /usr/local/apache2/bin/httpd -X
warning: Temporarily disabling breakpoints for unloaded shared library
"/usr/lib/ld.so.1"
warning: Lowest section in /lib/libdl.so.1 is .dynamic at 00000094
warning: Lowest section in /lib/libpthread.so.1 is .dynamic at 00000074
warning: Lowest section in /usr/lib/libsched.so.1 is .dynamic at 00000074
warning: Lowest section in /usr/lib/libsched.so.1 is .dynamic at 00000074
warning: Lowest section in /lib/libthread.so.1 is .dynamic at 00000074
Program received signal SIGSEGV, Segmentation fault.
0xfdb01c58 in gslufpFLog () from /usr/local/oracle/lib/libclntsh.so.9.0
#PHP 5 configure
--with-apxs2=/usr/local/apache2/bin/apxs
--with-config-file-path=/usr/local/apache2/conf
--with-oci8=/usr/local/oracle
#About nss_ldap...
I also tried to configure the native ldapclient solaris and nss_ldap.so
from padl without any results..
--
Edit bug report at http://bugs.php.net/?id=43932&edit=1
--
Try a CVS snapshot (PHP 4.4):
http://bugs.php.net/fix.php?id=43932&r=trysnapshot44
Try a CVS snapshot (PHP 5.2):
http://bugs.php.net/fix.php?id=43932&r=trysnapshot52
Try a CVS snapshot (PHP 5.3):
http://bugs.php.net/fix.php?id=43932&r=trysnapshot53
Try a CVS snapshot (PHP 6.0):
http://bugs.php.net/fix.php?id=43932&r=trysnapshot60
Fixed in CVS: http://bugs.php.net/fix.php?id=43932&r=fixedcvs
Fixed in release:
http://bugs.php.net/fix.php?id=43932&r=alreadyfixed
Need backtrace: http://bugs.php.net/fix.php?id=43932&r=needtrace
Need Reproduce Script: http://bugs.php.net/fix.php?id=43932&r=needscript
Try newer version: http://bugs.php.net/fix.php?id=43932&r=oldversion
Not developer issue: http://bugs.php.net/fix.php?id=43932&r=support
Expected behavior: http://bugs.php.net/fix.php?id=43932&r=notwrong
Not enough info:
http://bugs.php.net/fix.php?id=43932&r=notenoughinfo
Submitted twice:
http://bugs.php.net/fix.php?id=43932&r=submittedtwice
register_globals: http://bugs.php.net/fix.php?id=43932&r=globals
PHP 3 support discontinued: http://bugs.php.net/fix.php?id=43932&r=php3
Daylight Savings: http://bugs.php.net/fix.php?id=43932&r=dst
IIS Stability: http://bugs.php.net/fix.php?id=43932&r=isapi
Install GNU Sed: http://bugs.php.net/fix.php?id=43932&r=gnused
Floating point limitations: http://bugs.php.net/fix.php?id=43932&r=float
No Zend Extensions: http://bugs.php.net/fix.php?id=43932&r=nozend
MySQL Configuration Error: http://bugs.php.net/fix.php?id=43932&r=mysqlcfg