php5-memcache segfaults with object (un)serialization

Bug #1263065 reported by Chris Fryer
6
This bug affects 1 person
Affects Status Importance Assigned to Milestone
php-memcache (Ubuntu)
New
Undecided
Unassigned

Bug Description

I can reproduce https://bugs.php.net/bug.php?id=63142 in an up-to-date Ubuntu 12.04.3 LTS

Package: php5-memcache
Priority: optional
Section: universe/web
Installed-Size: 151
Maintainer: Ubuntu Developers <email address hidden>
Original-Maintainer: Sergey B Kirpichev <email address hidden>
Architecture: amd64
Source: php-memcache
Version: 3.0.6-1
Depends: libc6 (>= 2.7), phpapi-20090626
Suggests: memcached
Filename: pool/universe/p/php-memcache/php5-memcache_3.0.6-1_amd64.deb
Size: 47062
MD5sum: 7d3bf387e029e1d7fe43ab9996842aa3
SHA1: d0f30749170e789311ae062c5346092881190a49
SHA256: de3fad7fe68a68e61ccf55ad923364d9578b0125353e3d24986b2ec0d9c158e0
Description-en: memcache extension module for PHP5
 Memcached is a caching daemon designed especially for dynamic web applications
 to decrease database load by storing objects in memory.
 .
 This extension allows you to work with memcached through handy OO and
 procedural interfaces in your php5 applications.
Homepage: http://pecl.php.net/package/memcache
Description-md5: 58db38616cd7be3fdacd6d17d7baf2e8
Bugs: https://bugs.launchpad.net/ubuntu/+filebug
Origin: Ubuntu

The test case at bugs.php.net is reproduced below:

<?php
echo "Test: PHP-".phpversion()."/memcache-".phpversion('memcache');
$obj = new StdClass;
$obj->obj = $obj;
$memcache = new Memcache;
$memcache->connect('127.0.0.1', 11211);
$memcache->set('x', $obj, false, 300);
$x = $memcache->get('x'); echo ".";
$x = $memcache->get('x'); echo ".";
$x = $memcache->get('x'); echo ".";
$x = $memcache->get('x'); echo ".";
$x = $memcache->get('x'); echo ".";
$x = $memcache->get('x'); echo ".";
$x = $memcache->get('x'); echo ".";
$x = $memcache->get('x'); echo ".";
$x = $memcache->get('x'); echo ".\n";

chris@home:~$ php memcache.php
Test: PHP-5.3.10-1ubuntu3.9/memcache-3.0.6.........
Segmentation fault (core dumped)

Tags: precise
Chris Fryer (c-j-fryer)
tags: added: precise
affects: php5 (Ubuntu) → php-memcache (Ubuntu)
To post a comment you must log in.
This report contains Public information  
Everyone can see this information.

Other bug subscribers

Remote bug watches

Bug watches keep track of this bug in other bug trackers.