php.net |  support |  documentation |  report a bug |  advanced search |  search howto |  statistics |  random bug |  login
Bug #28449 Apache 2 crash when executes OCIFetchInto
Submitted: 2004-05-19 22:11 UTC Modified: 2004-05-20 08:06 UTC
From: elm at unochapeco dot edu dot br Assigned:
Status: Not a bug Package: OCI8 related
PHP Version: 4.3.6 OS: Fedora Core 2 2.6.5-1.358smp
Private report: No CVE-ID: None
 [2004-05-19 22:11 UTC] elm at unochapeco dot edu dot br
Description:
------------
Apache 2 crash when executes OCIFetchInto

Reproduce code:
---------------
$curs = OCINewCursor($db);
$stmt = OCIParse($db,"begin sp_per_consulta_obra($cod_empresa ,$codAcervo,:reg_sql);end;");
ocibindbyname($stmt,":reg_sql",&$curs,-1,OCI_B_CURSOR);
ociexecute($stmt);
ociexecute($curs);
                                                                                                                             
while(OCIFetchInto($curs,&$reg_sql,OCI_ASSOC))
{

//crash when execute the OCIFetchInto


Actual result:
--------------
OCI-21500: internal error code, arguments: [ttcgcshnd-1], [0], [], [], [], [], [], []
Errors in file :
OCI-21500: internal error code, arguments: [ttcgcshnd-1], [0], [], [], [], [], [], []
 
 
----- Call Stack Trace -----
Cannot open /proc/3888/exe.
calling              call     entry                argument values in hex
location             type     point                (? means dubious value)
-------------------- -------- -------------------- ----------------------------
0447133B             CALL     042F2210             FEEC0C18 ? 44712FD ?
 
Program received signal SIGSEGV, Segmentation fault.
[Switching to Thread 16384 (LWP 3888)]
0x0481e7d7 in slrac () from /opt/oracle/product/9.2.0/lib/libclntsh.so.9.0

(gdb) bt
#0  0x0481e7d7 in slrac () from /opt/oracle/product/9.2.0/lib/libclntsh.so.9.0
#1  0x0486f827 in kgdsaaddr ()
   from /opt/oracle/product/9.2.0/lib/libclntsh.so.9.0
#2  0x0486f0e0 in kgdsdst ()
   from /opt/oracle/product/9.2.0/lib/libclntsh.so.9.0
#3  0x04471340 in skgudmp ()
   from /opt/oracle/product/9.2.0/lib/libclntsh.so.9.0
#4  0x0484aadc in kgeasnmierr ()
   from /opt/oracle/product/9.2.0/lib/libclntsh.so.9.0
#5  0x0469c78f in ttcgcshnd ()
   from /opt/oracle/product/9.2.0/lib/libclntsh.so.9.0
#6  0x0469ce1b in ttcc2u ()
   from /opt/oracle/product/9.2.0/lib/libclntsh.so.9.0
#7  0x046b4af1 in ttcaGetPiece ()
   from /opt/oracle/product/9.2.0/lib/libclntsh.so.9.0
#8  0x046b441d in ttccpwg ()
   from /opt/oracle/product/9.2.0/lib/libclntsh.so.9.0
#9  0x046b3332 in ttcfour ()
   from /opt/oracle/product/9.2.0/lib/libclntsh.so.9.0
#10 0x046abba1 in ttcdrv ()
   from /opt/oracle/product/9.2.0/lib/libclntsh.so.9.0
#11 0x04582138 in nioqwa ()
   from /opt/oracle/product/9.2.0/lib/libclntsh.so.9.0
#12 0x043d62c0 in upirtrc ()
   from /opt/oracle/product/9.2.0/lib/libclntsh.so.9.0
#13 0x043988ca in kpurcsc ()
   from /opt/oracle/product/9.2.0/lib/libclntsh.so.9.0
#14 0x044787b7 in kpufch0 ()
   from /opt/oracle/product/9.2.0/lib/libclntsh.so.9.0
#15 0x04479780 in kpufch ()
   from /opt/oracle/product/9.2.0/lib/libclntsh.so.9.0
#16 0x043baa95 in OCIStmtFetch ()
   from /opt/oracle/product/9.2.0/lib/libclntsh.so.9.0
#17 0x010702ce in oci_fetch (statement=0x9bed57c, nrows=1,
    func=0x11d23b7 "OCIFetchInto")
    at /home/oracle/download/php-4.3.6/ext/oci8/oci8.c:1830
#18 0x010761b7 in zif_ocifetchinto (ht=3, return_value=0x9c2876c,
    this_ptr=0x0, return_value_used=1)
    at /home/oracle/download/php-4.3.6/ext/oci8/oci8.c:4087
#19 0x0116bbf6 in execute (op_array=0x9bcad14)
    at /home/oracle/download/php-4.3.6/Zend/zend_execute.c:1635
#20 0x0115a563 in zend_execute_scripts (type=8, retval=0x0, file_count=3)
 at /home/oracle/download/php-4.3.6/Zend/zend.c:886
#21 0x01124597 in php_execute_script (primary_file=0xfeecfe40)
    at /home/oracle/download/php-4.3.6/main/main.c:1731
#22 0x01171ee1 in php_handler (r=0x9bbcec0)
    at /home/oracle/download/php-4.3.6/sapi/apache2handler/sapi_apache2.c:561
#23 0x00443c28 in ap_run_handler () from /usr/sbin/httpd
#24 0x09a3bfe8 in ?? ()
#25 0x00000000 in ?? ()


Patches

Pull Requests

History

AllCommentsChangesGit/SVN commitsRelated reports
 [2004-05-20 00:26 UTC] elm at unochapeco dot edu dot br
Looking in the Oracle Metalink i found a documentation about the problem. The bug is:
Bug:2299557 9IR2 CLIENT CANNOT FETCH LONG COLUMN FROM 8.0.6 SERVER 
I apply the patchset 8174 in database server and works.
 [2004-05-20 08:06 UTC] tony2001@php.net
Thanks for the explanation!
 
PHP Copyright © 2001-2024 The PHP Group
All rights reserved.
Last updated: Thu Dec 26 23:01:28 2024 UTC