zendtech / ZendOptimizerPlus

Other
914 stars 142 forks source link

[5.3] Suhosin incompatible? #161

Closed michelkaeser closed 9 years ago

michelkaeser commented 10 years ago

Hi there

I just tried to migrate a vanilla Wordpress website from APC to ZendOpCache + APCu and started receiving alerts from Suhosin.

Details:

- Debian Squeeze
- PHP 5.3.3
- ZendOpCache: latest beta from PECL
- APCu: latest beta from PECL
- Suhosin patch

The alerts are:

ALERT possible memory corruption detected - unknown Hashtable destructor

Since I'm currently knocked out of the system I cannot debug with APCu disabled or read the exact error message.

I'll post a follow-up reply as soon as I'm in again - just creating already so I don't forget (hope this is OK :)).

michelkaeser commented 10 years ago

Hello again

I tried to reproduce the problem in a VMWare container but was not able to do so. Instead, Apache2/PHP reports a segmentation fault.

Apache error log:

[Sat Jan 18 23:55:50 2014] [notice] child pid 19716 exit signal Segmentation fault (11)

Syslog:

Jan 18 23:53:30 debian6 kernel: [ 1543.271919] apache2[19526] general protection ip:7fed20f359b0 sp:7fffdc4a3088 error:0 in libphp5.so[7fed20c12000+78b000]

Those errors appear when opcache is enabled (but this time no APCu, no Suhosin).

Please let me know how I can provide you with further information. If not interested or it looks like "a totally broken setup" (it's a clean minimal install though) feel free to close this issue.

Thanks!

dstogov commented 10 years ago

We've never tried to make Opcache to be compatible with Suhosin.

Thanks. Dmitry.

On Sun, Jan 19, 2014 at 3:02 AM, Michel notifications@github.com wrote:

Hello again

I tried to reproduce the problem in a VMWare container but was not able to do so. Instead, Apache2/PHP reports a segmentation fault.

Apache error log:

[Sat Jan 18 23:55:50 2014] [notice] child pid 19716 exit signal Segmentation fault (11)

Syslog:

Jan 18 23:53:30 debian6 kernel: [ 1543.271919] apache2[19526] general protection ip:7fed20f359b0 sp:7fffdc4a3088 error:0 in libphp5.so[7fed20c12000+78b000]

Those errors appear when opcache is enabled (but this time no APCu, no Suhosin).

Please let me know how I can provide you with further information. If not interested or it looks like "a totally broken setup" (it's a clean minimal install though) feel free to close this issue.

Thanks!

— Reply to this email directly or view it on GitHubhttps://github.com/zendtech/ZendOptimizerPlus/issues/161#issuecomment-32695881 .

iHeadRu commented 10 years ago

Yes, there are troubles with suhosin patch. Just do not use it.