View Issue Details

IDProjectCategoryView StatusLast Update
0000830XdebugUncategorizedpublic2012-05-28 12:04
Reporternlaplante Assigned Toderick  
PrioritynormalSeveritycrashReproducibilityalways
Status closedResolutionfixed 
PlatformPHP 5.4.0 Apache 2.2.22OSGentoo Linux amd64OS Version3.2.12
Product Version2.2.0 
Target Version2.2.1Fixed in Version2.2.1 
Summary0000830: Crash when evaluating variables from remote Eclipse IDE
Description

I experience an XDebug crash when trying to debug variables (either by hovering it or opening the variables pane).

First, Eclipse throws this error message:

"Unexpected termination of script, debugging ended."

The Apache error_log contains this:

"[error] child died with signal 11"

Steps To Reproduce
  1. Define breakpoint in Eclipse
  2. Start debug session in Eclipse
  3. When at breakpoint, either open variables pane or hover a variable in the editor
Additional Information

I tried using watch expressions. I noticed that if I put the name of variables I expect are strings, it works fine. But if I add an expression to evaluate an object , xdebug crashes with the error specified in the description.

TagsNo tags attached.
Attached Files
xdebug.log (19,587 bytes)
xdebug-bt.log (20,259 bytes)
xdebug-bt.2.log (20,286 bytes)
xdebug-bt.3.log (41,495 bytes)
Operating System
PHP Version5.4.0

Activities

derick

2012-05-13 21:51

administrator   ~0002149

Hi,

In order to reproduce and fix this, I'd need the following information:

  • A short and self-contained script that reproduces the issue while debugging
  • A debugging log, which you can make with setting xdebug.remote_log=/tmp/xdebug.log

cheers,
Derick

nlaplante

2012-05-14 21:55

reporter   ~0002150

I can't reproduce the problem outside of my Symfony 2 environment. Maybe it has to do with the autoloading mechanism?

I attach my xdebug.log file.

derick

2012-05-15 09:43

administrator   ~0002153

It's probably not autoloading, but something to do with (static) properties instead. Could you perhaps try making a backtrace for me? (See: https://bugs.php.net/bugs-generating-backtrace.php)

nlaplante

2012-05-15 22:02

reporter   ~0002154

I uploaded the backtrace. Let me know if you need anything

derick

2012-05-15 22:07

administrator   ~0002155

Awesome, sorry to be a pain, but could you please also run:

p *struc
bt full

nlaplante

2012-05-15 22:09

reporter   ~0002156

Here you are!

nlaplante

2012-05-15 22:10

reporter   ~0002157

Don't use -bt.2.log, I forgot to run "bt full". Use -bt.3.log instead.

derick

2012-05-16 21:07

administrator   ~0002162

Hi, I've tried this with just Monolog, which is where the crash seems to happen. However, I have not made any success. It it possible for you to create a full setup for me, in for example a VM that I could debug?

nlaplante

2012-05-17 00:00

reporter   ~0002163

Yes. I opened up my app at http://nlaplante.dyndns.org:8080/app_dev.php

XDebug is enabled, you can go and try it. Let me know when you're finished,

derick

2012-05-17 07:33

administrator   ~0002167

Hi, Just having access to the website is not going to help me; I'd need shell access to probe the innards of Xdebug as well!

cheers,
Derick

nlaplante

2012-05-17 11:19

reporter   ~0002174

Derick, please contact me at nicolas.laplante@gmail.com. I'll give you ssh credentials to log into the system.

nlaplante

2012-05-17 21:10

reporter   ~0002179

I think it would be a better idea for you to checkout a copy of my project instead. Here's the svn url:

http://svn.nlaplante.com/profolio/branches/xdebug

Email me for credentials at the address in the previous comment. Thanks!

derick

2012-05-28 08:26

administrator   ~0002200

I think I've just pushed a fix to github for this issue. Could you please try it?

nlaplante

2012-05-28 11:34

reporter   ~0002207

I just tested your fix and it seems to work fine. XDebug doesn't crash on variable inspection anymore, and I can dig into objects normally!

Issue History

Date Modified Username Field Change
2012-05-11 00:29 nlaplante New Issue
2012-05-13 21:51 derick Note Added: 0002149
2012-05-13 21:51 derick Assigned To => derick
2012-05-13 21:51 derick Status new => feedback
2012-05-14 21:54 nlaplante File Added: xdebug.log
2012-05-14 21:55 nlaplante Note Added: 0002150
2012-05-14 21:55 nlaplante Status feedback => assigned
2012-05-15 09:43 derick Note Added: 0002153
2012-05-15 09:43 derick Status assigned => feedback
2012-05-15 22:02 nlaplante File Added: xdebug-bt.log
2012-05-15 22:02 nlaplante Note Added: 0002154
2012-05-15 22:02 nlaplante Status feedback => assigned
2012-05-15 22:07 derick Note Added: 0002155
2012-05-15 22:07 derick Status assigned => feedback
2012-05-15 22:09 nlaplante File Added: xdebug-bt.2.log
2012-05-15 22:09 nlaplante Note Added: 0002156
2012-05-15 22:09 nlaplante Status feedback => assigned
2012-05-15 22:10 nlaplante File Added: xdebug-bt.3.log
2012-05-15 22:10 nlaplante Note Added: 0002157
2012-05-15 22:30 derick Target Version => 2.2.1
2012-05-16 21:07 derick Note Added: 0002162
2012-05-16 21:07 derick Status assigned => feedback
2012-05-17 00:00 nlaplante Note Added: 0002163
2012-05-17 00:00 nlaplante Status feedback => assigned
2012-05-17 07:33 derick Note Added: 0002167
2012-05-17 07:33 derick Status assigned => feedback
2012-05-17 11:19 nlaplante Note Added: 0002174
2012-05-17 11:19 nlaplante Status feedback => assigned
2012-05-17 21:10 nlaplante Note Added: 0002179
2012-05-28 08:26 derick Note Added: 0002200
2012-05-28 08:26 derick Status assigned => feedback
2012-05-28 11:34 nlaplante Note Added: 0002207
2012-05-28 11:34 nlaplante Status feedback => assigned
2012-05-28 12:04 derick Status assigned => closed
2012-05-28 12:04 derick Resolution open => fixed
2012-05-28 12:04 derick Fixed in Version => 2.2.1
2016-07-31 12:36 derick Category Usage problems => Usage problems (Crashes)
2016-07-31 12:38 derick Category Usage problems (Crashes) => Usage problems (Wrong Results)
2020-03-12 16:35 derick Category Usage problems (Wrong Results) => Variable Display
2020-03-12 16:38 derick Category Variable Display => Uncategorized