On Thu, Oct 27, 2011 at 08:05:41PM -0700, Greg A. Woods wrote: > The attached program seems to demonstrate the problem, in part, at least > to my eyes, on both NetBSD-4 (on real hardware) and NetBSD-5 (on > VirtualBox), and it also shows that the problem does not seem to exist > on Mac OS X (10.6.8).
This is a well-known bug that is over 15 year old. The much simpler tests in atf(7) replicate it well. The used tracker PR is kern/30115. Michael van Elst suggested therein couple of reasonable (IMO) solutions. - Jukka.