﻿id,summary,reporter,owner,description,type,status,component,version,resolution,keywords,cc,guest,host
10987,(nano)sleep not interrupted by alarm (bug only with GA installed),Kris Thielemans,,"This was first discussed on
https://forums.virtualbox.org/viewtopic.php?f=3&t=45395&p=236771#p236771

Symptom: on Ubuntu 11.10 64bit guest with guest additions installed, both nanosleep and sleep do not get interrupted by a scheduled alarm. The problem disappears after uninstalling guest additions (and reappears when reinstall GA).

A test program (based on a ""configure"" test from GNUlib) is attached. It schedules an alarm after 1sec and then calls nanosleep for 12sec. When running this program on Ubuntu running in VB, I get the correct behaviour:

{{{
$ gcc -o conftest conftest.c
$ time ./conftest

After nanosleep, but no interrupt

real	0m13.005s
user	0m0.000s
sys	0m0.000s
}}}

Running the same on Ubuntu directly (running on the same laptop but via a LiveCD, i.e. not under VB), I get

{{{
$ time ./conftest

After nanosleep and interrupted

real    0m1.198s
user    0m0.015s
sys     0m0.061s
}}}


I believe this to be a major problem, as this bug makes installing many packages impossible without code editing as ""configure"" hangs when testing for nanosleep and sleep behaviour, as the gnulib m4 test uses a very long sleep (+55 days...) period for this test.


My host: Windows 7
VB 4.1.22
Guest OS Ubuntu 11.10
$ uname -a
Linux splinter-ubuntu64 3.0.0-19-generic #33-Ubuntu SMP Thu Apr 19 19:05:14 UTC 2012 x86_64 x86_64 x86_64 GNU/Linux

On the forum, another user confirmed the same problem for 32bit and 64 bit Ubuntu 11.10 guest, MacOSX 10.7.3 host and VB 4.1.8 with Guest additions installed.",defect,closed,guest additions,VirtualBox 4.1.22,fixed,alarm interrupt sleep,,Linux,Windows
