php.net |  support |  documentation |  report a bug |  advanced search |  search howto |  statistics |  random bug |  login
Bug #56582 memcache + vbulletin segfault
Submitted: 2005-10-07 18:29 UTC Modified: 2005-10-18 05:39 UTC
From: kyle at junglist dot org Assigned:
Status: Closed Package: memcache (PECL)
PHP Version: Irrelevant OS: RHES 3
Private report: No CVE-ID: None
View Developer Edit
Welcome! If you don't have a Git account, you can't do anything here.
If you reported this bug, you can edit this bug over here.
Block user comment
Status: Assign to:
Package:
Bug Type:
Summary:
From: kyle at junglist dot org
New email:
PHP Version: OS:

 

 [2005-10-07 18:29 UTC] kyle at junglist dot org
Description:
------------
Hi, please see this bug report I filed with Jelsoft regarding the problem I am having. I'm hoping maybe you might have some insight into the problem we are having.

Thanks!

http://www.vbulletin.com/forum/bugs35.php?do=view&bugid=1540


Patches

Pull Requests

History

AllCommentsChangesGit/SVN commitsRelated reports
 [2005-10-10 03:24 UTC] tony2001 at phpclub dot net
Please provide a short but complete reproduce code.
 [2005-10-17 22:15 UTC] kyle at junglist dot org
We finally figured out what the problem was. The code was attempting to set() on a previously close()'d memcache connection. This reliably segfaults for me. I'm not sure if it is really considered a bug, as it is obviously bad code, but I'll leave that up to you to decide. Thanks!

<?php

$memcache = new Memcache;
$memcache->connect('YOURMEMCACHEIP', 10000) or die ("Could not connect");

$memcache->close();
$memcache->set("foo", "bar", MEMCACHE_COMPRESSED, 10) or die ("Failed to save data at the server");

?>
 [2005-10-18 05:39 UTC] tony2001 at phpclub dot net
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.


 
PHP Copyright © 2001-2024 The PHP Group
All rights reserved.
Last updated: Fri Dec 27 03:01:28 2024 UTC