php.net |  support |  documentation |  report a bug |  advanced search |  search howto |  statistics |  random bug |  login
Bug #16929 crash (segmentation fault) apache2 with oci8 option
Submitted: 2002-04-30 11:33 UTC Modified: 2002-05-14 07:21 UTC
Votes:3
Avg. Score:4.3 ± 0.9
Reproduced:2 of 2 (100.0%)
Same Version:2 (100.0%)
Same OS:2 (100.0%)
From: skarges at himalaya-corp dot com Assigned:
Status: Closed Package: OCI8 related
PHP Version: 4.2.0 OS: linux 2.4.4
Private report: No CVE-ID: None
View Developer Edit
Welcome! If you don't have a Git account, you can't do anything here.
If you reported this bug, you can edit this bug over here.
(description)
Block user comment
Status: Assign to:
Package:
Bug Type:
Summary:
From: skarges at himalaya-corp dot com
New email:
PHP Version: OS:

 

 [2002-04-30 11:33 UTC] skarges at himalaya-corp dot com
when i use option ./configure --with-apxs2=/usr/local/apache2/bin/apxs --with-oci8=/opt/oracle

i have a segmentation fault of apache server $HTTPD

the env variable ORACLE_HOME, NLS_LANG,ORACLE_BASE, ORACLE_OWNER are declared.

the oracle client is a 8.1.6 version.

thanks.

Patches

Pull Requests

History

AllCommentsChangesGit/SVN commitsRelated reports
 [2002-04-30 17:25 UTC] steve at salvagenow dot com
Same thing occurs using Oracle 9i client.

kernel 2.4.7
 [2002-05-02 06:05 UTC] sniper@php.net
To properly diagnose this bug, we need a backtrace to see what is
happening behind the scenes. To find out how to generate a backtrace,
please read http://bugs.php.net/bugs-generating-backtrace.php

Once you have generated a backtrace, please submit it to this bug
report and change the status back to "Open".


 [2002-05-02 06:54 UTC] skarges at himalaya-corp dot com
hello,

with httpd -X in console that not run.
with gdb i have this
(gdb) run -X
Starting program: /usr/local/apache2/bin/httpd -X
[New Thread 1024 (LWP 11478)]
 
Program received signal SIGSEGV, Segmentation fault.
[Switching to Thread 1024 (LWP 11478)]
php_apache_sapi_send_headers (sapi_headers=0x8140eb0, tsrm_ls=0x8140e48)
    at sapi_apache2.c:117
117             ctx->r->status = SG(sapi_headers).http_response_code;
(gdb) quit
 [2002-05-02 06:56 UTC] derick@php.net
Can you provide a full backtrace (type 'bt' instead of 'quit')?

regards,
Derick
 [2002-05-02 06:58 UTC] skarges at himalaya-corp dot com
with bt in gdb !!

 
(gdb) run -X
Starting program: /usr/local/apache2/bin/httpd -X
[New Thread 1024 (LWP 11478)]
 
Program received signal SIGSEGV, Segmentation fault.
[Switching to Thread 1024 (LWP 11478)]
php_apache_sapi_sen(gdb) run -X
Starting program: /usr/local/apache2/bin/httpd -X
[New Thread 1024 (LWP 11515)]

Program received signal SIGSEGV, Segmentation fault.
[Switching to Thread 1024 (LWP 11515)]
php_apache_sapi_send_headers (sapi_headers=0x8140eb0, tsrm_ls=0x8140e48)
    at sapi_apache2.c:117
117             ctx->r->status = SG(sapi_headers).http_response_code;
(gdb) bt
#0  php_apache_sapi_send_headers (sapi_headers=0x8140eb0, tsrm_ls=0x8140e48)
    at sapi_apache2.c:117
#1  0x402f429a in sapi_send_headers (tsrm_ls=0x8140e48) at SAPI.c:578
#2  0x4035246b in php_header () at head.c:58
#3  0x402f97ef in php_ub_body_write (
    str=0xbfffddfc "OCIDebug: START php_mshutdown_oci<br />\n", str_length=40,
    tsrm_ls=0x8140e48) at output.c:475
#4  0x402f8c26 in php_body_write (
    str=0xbfffddfc "OCIDebug: START php_mshutdown_oci<br />\n", str_length=40,
    tsrm_ls=0x8140e48) at output.c:99
#5  0x402edcb9 in php_printf (format=0x403b4e77 "OCIDebug: %s<br />\n")
    at main.c:355
#6  0x40317c39 in oci_debug (format=0x403b4acc "START php_mshutdown_oci")
    at oci8.c:1046
#7  0x40316f0c in zm_shutdown_oci (type=1, module_number=6, tsrm_ls=0x8140e48)
    at oci8.c:592
#8  0x402e46d3 in module_destructor (module=0x8182878) at zend_API.c:1127
#9  0x402e6348 in zend_hash_destroy (ht=0x403e2a20) at zend_hash.c:541
#10 0x402e0cdc in zend_shutdown (tsrm_ls=0x8140e48) at zend.c:490
#11 0x402ef9ce in php_module_shutdown (tsrm_ls=0x8140e48) at main.c:1050
#12 0x402ef978 in php_module_shutdown_wrapper (sapi_globals=0x403c3360)
    at main.c:1027
#13 0x402ecc25 in php_apache_server_shutdown (tmp=0x0) at sapi_apache2.c:422
---Type <return> to continue, or q <return> to quit---(gdb) run -X
#14 0x40043aec in run_cleanups (c=0x813ff98) at apr_pools.c:1713
#15 0x40042f61 in apr_pool_clear (pool=0x80bc8a0) at apr_pools.c:603
#16 0x8085c37 in main (argc=2, argv=0xbffff50c) at main.c:579
#17 0x40194c6f in __libc_start_main () from /lib/libc.so.6
(gdb) Starting program: /usr/local/apache2/bin/httpd -X
Undefined command: "Starting".  Try "help".
(gdb) [New Thread 1024 (LWP 11478)]
Undefined command: "".  Try "help".
(gdb)
(gdb) Program received signal SIGSEGV, Segmentation fault.
Undefined command: "Program".  Try "help".
(gdb) [Switching to Thread 1024 (LWP 11478)]
Undefined command: "".  Try "help".
(gdb) php_apache_sapi_send_headers (sapi_headers=0x8140eb0, tsrm_ls=0x8140e48)
Undefined command: "php".  Try "help".
(gdb)     at sapi_apache2.c:117d_headers (sapi_headers=0x8140eb0, tsrm_ls=0x8140e48)
    at sapi_apache2.c:117
117             ctx->r->status = SG(sapi_headers).http_response_code;
(gdb) quit
 [2002-05-03 05:50 UTC] k at jrq dot ch
i've the same problem with kernel 2.4.18. useing php 4.2.0 with apache 2.0.35 i'm getting a core dump during startup of httpd. with apache 1.3.24 it works, but if i select something on a table from an oracle db i get only unreadable data trash. with php 4.1.x it's working fine....
 [2002-05-03 09:31 UTC] skarges at himalaya-corp dot com
Yes that's work with 4.1.x but not with apache 2.0.35
i used another option and apache 2.0.35 didn't compile.
 [2002-05-14 07:09 UTC] ndebeer at MWEB dot COM
Ok i've got the same prob
I use apache2 php 4.06 oracle 9i installed full here with the error  the apache config.nice and php config.nice
error

apachectl start
/usr/local/apache/bin/apachectl: line 192:  1158 Segmentation fault      $HTTPD
/usr/local/apache/bin/apachectl start: httpd could not be started
]# 

apache

#! /bin/sh
#
# Created by configure
 
LIBS="-lpthread"; export LIBS
"./configure" \
"--prefix=/usr/local/apache" \
"--enable-module=most" \
"--enable-shared=max" \
"--enable-module=ssl" \
"--enable-shared=ssl" \
"$@"


php
#! /bin/sh
#
# Created by configure
 
'./configure' \
'--with-apxs2=/usr/local/apache/bin/apxs' \
'--with-config-file-path=/usr/local/apache/conf' \
'--enable-versioning' \
'--with-mysql=/usr/local' \
'--enable-ftp' \
'--with-imap=/usr/local' \
'--with-gd=/usr/local/gd1.3' \
'--enable-bcmath' \
'--disable-debug' \
'--enable-memory-limit=yes' \
'--enable-track-vars' \
'--with-oci8=/home/oracle/OraHome1' \
"$@"
~
 [2002-05-14 07:19 UTC] skarges at himalaya-corp dot com
hello,

the bug is solved with 4.2.1.

@++
 [2002-05-14 07:21 UTC] derick@php.net
Thank you for your bug report. This issue has already been fixed
in the latest released version of PHP, which you can download at 
http://www.php.net/downloads.php


 
PHP Copyright © 2001-2024 The PHP Group
All rights reserved.
Last updated: Tue Oct 08 08:01:27 2024 UTC