Newsgroups: php.internals Path: news.php.net Xref: news.php.net php.internals:23062 Return-Path: Mailing-List: contact internals-help@lists.php.net; run by ezmlm Delivered-To: mailing list internals@lists.php.net Received: (qmail 50215 invoked by uid 1010); 1 May 2006 00:55:37 -0000 Delivered-To: ezmlm-scan-internals@lists.php.net Delivered-To: ezmlm-internals@lists.php.net Received: (qmail 50200 invoked from network); 1 May 2006 00:55:37 -0000 Received: from unknown (HELO lists.php.net) (127.0.0.1) by localhost with SMTP; 1 May 2006 00:55:37 -0000 X-PHP-List-Original-Sender: magreenblatt@gmail.com X-Host-Fingerprint: 64.233.184.229 wproxy.gmail.com Linux 2.4/2.6 Received: from ([64.233.184.229:24120] helo=wproxy.gmail.com) by pb1.pair.com (ecelerity 2.0 beta r(6323M)) with SMTP id 8B/29-18514-98C55544 for ; Sun, 30 Apr 2006 20:55:37 -0400 Received: by wproxy.gmail.com with SMTP id 67so434651wri for ; Sun, 30 Apr 2006 17:55:33 -0700 (PDT) DomainKey-Signature: a=rsa-sha1; q=dns; c=nofws; s=beta; d=gmail.com; h=received:message-id:date:from:to:subject:in-reply-to:mime-version:content-type:references; b=mw6oOoS6lEJiis/mSvboyggCihDcXb46fYS1AU7XZTsuphukzJVuYjePHNwVcWNh94At2IOmZhwHTwZ18RB9UhDZZGUH0qNUQpsuNRC5DXiw6JjU7K3AT9zxi620QveaZRxR0QN0gdXhz2IRlCtFr9zL23uLNCAVwA8uGI5H2O4= Received: by 10.65.230.15 with SMTP id h15mr175846qbr; Sun, 30 Apr 2006 17:55:33 -0700 (PDT) Received: by 10.65.38.18 with HTTP; Sun, 30 Apr 2006 17:55:33 -0700 (PDT) Message-ID: Date: Sun, 30 Apr 2006 20:55:33 -0400 To: internals@lists.php.net In-Reply-To: MIME-Version: 1.0 Content-Type: multipart/alternative; boundary="----=_Part_8576_15046047.1146444933486" References: Subject: Re: corrupt CG(auto_globals) in zend_is_auto_global() From: magreenblatt@gmail.com ("Marshall Greenblatt") ------=_Part_8576_15046047.1146444933486 Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: quoted-printable Content-Disposition: inline On 4/30/06, Marshall Greenblatt wrote: > > Hi All, > > I'm currently in the process of building an SAPI client and I'm > experiencing a > crash using PHP 5.1.2 with both the current release sources and with the > newest > snapshot (php5.1-200604301630) on the Win32 platform. The crash happens > consistently with both the release and debug TS builds of the PHP library= . > > The crash seems to be caused by a corrupted CG(auto_globals) HashTable > pointer. > The zend_is_auto_global() function passes this pointer to zend_hash_find(= ) > where it fails the IS_CONSISTENT() test. I've created a small demo > application > (see below) that duplicates this crash consistently on my platform. > > I've spent two days trying to debug this problem but my knowledge of zend > internals are sorely lacking. Any suggestions on further debugging steps > or > modifications to the test code that may resolve this crash would be > greatly > appreciated :-). > > Regards, > Marshall Greenblatt > The solution to the debug-mode crashes with php5.1-200604301630 was adding the ZEND_DEBUG compile option. The demo application has no release-mode crash with php5.1-200604301630 (though it does crash with php5.1.2). Thank= s to anyone who looked at this! Regards, Marshall Greenblatt ------=_Part_8576_15046047.1146444933486--