Newsgroups: php.internals Path: news.php.net Xref: news.php.net php.internals:16940 Return-Path: Mailing-List: contact internals-help@lists.php.net; run by ezmlm Delivered-To: mailing list internals@lists.php.net Received: (qmail 99630 invoked by uid 1010); 27 Jun 2005 15:06:51 -0000 Delivered-To: ezmlm-scan-internals@lists.php.net Delivered-To: ezmlm-internals@lists.php.net Received: (qmail 99615 invoked from network); 27 Jun 2005 15:06:51 -0000 Received: from unknown (HELO pb1.pair.com) (127.0.0.1) by localhost with SMTP; 27 Jun 2005 15:06:51 -0000 X-Host-Fingerprint: 66.187.233.31 mx1.redhat.com Linux 2.4/2.6 Received: from ([66.187.233.31:54504] helo=mx1.redhat.com) by pb1.pair.com (ecelerity 1.2 r(5656M)) with SMTP id 60/B7-00424-B0610C24 for ; Mon, 27 Jun 2005 11:06:51 -0400 Received: from int-mx1.corp.redhat.com (int-mx1.corp.redhat.com [172.16.52.254]) by mx1.redhat.com (8.12.11/8.12.11) with ESMTP id j5RF6hJ8023965 for ; Mon, 27 Jun 2005 11:06:43 -0400 Received: from radish.cambridge.redhat.com (radish.cambridge.redhat.com [172.16.18.90]) by int-mx1.corp.redhat.com (8.11.6/8.11.6) with ESMTP id j5RF6gu32595 for ; Mon, 27 Jun 2005 11:06:42 -0400 Received: (from jorton@localhost) by radish.cambridge.redhat.com (8.13.4/8.13.4/Submit) id j5RF6fGn009260 for internals@lists.php.net; Mon, 27 Jun 2005 16:06:41 +0100 X-Authentication-Warning: radish.cambridge.redhat.com: jorton set sender to jorton@redhat.com using -f Date: Mon, 27 Jun 2005 16:06:41 +0100 To: internals@lists.php.net Message-ID: <20050627150641.GA8106@redhat.com> Mail-Followup-To: internals@lists.php.net Mime-Version: 1.0 Content-Type: multipart/mixed; boundary="WIyZ46R2i8wDzkSu" Content-Disposition: inline User-Agent: Mutt/1.4.2.1i Subject: 5.0.4 refcounting bug? From: jorton@redhat.com (Joe Orton) --WIyZ46R2i8wDzkSu Content-Type: text/plain; charset=utf-8 Content-Disposition: inline We're getting a lot of reports from Fedora Core 4 users that the shipped PHP 5.0.4 is triggering some refcounting bug breaking some common apps; the attached file is a repro case which triggers the segfault after following the link. I've traced this through and it seems that the refcount on PS(http_session_vars) prematurely drops to zero on leaving the foreach() loop, but haven't looked any further. Does this ring any bells with anyone? It seems to work OK in the 5.1.0 beta2 release but I can't see anything relevant mentioned explicitly in NEWS, and I'm not sure if we'll be able to ship 5.1.0 as an update for FC4 since it breaks binary module compatibility... Regards, joe --WIyZ46R2i8wDzkSu Content-Type: text/plain; charset=utf-8 Content-Disposition: attachment; filename="sess2.php" $value) { $$key =& $_SESSION[$key]; } } $_SESSION['fish'] = "SAUSAGES"; ?>

Follow Link to Trigger segfault --WIyZ46R2i8wDzkSu--