Bug #16929 Updated: crash (segmentation fault) apache2 with oci8 option

From: Date: Thu, 02 May 2002 10:58:17 +0000
Subject: Bug #16929 Updated: crash (segmentation fault) apache2 with oci8 option
References: 1  Groups: php.bugs 
Request: Send a blank email to php-bugs+get-6711@lists.php.net to get a copy of this message
ID: 16929 Updated by: skarges@himalaya-corp.com Reported By: skarges@himalaya-corp.com -Status: Feedback +Status: Open Bug Type: OCI8 related Operating System: linux 2.4.4 PHP Version: 4.2.0 New Comment: 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 Previous Comments: ------------------------------------------------------------------------ [2002-05-02 06:56:06] derick@php.net Can you provide a full backtrace (type 'bt' instead of 'quit')? regards, Derick ------------------------------------------------------------------------ [2002-05-02 06:54:21] skarges@himalaya-corp.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:05:38] 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-04-30 17:25:52] steve@salvagenow.com Same thing occurs using Oracle 9i client. kernel 2.4.7 ------------------------------------------------------------------------ [2002-04-30 11:33:40] skarges@himalaya-corp.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. ------------------------------------------------------------------------ -- Edit this bug report at http://bugs.php.net/?id=16929&edit=1

« previous php.bugs (#6711) next »