ID: 29864
User updated by: Volker dot Weinberger at pharma dot novartis dot com
Reported By: Volker dot Weinberger at pharma dot novartis dot com
-Status: Feedback
+Status: Open
Bug Type: Reproducible crash
Operating System: Solaris 5.8
PHP Version: 5.0.1
New Comment:
Backtrace attempt:
unfortunately I'm not able to compile with --enable-debug (filed as a
separate bug report).
Backtrace info without --enable-debug:
(gdb) bt
#0 0x7edbe1ac in kpughndl0 ()from
/u01/home/oracle/product/9.2.0/lib32/libclntsh.so.9.0
#1 0xbcd5c in _oci_close_session ()
#2 0x2597ec in list_entry_destructor ()
#3 0x256fc4 in zend_hash_del_key_or_index ()
#4 0x259480 in _zend_list_delete ()
#5 0xb8ea0 in _oci_conn_list_dtor ()
#6 0x2597ec in list_entry_destructor ()
#7 0x2572a4 in zend_hash_apply_deleter ()
#8 0x25746c in zend_hash_graceful_reverse_destroy ()
#9 0x23d1cc in shutdown_executor ()
#10 0x24ec38 in zend_deactivate ()
#11 0x1eda8c in php_request_shutdown ()
#12 0x28a984 in main ()
(gdb) frame 2
#2 0x2597ec in list_entry_destructor ()
<tor_globals.function_state_ptr->function)->common.function_name
Attempt to extract a component of a value that is not a structure.
(gdb) frame 1
#1 0xbcd5c in _oci_close_session ()
<function_state_ptr->function)->common.function_name
Attempt to extract a component of a value that is not a structure.
<tor_globals.function_state_ptr->function)->common.function_name
Previous Comments:
------------------------------------------------------------------------
[2004-08-27 13:17:14] [EMAIL PROTECTED]
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.
------------------------------------------------------------------------
[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