From owner-freebsd-current Mon Sep 7 22:48:39 1998 Return-Path: Received: (from majordom@localhost) by hub.freebsd.org (8.8.8/8.8.8) id WAA05405 for freebsd-current-outgoing; Mon, 7 Sep 1998 22:48:39 -0700 (PDT) (envelope-from owner-freebsd-current@FreeBSD.ORG) Received: from whistle.com (s205m131.whistle.com [207.76.205.131]) by hub.freebsd.org (8.8.8/8.8.8) with ESMTP id WAA05400 for ; Mon, 7 Sep 1998 22:48:38 -0700 (PDT) (envelope-from archie@whistle.com) Received: (from smap@localhost) by whistle.com (8.7.5/8.6.12) id WAA22378; Mon, 7 Sep 1998 22:47:55 -0700 (PDT) Received: from bubba.whistle.com(207.76.205.7) by whistle.com via smap (V1.3) id sma022376; Mon Sep 7 22:47:54 1998 Received: (from archie@localhost) by bubba.whistle.com (8.8.7/8.6.12) id WAA05469; Mon, 7 Sep 1998 22:47:53 -0700 (PDT) From: Archie Cobbs Message-Id: <199809080547.WAA05469@bubba.whistle.com> Subject: Re: Thread Problems In-Reply-To: <199809080021.UAA04192@highwind.com> from HighWind Software Information at "Sep 7, 98 08:21:56 pm" To: info@highwind.com (HighWind Software Information) Date: Mon, 7 Sep 1998 22:47:53 -0700 (PDT) Cc: freebsd-current@FreeBSD.ORG, jb@cimlogic.com.au X-Mailer: ELM [version 2.4ME+ PL38 (25)] MIME-Version: 1.0 Content-Type: text/plain; charset=US-ASCII Content-Transfer-Encoding: 7bit Sender: owner-freebsd-current@FreeBSD.ORG Precedence: bulk X-Loop: FreeBSD.ORG HighWind Software Information writes: > 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: > > SIGVTALARM comes in (to check for context switching right?), > _thread_sig_handler gets it, it can (and does) call > _thread_kern_sched, _thread_kern_sched calls free() in a number of > different places. > > This (to my libc_r-newbie-eyes) is *BAD*. Besides getting that message > printed, can this cause corruption of data? > > Should I open a PR? Definitely.. the more specifics, the better, of course. -Archie ___________________________________________________________________________ Archie Cobbs * Whistle Communications, Inc. * http://www.whistle.com To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-current" in the body of the message