php.net |  support |  documentation |  report a bug |  advanced search |  search howto |  statistics |  random bug |  login
Bug #7348 php (cgi-version) crashes when oci8 support compiled in
Submitted: 2000-10-19 15:29 UTC Modified: 2001-01-05 22:27 UTC
From: edink at proventum dot net Assigned:
Status: Closed Package: OCI8 related
PHP Version: 4.0 Latest CVS (19/10/2000) OS: Linux 2.2 (RedHat 6.2)
Private report: No CVE-ID: None
 [2000-10-19 15:29 UTC] edink at proventum dot net
At the very end of the executing any script produces segmentation fault. This only happens if compiled with oci8 support.

Backtrace:

ek@uxa {/data/src/cvs-php4}$ gdb ./php
GNU gdb 19991004
Copyright 1998 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) r
Starting program: /data/src/cvs-php4/./php
Test
X-Powered-By: PHP/4.0.4-dev
Content-type: text/html
 
Test
Cannot access memory at address 0x2b458b14
(gdb) bt
#0  0x2aab5f21 in _dl_debug_state () at dl-debug.c:56
#1  0x2ac21156 in _dl_close (map=0x813da38) at dl-close.c:195
#2  0x2aacf430 in dlclose_doit (handle=0x813da38) at dlclose.c:26
#3  0x2aab5c3b in _dl_catch_error (errstring=0x2aad1080,
    operate=0x2aacf418 <dlclose_doit>, args=0x813da38) at dl-error.c:141
#4  0x2aacf8b9 in _dlerror_run (operate=0x2aacf418 <dlclose_doit>,
    args=0x813da38) at dlerror.c:125
#5  0x2aacf3fe in dlclose (handle=0x813da38) at dlclose.c:32
#6  0x80a1cd2 in module_destructor (module=0x813f200) at zend_API.c:823
#7  0x80a40c9 in zend_hash_destroy (ht=0x8102220) at zend_hash.c:564
#8  0x80a100f in zend_shutdown () at zend.c:413
#9  0x805a088 in php_module_shutdown () at main.c:932
#10 0x8059184 in main (argc=1, argv=0x7ffff994) at cgi_main.c:752  

Patches

Pull Requests

History

AllCommentsChangesGit/SVN commitsRelated reports
 [2000-10-19 19:36 UTC] sniper@php.net
Have you specified the environment variables mentioned at
http://www.php.net/manual/ref.oci8.php

What is the oci8 version?

--Jani
 [2000-10-20 02:40 UTC] edink at proventum dot net
Yes. As I've metioned the script actually works. It only crashes when exiting. All the files get closed, changes are commited, etc.

Another thing that I've discovered last night is that this only happens if I compile oci8 support as a php shared module:
--with-oci8=shared,/ora01/app/oracle/product/8.1.6

It works fine if compiled with just:
  --with-oci8=/ora01/app/oracle/product/8.1.6

This is now only a minor problem. The bug report could probably be closed.
 
PHP Copyright © 2001-2024 The PHP Group
All rights reserved.
Last updated: Wed Oct 30 22:01:28 2024 UTC