Date: Thu, 16 Oct 2003 22:54:43 +0200 From: John Hay <jhay@icomtek.csir.co.za> To: current@freebsd.org Subject: Re: panic: vm_map_wire: lookup failed Message-ID: <20031016205443.GA41359@zibbi.icomtek.csir.co.za> In-Reply-To: <20031009095934.GA11841@zibbi.icomtek.csir.co.za> References: <20031009095934.GA11841@zibbi.icomtek.csir.co.za>
next in thread | previous in thread | raw e-mail | index | archive | help
> > 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 <stdio.h> #include <sys/mman.h> 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
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?20031016205443.GA41359>