php.net |  support |  documentation |  report a bug |  advanced search |  search howto |  statistics |  random bug |  login
Bug #24599 Error on Apache2 when using oci8
Submitted: 2003-07-10 19:28 UTC Modified: 2003-07-10 20:40 UTC
From: minetto at unochapeco dot rct-sc dot br Assigned:
Status: Closed Package: OCI8 related
PHP Version: 4.3.2 OS: Conectiva Linux 9.0
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: minetto at unochapeco dot rct-sc dot br
New email:
PHP Version: OS:

 

 [2003-07-10 19:28 UTC] minetto at unochapeco dot rct-sc dot br
Description:
------------
When i use the oci8 functions, the Apache stops with this error:

[Thu Jul 10 20:54:20 2003] [notice] child pid 2862 exit signal Segmentation fault (11)

I'm using:

Conectiva Linux 9.0
Oracle Client 9.2.0.10
Kernel 2.4.21-28872cl
Glibc 2.3.1-27264U90_1cl
Apache-2.0.45-28790U90_2cl
PHP 4.3.2 (compiled from source or with the rpms)

PHP configuration 

'./configure' '--with-apxs2=/usr/sbin/apxs' '--prefix=/usr' '--with-ttf=/usr/include/freetype/freetype.h' '--enable-t1lib' '--with-xml' '--with-dbase' '--with-filepro' '--with-config-file-path=/etc/httpd/conf' '--with-fdftk=no' '--enable-debug=no' '--enable-magic-quotes' '--enable-debugger' '--enable-bcmath' '--enable-track-vars' '--enable-safe-mode' '--with-exec-dir=/usr/bin' '--with-system-regex' '--enable-ftp' '--with-versioning' '--with-mysql' '--enable-sigchild' '--with-oci8'



Reproduce code:
---------------
<?
$conn = ocilogon($sql_usuario,$sql_senha,$this->db);
$stmt = ociparse($this->conn,$sql);
$err = ociexecute($this->stmt,OCI_DEFAULT);
ocifetch($this->stmt);
echo ociresult($this->stmt,strtoupper($col));
...
?>

This is a simple example. With php 4.2.3 works fine.


Expected result:
----------------
Anything else a error.

Actual result:
--------------
gdb /usr/sbin/httpd -c core
GNU gdb 5.2.1
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 "i686-pc-linux-gnu"...(no debugging symbols found)...
Core was generated by `/usr/sbin/httpd -k start -DSSL'.
Program terminated with signal 11, Segmentation fault.
Reading symbols from /usr/lib/libz.so.1...(no debugging symbols found)...done.
Loaded symbols for /usr/lib/libz.so.1
Reading symbols from /usr/lib/libaprutil.so.0...(no debugging symbols found)...done.
Loaded symbols for /usr/lib/libaprutil.so.0
Reading symbols from /usr/lib/libldap.so.2...(no debugging symbols found)...done.
Loaded symbols for /usr/lib/libldap.so.2
Reading symbols from /usr/lib/libsasl2.so.2...(no debugging symbols found)...done.
Loaded symbols for /usr/lib/libsasl2.so.2
Reading symbols from /lib/libresolv.so.2...(no debugging symbols found)...done.
Loaded symbols for /lib/libresolv.so.2
Reading symbols from /usr/lib/krb5/libkrb5.so.3...(no debugging symbols found)...done.
Loaded symbols for /usr/lib/krb5/libkrb5.so.3
Reading symbols from /usr/lib/krb5/libk5crypto.so.3...(no debugging symbols found)...done.
Loaded symbols for /usr/lib/krb5/libk5crypto.so.3
Reading symbols from /usr/lib/krb5/libcom_err.so.3...(no debugging symbols found)...done.
Loaded symbols for /usr/lib/krb5/libcom_err.so.3
Reading symbols from /usr/lib/libssl.so.0.9.7...(no debugging symbols found)...done.
Loaded symbols for /usr/lib/libssl.so.0.9.7
Reading symbols from /usr/lib/libcrypto.so.0.9.7...(no debugging symbols found)...done.
Loaded symbols for /usr/lib/libcrypto.so.0.9.7
Reading symbols from /usr/lib/liblber.so.2...(no debugging symbols found)...done.
Loaded symbols for /usr/lib/liblber.so.2
Reading symbols from /usr/lib/libgdbm.so.2...(no debugging symbols found)...done.
Loaded symbols for /usr/lib/libgdbm.so.2
Reading symbols from /usr/lib/libdb-4.0.so...(no debugging symbols found)...done.
Loaded symbols for /usr/lib/libdb-4.0.so
Reading symbols from /usr/lib/libexpat.so.0...(no debugging symbols found)...done.
Loaded symbols for /usr/lib/libexpat.so.0
Reading symbols from /usr/lib/libapr.so.0...(no debugging symbols found)...done.
Loaded symbols for /usr/lib/libapr.so.0
Reading symbols from /lib/libm.so.6...(no debugging symbols found)...done.
Loaded symbols for /lib/libm.so.6
Reading symbols from /lib/libcrypt.so.1...(no debugging symbols found)...done.
Loaded symbols for /lib/libcrypt.so.1
Reading symbols from /lib/libnsl.so.1...(no debugging symbols found)...done.
Loaded symbols for /lib/libnsl.so.1
Reading symbols from /lib/libdl.so.2...(no debugging symbols found)...done.
Loaded symbols for /lib/libdl.so.2
Reading symbols from /lib/libpthread.so.0...done.
Loaded symbols for /lib/libpthread.so.0
Reading symbols from /lib/libc.so.6...done.
Loaded symbols for /lib/libc.so.6
Reading symbols from /lib/ld-linux.so.2...done.
Loaded symbols for /lib/ld-linux.so.2
Reading symbols from /lib/libnss_files.so.2...done.
Loaded symbols for /lib/libnss_files.so.2
Reading symbols from /usr/lib/apache/modules/mod_access.so...done.
Loaded symbols for /usr/lib/apache/modules/mod_access.so
Reading symbols from /usr/lib/apache/modules/mod_auth.so...done.
Loaded symbols for /usr/lib/apache/modules/mod_auth.so
Reading symbols from /usr/lib/apache/modules/mod_auth_anon.so...done.
Loaded symbols for /usr/lib/apache/modules/mod_auth_anon.so
Reading symbols from /usr/lib/apache/modules/mod_auth_dbm.so...done.
Loaded symbols for /usr/lib/apache/modules/mod_auth_dbm.so
Reading symbols from /usr/lib/apache/modules/mod_auth_digest.so...done.
Loaded symbols for /usr/lib/apache/modules/mod_auth_digest.so
Reading symbols from /usr/lib/apache/modules/mod_ldap.so...done.
Loaded symbols for /usr/lib/apache/modules/mod_ldap.so
Reading symbols from /usr/lib/apache/modules/mod_ext_filter.so...done.
Loaded symbols for /usr/lib/apache/modules/mod_ext_filter.so
Reading symbols from /usr/lib/apache/modules/mod_include.so...done.
Loaded symbols for /usr/lib/apache/modules/mod_include.so
Reading symbols from /usr/lib/apache/modules/mod_deflate.so...done.
Loaded symbols for /usr/lib/apache/modules/mod_deflate.so
Reading symbols from /usr/lib/apache/modules/mod_log_config.so...done.
Loaded symbols for /usr/lib/apache/modules/mod_log_config.so
Reading symbols from /usr/lib/apache/modules/mod_env.so...done.
Loaded symbols for /usr/lib/apache/modules/mod_env.so
Reading symbols from /usr/lib/apache/modules/mod_mime_magic.so...done.
Loaded symbols for /usr/lib/apache/modules/mod_mime_magic.so
Reading symbols from /usr/lib/apache/modules/mod_cern_meta.so...done.
Loaded symbols for /usr/lib/apache/modules/mod_cern_meta.so
Reading symbols from /usr/lib/apache/modules/mod_expires.so...done.
Loaded symbols for /usr/lib/apache/modules/mod_expires.so
Reading symbols from /usr/lib/apache/modules/mod_headers.so...done.
Loaded symbols for /usr/lib/apache/modules/mod_headers.so
Reading symbols from /usr/lib/apache/modules/mod_usertrack.so...done.
Loaded symbols for /usr/lib/apache/modules/mod_usertrack.so
Reading symbols from /usr/lib/apache/modules/mod_unique_id.so...done.
Loaded symbols for /usr/lib/apache/modules/mod_unique_id.so
Reading symbols from /usr/lib/apache/modules/mod_setenvif.so...done.
Loaded symbols for /usr/lib/apache/modules/mod_setenvif.so
Reading symbols from /usr/lib/apache/modules/mod_proxy.so...done.
Loaded symbols for /usr/lib/apache/modules/mod_proxy.so
---Type <return> to continue, or q <return> to quit---
Reading symbols from /usr/lib/apache/modules/mod_proxy_connect.so...done.
Loaded symbols for /usr/lib/apache/modules/mod_proxy_connect.so
Reading symbols from /usr/lib/apache/modules/mod_proxy_ftp.so...done.
Loaded symbols for /usr/lib/apache/modules/mod_proxy_ftp.so
Reading symbols from /usr/lib/apache/modules/mod_proxy_http.so...done.
Loaded symbols for /usr/lib/apache/modules/mod_proxy_http.so
Reading symbols from /usr/lib/apache/modules/mod_ssl.so...done.
Loaded symbols for /usr/lib/apache/modules/mod_ssl.so
Reading symbols from /usr/lib/apache/modules/mod_mime.so...done.
Loaded symbols for /usr/lib/apache/modules/mod_mime.so
Reading symbols from /usr/lib/apache/modules/mod_status.so...done.
Loaded symbols for /usr/lib/apache/modules/mod_status.so
Reading symbols from /usr/lib/apache/modules/mod_autoindex.so...done.
Loaded symbols for /usr/lib/apache/modules/mod_autoindex.so
Reading symbols from /usr/lib/apache/modules/mod_asis.so...done.
Loaded symbols for /usr/lib/apache/modules/mod_asis.so
Reading symbols from /usr/lib/apache/modules/mod_info.so...done.
Loaded symbols for /usr/lib/apache/modules/mod_info.so
Reading symbols from /usr/lib/apache/modules/mod_cgi.so...done.
Loaded symbols for /usr/lib/apache/modules/mod_cgi.so
Reading symbols from /usr/lib/apache/modules/mod_vhost_alias.so...done.
Loaded symbols for /usr/lib/apache/modules/mod_vhost_alias.so
Reading symbols from /usr/lib/apache/modules/mod_negotiation.so...done.
Loaded symbols for /usr/lib/apache/modules/mod_negotiation.so
Reading symbols from /usr/lib/apache/modules/mod_dir.so...done.
Loaded symbols for /usr/lib/apache/modules/mod_dir.so
Reading symbols from /usr/lib/apache/modules/mod_imap.so...done.
Loaded symbols for /usr/lib/apache/modules/mod_imap.so
Reading symbols from /usr/lib/apache/modules/mod_actions.so...done.
Loaded symbols for /usr/lib/apache/modules/mod_actions.so
Reading symbols from /usr/lib/apache/modules/mod_speling.so...done.
Loaded symbols for /usr/lib/apache/modules/mod_speling.so
Reading symbols from /usr/lib/apache/modules/mod_userdir.so...done.
Loaded symbols for /usr/lib/apache/modules/mod_userdir.so
Reading symbols from /usr/lib/apache/modules/mod_alias.so...done.
Loaded symbols for /usr/lib/apache/modules/mod_alias.so
Reading symbols from /usr/lib/apache/modules/mod_rewrite.so...done.
Loaded symbols for /usr/lib/apache/modules/mod_rewrite.so
Reading symbols from /usr/lib/apache/modules/libphp4.so...done.
Loaded symbols for /usr/lib/apache/modules/libphp4.so
Reading symbols from /u01/app/oracle/product/9.2.0/lib/libclntsh.so.9.0...done.
Loaded symbols for /u01/app/oracle/product/9.2.0/lib/libclntsh.so.9.0
Reading symbols from /u01/app/oracle/product/9.2.0/lib/libwtc9.so...done.
Loaded symbols for /u01/app/oracle/product/9.2.0/lib/libwtc9.so
#0  0x4000a206 in do_lookup_versioned () from /lib/ld-linux.so.2
(gdb) bt
#0  0x4000a206 in do_lookup_versioned () from /lib/ld-linux.so.2
#1  0x4000930b in _dl_lookup_versioned_symbol_internal () from /lib/ld-linux.so.2
#2  0x4000c7ad in fixup () from /lib/ld-linux.so.2
#3  0x4000c690 in _dl_runtime_resolve () from /lib/ld-linux.so.2
#4  0x40394901 in __pthread_sighandler () from /lib/libpthread.so.0
#5  0x40400a98 in sigaction () from /lib/libc.so.6
#6  0x4000930b in _dl_lookup_versioned_symbol_internal () from /lib/ld-linux.so.2
#7  0x4000c7ad in fixup () from /lib/ld-linux.so.2
#8  0x4000c690 in _dl_runtime_resolve () from /lib/ld-linux.so.2
#9  0x0806ab8a in main ()
#10 0x403eda14 in __libc_start_main () from /lib/libc.so.6
(gdb)

Patches

Pull Requests

History

AllCommentsChangesGit/SVN commitsRelated reports
 [2003-07-10 20:32 UTC] minetto at unochapeco dot rct-sc dot br
I install the snapshot and is ok.
Thanks.
 
PHP Copyright © 2001-2024 The PHP Group
All rights reserved.
Last updated: Wed Nov 13 05:01:29 2024 UTC