panic: vm_map_wire: lookup failed
John Hay
jhay at icomtek.csir.co.za
Thu Oct 16 13:54:49 PDT 2003
>
> 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 at icomtek.csir.co.za / jhay at FreeBSD.org
More information about the freebsd-current
mailing list