From owner-freebsd-hackers Fri Aug 10 20:44:20 2001 Delivered-To: freebsd-hackers@freebsd.org Received: from neptune.he.net (neptune.he.net [216.218.166.2]) by hub.freebsd.org (Postfix) with ESMTP id 02B9037B401; Fri, 10 Aug 2001 20:44:16 -0700 (PDT) (envelope-from robinson@netrinsics.com) Received: from netrinsics.com ([210.52.157.5] (may be forged)) by neptune.he.net (8.8.6/8.8.2) with ESMTP id UAA09684; Fri, 10 Aug 2001 20:44:21 -0700 Received: (from robinson@localhost) by netrinsics.com (8.11.2/8.11.1) id f7B3iWx00491; Sat, 11 Aug 2001 11:44:32 +0800 (+0800) (envelope-from robinson) Date: Sat, 11 Aug 2001 11:44:32 +0800 From: Michael Robinson To: Alfred Perlstein Cc: current@freebsd.org, hackers@freebsd.org Subject: Re: _sigprocmask in malloc.c causes full file table? Message-ID: <20010811114432.A472@elephant.netrinsics.com> References: <200108110115.f7B1F4100321@netrinsics.com> <20010810210348.T85642@elvis.mu.org> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline User-Agent: Mutt/1.2.5i In-Reply-To: <20010810210348.T85642@elvis.mu.org>; from bright@mu.org on Fri, Aug 10, 2001 at 09:03:48PM -0500 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 On Fri, Aug 10, 2001 at 09:03:48PM -0500, Alfred Perlstein wrote: > You're expecting calls to free/malloc to work from within an async > signal handler, so yes, you're being a bit boneheaded. :) Well, actually, I'm just expecting XFree86 4.1 to run under FreeBSD without randomly crashing. I tried fixing XFree86, but there are no less than three different memory allocation abstractions (maybe more, I got lost after a while), the interrupt-handling abstraction layer makes it almost impossible to find which code handles which interrupts, and the FreeBSD OS-specific code is a complete mess. So, I decided to take the easy way out and just disable interrupts in malloc/free. There are other parts of libc that have interrupts disabled, so is there any reason in principle this shouldn't work? -Michael Robinson To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-hackers" in the body of the message