Subject: kern/6652: swapping to a sparse file fails unpredictably.
To: None <firstname.lastname@example.org>
From: None <email@example.com>
Date: 12/26/1998 00:23:33
>Synopsis: swapping to a sparse file fails unpredictably.
>Responsible: kern-bug-people (Kernel Bug People)
>Arrival-Date: Fri Dec 25 21:35:01 1998
>Originator: Marc Horowitz
>Release: 24 Dec 1998
System: NetBSD horowitz 1.3I NetBSD 1.3I (MARC) #14: Wed Dec 2 02:35:57 EST 1998 marc@horowitz:/u1/netbsd/src/sys/arch/i386/compile/MARC i386
If the system tries to swap to a sparse file, it becomes highly
unstable with no visible log or warning. In my situation, I saw three
1) The system would spontaneously reset.
2) The system would wedge.
3) init's memory would get corrupted. This would have weird secondary
effects, such as tty's getting reset, init crashing with SIGILL or
SIGSEGV, or init spinning. The one time I got a good stack trace on
an init spin, it was in
disaster->strsignal->__strsignal->_catopen->getenv->findenv. (As a
second possible bug, it seems poor for init do be doing this much
extra work when something catastrophic enough happens to disaster to
create a sparse file
swapctl -a /sparsefile
do something which tries to page into the sparse file
I'm going to commit a change to uvm_swap.c to panic if a write to a
sparse file occurrs. It would be better to handle this case more
elegantly, but I'm not familiar enough with the code to do that. A
useful panic() message is better than arbitrary system instability,