Newsgroups: php.internals Path: news.php.net Xref: news.php.net php.internals:6359 Return-Path: Mailing-List: contact internals-help@lists.php.net; run by ezmlm Delivered-To: mailing list internals@lists.php.net Received: (qmail 14456 invoked by uid 1010); 11 Dec 2003 23:58:30 -0000 Delivered-To: ezmlm-scan-internals@lists.php.net Delivered-To: ezmlm-internals@lists.php.net Received: (qmail 14430 invoked from network); 11 Dec 2003 23:58:28 -0000 Received: from unknown (HELO asuka.nerv) (24.112.18.98) by pb1.pair.com with SMTP; 11 Dec 2003 23:58:28 -0000 Received: (qmail 20759 invoked from network); 11 Dec 2003 18:53:38 -0000 Received: from rei.nerv (HELO dummy.com) (rei@192.168.1.1) by asuka.nerv with SMTP; 11 Dec 2003 18:53:38 -0000 Reply-To: ilia@prohost.org Organization: Prohost.org To: Andi Gutmans , internals@lists.php.net Date: Thu, 11 Dec 2003 19:09:34 -0500 User-Agent: KMail/1.5.4 MIME-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit Content-Disposition: inline Message-ID: <200312111909.34856.ilia@prohost.org> Subject: ZTS build and classes From: ilia@prohost.org (Ilia Alshanetsky) There appears to be some sort of a memory corruption error when registering class hashtable in ZTS. Valgrind goes absolutely crazy with thousands of "Invalid read of size 1" errors such as this: ==17567== at 0x40023316: memcpy (mac_replace_strmem.c:259) ==17567== by 0x814FFD1: _zend_hash_add_or_update (zend_hash.c:242) ==17567== by 0x8151A14: zend_hash_copy (zend_hash.c:754) ==17567== by 0x814792A: compiler_globals_ctor (zend.c:438) ==17567== Address 0x41C6FF46 is 2 bytes before a block of size 10 alloc'd ==17567== at 0x4002BA2D: malloc (vg_replace_malloc.c:153) ==17567== by 0x812CFA6: zend_strndup (zend_alloc.c:419) ==17567== by 0x813A0FD: zend_register_long_constant (zend_constants.c:170) ==17567== by 0x8139CDA: zend_register_standard_constants (zend_constants.c:97) Ilia