#41981 [Opn->Bgs]: oci_execute crashes with database link

From: Date: Thu, 12 Jul 2007 20:11:57 +0000
Subject: #41981 [Opn->Bgs]: oci_execute crashes with database link
References: 1  Groups: php.bugs 
Request: Send a blank email to php-bugs+get-114990@lists.php.net to get a copy of this message
ID: 41981 Updated by: tony2001@php.net Reported By: david at acz dot org -Status: Open +Status: Bogus Bug Type: OCI8 related Operating System: SuSE Linux PHP Version: 5.2.3 New Comment: See bug #41069 and bug #36607. Not PHP problem. Previous Comments: ------------------------------------------------------------------------ [2007-07-12 20:01:18] 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 ------------------------------------------------------------------------ -- Edit this bug report at http://bugs.php.net/?id=41981&edit=1

« previous php.bugs (#114990) next »