[xdebug-dev] Bug 0000315: xdebug crash when including a file that doesn't exist

From: <noreply[@]lists.xdebug.org>
Date: Thu, 25 Oct 2007 22:44:25 +0200

The following bug has been CLOSED
======================================================================
http://bugs.xdebug.org/bug_view_page.php?bug_id=0000315
======================================================================
Reporter: magnus
Handler:
======================================================================
Project: Xdebug
Bug ID: 315
Category: Debug client (console)
Reproducibility: always
Severity: crash
Priority: normal
Status: closed
Operating System: Kubuntu 7.04
PHP Version: 5.2-dev
Xdebug Version: 2.1.0-dev
======================================================================
Date Submitted: 2007-10-14 22:46 CEST
Last Modified: 2007-10-25 22:44 CEST
======================================================================
Summary: xdebug crash when including a file that doesn't exist
Description:
PHP version is 5.3-dev.

Code to reproduce:
<?php
include 'doesnt-exist.php';
?>
======================================================================

----------------------------------------------------------------------
 mhorvath - 2007-10-22 19:07 CEST
----------------------------------------------------------------------
Same here!

Funny thing, the segmentation fault is being produced here:

Core was generated by `/opt/php-5.2.4/bin/php -d safe_mode=Off
/opt/php/bin/phpunit --report=/tmp --ve'.
Program terminated with signal 11, Segmentation fault.
http://bugs.xdebug.org/bug_view_page.php?bug_id=0000000 0x00002afc5598a207 in prefill_from_oparray (fse=0x2c80270,
fn=0x2ea2cd0
"/data/bamboo/build-dir/PHX-TRUNK/Tests/UnitTests/Libraries/Phx/Controller/Dispatcher/NoClass.php",
opa=0x2bb64c0)
    at /tmp/pear/cache/xdebug-2.0.0/xdebug_code_coverage.c:240
240 if (opa->opcodes[opa->size - 4].opcode ==
ZEND_RAISE_ABSTRACT_ERROR)

----------------------------------------------------------------------
 derick - 2007-10-25 09:39 CEST
----------------------------------------------------------------------
This patch should fix it:
http://pastebin.ca/748874

----------------------------------------------------------------------
 derick - 2007-10-25 22:44 CEST
----------------------------------------------------------------------
Fixed in CVS.

Bug History
Date Modified Username Field Change
======================================================================
2007-10-14 22:46magnus New Bug
2007-10-14 22:46magnus Bug Monitored: magnus
2007-10-22 19:07mhorvath Bugnote Added: 0000752
2007-10-25 09:39derick Bugnote Added: 0000758
2007-10-25 22:44derick Bugnote Added: 0000759
2007-10-25 22:44derick Status new => closed
======================================================================
Received on Thu Oct 25 2007 - 22:44:35 BST

This archive was generated by hypermail 2.2.0 : Sun Jun 24 2018 - 04:00:03 BST