From:             david at acz dot org
Operating system: SuSE Linux
PHP version:      5.2.3
PHP Bug Type:     OCI8 related
Bug description:  oci_execute crashes with database link

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 [EMAIL PROTECTED]");
    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 bug report at http://bugs.php.net/?id=41981&edit=1
-- 
Try a CVS snapshot (PHP 4.4): 
http://bugs.php.net/fix.php?id=41981&r=trysnapshot44
Try a CVS snapshot (PHP 5.2): 
http://bugs.php.net/fix.php?id=41981&r=trysnapshot52
Try a CVS snapshot (PHP 6.0): 
http://bugs.php.net/fix.php?id=41981&r=trysnapshot60
Fixed in CVS:                 http://bugs.php.net/fix.php?id=41981&r=fixedcvs
Fixed in release:             
http://bugs.php.net/fix.php?id=41981&r=alreadyfixed
Need backtrace:               http://bugs.php.net/fix.php?id=41981&r=needtrace
Need Reproduce Script:        http://bugs.php.net/fix.php?id=41981&r=needscript
Try newer version:            http://bugs.php.net/fix.php?id=41981&r=oldversion
Not developer issue:          http://bugs.php.net/fix.php?id=41981&r=support
Expected behavior:            http://bugs.php.net/fix.php?id=41981&r=notwrong
Not enough info:              
http://bugs.php.net/fix.php?id=41981&r=notenoughinfo
Submitted twice:              
http://bugs.php.net/fix.php?id=41981&r=submittedtwice
register_globals:             http://bugs.php.net/fix.php?id=41981&r=globals
PHP 3 support discontinued:   http://bugs.php.net/fix.php?id=41981&r=php3
Daylight Savings:             http://bugs.php.net/fix.php?id=41981&r=dst
IIS Stability:                http://bugs.php.net/fix.php?id=41981&r=isapi
Install GNU Sed:              http://bugs.php.net/fix.php?id=41981&r=gnused
Floating point limitations:   http://bugs.php.net/fix.php?id=41981&r=float
No Zend Extensions:           http://bugs.php.net/fix.php?id=41981&r=nozend
MySQL Configuration Error:    http://bugs.php.net/fix.php?id=41981&r=mysqlcfg

Reply via email to