View Issue Details
ID | Project | Category | View Status | Date Submitted | Last Update |
---|---|---|---|---|---|
0000774 | Xdebug | Uncategorized | public | 2012-02-03 03:36 | 2012-04-22 13:48 |
Reporter | thaddeusmt | Assigned To | derick | ||
Priority | high | Severity | crash | Reproducibility | always |
Status | closed | Resolution | fixed | ||
Platform | Windows 7 64 | OS | Windows 7 64 | OS Version | Windows 7 64 |
Target Version | 2.2.0 | Fixed in Version | 2.2.0RC2 | ||
Summary | 0000774: Apache crashes on POST requests when using xdebug | ||||
Description | Using PhpStorm to debug with Xdebug, the same way I have for almost a year now, crashes Apache (with the new 2.1.3 release) on POST requests when the XDEBUG_SESSION cookie (or the XDEBUG_SESSION_START get parameter) is set. I had been waiting for the new Windows Binary for a while, excited to get the inherited-private property bug fixed!! But alas. :) | ||||
Steps To Reproduce | Apache runs fine and everything works (including POST requests) until I set the XDEBUG_SESSION=PHPSTORM cookie. When I do this, it actually starts to debug and I can use breakpoints, inspect the POST array, and everything seems to work - but at the end Apache crashes and restarts, and the browser gets no response back from the server. The same thing happens when using the XDEBUG_SESSION_START parameter. | ||||
Additional Information | PHPSTORM XDEBUG SESSION SETTER SCRIPT: XDEBUG CONFIG: APACHE CRASH LOG:[Thu Feb 02 21:15:27 2012] [notice] Parent: child process exited with status 4294967295 -- Restarting. XDEBUG LOG:Log opened at 2012-02-03 03:16:39 <- feature_set -i 0 -n show_hidden -v 1 <- feature_set -i 1 -n max_depth -v 1 <- feature_set -i 2 -n max_children -v 100 <- step_into -i 3 <- eval -i 4 -- aXNzZXQoJF9DT09LSUVbJ1BIUFNUT1JNX1hERUJVR19CUkVBSyddKQ== <- eval -i 5 -- aXNzZXQoJF9TRVJWRVJbJ1NFUlZFUl9OQU1FJ10p <- eval -i 6 -- JF9TRVJWRVJbJ1NFUlZFUl9OQU1FJ10= <- eval -i 7 -- JF9TRVJWRVJbJ1NFUlZFUl9QT1JUJ10= <- eval -i 8 -- JF9TRVJWRVJbJ1JFUVVFU1RfVVJJJ10= <- stack_get -i 9 <- run -i 10 | ||||
Tags | No tags attached. | ||||
Operating System | Windows 7 64 | ||||
PHP Version | 5.3.4 | ||||
|
Could you supply the script that's running too? |
|
I've tracked it down a little more: the POST does not seem to be the issue, it's header() redirects which are followed by an exit() statement. All of the code executes just fine and I can trace through it with the debugged, but when there is a PHP header() redirect followed by and exit() it fails to redirect and crashes Apache. So, a code like this:
I just revisited this today with 2.1.4 and it still happens. Also, it happens with any combo of codes and parameters I have tried, including the basic:
The Yii framework I use does it's redirects this way and it's worked before - it just crashes with this new xdebug version. Thanks and cheers |
|
I can confirm this problem. Using PHPStorm on WinXP and running all my web applications on Apache 2.x | PHP 5.3.6 (CGI) | Xdebug 2.2.0rc1 on Ubuntu (VirtualBox). When debugging with Xdebug redirects with the header() function ending up in a 500 - Internal Server Error. Apaches error.log is telling me: |
|
Can you please provide the exact script that matches a debug log? It helps a lot if I know exactly what you're doing. Please attach both the script and the remote_log for just one run that shows the crash. |
|
just try the folling simple example to reproduce the behavior: <?php if you debug this script (at least in my environment) the browser will show a 500 internal server error and the apache error.log gets the above mentioned entry. hope that helps. |
|
Fixed for 2.1.4 and 2.2.0. |
Date Modified | Username | Field | Change |
---|---|---|---|
2012-02-03 03:36 | thaddeusmt | New Issue | |
2012-03-07 19:43 | derick | Note Added: 0001952 | |
2012-03-07 19:43 | derick | Assigned To | => derick |
2012-03-07 19:43 | derick | Status | new => feedback |
2012-03-13 01:58 | thaddeusmt | Note Added: 0001982 | |
2012-03-13 01:58 | thaddeusmt | Status | feedback => assigned |
2012-03-24 09:11 | akger1379 | Note Added: 0002003 | |
2012-03-24 23:44 | derick | Note Added: 0002011 | |
2012-03-24 23:44 | derick | Status | assigned => feedback |
2012-03-25 08:44 | akger1379 | Note Added: 0002013 | |
2012-03-26 21:48 | derick | Fixed in Version | => 2.2.0 |
2012-03-26 21:48 | derick | Target Version | => 2.2.0 |
2012-03-26 21:48 | derick | Note Added: 0002021 | |
2012-03-26 21:48 | derick | Status | feedback => closed |
2012-03-26 21:49 | derick | Resolution | open => fixed |
2012-04-22 13:48 | derick | Fixed in Version | 2.2.0 => 2.2.0RC2 |
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 |