From owner-freebsd-current@FreeBSD.ORG Mon Sep 1 03:28:22 2003 Return-Path: Delivered-To: freebsd-current@freebsd.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id 5F0DA16A4BF for ; Mon, 1 Sep 2003 03:28:22 -0700 (PDT) Received: from milla.ask33.net (milla.ask33.net [217.197.166.60]) by mx1.FreeBSD.org (Postfix) with ESMTP id 65D1643FAF for ; Mon, 1 Sep 2003 03:28:21 -0700 (PDT) (envelope-from nick@milla.ask33.net) Received: by milla.ask33.net (Postfix, from userid 1001) id C6D373ABB2D; Mon, 1 Sep 2003 12:30:16 +0200 (CEST) Date: Mon, 1 Sep 2003 12:30:16 +0200 From: Pawel Jakub Dawidek To: "Kenneth D. Merry" Message-ID: <20030901103016.GI47959@garage.freebsd.pl> References: <20030831070854.GA54748@panzer.kdm.org> <16343.1062327167@critter.freebsd.dk> <20030901064840.GA61253@panzer.kdm.org> Mime-Version: 1.0 Content-Type: multipart/signed; micalg=pgp-md5; protocol="application/pgp-signature"; boundary="xAcdXodsXNqdgVFn" Content-Disposition: inline In-Reply-To: <20030901064840.GA61253@panzer.kdm.org> X-PGP-Key-URL: http://garage.freebsd.pl/jules.asc X-OS: FreeBSD 4.8-RELEASE-p3 i386 X-URL: http://garage.freebsd.pl User-Agent: Mutt/1.5.1i cc: Poul-Henning Kamp cc: current@FreeBSD.org Subject: Re: need some debugging help X-BeenThere: freebsd-current@freebsd.org X-Mailman-Version: 2.1.1 Precedence: list List-Id: Discussions about the use of FreeBSD-current List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Mon, 01 Sep 2003 10:28:22 -0000 --xAcdXodsXNqdgVFn Content-Type: text/plain; charset=iso-8859-2 Content-Disposition: inline Content-Transfer-Encoding: quoted-printable On Mon, Sep 01, 2003 at 12:48:41AM -0600, Kenneth D. Merry wrote: +> - I tried just holding a mutex all the time, but obviously you can't +> malloc while holding a mutex (except Giant), and the sysctl code does= a +> number of mallocs. (The original cause of this problem -- M_WAITOK +> mallocs.) I've proposed some time ago changing M_WAITOK to M_NOWAIT, because function/macros responsible for sysctl creation could failed from other reasons, so I don't see any reason why they couldn't fail because of insufficient memory. Caller is obliged to check return value... --=20 Pawel Jakub Dawidek pawel@dawidek.net UNIX Systems Programmer/Administrator http://garage.freebsd.pl Am I Evil? Yes, I Am! http://cerber.sourceforge.net --xAcdXodsXNqdgVFn Content-Type: application/pgp-signature Content-Disposition: inline -----BEGIN PGP SIGNATURE----- Version: GnuPG v1.0.7 (FreeBSD) iQCVAwUBP1MfuD/PhmMH/Mf1AQEaYwP/VwvgHV8bbzCL/I6km965uSBoZz0Yug1x QMWqC6UznCtVO9/+IVvEZ0poL5aP3UsH8nHlWOV2FNJazHIPQlqVhohPh/gvoNNy 5b6ajiACHmWjla8mHgDAqV2AmXfCluRpS1BaV9bvwM3sSOo0rsZE2wUnmAFAGUmr I6DQLx9CFc4= =XRNH -----END PGP SIGNATURE----- --xAcdXodsXNqdgVFn--