View Issue Details
ID | Project | Category | View Status | Date Submitted | Last Update |
---|---|---|---|---|---|
0001124 | Xdebug | Uncategorized | public | 2015-03-04 14:53 | 2016-12-03 13:38 |
Reporter | kae | Assigned To | derick | ||
Priority | normal | Severity | major | Reproducibility | always |
Status | resolved | Resolution | unable to reproduce | ||
Platform | Linux | OS | Linux | OS Version | Centos6 |
Product Version | 2.3.1 | ||||
Summary | 0001124: "invalid pointer" crash in httpd when running code coverage | ||||
Description | When I run xdebug_start_code_coverage() with the XDEBUG_CC_UNUSED flag, Apache crashes and complains about invalid pointers. I'm not a C programmer, but at a glance, I think the problem is with line 259 of xdebug_branch_info.c - the loop that's freeing the path_info paths is going from 0 to path_info->paths_count, but should possibly be going from path_info->paths_count to 0 instead. I've added the error log output in the Additional Information box | ||||
Additional Information | [Wed Mar 04 14:48:19.510542 2015] [core:notice] [pid 2537] AH00052: child pid 2641 exit signal Segmentation fault (11) | ||||
Tags | No tags attached. | ||||
Operating System | |||||
PHP Version | 5.6.5-5.6.9 | ||||
|
Can you please try the xdebug_2_3 branch from Github? |
|
I've rebuilt using the 2.3 branch and have the same error message, but referencing the new file. starts with: |
|
Could it be that realloc in xdebug_path_info_add_path is failing and generating an invalid pointer? The following recommends assigning realloc results to a tmp variable before final assignation, so it can be tested to see if it succeeded. |
|
Maybe, but I now would like a reproducible bit of code that I can run myself. Without that, I can't really try and fix it. |
|
Heya - can you provide me with a script that causes this issue, and instructions on how to replicate it? Please also try the latest Xdebug (2.3.2) first to see if that solves the problem. |
|
Ping? |
|
Closing this as "resolved", as I could never reproduce this, and the asked-for information was never supplied. |
Date Modified | Username | Field | Change |
---|---|---|---|
2015-03-04 14:53 | kae | New Issue | |
2015-03-04 14:58 | derick | Note Added: 0003035 | |
2015-03-04 14:58 | derick | Assigned To | => derick |
2015-03-04 14:58 | derick | Status | new => feedback |
2015-03-04 15:26 | kae | Note Added: 0003036 | |
2015-03-04 15:26 | kae | Status | feedback => assigned |
2015-03-04 15:38 | kae | Note Added: 0003037 | |
2015-03-09 09:45 | derick | Note Added: 0003044 | |
2015-05-30 20:02 | derick | Note Added: 0003096 | |
2015-11-20 23:09 | derick | Note Added: 0003254 | |
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) |
2016-12-03 13:38 | derick | Note Added: 0003886 | |
2016-12-03 13:38 | derick | Status | assigned => resolved |
2016-12-03 13:38 | derick | Resolution | open => unable to reproduce |
2020-03-12 16:35 | derick | Category | Usage problems (Wrong Results) => Variable Display |
2020-03-12 16:38 | derick | Category | Variable Display => Uncategorized |