php.net |  support |  documentation |  report a bug |  advanced search |  search howto |  statistics |  random bug |  login
Bug #28073 segmentation fault
Submitted: 2004-04-20 08:04 UTC Modified: 2004-04-29 01:00 UTC
Votes:1
Avg. Score:5.0 ± 0.0
Reproduced:1 of 1 (100.0%)
Same Version:0 (0.0%)
Same OS:0 (0.0%)
From: deviant at citiz dot net Assigned: tony2001 (profile)
Status: No Feedback Package: OCI8 related
PHP Version: 4.3.6 OS: RedHat 8.0
Private report: No CVE-ID: None
View Add Comment Developer Edit
Welcome! If you don't have a Git account, you can't do anything here.
You can add a comment by following this link or if you reported this bug, you can edit this bug over here.
(description)
Block user comment
Status: Assign to:
Package:
Bug Type:
Summary:
From: deviant at citiz dot net
New email:
PHP Version: OS:

 

 [2004-04-20 08:04 UTC] deviant at citiz dot net
Description:
------------
My apache2.0.49 always down when i browse a php page.
apache error_log shows
#tail /usr/local/apache/logs/error_log
[Tue Apr 20 13:20:49 2004] [notice] child pid 2117 exit signal Segmentation fault (11)
[Tue Apr 20 13:22:26 2004] [notice] child pid 2103 exit signal Segmentation fault (11)
[Tue Apr 20 13:22:27 2004] [notice] child pid 2119 exit signal Segmentation fault (11)
[Tue Apr 20 13:22:30 2004] [notice] child pid 2124 exit signal Segmentation fault (11)
[Tue Apr 20 13:22:30 2004] [notice] child pid 2115 exit signal Segmentation fault (11)
[Tue Apr 20 13:24:15 2004] [notice] child pid 2131 exit signal Segmentation fault (11)
[Tue Apr 20 13:25:33 2004] [notice] child pid 2143 exit signal Segmentation fault (11)
[Tue Apr 20 13:25:33 2004] [notice] child pid 2142 exit signal Segmentation fault (11)
[Tue Apr 20 13:25:45 2004] [notice] child pid 2132 exit signal Segmentation fault (11)
[Tue Apr 20 13:25:45 2004] [notice] child pid 2126 exit signal Segmentation fault (11)
[Tue Apr 20 13:25:45 2004] [notice] child pid 2123 exit signal Segmentation fault (11)
[Tue Apr 20 13:25:45 2004] [notice] child pid 2116 exit signal Segmentation fault (11)
[Tue Apr 20 13:27:27 2004] [notice] child pid 2122 exit signal Segmentation fault (11)

My environment is
RedHat8.0
apache2.0.49
php4.3.6
oracle9.2.0.1

apache2#./configure --prefix=/usr/local/apache --enable-so

php4.3.6#./configure --prefix=/usr/local/php --with-apxs2=/usr/local/apache/bin/apxs --with-oracle=/export/oracle/product/9i --with-oci8=/export/oracle/product/9i  --without-pcre --with-gd --with-jpeg-dir=/usr --with-png-dir=/usr --with-zlib-dir=/usr --with-xpm-dir=/usr


gdb /usr/local/apache/bin/httpd
run -X
Program received signal SIGSEGV, Segmentation fault.
[Switching to Thread 8192 (LWP 2033)]
0x406c3e71 in snauca_check_adapter () from /export/oracle/product/9i/lib/libclntsh.so.9.0
(gdb) bt
#0  0x406c3e71 in snauca_check_adapter () from /export/oracle/product/9i/lib/libclntsh.so.9.0
#1  0x406c25f4 in nau_viat () from /export/oracle/product/9i/lib/libclntsh.so.9.0
#2  0x406bb8ec in nau_gettab () from /export/oracle/product/9i/lib/libclntsh.so.9.0
#3  0x406b9f6b in nau_ini () from /export/oracle/product/9i/lib/libclntsh.so.9.0
#4  0x406af8d3 in nainit () from /export/oracle/product/9i/lib/libclntsh.so.9.0
#5  0x40663f57 in nsnainit () from /export/oracle/product/9i/lib/libclntsh.so.9.0
#6  0x4065929a in nsopen () from /export/oracle/product/9i/lib/libclntsh.so.9.0
#7  0x406423b9 in nscall1 () from /export/oracle/product/9i/lib/libclntsh.so.9.0
#8  0x406418f0 in nscall () from /export/oracle/product/9i/lib/libclntsh.so.9.0
#9  0x406d8914 in niotns () from /export/oracle/product/9i/lib/libclntsh.so.9.0
#10 0x406d4629 in nigcall () from /export/oracle/product/9i/lib/libclntsh.so.9.0
#11 0x40671b73 in osncon () from /export/oracle/product/9i/lib/libclntsh.so.9.0
#12 0x404ad8f3 in kpuadef () from /export/oracle/product/9i/lib/libclntsh.so.9.0
#13 0x40530ac5 in upiini () from /export/oracle/product/9i/lib/libclntsh.so.9.0
#14 0x4051fe1b in upiah0 () from /export/oracle/product/9i/lib/libclntsh.so.9.0
#15 0x40487eb6 in kpuatch () from /export/oracle/product/9i/lib/libclntsh.so.9.0
#16 0x40513f9c in OCIServerAttach () from /export/oracle/product/9i/lib/libclntsh.so.9.0
#17 0x40214895 in _oci_open_server (dbname=0x81e40ac "XINTV", persistent=0)
    at /usr/local/php-4.3.6/ext/oci8/oci8.c:2536
#18 0x40215409 in oci_do_connect (ht=3, return_value=0x81e552c, this_ptr=0x0, return_value_used=1, 
    persistent=0, exclusive=0) at /usr/local/php-4.3.6/ext/oci8/oci8.c:2701
#19 0x40219c44 in zif_ocilogon (ht=3, return_value=0x81e552c, this_ptr=0x0, return_value_used=1)
    at /usr/local/php-4.3.6/ext/oci8/oci8.c:4340
#20 0x4031357e in execute (op_array=0x81cc0f4) at /usr/local/php-4.3.6/Zend/zend_execute.c:1635
#21 0x403137b1 in execute (op_array=0x81dfa98) at /usr/local/php-4.3.6/Zend/zend_execute.c:1679
#22 0x403137b1 in execute (op_array=0x818696c) at /usr/local/php-4.3.6/Zend/zend_execute.c:1679
#23 0x40301e6b in zend_execute_scripts (type=8, retval=0x0, file_count=3)
    at /usr/local/php-4.3.6/Zend/zend.c:886
#24 0x402cbd80 in php_execute_script (primary_file=0xbffff7b0)
    at /usr/local/php-4.3.6/main/main.c:1731
---Type <return> to continue, or q <return> to quit---
#25 0x4031984d in php_handler (r=0x817c160)
    at /usr/local/php-4.3.6/sapi/apache2handler/sapi_apache2.c:561
#26 0x0807c436 in ap_run_handler (r=0x817c160) at config.c:152
#27 0x0807c94e in ap_invoke_handler (r=0x817c160) at config.c:358
#28 0x0806c5a7 in ap_process_request (r=0x817c160) at http_request.c:246
#29 0x08068681 in ap_process_http_connection (c=0x8177d18) at http_core.c:250
#30 0x080855d2 in ap_run_process_connection (c=0x8177d18) at connection.c:42
#31 0x0807afaf in child_main (child_num_arg=0) at prefork.c:609
#32 0x0807b15a in make_child (s=0x80b70e0, slot=0) at prefork.c:649
#33 0x0807b1b3 in startup_children (number_to_start=5) at prefork.c:721
#34 0x0807b8c1 in ap_mpm_run (_pconf=0x807a978, plog=0x80eca90, s=0x80b70e0) at prefork.c:940
#35 0x0808086e in main (argc=2, argv=0xbffffb34) at main.c:617
#36 0x420158d4 in __libc_start_main () from /lib/i686/libc.so.6
(gdb) 


Patches

Add a Patch

Pull Requests

Add a Pull Request

History

AllCommentsChangesGit/SVN commitsRelated reports
 [2004-04-21 00:09 UTC] iliaa@php.net
Sorry, but your problem does not imply a bug in PHP itself.  For a
list of more appropriate places to ask for help using PHP, please
visit http://www.php.net/support.php as this bug system is not the
appropriate forum for asking support questions. 

Thank you for your interest in PHP.

Given the provided backtrace it would seem that the crash 
is happening deep inside the oracle (?) library and as such 
is not something PHP is responsible for. 
 [2004-04-21 08:03 UTC] tony2001@php.net
Could you please try latest PHP5 snapshot and give me a short test case?
BTW, you don't need to build both oracle and oci8 extensions at the same time. Choose one of them (I recommend you oci8) and use it.
 [2004-04-29 01:00 UTC] php-bugs at lists dot php dot net
No feedback was provided for this bug for over a week, so it is
being suspended automatically. If you are able to provide the
information that was originally requested, please do so and change
the status of the bug back to "Open".
 
PHP Copyright © 2001-2024 The PHP Group
All rights reserved.
Last updated: Fri Mar 29 06:01:29 2024 UTC