From:             francesco dot laurita at fastweb dot it
Operating system: Linux 2.4.20
PHP version:      4.3.2
PHP Bug Type:     OCI8 related
Bug description:  Strange segmentation fault

The php binary/CLI got segmentation fault at startup.
I'm not shure it is a oci8 related but i hope to get it by gdb.
This is my steps:
[EMAIL PROTECTED] www]$ /usr/local/phpTEST/bin/php -v
Segmentation fault (core dumped)
[EMAIL PROTECTED] www]$ gdb /usr/local/phpTEST/bin/php
GNU gdb Red Hat Linux (5.2-2)
Copyright 2002 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 "i386-redhat-linux"...
(gdb) run
Starting program: /usr/local/phpTEST/bin/php 
[New Thread 1024 (LWP 9768)]

Program received signal SIGSEGV, Segmentation fault.
[Switching to Thread 1024 (LWP 9768)]
0x407a92a2 in sskgmstat () from
/opt/oracle/product/9.0.1/lib/libclntsh.so.9.0
(gdb) quit
The program is running.  Exit anyway? (y or n) y
[EMAIL PROTECTED] www]$ gdb /usr/local/phpTEST/bin/php core.9766 
GNU gdb Red Hat Linux (5.2-2)
Copyright 2002 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 "i386-redhat-linux"...
Core was generated by `/usr/local/phpTEST/bin/php -v'.
Program terminated with signal 11, Segmentation fault.
Reading symbols from /lib/libcrypt.so.1...done.
Loaded symbols for /lib/libcrypt.so.1
Reading symbols from /usr/lib/libsablot.so.0...done.
Loaded symbols for /usr/lib/libsablot.so.0
Reading symbols from /usr/lib/libexpat.so.0...done.
Loaded symbols for /usr/lib/libexpat.so.0
Reading symbols from /usr/local/freetds/lib/libct.so.1...done.
Loaded symbols for /usr/local/freetds/lib/libct.so.1
Reading symbols from /usr/lib/libpng.so.2...done.
Loaded symbols for /usr/lib/libpng.so.2
Reading symbols from /usr/lib/libz.so.1...done.
Loaded symbols for /usr/lib/libz.so.1
Reading symbols from /usr/lib/libjpeg.so.62...done.
Loaded symbols for /usr/lib/libjpeg.so.62
Reading symbols from /lib/libresolv.so.2...done.
Loaded symbols for /lib/libresolv.so.2
Reading symbols from /lib/i686/libm.so.6...done.
Loaded symbols for /lib/i686/libm.so.6
Reading symbols from /lib/libdl.so.2...done.
Loaded symbols for /lib/libdl.so.2
Reading symbols from /lib/libnsl.so.1...done.
Loaded symbols for /lib/libnsl.so.1
Reading symbols from
/opt/oracle/product/9.0.1/lib/libclntsh.so.9.0...done.
Loaded symbols for /opt/oracle/product/9.0.1/lib/libclntsh.so.9.0
Reading symbols from /lib/i686/libc.so.6...done.
Loaded symbols for /lib/i686/libc.so.6
Reading symbols from /opt/oracle/product/9.0.1/lib/libwtc9.so...done.
Loaded symbols for /opt/oracle/product/9.0.1/lib/libwtc9.so
Reading symbols from /lib/i686/libpthread.so.0...done.
Loaded symbols for /lib/i686/libpthread.so.0
Reading symbols from /lib/ld-linux.so.2...done.
Loaded symbols for /lib/ld-linux.so.2
#0  0x407a92a2 in sskgmstat () from
/opt/oracle/product/9.0.1/lib/libclntsh.so.9.0
(gdb) bt
#0  0x407a92a2 in sskgmstat () from
/opt/oracle/product/9.0.1/lib/libclntsh.so.9.0
#1  0x407a4a67 in skgmidrealm () from
/opt/oracle/product/9.0.1/lib/libclntsh.so.9.0
#2  0x407a4571 in skgmlocate () from
/opt/oracle/product/9.0.1/lib/libclntsh.so.9.0
#3  0x407a3f6d in skgmcrone () from
/opt/oracle/product/9.0.1/lib/libclntsh.so.9.0
#4  0x407a7a2c in skgmcrmany () from
/opt/oracle/product/9.0.1/lib/libclntsh.so.9.0
#5  0x407a1e7b in skgmcreate () from
/opt/oracle/product/9.0.1/lib/libclntsh.so.9.0
#6  0x403c8e0d in kgupmcreate_sga () from
/opt/oracle/product/9.0.1/lib/libclntsh.so.9.0
#7  0x403c64e4 in kgup_startup () from
/opt/oracle/product/9.0.1/lib/libclntsh.so.9.0
#8  0x4033ec27 in kpushInit () from
/opt/oracle/product/9.0.1/lib/libclntsh.so.9.0
#9  0x407aee77 in kpummpin () from
/opt/oracle/product/9.0.1/lib/libclntsh.so.9.0
#10 0x4033ef69 in kpupin () from
/opt/oracle/product/9.0.1/lib/libclntsh.so.9.0
#11 0x40390f4c in OCIInitialize () from
/opt/oracle/product/9.0.1/lib/libclntsh.so.9.0
#12 0x0808bf74 in zm_startup_oci (type=1, module_number=10) at
/root/php-4.3.2/ext/oci8/oci8.c:489
#13 0x0812cccb in zend_startup_module (module=0x81a3cc0) at
/root/php-4.3.2/Zend/zend_API.c:1005
#14 0x08108acf in php_startup_extensions (ptr=0x81aeb84, count=16) at
/root/php-4.3.2/main/main.c:1033
#15 0x08142f22 in php_startup_internal_extensions () at
main/internal_functions.c:81
#16 0x08108e91 in php_module_startup (sf=0x81ae940,
additional_modules=0x0, num_additional_modules=0)
    at /root/php-4.3.2/main/main.c:1200
#17 0x08142494 in main (argc=2, argv=0xbfffecc4) at
/root/php-4.3.2/sapi/cgi/cgi_main.c:1013
#18 0x42017589 in __libc_start_main () from /lib/i686/libc.so.6
(gdb) quit
[EMAIL PROTECTED] www]$

The strange thing is i get this error only when i try to execute it from a
normal user. If i try to run php with root all works fine:

[EMAIL PROTECTED] bin]# ./php -v
PHP 4.3.2 (cgi), Copyright (c) 1997-2003 The PHP Group
Zend Engine v1.3.0, Copyright (c) 1998-2003 Zend Technologies
[EMAIL PROTECTED] bin]# 

Configure line:
'./configure' \
'--enable-ftp' \
'--with-gd' \
'--with-zlib' \
'--enable-calendar' \
'--enable-trans-sid' \
'--enable-xslt=/usr/lib' \
'--enable-sigchild' \
'--with-xml' \
'--with-expat=/usr/lib' \
'--with-xslt-sablot=/usr/lib' \
'--with-mysql=/usr/local/mysql' \
'--without-pear' \
'--with-oci8=/opt/oracle/product/9.0.1' \
'--with-sybase-ct=/usr/local/freetds' \
'--with-jpeg-dir=/usr/lib' \
'--prefix=/usr/local/phpTEST' \

gcc version:
gcc version 2.96 20000731 (Red Hat Linux 7.3 2.96-113)

Oracle client version:
9.0.1

Note: in a machine with oracle client 9.2 all seem work fine

Best regards


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

Reply via email to