From owner-freebsd-hackers Tue Jan 28 23:28:53 2003 Delivered-To: freebsd-hackers@freebsd.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id C7FD737B401 for ; Tue, 28 Jan 2003 23:28:52 -0800 (PST) Received: from istanbul.enderunix.org (istanbul.enderunix.org [212.65.128.82]) by mx1.FreeBSD.org (Postfix) with SMTP id 3139A43F43 for ; Tue, 28 Jan 2003 23:28:51 -0800 (PST) (envelope-from murat@enderunix.org) Received: (qmail 86318 invoked by uid 1001); 29 Jan 2003 07:27:14 -0000 Date: Wed, 29 Jan 2003 09:27:14 +0200 From: Murat Balaban To: freebsd-hackers@freebsd.org Subject: memcpy and multithreading Message-ID: <20030129092714.A86300@enderunix.org> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline Sender: owner-freebsd-hackers@FreeBSD.ORG Precedence: bulk List-ID: List-Archive: (Web Archive) List-Help: (List Instructions) List-Subscribe: List-Unsubscribe: X-Loop: FreeBSD.ORG Hi, Are there any issues that i should now about memcpy and multithreading in FreeBSD? I've got a code which reads: memcpy(&(h.req), req, sizeof(struct request)); and I keep getting SIGSEGV there in FreeBSD but not in Linux. PS: Of course, I protect the write operation with a mutex. PS2: typedef struct hist_data { struct request req; int nthreads; int bwritten; struct thread_data wthread[MAXTHREADS]; } hist_data; - Murat Balaban To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-hackers" in the body of the message