Skip navigation.
Home

Upgrading php5-memcache on Ubuntu (Intrepid)

We were having a little problem on our webservers with php5-memcache when we try to utilize multiple memcached servers. The error was:
ALERT - canary mismatch on efree() - heap overflow detected (attacker '10.X.X.X', file '/path/to/file/index.php')
It didn't come up too frequently in the logs, but it was frequent enough to cause some concern.

As part of troubleshooting, I was tasked with upgrading php5-memcache on one of our test systems so that we could see if this resolved the issue. This turned out to be much easier than I thought. Here's what I did (as root):

apt-get install php5-dev
cp /usr/lib/php5/20060613+lfs/memcache.so /usr/lib/php5/20060613+lfs/memcache.so.bak
pecl install memcache-3.0.3
/etc/init.d/apache2 restart

That was it, we're running on 3.0.3 now and I'm crossing my fingers that resolves the issue we're seeing.

Thank you

This worked perfectly.
Thanks for saving me a lot of time.

It doesn't work at all for

It doesn't work at all for me. I always have this f.... error.

Post new comment

The content of this field is kept private and will not be shown publicly.
  • Web page addresses and e-mail addresses turn into links automatically.
  • Allowed HTML tags: <a> <em> <strong> <cite> <code> <ul> <ol> <li> <dl> <dt> <dd>
  • Lines and paragraphs break automatically.

More information about formatting options