php.net |  support |  documentation |  report a bug |  advanced search |  search howto |  statistics |  random bug |  login
Bug #41981 oci_execute crashes with database link
Submitted: 2007-07-12 20:01 UTC Modified: 2007-07-12 20:11 UTC
From: david at acz dot org Assigned:
Status: Not a bug Package: OCI8 related
PHP Version: 5.2.3 OS: SuSE 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: david at acz dot org
New email:
PHP Version: OS:

 

 [2007-07-12 20:01 UTC] david at acz dot org
Description:
------------
oci_execute() crashes when selecting from a table accessed via a database link.

client: Instant Client linux32-10.2.0.3-20061115

servers: Oracle Database 10g Express Edition Release 10.2.0.1.0 - Production


Reproduce code:
---------------
<?
    $c = oci_connect("user", "password", "database");
    $s = oci_parse($c, "SELECT * FROM mytable@mylink.world");
    oci_execute($s);
?>


Actual result:
--------------
(gdb) run
Starting program: /usr/local/bin/php oracrash.php
[Thread debugging using libthread_db enabled]
[New Thread 1095531616 (LWP 13779)]

Program received signal SIGSEGV, Segmentation fault.
[Switching to Thread 1095531616 (LWP 13779)]
0x407fcd9a in ttcfopr () from /opt/instantclient/libclntsh.so.10.1
(gdb) bt
#0  0x407fcd9a in ttcfopr () from /opt/instantclient/libclntsh.so.10.1
#1  0x407f4091 in ttcdrv () from /opt/instantclient/libclntsh.so.10.1
#2  0x406d9244 in nioqwa () from /opt/instantclient/libclntsh.so.10.1
#3  0x4054627c in upirtrc () from /opt/instantclient/libclntsh.so.10.1
#4  0x404bbb52 in kpurcsc () from /opt/instantclient/libclntsh.so.10.1
#5  0x40471407 in kpuexecv8 () from /opt/instantclient/libclntsh.so.10.1
#6  0x40473987 in kpuexec () from /opt/instantclient/libclntsh.so.10.1
#7  0x4054ae1e in OCIStmtExecute () from /opt/instantclient/libclntsh.so.10.1
#8  0x08110431 in php_oci_statement_execute (statement=0x84a73d4,
    mode=1090918916) at /tmp/php-5.2.3/ext/oci8/oci8_statement.c:441
#9  0x081151da in zif_oci_execute (ht=1, return_value=0x414d69ec,
    return_value_ptr=0x0, this_ptr=0x0, return_value_used=0)
    at /tmp/php-5.2.3/ext/oci8/oci8_interface.c:1287
#10 0x0827250a in zend_do_fcall_common_helper_SPEC (execute_data=0xbfffcfd0)
    at zend_vm_execute.h:200
#11 0x082bb949 in execute (op_array=0x414d6e94) at zend_vm_execute.h:92
#12 0x08255efe in zend_execute_scripts (type=8, retval=0x0, file_count=3)
    at /tmp/php-5.2.3/Zend/zend.c:1134
#13 0x0821dc89 in php_execute_script (primary_file=0xbffff440)
    at /tmp/php-5.2.3/main/main.c:1794
#14 0x082be71b in main (argc=2, argv=0xbffff514)
    at /tmp/php-5.2.3/sapi/cli/php_cli.c:1138


Patches

Pull Requests

History

AllCommentsChangesGit/SVN commitsRelated reports
 [2007-07-12 20:11 UTC] tony2001@php.net
See bug #41069 and bug #36607.
Not PHP problem.
 
PHP Copyright © 2001-2025 The PHP Group
All rights reserved.
Last updated: Tue Jul 15 11:01:32 2025 UTC