View Issue Details
ID | Project | Category | View Status | Date Submitted | Last Update |
---|---|---|---|---|---|
0000748 | Xdebug | Uncategorized | public | 2011-11-17 15:22 | 2012-03-07 19:54 |
Reporter | lightsgoout | Assigned To | derick | ||
Priority | normal | Severity | major | Reproducibility | always |
Status | resolved | Resolution | unable to reproduce | ||
Platform | Unix | OS | FreeBSD | OS Version | 8.2-RELEASE |
Product Version | 2.2dev | ||||
Summary | 0000748: segmentation fault while dumping variable (or printing trace) | ||||
Description | I'm using PHP 5.3.6 with Xdebug latest version (from git repo). The problem is, when Xdebug prints trace after an error (or a notice, no matter) it crashes somewhere in the middle of the way. Here is part of the output: PHP Notice: Use of undefined constant FILEINFO_MIME_ENCODING - assumed 'FILEINFO_MIME_ENCODING' in /usr/local/share/pear/DocBlox/src/DocBlox/Reflection/File.php on line 181 So I got core dump. I analyzed it with 'gdb /usr/local/bin/php php.core' and it printed: #0 xdebug_var_export (struc=0x7fffffffbd98, str=0x7fffffffbda0, level=1, debug_zval=0, options=0x80c1f2b40) at /usr/home/i.kolombet/xdebug/xdebug_var.c:386 I went to file xdebug_var.c on the line 386 and updated the line: if(myht != NULL && myht->nApplyCount < 1) and it solved my problem. It took me almost half a day to trace a bug, because I was messing with latest stable release (2.1.2) and there was also a segfault, but in another place. Here is a story about 2.1.2 version, just in case. I inserted '[DEBUG] printfs' here and there and finally got output like this: [DEBUG] xdebug_str_add() with args $contents = '<?php\n/*\n ?????????? Where code was void xdebug_str_add(xdebug_str xs, char str, int f) The main point is crash when printing the argument string (char* str) in xdebug_str_add function. I think segfault is because we're trying to read beyond end of buffer, so it's like access violation, I think. I don't know, I hope it is useful information. | ||||
Additional Information | Attached php core dump. | ||||
Tags | No tags attached. | ||||
Attached Files | |||||
Operating System | freebsd 8.2-release | ||||
PHP Version | 5.3.6 | ||||
|
PHP API => 20090626 |
|
The coredump itself is not very useful (without FreeBSD), so could you please add the output of "bt full" to this report? |
|
Sure, (gdb) bt full |
|
Please paste the full output, and not just one line. |
|
Well, it WAS the full output, just that single line. Sorry, but today our php was upgraded from 5.3.6 to 5.3.8, so gdb doesn't show anything useful now. And I can't reproduce same bug neither with new and old PHP, that's weird. |
|
Let me just close the issue then. Feel free to re-open if you see it again. |
Date Modified | Username | Field | Change |
---|---|---|---|
2011-11-17 15:22 | lightsgoout | New Issue | |
2011-11-17 15:22 | lightsgoout | File Added: php.rar | |
2011-11-17 15:25 | lightsgoout | Note Added: 0001858 | |
2011-11-17 17:49 | derick | Note Added: 0001859 | |
2011-11-17 17:49 | derick | Assigned To | => derick |
2011-11-17 17:49 | derick | Status | new => feedback |
2011-11-18 06:46 | lightsgoout | Note Added: 0001861 | |
2011-11-18 06:46 | lightsgoout | Status | feedback => assigned |
2011-11-18 09:57 | derick | Note Added: 0001863 | |
2011-11-18 09:57 | derick | Status | assigned => feedback |
2011-11-18 12:43 | lightsgoout | Note Added: 0001864 | |
2011-11-18 12:43 | lightsgoout | Status | feedback => assigned |
2012-03-07 19:54 | derick | Note Added: 0001957 | |
2012-03-07 19:54 | derick | Status | assigned => resolved |
2012-03-07 19:54 | derick | Resolution | open => unable to reproduce |
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 |