php.net |  support |  documentation |  report a bug |  advanced search |  search howto |  statistics |  random bug |  login
Bug #24094 Strange segmentation fault
Submitted: 2003-06-09 08:06 UTC Modified: 2003-06-09 10:18 UTC
From: francesco dot laurita at fastweb dot it Assigned:
Status: Closed Package: OCI8 related
PHP Version: 4.3.2 OS: Linux 2.4.20
Private report: No CVE-ID: None
 [2003-06-09 08:06 UTC] francesco dot laurita at fastweb dot it
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:
[sviluppo@jenna www]$ /usr/local/phpTEST/bin/php -v
Segmentation fault (core dumped)
[sviluppo@jenna 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
[sviluppo@jenna 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
[sviluppo@jenna 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:

[root@jenna 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
[root@jenna 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


Patches

Pull Requests

History

AllCommentsChangesGit/SVN commitsRelated reports
 [2003-06-09 08:51 UTC] francesco dot laurita at fastweb dot it
It seem work fine with last cvs.
Same configuration lines
 [2003-06-09 10:18 UTC] derick@php.net
Great, closing then.
 
PHP Copyright © 2001-2024 The PHP Group
All rights reserved.
Last updated: Sat Dec 21 14:01:32 2024 UTC