[xdebug-dev] Bug 0000220: PHP.exe crashes when the script ends

From: <noreply[@]lists.xdebug.org>
Date: Mon, 27 Nov 2006 21:54:34 +0100

The following bug has been RESOLVED.
======================================================================
http://bugs.xdebug.org/bug_view_page.php?bug_id=0000220
======================================================================
Reporter: d_kelsey
Handler: derick
======================================================================
Project: Xdebug
Bug ID: 220
Category: Usage problems
Reproducibility: always
Severity: crash
Priority: normal
Status: resolved
Operating System: Windows XP
PHP Version: 5.2.0
Xdebug Version: 2.0.0rc1
Resolution: unable to duplicate
======================================================================
Date Submitted: 2006-11-21 13:28 CET
Last Modified: 2006-11-27 21:54 CET
======================================================================
Summary: PHP.exe crashes when the script ends
Description:
This bug can also be reproduced on PHP 5.1.4.

I have 2 scripts
testcase3.php and file1.php

testcase3.php
-------------
<?php
$a = array (1,
                 array (2,
                         array (3,
                                 array (4,
                                         array (5,
                                                 array (6,
                                                         array (7,
                                                                 array (8)
                                                        )
                                                )
                                        )
                                )
                        )
                )
        );

echo var_dump($a);
echo "hi";
?>

file1.php
---------
<?php
/*
 * Created on 11-Sep-2006
 *
 * To change the template for this generated file go to
 * Window - Preferences - PHPeclipse - PHP - Code Templates
 */
 
echo 'hello';
echo 'dave';

$a='Well hello There';
echo $a;

phpinfo();

?>

Using the debug client I enter the following commands

cmd set
-------
breakpoint_set -i 25 -t line -f file:///C%3a/temp/xdebugBug/testcase3.php
-n 18
breakpoint_set -i 26 -t line -f file:///C%3a/temp/xdebugBug/file1.php -n
13
feature_set -i 31 -n max_depth -v 3
run -i 33
context_get -i 36 -d 0
run -i 41

A problem is then reported by Microsoft windows and offers me the option
to send or don't send the report to Microsoft
======================================================================

----------------------------------------------------------------------
 derick - 2006-11-21 19:47 CET
----------------------------------------------------------------------
I tried to reproduce this on LInux (with valgrind) with php 5.2.0 and the
latest CVS release of Xdebug, but I couldn't find a single memory
corruption issue (which is what your report would suggest). Perhaps you
could try the latest snapshot version? (from
http://pecl4win.php.net/ext.php/php_xdebug.dll)

----------------------------------------------------------------------
 d_kelsey - 2006-11-23 16:35 CET
----------------------------------------------------------------------
ok, a new day a reboot of the machine and now I cannot recreate the
problem, strange because when debugging with my client I observed the
problem and PHP script was being launched in it's own process every time
and was recreatable every time. I recreated the issues outside of my debug
environment with the xdebug client, but I cannot recreate it now in that
environment either. Maybe I managed to have a rogue extension somewhere
being loaded ?

----------------------------------------------------------------------
 derick - 2006-11-27 21:54 CET
----------------------------------------------------------------------
That is possible as windows keeps dlls in memory. I will close the report
now, but feel free to reopen if you can recreate it.

Bug History
Date Modified Username Field Change
======================================================================
2006-11-21 13:28d_kelsey New Bug
2006-11-21 13:28d_kelsey Bug Monitored: d_kelsey
2006-11-21 19:47derick Bugnote Added: 0000489
2006-11-21 19:47derick Status new => feedback
2006-11-23 16:35d_kelsey Bugnote Added: 0000495
2006-11-27 21:54derick Bugnote Added: 0000499
2006-11-27 21:54derick Assigned To => derick
2006-11-27 21:54derick Resolution open => unable to duplicate
2006-11-27 21:54derick Status feedback => resolved
======================================================================
Received on Mon Nov 27 2006 - 21:54:35 GMT

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