From owner-freebsd-stable Wed Feb 26 6:46:19 2003 Delivered-To: freebsd-stable@freebsd.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id 3E5DD37B401 for ; Wed, 26 Feb 2003 06:46:18 -0800 (PST) Received: from mail.sandvine.com (sandvine.com [199.243.201.138]) by mx1.FreeBSD.org (Postfix) with ESMTP id 0BEC343F85 for ; Wed, 26 Feb 2003 06:46:17 -0800 (PST) (envelope-from don@sandvine.com) Received: by mail.sandvine.com with Internet Mail Service (5.5.2653.19) id ; Wed, 26 Feb 2003 09:46:16 -0500 Message-ID: From: Don Bowman To: "''freebsd-stable@freebsd.org' '" Subject: RE: panic with fork? Date: Wed, 26 Feb 2003 09:46:15 -0500 MIME-Version: 1.0 X-Mailer: Internet Mail Service (5.5.2653.19) List-Help: (List Instructions) List-Subscribe: List-Unsubscribe: Content-Type: text/plain; charset="iso-8859-1" Sender: owner-freebsd-stable@FreeBSD.ORG Precedence: bulk List-ID: List-Archive: (Web Archive) List-Help: (List Instructions) List-Subscribe: List-Unsubscribe: X-Loop: FreeBSD.ORG From: Don Bowman >I find that if I run the below: >$ while true; do daemon -f bash -c exit; done ... So the problem is in pmap_pinit(). It calls kmem_alloc_pageable() to obtain a page directory table. In this case, kmem_alloc_pageable() returns NULL, and the code doesn't check it. Now, pmap_pinit() clearly doesn't expect to be able to fail, there's no provision for returning error. Does anyone have a suggestion for a fix? --don To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-stable" in the body of the message