MantisBT - Xdebug
View Issue Details
0000818XdebugUsage problems (Wrong Results)public2012-04-24 11:572012-12-18 12:37
johanv 
derick 
lowcrashalways
closedfixed 
LinuxDebian2.6.32-5-amd64
2.2.0RC2 
2.2.22.2.2 
5.3.9
0000818: Require a php script in the PHP_RINIT causes Xdebug to crash
I've written a small php extension in which a simple script is included in RINIT step. When the Xdebug extension is not enabled, the extension loads and is usable. When Xdebug is enabled, it seems to be triggered on the require command and then crashes.
I've included the source code of my extension - named require - and a script with a function "hello2", to be placed in the include path. Compile and install the extension. With Xdebug disabled, you can do php -m or php -r 'hello2();' which will call the function in the included script.
Enabeling xdebug causes the crash of which the gdb trace is also included.
PHP version is 5.3.9-ZS 5.6.0
No tags attached.
zip XDebug_Crash.zip (2,554) 2012-04-24 11:57
https://bugs.xdebug.org/file_download.php?file_id=81&type=bug
Issue History
2012-04-24 11:57johanvNew Issue
2012-04-24 11:57johanvFile Added: XDebug_Crash.zip
2012-04-24 17:30derickPrioritynormal => low
2012-04-25 09:51johanvNote Added: 0002092
2012-04-28 00:54derickTarget Version => 2.2.1
2012-07-14 23:14derickTarget Version2.2.1 => 2.2.2
2012-12-18 12:32derickNote Added: 0002398
2012-12-18 12:32derickStatusnew => closed
2012-12-18 12:32derickAssigned To => derick
2012-12-18 12:32derickResolutionopen => fixed
2012-12-18 12:37derickFixed in Version => 2.2.2
2016-07-31 13:36derickCategoryUsage problems => Usage problems (Crashes)
2016-07-31 13:38derickCategoryUsage problems (Crashes) => Usage problems (Wrong Results)

Notes
(0002092)
johanv   
2012-04-25 09:51   
The supplied script and extension are pretty useless, but they are purely to allow an easy reproduction of the problem. It is however impossible to use the SAM extension (Simple Asynchronous Messaging) due to this issue. The SAM extension does the same: it includes a php file in the RINIT.
(0002398)
derick   
2012-12-18 12:32   
Fixed for 2.2.2.