From owner-freebsd-stable Tue Feb 25 19: 9:20 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 85A0C37B401 for ; Tue, 25 Feb 2003 19:09:19 -0800 (PST) Received: from mail.sandvine.com (sandvine.com [199.243.201.138]) by mx1.FreeBSD.org (Postfix) with ESMTP id DE5A243F85 for ; Tue, 25 Feb 2003 19:09:18 -0800 (PST) (envelope-from don@sandvine.com) Received: by mail.sandvine.com with Internet Mail Service (5.5.2653.19) id ; Tue, 25 Feb 2003 22:09:18 -0500 Message-ID: From: Don Bowman To: Don Bowman , "''freebsd-stable@freebsd.org' '" Subject: RE: panic with fork? Date: Tue, 25 Feb 2003 22:09:12 -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