View Issue Details
| ID | Project | Category | View Status | Date Submitted | Last Update |
|---|---|---|---|---|---|
| 0000094 | Xdebug | Uncategorized | public | 2004-10-06 20:27 | 2004-11-28 22:54 |
| Reporter | ratchet | Assigned To | |||
| Priority | normal | Severity | major | Reproducibility | random |
| Status | closed | Resolution | open | ||
| Summary | 0000094: xdebug_sprintf misbehaves with x86_64/glibc-2.3.3 | ||||
| Description | Specifically, using PHP CLI, xdebug_path_to_url produces either either a path of just "file://" or "file:///<garbage>" followed by a partial path. Also, with PHP compiled with --enable-debug and xdebug.loaded with "zend_extension_debug=/path/to/xdebug.so" it simply segfaults in xdebug_sprintf after connecting to the listener. | ||||
| Additional Information | According to Linux's vsnprintf man page, va_start and va_end should occur within the for(;;) loop used to calculate the result buffer's length. Patching xdebug_str.c as follows fixes the problem, and I am now able to step through PHP scripts with Komodo(!!!) using 64-bit PHP CLI and Xdebug. Note, though, that this may not work with older versions of glibc or with other architecutres' or operating systems' versions of vsnprintf. Index: xdebug_str.cRCS file: /repository/xdebug/xdebug_str.c,v
| ||||
| Tags | No tags attached. | ||||
| Operating System | |||||
| PHP Version | 4.3.4 | ||||