php.net |  support |  documentation |  report a bug |  advanced search |  search howto |  statistics |  random bug |  login
Bug #56981 Segfault on Solaris/Sparc loading APC
Submitted: 2006-04-25 18:21 UTC Modified: 2006-05-05 14:25 UTC
From: fred dot cohen at iridium dot com Assigned:
Status: Closed Package: APC (PECL)
PHP Version: 5.1.2 OS: Solaris 9
Private report: No CVE-ID: None
 [2006-04-25 18:21 UTC] fred dot cohen at iridium dot com
Description:
------------
Bug #6736 was never really fixed on Solaris 64-bit.

After compile I still saw a SIGBUS error.  Based on the previous code changes for 6736, I've just changed the variable types passed to the STD_PHP_INI_BOOLEAN function.

The patch file contents are below.

Reproduce code:
---------------
diff APC-3.0.10/php_apc.c.orig php_apc.c 

140c140
< STD_PHP_INI_BOOLEAN("apc.optimization", "0",    PHP_INI_ALL, OnUpdateInt,               optimization,    zend_apc_globals, apc_globals)
---
> STD_PHP_INI_BOOLEAN("apc.optimization", "0",    PHP_INI_ALL, OnUpdateBool,               optimization,    zend_apc_globals, apc_globals)
151c151
< STD_PHP_INI_BOOLEAN("apc.slam_defense", "0",      PHP_INI_SYSTEM, OnUpdateInt,          slam_defense,     zend_apc_globals, apc_globals)
---
> STD_PHP_INI_BOOLEAN("apc.slam_defense", "0",      PHP_INI_SYSTEM, OnUpdateBool,          slam_defense,     zend_apc_globals, apc_globals)


Patches

Add a Patch

Pull Requests

Add a Pull Request

History

AllCommentsChangesGit/SVN commitsRelated reports
 [2006-04-25 18:31 UTC] fred dot cohen at iridium dot com
Just noticed the apc.optimization variable may be mismatched with its intended type.  All the comments and documentation  indicate it should be an integer value. 

STD_PHP_INI_ENTRY ("apc.optimization", "0",    PHP_INI_ALL, OnUpdateInt, optimization, zend_apc_globals, apc_globals)
 [2006-05-05 14:25 UTC] schlueter at phpbar dot de
This bug has been fixed in CVS.

In case this was a documentation problem, the fix will show up at the
end of next Sunday (CET) on pecl.php.net.

In case this was a pecl.php.net website problem, the change will show
up on the website in short time.
 
Thank you for the report, and for helping us make PECL better.


 [2006-07-17 11:00 UTC] fun at naobsd dot org
Hi developers,

Why "apc.optimization" part wasn't fixed?
It seems an integer value as mentioned by submitter.

And I want new package (3.0.11) because this bug affects another CPU (e.g. 32-bit ARM) too.

Thank you.
 
PHP Copyright © 2001-2024 The PHP Group
All rights reserved.
Last updated: Tue Apr 30 02:01:31 2024 UTC