php.net |  support |  documentation |  report a bug |  advanced search |  search howto |  statistics |  random bug |  login
Bug #40659 child pid 7095 exit signal Segmentation fault (11)
Submitted: 2007-02-27 12:54 UTC Modified: 2007-02-27 15:03 UTC
From: kmvijay at yahoo dot com Assigned:
Status: Not a bug Package: OCI8 related
PHP Version: 4.4.5 OS: RHEL 4
Private report: No CVE-ID: None
 [2007-02-27 12:54 UTC] kmvijay at yahoo dot com
Description:
------------
Environment:
RHEL 4 comes with php4.3.9, 
I have recompiled php 4.3.9 with oci8 extension.
It produces half the data in web page, while the remaining is not displayed in web page. And the error_log is
child pid 7095 exit signal Segmentation fault (11).

Expected result:
----------------
All the data should display on the web page

Actual result:
--------------
Partial data is displayed on the web page.
And the error_log is
child pid 7095 exit signal Segmentation fault (11).

(gdb) bt
#0  0x0550e639 in lxhcsn ()
   from /home/oracle/product/10.2.0/db/lib/libclntsh.so.10.1
#1  0x05348ad7 in kodosgi ()
   from /home/oracle/product/10.2.0/db/lib/libclntsh.so.10.1
#2  0x04dc3a17 in kouogini ()
   from /home/oracle/product/10.2.0/db/lib/libclntsh.so.10.1
#3  0x04dc4749 in kouoini ()
   from /home/oracle/product/10.2.0/db/lib/libclntsh.so.10.1
#4  0x04c71c37 in kpuinit0 ()
   from /home/oracle/product/10.2.0/db/lib/libclntsh.so.10.1
#5  0x04c713c6 in kpuenvcr ()
   from /home/oracle/product/10.2.0/db/lib/libclntsh.so.10.1
#6  0x04d3d035 in OCIEnvNlsCreate ()
   from /home/oracle/product/10.2.0/db/lib/libclntsh.so.10.1
#7  0x07487ba9 in oci_do_connect (ht=Variable "ht" is not available.
)
    at /usr/src/debug/php-4.3.9/ext/oci8/oci8.c:2257
#8  0x07554522 in execute (op_array=0xc2aefd4)
    at /usr/src/debug/php-4.3.9/Zend/zend_execute.c:1640
#9  0x0755286a in execute (op_array=0xa917a04)
    at /usr/src/debug/php-4.3.9/Zend/zend_execute.c:1684
#10 0x0755286a in execute (op_array=0x99ec3a4)
    at /usr/src/debug/php-4.3.9/Zend/zend_execute.c:1684
#11 0x0755286a in execute (op_array=0xa7a0544)
    at /usr/src/debug/php-4.3.9/Zend/zend_execute.c:1684
#12 0x0755286a in execute (op_array=0xc2af104)
    at /usr/src/debug/php-4.3.9/Zend/zend_execute.c:1684
#13 0x07541ec5 in zend_execute_scripts (type=8, retval=0x0, file_count=3)
    at /usr/src/debug/php-4.3.9/Zend/zend.c:900
#14 0x07514cb9 in php_execute_script (primary_file=0xbffaa850)
    at /usr/src/debug/php-4.3.9/main/main.c:1752
#15 0x0755cdaf in php_handler (r=0x9607608)
    at /usr/src/debug/php-4.3.9/sapi/apache2handler/sapi_apache2.c:575
#16 0x00c8c9d7 in ap_run_handler () from /usr/sbin/httpd
#17 0x00c8ce43 in ap_invoke_handler () from /usr/sbin/httpd
#18 0x00c898c5 in ap_process_request () from /usr/sbin/httpd
#19 0x00c8463f in _start () from /usr/sbin/httpd
#20 0x09607608 in ?? ()
#21 0x00000004 in ?? ()
i#22 0x09607608 in ?? ()
#23 0x006aad89 in modperl_process_connection_handler ()
   from /etc/httpd/modules/mod_perl.so
#24 0x00c97369 in ap_run_process_connection () from /usr/sbin/httpd
#25 0x00c976d4 in ap_process_connection () from /usr/sbin/httpd
#26 0x00c8a919 in ap_graceful_stop_signalled () from /usr/sbin/httpd
#27 0x00c8ab5c in ap_graceful_stop_signalled () from /usr/sbin/httpd
#28 0x00c8ac2f in ap_graceful_stop_signalled () from /usr/sbin/httpd
#29 0x00c8b4f4 in ap_mpm_run () from /usr/sbin/httpd
#30 0x00c9236a in main () from /usr/sbin/httpd



Patches

Add a Patch

Pull Requests

Add a Pull Request

History

AllCommentsChangesGit/SVN commitsRelated reports
 [2007-02-27 12:56 UTC] derick@php.net
Thank you for taking the time to report a problem with PHP.
Unfortunately you are not using a current version of PHP -- 
the problem might already be fixed. Please download a new
PHP version from http://www.php.net/downloads.php

If you are able to reproduce the bug with one of the latest
versions of PHP, please change the PHP version on this bug report
to the version you tested and change the status back to "Open".
Again, thank you for your continued support of PHP.

.
 [2007-02-27 14:01 UTC] kmvijay at yahoo dot com
Can anyone please, tell me how to overcome this error.
From the gdb output?
Because I can't recompile with new version of php at this time.
 [2007-02-27 14:07 UTC] tony2001@php.net
Set ORACLE_HOME and other Oracle environment variables and make sure they are available to the Apache process.

 [2007-02-27 14:37 UTC] kmvijay at yahoo dot com
Below variable are set:

Below five are in PHP variables section
ORACLE_HOME 	/home/oracle/product/10.2.0/db
NLS_LANG 	AMERICAN
NLS_DATE_FORMAT DD-MON-YYYY HH24:MI:SS
ORA_NLS33 	/home/oracle/product/10.2.0/db/nls/data
LANG 	en_US

Below three are in Environment section
LD_LIBRARY_PATH 	/home/oracle/product/10.2.0/lib:/lib:/usr/lib:/usr/local/lib
ORACLE_BASE 	/home/oracle
TNS_ADMIN 	/home/oracle/product/10.2.0/db/network/admin
 [2007-02-27 14:46 UTC] tony2001@php.net
In this case, please update PHP first.
 [2007-02-27 15:00 UTC] kmvijay at yahoo dot com
I have a previous, next button in my web page.
When I click previous button, it shows all the data, when contineously cliking previous button, then at some point the above error comes (partial data is displayed and Segmentation fault).
But when I use the gdb bt, I could'nt find the segmentation error?.

Previously I was using PHP 4.3.4, oracle9i, RHEL2.1. and apache 1.3.27 It works fine with oci8.

The same code I have ported to RHEL4, oracle10g, PHP4.3.9.,Apache 2.0.52, it gives segmentation fault.

Ok. I will update to latest version.
Can you please tell me which version is suitable for RHEL 4, Apache 2.0.52, Oracle 10g Release 2(10.2.0.1.0)?
 [2007-02-27 15:03 UTC] tony2001@php.net
> Can you please tell me which version is suitable for RHEL
> 4, Apache 2.0.52, Oracle 10g Release 2(10.2.0.1.0)?

The latest stable version available.
http://www.php.net/downloads.php
 
PHP Copyright © 2001-2024 The PHP Group
All rights reserved.
Last updated: Thu May 02 14:01:34 2024 UTC