php.net |  support |  documentation |  report a bug |  advanced search |  search howto |  statistics |  random bug |  login
Bug #42530 Segmentation fault
Submitted: 2007-09-03 12:34 UTC Modified: 2007-09-11 01:00 UTC
Votes:1
Avg. Score:3.0 ± 0.0
Reproduced:1 of 1 (100.0%)
Same Version:0 (0.0%)
Same OS:0 (0.0%)
From: koc at rol dot ru Assigned:
Status: No Feedback Package: OCI8 related
PHP Version: 5.2.4 OS: Linux
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: koc at rol dot ru
New email:
PHP Version: OS:

 

 [2007-09-03 12:34 UTC] koc at rol dot ru
Description:
------------
Apache/2.2.4 (Unix) + php 5.2.4

PHP configure:
./configure -prefix=/usr/local/php \
-enable-sigchild \
-with-apxs2=/usr/local/apache2/bin/apxs \
-with-oci8=instantclient,/usr/local/oracle \
(OK)

make (OK)
make install (OK)


Run scripts - Segmentation fault
Look like Oracle (OCI8) problem.

---
checking PHP version... 5.2.4, ok
checking Oracle Instant Client directory... /usr/local/oracle
checking Oracle Instant Client SDK header directory... /usr/local/oracle/sdk/include
checking Oracle Instant Client version... 10.1
---

Actual result:
--------------
(gdb) run -X
Starting program: /usr/local/apache2/bin/httpd -X
Failed to read a valid object file image from memory.
[Thread debugging using libthread_db enabled]
[New Thread -1210434720 (LWP 20570)]

Program received signal SIGSEGV, Segmentation fault.
[Switching to Thread -1210434720 (LWP 20570)]
0xb6f67889 in kghmkfree () from /usr/local/oracle/libclntsh.so.10.1
(gdb) bt
#0  0xb6f67889 in kghmkfree () from /usr/local/oracle/libclntsh.so.10.1
#1  0xb6f6eacb in kghaddex () from /usr/local/oracle/libclntsh.so.10.1
#2  0xb6f70a03 in kghgex () from /usr/local/oracle/libclntsh.so.10.1
#3  0xb6f738e5 in kghfnd () from /usr/local/oracle/libclntsh.so.10.1
#4  0xb6f73ccf in kghprmalo () from /usr/local/oracle/libclntsh.so.10.1
#5  0xb6f761ec in kghalp () from /usr/local/oracle/libclntsh.so.10.1
#6  0xb6f7ffd7 in kghmrk () from /usr/local/oracle/libclntsh.so.10.1
#7  0xb6b4fea7 in kpuhhmrk () from /usr/local/oracle/libclntsh.so.10.1
#8  0xb6b56636 in kpurclr () from /usr/local/oracle/libclntsh.so.10.1
#9  0xb6ef144b in kpcxc2r () from /usr/local/oracle/libclntsh.so.10.1
#10 0xb6f472ea in ttcrs2c () from /usr/local/oracle/libclntsh.so.10.1
#11 0xb6f56034 in ttcacr () from /usr/local/oracle/libclntsh.so.10.1
#12 0xb6ee3aed in ttcdrv () from /usr/local/oracle/libclntsh.so.10.1
#13 0xb6dc8bc8 in nioqwa () from /usr/local/oracle/libclntsh.so.10.1
#14 0xb6c34618 in upirtrc () from /usr/local/oracle/libclntsh.so.10.1
#15 0xb6ba95f6 in kpurcsc () from /usr/local/oracle/libclntsh.so.10.1
#16 0xb6b5da0d in kpuexecv8 () from /usr/local/oracle/libclntsh.so.10.1
#17 0xb6b5fec4 in kpuexec () from /usr/local/oracle/libclntsh.so.10.1
#18 0xb6c391b6 in OCIStmtExecute () from /usr/local/oracle/libclntsh.so.10.1
#19 0xb793d8a1 in php_oci_statement_execute (statement=0x8311600, mode=3078026404) at /usr/local/src/php-5.2.4/ext/oci8/oci8_statement.c:442
#20 0xb79441fd in zif_oci_execute (ht=1, return_value=0xb65050d8, return_value_ptr=0x0, this_ptr=0x0, return_value_used=1)
    at /usr/local/src/php-5.2.4/ext/oci8/oci8_interface.c:1302
#21 0xb7abb644 in zend_do_fcall_common_helper_SPEC (execute_data=0xbf871680) at /usr/local/src/php-5.2.4/Zend/zend_vm_execute.h:200
#22 0xb7abad79 in execute (op_array=0xb6559184) at /usr/local/src/php-5.2.4/Zend/zend_vm_execute.h:92
#23 0xb7abaff9 in zend_do_fcall_common_helper_SPEC (execute_data=0xbf8718e0) at /usr/local/src/php-5.2.4/Zend/zend_vm_execute.h:234
#24 0xb7abad79 in execute (op_array=0xb64e423c) at /usr/local/src/php-5.2.4/Zend/zend_vm_execute.h:92
#25 0xb7abaff9 in zend_do_fcall_common_helper_SPEC (execute_data=0xbf871a30) at /usr/local/src/php-5.2.4/Zend/zend_vm_execute.h:234
#26 0xb7abad79 in execute (op_array=0xb64e4590) at /usr/local/src/php-5.2.4/Zend/zend_vm_execute.h:92
#27 0xb7abaff9 in zend_do_fcall_common_helper_SPEC (execute_data=0xbf8727c0) at /usr/local/src/php-5.2.4/Zend/zend_vm_execute.h:234
#28 0xb7abad79 in execute (op_array=0xb65490e0) at /usr/local/src/php-5.2.4/Zend/zend_vm_execute.h:92
#29 0xb7abaff9 in zend_do_fcall_common_helper_SPEC (execute_data=0xbf872950) at /usr/local/src/php-5.2.4/Zend/zend_vm_execute.h:234
#30 0xb7abad79 in execute (op_array=0xb6548f70) at /usr/local/src/php-5.2.4/Zend/zend_vm_execute.h:92
#31 0xb7abaff9 in zend_do_fcall_common_helper_SPEC (execute_data=0xbf872f50) at /usr/local/src/php-5.2.4/Zend/zend_vm_execute.h:234
#32 0xb7abad79 in execute (op_array=0xb65b3b2c) at /usr/local/src/php-5.2.4/Zend/zend_vm_execute.h:92
#33 0xb7a9f984 in zend_execute_scripts (type=8, retval=0x0, file_count=3) at /usr/local/src/php-5.2.4/Zend/zend.c:1134
#34 0xb7a6402a in php_execute_script (primary_file=0xbf875200) at /usr/local/src/php-5.2.4/main/main.c:1982
#35 0xb7b22f9c in php_handler (r=0x828ef38) at /usr/local/src/php-5.2.4/sapi/apache2handler/sapi_apache2.c:631
#36 0x08073036 in ap_run_handler (r=0x828ef38) at config.c:157
#37 0x08073476 in ap_invoke_handler (r=0x828ef38) at config.c:372
#38 0x0808923d in ap_process_request (r=0x828ef38) at http_request.c:258
#39 0x08086bf9 in ap_process_http_connection (c=0x8282938) at http_core.c:184
#40 0x08078f96 in ap_run_process_connection (c=0x8282938) at connection.c:43
#41 0x08099325 in child_main (child_num_arg=137440908) at prefork.c:640
#42 0x080994f3 in make_child (s=0x0, slot=0) at prefork.c:680
#43 0x08099a6e in ap_mpm_run (_pconf=0xbf875580, plog=0x80fb198, s=0xbf875584) at prefork.c:956
#44 0x08061fc4 in main (argc=2, argv=0xbf875734) at main.c:717


Patches

Pull Requests

History

AllCommentsChangesGit/SVN commitsRelated reports
 [2007-09-03 12:36 UTC] jani@php.net
Thank you for this bug report. To properly diagnose the problem, we
need a short but complete example script to be able to reproduce
this bug ourselves. 

A proper reproducing script starts with <?php and ends with ?>,
is max. 10-20 lines long and does not require any external 
resources such as databases, etc. If the script requires a 
database to demonstrate the issue, please make sure it creates 
all necessary tables, stored procedures etc.

Please avoid embedding huge scripts into the report.


 [2007-09-11 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-2025 The PHP Group
All rights reserved.
Last updated: Thu Jan 02 13:01:30 2025 UTC