From owner-freebsd-current@FreeBSD.ORG Thu Oct 16 13:54:49 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 2375316A4B3 for ; Thu, 16 Oct 2003 13:54:49 -0700 (PDT) Received: from zibbi.icomtek.csir.co.za (zibbi.icomtek.csir.co.za [146.64.24.58]) by mx1.FreeBSD.org (Postfix) with ESMTP id 5862943FE5 for ; Thu, 16 Oct 2003 13:54:46 -0700 (PDT) (envelope-from jhay@zibbi.icomtek.csir.co.za) Received: from zibbi.icomtek.csir.co.za (localhost [IPv6:::1]) h9GKsiqs041553 for ; Thu, 16 Oct 2003 22:54:44 +0200 (SAST) (envelope-from jhay@zibbi.icomtek.csir.co.za) Received: (from jhay@localhost) by zibbi.icomtek.csir.co.za (8.12.9/8.12.9/Submit) id h9GKsi6H041552 for current@freebsd.org; Thu, 16 Oct 2003 22:54:44 +0200 (SAST) (envelope-from jhay) Date: Thu, 16 Oct 2003 22:54:43 +0200 From: John Hay To: current@freebsd.org Message-ID: <20031016205443.GA41359@zibbi.icomtek.csir.co.za> References: <20031009095934.GA11841@zibbi.icomtek.csir.co.za> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <20031009095934.GA11841@zibbi.icomtek.csir.co.za> User-Agent: Mutt/1.4i Subject: Re: panic: vm_map_wire: lookup failed 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: Thu, 16 Oct 2003 20:54:49 -0000 > > The latest development source of ntpd started to use setrlimit() before > using mlockall(). This combination proves fatal on -current. The code > in ntpd/ntpd.c looks like this: Ok, I found an easier way to provoke the panic. Just compile the following program like this: cc -Wall -O -o vm -lcrypto vm.c and run as root. The program itself does not use the crypto, but it is needed to provoke the panic. ##################### vm.c ########################## #include #include int main(int argc, char **argv) { /* * lock the process into memory */ if (mlockall(MCL_CURRENT|MCL_FUTURE) < 0) perror("mlockall()"); return 0; } ####################################################### John -- John Hay -- John.Hay@icomtek.csir.co.za / jhay@FreeBSD.org