Newsgroups: php.internals Path: news.php.net Xref: news.php.net php.internals:10784 Return-Path: Mailing-List: contact internals-help@lists.php.net; run by ezmlm Delivered-To: mailing list internals@lists.php.net Received: (qmail 15685 invoked by uid 1010); 26 Jun 2004 10:39:54 -0000 Delivered-To: ezmlm-scan-internals@lists.php.net Delivered-To: ezmlm-internals@lists.php.net Received: (qmail 15637 invoked from network); 26 Jun 2004 10:39:53 -0000 Received: from unknown (HELO out2.smtp.messagingengine.com) (66.111.4.26) by pb1.pair.com with SMTP; 26 Jun 2004 10:39:53 -0000 Received: from server3.messagingengine.com (server3.internal [10.202.2.134]) by mail.messagingengine.com (Postfix) with ESMTP id C7D63C0D56B for ; Sat, 26 Jun 2004 06:39:52 -0400 (EDT) Received: by server3.messagingengine.com (Postfix, from userid 99) id 59C88175FC7; Sat, 26 Jun 2004 06:39:53 -0400 (EDT) Content-Disposition: inline Content-Transfer-Encoding: 7bit Content-Type: text/plain; charset="iso-8859-1" MIME-Version: 1.0 X-Mailer: MIME::Lite 1.4 (F2.72; T1.001; A1.62; B3.01; Q3.01) To: internals@lists.php.net Date: Sat, 26 Jun 2004 03:39:53 -0700 X-Sasl-Enc: qDbEGCTILED326EDERYeYQ 1088246393 Message-ID: <1088246393.30048.199219965@webmail.messagingengine.com> Subject: issue in copying the hash table(Reposted second time) From: kameshj@fastmail.fm ("Kamesh Jayachandran") Hi All, Sorry to repost. 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