View Issue Details
| ID | Project | Category | View Status | Date Submitted | Last Update |
|---|---|---|---|---|---|
| 0000093 | Xdebug | Uncategorized | public | 2004-10-06 15:23 | 2004-10-12 15:56 |
| Reporter | ratchet | Assigned To | |||
| Priority | normal | Severity | crash | Reproducibility | always |
| Status | closed | Resolution | reopened | ||
| Summary | 0000093: crash in lookup_hostname on x86_64 | ||||
| Description | Under certain circumstances, setting the remote_port seems to be overwriting the memory that stores the remote_host. Using PHP CLI, this occurs when setting remote_port after remote_host in the environment: ratchet@rsdev:~> XDEBUG_CONFIG="remote_enable=1 remote_handler=dbgp remote_host=localhost remote_port=8009" php test.php | ||||
| Additional Information | This appears to be an issue with the xdebug_globals structure. While debugging I observed the remote_host member being set correctly, but once the remote_port directive was porcessed it was set to NULL. This caused inet_aton to crash. I suspect this is a word size issue, since changing the remote_port member's type from int to long seemed to fix the problem. I will submit a patch in a seperate note. Backtrace: Program received signal SIGSEGV, Segmentation fault. | ||||
| Tags | No tags attached. | ||||
| Operating System | SUSE Linux 9.1/x86_64 | ||||
| PHP Version | 4.3.4 | ||||
|
|
Proposed fix, made against the CVS code as of 2004-10-05: Index: php_xdebug.hRCS file: /repository/xdebug/php_xdebug.h,v
|
|
|
Fixed in Cvs, thanks for the patch. There might be some more 64bit issues, but unfortunately I do not have access to a 64bit machine running linux. |
|
|
Found related problem when specifying remote_handler at the end of the options string: ratchet@rsdev:~> XDEBUG_CONFIG="remote_enable=1 remote_host=localhost remote_port=9998 remote_handler=dbgp" php test.php |
|
|
Another proposed patch, made against CVS as of 2004-10-06: Index: php_xdebug.hRCS file: /repository/xdebug/php_xdebug.h,v
This appears to be the last xdebug_globals integer value that zend_alter_ini_entry touches. |
|
|
Fixed in CVS. |
| Date Modified | Username | Field | Change |
|---|---|---|---|
| 2004-10-06 15:23 | ratchet | New Issue | |
| 2004-10-06 15:25 | ratchet | Note Added: 0000197 | |
| 2004-10-06 15:59 | derick | Status | new => closed |
| 2004-10-06 15:59 | derick | Note Added: 0000198 | |
| 2004-10-06 18:10 | ratchet | Status | closed => feedback |
| 2004-10-06 18:10 | ratchet | Resolution | open => reopened |
| 2004-10-06 18:10 | ratchet | Note Added: 0000199 | |
| 2004-10-06 18:13 | ratchet | Note Added: 0000200 | |
| 2004-10-12 15:56 | derick | Status | feedback => closed |
| 2004-10-12 15:56 | derick | Note Added: 0000203 | |
| 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 |