View Issue Details Jump to Notes ] Issue History ] Print ]
IDProjectCategoryView StatusDate SubmittedLast Update
0000301XdebugUsage problems (Wrong Results)public2007-07-27 17:572007-07-29 17:05
Assigned To 
PlatformOSOS Version
Product Version 
Target VersionFixed in Version 
Summary0000301: Loading would cause SIGBUS on Solaris 10 SPARC
DescriptionThe 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 InformationIn 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
Attached Files

- Relationships
has duplicate 0000307resolvedderick Segmentation fault when loading on Solaris 9 

-  Notes
derick (administrator)
2007-07-29 17:05

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

- Issue History
Date Modified Username Field Change
2007-07-27 17:57 superintendent New Issue
2007-07-29 17:05 derick Status new => closed
2007-07-29 17:05 derick Note Added: 0000708
2007-09-05 16:11 derick Relationship added has duplicate 0000307
2016-07-31 13:36 derick Category Usage problems => Usage problems (Crashes)
2016-07-31 13:38 derick Category Usage problems (Crashes) => Usage problems (Wrong Results)

Copyright © 2000 - 2018 MantisBT Team
Powered by Mantis Bugtracker