From owner-freebsd-hackers Fri Nov 21 11:37:32 1997 Return-Path: Received: (from root@localhost) by hub.freebsd.org (8.8.7/8.8.7) id LAA04954 for hackers-outgoing; Fri, 21 Nov 1997 11:37:32 -0800 (PST) (envelope-from owner-freebsd-hackers) Received: from proxy3.ba.best.com (root@proxy3.ba.best.com [206.184.139.14]) by hub.freebsd.org (8.8.7/8.8.7) with ESMTP id LAA04946 for ; Fri, 21 Nov 1997 11:37:30 -0800 (PST) (envelope-from cbray@best.com) Received: from curtis.creativedesign.com (host117.creativedesign.com [207.135.94.117]) by proxy3.ba.best.com (8.8.7/8.8.BEST) with ESMTP id LAA01946; Fri, 21 Nov 1997 11:35:49 -0800 (PST) Message-ID: <3475E143.EE7AF250@best.com> Date: Fri, 21 Nov 1997 11:30:12 -0800 From: Curtis Bray Reply-To: cbray@best.com X-Mailer: Mozilla 4.01 [en] (Win95; I) MIME-Version: 1.0 To: freebsd-hackers@freebsd.org Subject: malloc() problems in children after using rfork() X-Priority: 3 (Normal) Content-Type: text/plain; charset=us-ascii Content-Transfer-Encoding: 7bit Sender: owner-freebsd-hackers@freebsd.org X-Loop: FreeBSD.org Precedence: bulk Hi, I'm trying to use rfork(RFPROC | RFMEM) so that all the children can share the same address space with their parent. If I have multiple children issuing mallocs the children seem to core dump. Once I turn the RFMEM flag off I have no problem mallocing (but of course I loose the shared address space). Anyone know what I could be doing wrong here? Do I have to put semaphores around every malloc?? I hope that's not the case... Thanks in advance! Curtis