From owner-freebsd-arch@FreeBSD.ORG Sun Sep 12 21:21:30 2004 Return-Path: Delivered-To: freebsd-arch@freebsd.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id 5050C16A4CF for ; Sun, 12 Sep 2004 21:21:30 +0000 (GMT) Received: from harmony.village.org (rover.village.org [168.103.84.182]) by mx1.FreeBSD.org (Postfix) with ESMTP id E890C43D2F for ; Sun, 12 Sep 2004 21:21:29 +0000 (GMT) (envelope-from imp@bsdimp.com) Received: from localhost (warner@rover2.village.org [10.0.0.1]) by harmony.village.org (8.13.1/8.13.1) with ESMTP id i8CLKBFk016830; Sun, 12 Sep 2004 15:20:11 -0600 (MDT) (envelope-from imp@bsdimp.com) Date: Sun, 12 Sep 2004 15:20:47 -0600 (MDT) Message-Id: <20040912.152047.16265436.imp@bsdimp.com> To: phk@phk.freebsd.dk From: "M. Warner Losh" In-Reply-To: <61109.1095023635@critter.freebsd.dk> References: <20040912.142552.83283958.imp@bsdimp.com> <61109.1095023635@critter.freebsd.dk> X-Mailer: Mew version 3.3 on Emacs 21.3 / Mule 5.0 (SAKAKI) Mime-Version: 1.0 Content-Type: Text/Plain; charset=us-ascii Content-Transfer-Encoding: 7bit cc: arch@freebsd.org Subject: Re: [BIKESHED] Giving abort(2) a reason X-BeenThere: freebsd-arch@freebsd.org X-Mailman-Version: 2.1.1 Precedence: list List-Id: Discussion related to FreeBSD architecture List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Sun, 12 Sep 2004 21:21:30 -0000 In message: <61109.1095023635@critter.freebsd.dk> "Poul-Henning Kamp" writes: : In message <20040912.142552.83283958.imp@bsdimp.com>, "M. Warner Losh" writes: : : >: Given that we are usually pretty stumped when we get to call abort(2) : >: it needs to work without malloc or anything like it and varargs into : >: the kernel is not at all in my future. : > : >Only in malloc. Everywhere else, people have enough state to cope. : >Do we really want to have another kernel API just to support malloc : >failures? : : Well, the problem is that practically nothing else works once malloc : fails, and people seem to find the lack of visible explanation a : problem. : : syslog() or anything else using varargs is not going to work... Wouldn't it be better to have a more generic 'Put this into dmesg' thing that doesn't require malloc to work? It seems silly to bloat the kernel for only a malloc failure case... Warner