Website Design Development and SEO Forum
SEO Forum - Web Design : Web Hosting : Web Development : SEO Forum

Loading would cause SIGBUS on Solaris 10 SPARC

You know everything about PHP programming. Let PHP Programming know you. Discuss your issues with the experts.
 

Loading would cause SIGBUS on Solaris 10 SPARC

Postby Ydofalg » Mon Sep 06, 2010 11:53 am

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.

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;
Ydofalg
 
Posts: 0
Joined: Fri Mar 25, 2011 8:15 am

Return to PHP programming

Who is online

Users browsing this forum: No registered users and 3 guests

Powered by Flexsin Copyright ©2007 All Rights Reserved