[Pkg-sysvinit-devel] Bug#672959: [patch] Bug#672959: kfreebsd-*: panic: vm_fault_copy_wired

Petr Salinger Petr.Salinger at seznam.cz
Tue Aug 21 08:16:20 UTC 2012


tags 672959 +patch
--

Hi.

> /sbin/startpar -p 4 -t 20 -T 3 -M boot -P N -R S
>
> And the same happens even with -p 0.  This is a single-CPU VM running
> kfreebsd-i386.
>
>
> I'm beginning to think that startpar is malfunctioning in some way
> (after checkroot.sh returns, but before it runs the next script).

Thanks to Steven for excelent hint.
The patch bellow fixes it for me.
Please could also other people verify it.

Petr


--- sysvinit-2.88dsf.orig/startpar/startpar.c
+++ sysvinit-2.88dsf/startpar/startpar.c
@@ -1121,10 +1121,11 @@ int main(int argc, char **argv)
        exit(1);
      }
  #endif
-
+#ifdef __linux__
    /* lock us into memory */
    if (geteuid() == 0)
      mlockall(MCL_CURRENT|MCL_FUTURE);
+#endif
    errno = 0;

    gettimeofday(&glastio, 0);



More information about the Pkg-sysvinit-devel mailing list