From: elm at unochapeco dot edu dot br
Operating system: Fedora Core 2 2.6.5-1.358smp
PHP version: 4.3.6
PHP Bug Type: OCI8 related
Bug description: Apache 2 crash when executes OCIFetchInto
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 ?? ()
--
Edit bug report at http://bugs.php.net/?id=28449&edit=1
--
Try a CVS snapshot (php4): http://bugs.php.net/fix.php?id=28449&r=trysnapshot4
Try a CVS snapshot (php5): http://bugs.php.net/fix.php?id=28449&r=trysnapshot5
Fixed in CVS: http://bugs.php.net/fix.php?id=28449&r=fixedcvs
Fixed in release: http://bugs.php.net/fix.php?id=28449&r=alreadyfixed
Need backtrace: http://bugs.php.net/fix.php?id=28449&r=needtrace
Need Reproduce Script: http://bugs.php.net/fix.php?id=28449&r=needscript
Try newer version: http://bugs.php.net/fix.php?id=28449&r=oldversion
Not developer issue: http://bugs.php.net/fix.php?id=28449&r=support
Expected behavior: http://bugs.php.net/fix.php?id=28449&r=notwrong
Not enough info: http://bugs.php.net/fix.php?id=28449&r=notenoughinfo
Submitted twice: http://bugs.php.net/fix.php?id=28449&r=submittedtwice
register_globals: http://bugs.php.net/fix.php?id=28449&r=globals
PHP 3 support discontinued: http://bugs.php.net/fix.php?id=28449&r=php3
Daylight Savings: http://bugs.php.net/fix.php?id=28449&r=dst
IIS Stability: http://bugs.php.net/fix.php?id=28449&r=isapi
Install GNU Sed: http://bugs.php.net/fix.php?id=28449&r=gnused
Floating point limitations: http://bugs.php.net/fix.php?id=28449&r=float