Newsgroups: php.internals Path: news.php.net Xref: news.php.net php.internals:10825 Return-Path: Mailing-List: contact internals-help@lists.php.net; run by ezmlm Delivered-To: mailing list internals@lists.php.net Received: (qmail 42491 invoked by uid 1010); 28 Jun 2004 14:59:00 -0000 Delivered-To: ezmlm-scan-internals@lists.php.net Delivered-To: ezmlm-internals@lists.php.net Received: (qmail 42464 invoked from network); 28 Jun 2004 14:59:00 -0000 Received: from unknown (HELO mail.zend.com) (80.74.107.235) by pb1.pair.com with SMTP; 28 Jun 2004 14:59:00 -0000 Received: (qmail 8927 invoked from network); 28 Jun 2004 14:58:58 -0000 Received: from localhost (HELO AndiNotebook.zend.com) (127.0.0.1) by localhost with SMTP; 28 Jun 2004 14:58:58 -0000 Message-ID: <5.1.0.14.2.20040628075743.028bf4f0@127.0.0.1> X-Sender: andi@127.0.0.1 X-Mailer: QUALCOMM Windows Eudora Version 5.1 Date: Mon, 28 Jun 2004 07:58:59 -0700 To: kameshj@fastmail.fm,internals@lists.php.net In-Reply-To: <1088403411.2271.1.camel@linux.local> Mime-Version: 1.0 Content-Type: text/plain; charset="us-ascii"; format=flowed Subject: Re: [PHP-DEV] issue in copying the hash table(Reposted third time) From: andi@zend.com (Andi Gutmans) References: <1088403411.2271.1.camel@linux.local> I don't quite understand the question. Can you rephrase what exactly is bothering you? Andi At 03:46 AM 6/28/2004 +0530, Kamesh Jayachandran wrote: >Hi All, >Sorry to repost for the third time. >I want the clarification regarding copying the global_class_table to >thread specific compiler_globals->class_table in compiler_globals_ctor >in Zend/zend.c. > >According to me memcpy should copy 'whatever source points to' to >'destination'. >Our class_table hashtable structure looks like this, >char *key; >zend_class_entry** value; >So memcpy should copy only whatever (zend_class_entry**) points to which >is semantically wrong good candidate for Segmentation fault. > >No way memcpy can do double dereferencing for this case. > >Somehow in Linux when i compile it with maintainer-zts-mode memcpy >copies the data fine. >I verified all the internal classes. Thread specific class_table is in >sink with the global_class_table. > > >Please clarify. > >Thanks in Advance > > >With regards >Kamesh Jayachandran > >-- >PHP Internals - PHP Runtime Development Mailing List >To unsubscribe, visit: http://www.php.net/unsub.php