View Issue Details

IDProjectCategoryView StatusLast Update
0000301XdebugUncategorizedpublic2007-07-29 16:05
Reportersuperintendent Assigned To 
Status closedResolutionopen 
Summary0000301: Loading would cause SIGBUS on Solaris 10 SPARC

The module would compile fine but when the PHP CLI or SAPI interface would load the extension a SIGBUS would ensue. This always occurred during loading of the xdebug.collect_params ini directive.

Additional Information

In examining the source code it was determined that the defined STD_PHP_INI_ENTRY for xdebug.collect_params uses OnUpdateLong as defined in xdebug.c:268 but the ZEND_BEGIN_MODULE_GLOBALS(xdebug) data structure defines collect_params as type zend_bool. This would cause the SPARC CPU to register a memory access issue.

A patch to fix the problem:

--- ../xdebug-2.0.0.orig/php_xdebug.h 2007-07-18 13:33:52.000000000 -0400
+++ php_xdebug.h 2007-07-27 11:21:40.000000000 -0400
@@ -122,7 +122,7 @@
long max_nesting_level;
zend_bool default_enable;
zend_bool collect_includes;

  • zend_bool collect_params;
  • long collect_params;
    zend_bool collect_return;
    zend_bool collect_vars;
    zend_bool extended_info;
TagsNo tags attached.
Operating SystemSolaris 10/SPARC
PHP Version5.2-dev


has duplicate 0000307 resolvedderick Segmentation fault when loading on Solaris 9 



2007-07-29 16:05

administrator   ~0000708

Fixed in CVS, and thanks for the analysis and patch.

Issue History

Date Modified Username Field Change
2007-07-27 16:57 superintendent New Issue
2007-07-29 16:05 derick Status new => closed
2007-07-29 16:05 derick Note Added: 0000708
2007-09-05 15:11 derick Relationship added has duplicate 0000307
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