From owner-freebsd-current Tue Sep 8 15:29:24 1998 Return-Path: Received: (from majordom@localhost) by hub.freebsd.org (8.8.8/8.8.8) id PAA26558 for freebsd-current-outgoing; Tue, 8 Sep 1998 15:29:24 -0700 (PDT) (envelope-from owner-freebsd-current@FreeBSD.ORG) Received: from indigo.ie (ts02-057.dublin.indigo.ie [194.125.134.187]) by hub.freebsd.org (8.8.8/8.8.8) with ESMTP id PAA26528 for ; Tue, 8 Sep 1998 15:29:17 -0700 (PDT) (envelope-from rotel@indigo.ie) Received: (from nsmart@localhost) by indigo.ie (8.8.8/8.8.7) id XAA01156; Tue, 8 Sep 1998 23:22:56 +0100 (IST) (envelope-from rotel@indigo.ie) From: Niall Smart Message-Id: <199809082222.XAA01156@indigo.ie> Date: Tue, 8 Sep 1998 23:22:55 +0000 In-Reply-To: <199809080021.UAA04192@highwind.com>; HighWind Software Information Reply-To: rotel@indigo.ie X-Files: The truth is out there X-Mailer: Mail User's Shell (7.2.6 beta(3) 11/17/96) To: HighWind Software Information , freebsd-current@FreeBSD.ORG Subject: Re: Thread Problems Cc: jb@cimlogic.com.au Sender: owner-freebsd-current@FreeBSD.ORG Precedence: bulk X-Loop: FreeBSD.ORG On Sep 7, 8:21pm, HighWind Software Information wrote: } Subject: Re: Thread Problems > > Seems to me that libc_r can call free() from within a signal handler. > Given the non-recursive nature of this call, this is a serious > problem: Yeah, it does look like this, I don't think this is OK. Perhaps you could wrap _thread_kern_sched with #define free(x) do { if (scp == NULL) free(x); } while(0) #undef free and see if this improves things any. Niall -- Niall Smart, rotel@indigo.ie. Amaze your friends and annoy your enemies: echo '#define if(x) if (!(x))' >> /usr/include/stdio.h To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-current" in the body of the message