#29864 [Opn->Fbk]: CLI PHP crash after successful script completion when querying Oracle 9 DB CLOB
ID: 29864
Updated by: derick@php.net
Reported By: Volker dot Weinberger at pharma dot novartis dot com
-Status: Open
+Status: Feedback
Bug Type: Reproducible crash
Operating System: Solaris 5.8
PHP Version: 5.0.1
New Comment:
Thank you for this bug report. To properly diagnose the problem, we
need a backtrace to see what is happening behind the scenes. To
find out how to generate a backtrace, please read
http://bugs.php.net/bugs-generating-backtrace.php
Once you have generated a backtrace, please submit it to this bug
report and change the status back to "Open". Thank you for helping
us make PHP better.
Previous Comments:
------------------------------------------------------------------------
[2004-08-27 12:40:03] Volker dot Weinberger at pharma dot novartis dot
com
Description:
------------
PHP CLI script consistently crashes with 5.0.1 *after* successful
completion, i.e. the script executes successfully right to the end
("just before the end" line is printed in sample script below). Then,
after a short delay, a bus error is produced (core dump).
The same scripts (as well as the original script, sample script is
shortened) work fine with CLI PHP 4.3.6 .
The issue is tracked down to the d.seq field in the Oracle query, which
is a CLOB 4000 field. The script does not crash when this field is
omitted from the query.
PEAR DB is used for Oracle connection. PEAR DB version:
//
// $Id: DB.php,v 1.59 2004/07/08 21:15:11 danielc Exp $
//
Reproduce code:
---------------
#!.../php501
<?php
require_once('DB.php');
$dbh = DB::connect("oci8://...");
if (!$dbh) {
die("ERROR:Cannot connect to BCH1!");
}
$sql = " SELECT d.seq " .
" FROM sqbox.seqmandata d WHERE d.nvs_id = 'NVS00002050'" ;
$sth=$dbh->query($sql);
if(DB::isError($sth)){
die ($sth->getMessage());
}
print "just before the end\n";
?>
Expected result:
----------------
No core dump.
Actual result:
--------------
Script produces full correct results, but core dumps right at the end.
------------------------------------------------------------------------
--
Edit this bug report at http://bugs.php.net/?id=29864&edit=1
Thread (6 messages)