php.net |  support |  documentation |  report a bug |  advanced search |  search howto |  statistics |  random bug |  login
Bug #22521 Immediate coredump --with-oci8=shared
Submitted: 2003-03-03 13:53 UTC Modified: 2003-04-09 07:01 UTC
Votes:1
Avg. Score:5.0 ± 0.0
Reproduced:1 of 1 (100.0%)
Same Version:1 (100.0%)
Same OS:1 (100.0%)
From: michael dot mauch at gmx dot de Assigned:
Status: Closed Package: OCI8 related
PHP Version: 4.3.2RC1 OS: Linux
Private report: No CVE-ID: None
Welcome back! If you're the original bug submitter, here's where you can edit the bug or add additional notes.
If you forgot your password, you can retrieve your password here.
Password:
Status:
Package:
Bug Type:
Summary:
From: michael dot mauch at gmx dot de
New email:
PHP Version: OS:

 

 [2003-03-03 13:53 UTC] michael dot mauch at gmx dot de
With current stable CVS, I get an immediate coredump on Apache's or PHP's startup (e.g. "php -i").

configure --with-apxs --with-oci8=shared --enable-debug

If I comment out the line

      AC_DEFINE(HAVE_OCI8_SHARED_MODE,1,[ ])

in ext/oci/config.m4, it works (but that's of course not a real fix).

(gdb) bt
#0  0x40690b06 in sskgmstat () from /mnt/app/oracle/product/8.1.6/lib/libclntsh.so.8.0
#1  0x4068ec9f in skgmidrealm () from /mnt/app/oracle/product/8.1.6/lib/libclntsh.so.8.0
#2  0x4068eaaf in skgmlocate () from /mnt/app/oracle/product/8.1.6/lib/libclntsh.so.8.0
#3  0x4068e523 in skgmcrone () from /mnt/app/oracle/product/8.1.6/lib/libclntsh.so.8.0
#4  0x4068fae6 in skgmcrmany () from /mnt/app/oracle/product/8.1.6/lib/libclntsh.so.8.0
#5  0x4068c955 in skgmcreate () from /mnt/app/oracle/product/8.1.6/lib/libclntsh.so.8.0
#6  0x40435f04 in kgupmcreate_sga ()
   from /mnt/app/oracle/product/8.1.6/lib/libclntsh.so.8.0
#7  0x40433a98 in kgup_startup () from /mnt/app/oracle/product/8.1.6/lib/libclntsh.so.8.0
#8  0x403ec883 in kpushInit () from /mnt/app/oracle/product/8.1.6/lib/libclntsh.so.8.0
#9  0x40694719 in kpummpin () from /mnt/app/oracle/product/8.1.6/lib/libclntsh.so.8.0
#10 0x403ec924 in kpupin () from /mnt/app/oracle/product/8.1.6/lib/libclntsh.so.8.0
#11 0x404142aa in OCIInitialize () from /mnt/app/oracle/product/8.1.6/lib/libclntsh.so.8.0
#12 0x4027e4d7 in zm_startup_oci (type=1, module_number=10)
    at /usr/local/src/php-cvs/php4/ext/oci8/oci8.c:489
#13 0x080b0875 in php_dl (file=0x81d29c0, type=1, return_value=0xbfffe6ac)
    at /usr/local/src/php-cvs/php4/ext/standard/dl.c:238
#14 0x08138a2a in php_load_function_extension_cb (arg=0x81d29c0)
    at /usr/local/src/php-cvs/php4/main/php_ini.c:216
#15 0x08166d8f in zend_llist_apply (l=0x81c9a5c, 
    func=0x8138a00 <php_load_function_extension_cb>)
    at /usr/local/src/php-cvs/php4/Zend/zend_llist.c:189
#16 0x08139495 in php_ini_delayed_modules_startup ()
    at /usr/local/src/php-cvs/php4/main/php_ini.c:469
#17 0x08133edf in php_module_startup (sf=0x81c86c0, additional_modules=0x0, 
    num_additional_modules=0) at /usr/local/src/php-cvs/php4/main/main.c:1218
#18 0x08189db8 in main (argc=2, argv=0xbfffe934)
    at /usr/local/src/php-cvs/php4/sapi/cli/php_cli.c:481
#19 0x4013f8c1 in __libc_start_main (main=0x8189c84 <main>, argc=2, argv=0xbfffe934, 
    init=0x806132c <_init>, fini=0x818b184 <_fini>, rtld_fini=0x4000a914 <_dl_fini>, 
    stack_end=0xbfffe92c) at ../sysdeps/generic/libc-start.c:92

Patches

Pull Requests

History

AllCommentsChangesGit/SVN commitsRelated reports
 [2003-03-15 10:03 UTC] michael dot mauch at gmx dot de
Updating version number.
 [2003-04-01 11:36 UTC] jerry dot bonner at cpinternet dot com
same problem using php4-STABLE-20030401163 :

./configure --prefix=/usr/local/php-4.3.2RC1 --with-mysql --enable-sockets --with-snmp --with-oci8=/oracle --without-pear --enable debug

Linux blah 2.4.19 #2 SMP Wed Jan 22 05:14:30 CST 2003 i686 unknown

root@blah:/usr/src/php4-STABLE-200304011630# gdb /usr/local/php4-STABLE-200304011630/bin/php
GNU gdb 5.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-slackware-linux"...
(gdb) run
Starting program: /usr/local/php4-STABLE-200304011630/bin/php
[New Thread 1024 (LWP 20854)]

Program received signal SIGSEGV, Segmentation fault.
[Switching to Thread 1024 (LWP 20854)]
0x40498f3c in sskgmstat () from /oracle/lib/libclntsh.so.8.0
 [2003-04-09 07:01 UTC] edink@php.net
This bug has been fixed in CVS.

In case this was a PHP problem, snapshots of the sources are packaged
every three hours; this change will be in the next snapshot. You can
grab the snapshot at http://snaps.php.net/.
 
In case this was a documentation problem, the fix will show up soon at
http://www.php.net/manual/.

In case this was a PHP.net website problem, the change will show
up on the PHP.net site and on the mirror sites in short time.
 
Thank you for the report, and for helping us make PHP better.

Actually removing that line was a real fix. Thanks for the hint!
 [2003-04-10 19:39 UTC] ldemailly at qualys dot com
I have the same problem with php4-STABLE-200304102330
(which is supposed to contain the fix?)
apache 1.3.27  redhat linux 9  oracle 9.2

Program received signal SIGSEGV, Segmentation fault.
[Switching to Thread 1084115136 (LWP 11554)]
0x406ad4e2 in sskgmstat () from /usr/local/oracle/lib/libclntsh.so.9.0
(gdb) bt
#0  0x406ad4e2 in sskgmstat () from /usr/local/oracle/lib/libclntsh.so.9.0
#1  0x406a7827 in skgmidrealm () from /usr/local/oracle/lib/libclntsh.so.9.0
#2  0x406a7331 in skgmlocate () from /usr/local/oracle/lib/libclntsh.so.9.0
#3  0x406a6d28 in skgmcrone () from /usr/local/oracle/lib/libclntsh.so.9.0
#4  0x406ab3dc in skgmcrmany () from /usr/local/oracle/lib/libclntsh.so.9.0
#5  0x406a4c0d in skgmcreate () from /usr/local/oracle/lib/libclntsh.so.9.0
#6  0x402a286b in kgupmcreate_sga ()
   from /usr/local/oracle/lib/libclntsh.so.9.0
#7  0x402a00c8 in kgup_startup () from /usr/local/oracle/lib/libclntsh.so.9.0
#8  0x401e9033 in kpushInit () from /usr/local/oracle/lib/libclntsh.so.9.0
#9  0x406b3607 in kpummpin () from /usr/local/oracle/lib/libclntsh.so.9.0
#10 0x401e9389 in kpupin () from /usr/local/oracle/lib/libclntsh.so.9.0
#11 0x4023dbbc in OCIInitialize () from /usr/local/oracle/lib/libclntsh.so.9.0
#12 0x080ab5a8 in zm_startup_oci ()
#13 0x0809ed8b in zend_startup_module ()
#14 0x08080069 in php_startup_extensions ()
#15 0x080aad76 in php_startup_internal_extensions ()
#16 0x080803fb in php_module_startup ()
#17 0x0807a06b in ap_get_server_built ()
#18 0x0807aa15 in ap_get_server_built ()
#19 0x0807aaff in ap_get_server_built ()
#20 0x0812651e in ap_clear_module_list ()
#21 0x08126de2 in ap_handle_command ()
 
PHP Copyright © 2001-2024 The PHP Group
All rights reserved.
Last updated: Fri Nov 22 00:01:30 2024 UTC