php.net |  support |  documentation |  report a bug |  advanced search |  search howto |  statistics |  random bug |  login
Bug #6910 Apache core dumps when PHP is compiled with oci8 support
Submitted: 2000-09-27 20:35 UTC Modified: 2006-07-17 08:35 UTC
From: php at tauras dot com Assigned:
Status: Not a bug Package: OCI8 related
PHP Version: 4.0.3pl1 OS: Linux RedHat 6.2 or Mandrake 7
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: php at tauras dot com
New email:
PHP Version: OS:

 

 [2000-09-27 20:35 UTC] php at tauras dot com
I tried this on two computers, but received the same result: when I trying to start Apache with PHP and Oracle support, it crashes, when I tried to do the same without Oracle, it works fine.
My configuration is:
./configure --with-apxs=/usr/local/apache/bin/apxs --with-mod_charset --enable-force-cgi-redirect\
 --with-oci8=/usr/local/oracle/8i/u01/app/oracle/product/8.1.6 --enable-track-vars=yes --enable-safe-mode=no\
 --enable-discard-path --with-config-file-path=/usr/local/apache/conf\
 --enable-debug --enable-sigchild --enable-magic-quotes\
 --enable-calendar --enable-dbase --enable-filepro \
 --enable-ftp --with-pdflib=/usr/local --with-zlib-dir=/usr/local/lib --with-jpeg-dir=/usr/local/lib --with-png-dir=/usr/local/lib --with-tiff-dir=/usr/local/lib --enable-trans-sid\
 --without-mysql --enable-shared

After the core dumps, over the GDB I received:

GNU gdb 19991004
This GDB was configured as "i386-redhat-linux"...
Core was generated by `/usr/local/apache/bin/httpd'.
Program terminated with signal 11, Segmentation fault.
Reading symbols from /lib/libm.so.6...done.
Reading symbols from /lib/libcrypt.so.1...done.
Reading symbols from /lib/libdb.so.3...done.
Reading symbols from /lib/libdl.so.2...done.
Reading symbols from /lib/libc.so.6...done.
Reading symbols from /lib/ld-linux.so.2...done.
Reading symbols from /lib/libnss_files.so.2...done.
Reading symbols from /usr/local/apache/libexec/mod_mmap_static.so...done.
Reading symbols from /usr/local/apache/libexec/mod_vhost_alias.so...done.
Reading symbols from /usr/local/apache/libexec/mod_env.so...done.
Reading symbols from /usr/local/apache/libexec/mod_log_config.so...done.
Reading symbols from /usr/local/apache/libexec/mod_log_agent.so...done.
Reading symbols from /usr/local/apache/libexec/mod_log_referer.so...done.
Reading symbols from /usr/local/apache/libexec/mod_mime_magic.so...done.
Reading symbols from /usr/local/apache/libexec/mod_mime.so...done.
Reading symbols from /usr/local/apache/libexec/mod_negotiation.so...done.
Reading symbols from /usr/local/apache/libexec/mod_status.so...done.
Reading symbols from /usr/local/apache/libexec/mod_info.so...done.
Reading symbols from /usr/local/apache/libexec/mod_include.so...done.
Reading symbols from /usr/local/apache/libexec/mod_autoindex.so...done.
Reading symbols from /usr/local/apache/libexec/mod_dir.so...done.
Reading symbols from /usr/local/apache/libexec/mod_cgi.so...done.
Reading symbols from /usr/local/apache/libexec/mod_asis.so...done.
Reading symbols from /usr/local/apache/libexec/mod_imap.so...done.
Reading symbols from /usr/local/apache/libexec/mod_actions.so...done.
Reading symbols from /usr/local/apache/libexec/mod_speling.so...done.
Reading symbols from /usr/local/apache/libexec/mod_userdir.so...done.
Reading symbols from /usr/local/apache/libexec/mod_alias.so...done.
Reading symbols from /usr/local/apache/libexec/mod_rewrite.so...done.
Reading symbols from /usr/local/apache/libexec/mod_access.so...done.
Reading symbols from /usr/local/apache/libexec/mod_auth.so...done.
Reading symbols from /usr/local/apache/libexec/mod_auth_anon.so...done.
Reading symbols from /usr/local/apache/libexec/mod_auth_dbm.so...done.
Reading symbols from /usr/local/apache/libexec/mod_auth_db.so...done.
Reading symbols from /usr/local/apache/libexec/mod_digest.so...done.
Reading symbols from /usr/local/apache/libexec/libproxy.so...done.
Reading symbols from /usr/local/apache/libexec/mod_cern_meta.so...done.
Reading symbols from /usr/local/apache/libexec/mod_expires.so...done.
Reading symbols from /usr/local/apache/libexec/mod_headers.so...done.
Reading symbols from /usr/local/apache/libexec/mod_usertrack.so...done.
Reading symbols from /usr/local/apache/libexec/mod_example.so...done.
Reading symbols from /usr/local/apache/libexec/mod_unique_id.so...done.
Reading symbols from /usr/local/apache/libexec/mod_setenvif.so...done.
Reading symbols from /usr/local/apache/libexec/libphp4.so...done.
Reading symbols from /usr/lib/libgdbm.so.2...done.
Reading symbols from /lib/libpam.so.0...done.
Reading symbols from /usr/lib/libpdf.so.1...done.
Reading symbols from /usr/lib/libtiff.so.3...done.
Reading symbols from /usr/lib/libpng.so.2...done.
Reading symbols from /usr/lib/libjpeg.so.62...done.
Reading symbols from /usr/local/oracle/8i/u01/app/oracle/product/8.1.6/lib/libclntsh.so.8.0...done.
Reading symbols from /usr/lib/libgd.so.1...done.
Reading symbols from /lib/libresolv.so.2...done.
Reading symbols from /lib/libnsl.so.1...done.
Reading symbols from /usr/lib/libz.so.1...done.
Reading symbols from /usr/local/oracle/8i/u01/app/oracle/product/8.1.6/lib/libwtc8.so...done.
Reading symbols from /lib/libpthread.so.0...done.
#0  0x40a0d774 in ?? ()
(gdb) bt
#0  0x40a0d774 in ?? ()
#1  0x401352eb in __getpwnam_r (name=0x80c1d74 "nobody", resbuf=0x40196240, buffer=0x80c7688 "nobody", buflen=1024,
    result=0xbfffd7ac) at ../nss/getXXbyYY_r.c:182
#2  0x40134ba0 in getpwnam (name=0x80c1d74 "nobody") at ../nss/getXXbyYY.c:123
#3  0x806be7e in ap_uname2id ()
#4  0x805944e in set_user ()
#5  0x80549fa in invoke_cmd ()
#6  0x8055393 in ap_handle_command ()
#7  0x8055427 in ap_srm_command_loop ()
#8  0x8055830 in ap_process_resource_config ()
#9  0x80560f2 in ap_read_config ()
#10 0x805f951 in standalone_main ()
#11 0x80601c3 in main ()
#12 0x400bc9cb in __libc_start_main (main=0x805fe7c <main>, argc=1, argv=0xbffff9c4, init=0x804e870 <_init>,
    fini=0x809419c <_fini>, rtld_fini=0x4000ae60 <_dl_fini>, stack_end=0xbffff9bc) at ../sysdeps/generic/libc-start.c:92

Thank You for PHP and Your support

Sincerely,
Tauras Paliulis

Patches

Pull Requests

History

AllCommentsChangesGit/SVN commitsRelated reports
 [2000-10-12 04:47 UTC] php at tauras dot com
The same error persists on PHP 4.0.3 also... on both OS's
 [2000-10-17 02:46 UTC] php at tauras dot com
The same error on PHP 4.0.3pl1.
 [2000-10-17 06:27 UTC] sniper@php.net
Have you got these environment variables set when you start Apache:

http://www.php.net/manual/ref.oci8.php

--Jani

 [2000-10-17 07:05 UTC] php at tauras dot com
Thank You. I forgot to put "LD_PRELOAD=libclntsh.so.8.0"
 
PHP Copyright © 2001-2024 The PHP Group
All rights reserved.
Last updated: Thu Dec 26 18:01:31 2024 UTC