Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Broken caches #38

Closed
thestanislav opened this issue Aug 28, 2013 · 9 comments
Closed

Broken caches #38

thestanislav opened this issue Aug 28, 2013 · 9 comments

Comments

@thestanislav
Copy link

Hi. Recently I've switched to php 5.5 with apcu extension and started to get weird fatal errors. After some investigations I found out that some of my User Cache Entries became broken.
At start I see this cached var

Array
(
    [strategy] => nested
    [activate_locking] => 
    [locking_timeout] => 3
    [left] => lft
    [level] => lvl
    [right] => rgt
    [root] => root
    [parent] => parent
    [useObjectClass] => AsPages\Entity\Page
)

And after several hours it becomes to

Array
(
    [└ьTоerro] => nested
    [░8`о�9`о] => 
    [=E■i�╕:`ом:`] => 3
    [ф<`о] => lft
    [uYо(] => lvl
    [Remov] => rgt
    [�] => root
    [└╢N║�] => parent
    [,|\о╠{\о<ю] => AsPages\Entity\Page
)

There were no such problems with php 5.4 and apc extension
The similar problem is described here http://stackoverflow.com/questions/18309583/doctrine-extension-bug-with-apcu-orm-treelistener-does-not-support-tree-type

I am using latest version of php 5.5.3 and dev version of apcu.
I face the problem both in Debian 7 and Ubuntu 12

@staabm
Copy link
Contributor

staabm commented Aug 28, 2013

duplciate of #35 ?

@thestanislav
Copy link
Author

Oh. I see

@staabm
Copy link
Contributor

staabm commented Aug 28, 2013

so it seems like changing the serializer should do the trick.

@thestanislav
Copy link
Author

I have changed the settings and will confirm if error disappears.

@krakjoe
Copy link
Owner

krakjoe commented Aug 28, 2013

Any update on this ?

@thestanislav
Copy link
Author

Seems changing the settings fix the issue. Closing

@carbontwelve
Copy link

Change what setting?

@thestanislav
Copy link
Author

In php.ini set apc.serializer=php

atdt added a commit to wikimedia/mediawiki that referenced this issue Dec 14, 2015
APCu's object serialization causes memory corruption when apc.serializer is set
to 'default' (see krakjoe/apcu#38). We can work
around this bug by falling back to the pre-I4b2cf17155 behavior of
APCBagOStuff, which is not to trust apc_store() with anything other than
strings and integers, and instead serialize everything in user-space PHP code.

Bug: T120267
Change-Id: If34a1d959e2700792514b372af52919940222d83
atdt added a commit to wikimedia/mediawiki that referenced this issue Dec 14, 2015
APCu's object serialization causes memory corruption when apc.serializer
is set
to 'default' (see krakjoe/apcu#38). We can
work
around this bug by falling back to the pre-I4b2cf17155 behavior of
APCBagOStuff, which is not to trust apc_store() with anything other than
strings and integers, and instead serialize everything in user-space PHP
code.

Bug: T120267
Change-Id: If34a1d959e2700792514b372af52919940222d83
@ARUNEHAKISSU
Copy link

khjk;pp[][p[;;';.'lhbffsetretretrfhgjh

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

5 participants