Opened 8 years ago
Last modified 8 years ago
#14933 closed defect
Sometimes Hang at Startup — at Initial Version
Reported by: | GenyMobile | Owned by: | |
---|---|---|---|
Component: | other | Version: | VirtualBox 4.3.34 |
Keywords: | hang startup | Cc: | |
Guest type: | Linux | Host type: | Linux |
Description
Sometimes a VM just hang at startup and is stuck forever.
We tracked it down to rtSchedRunThread() into 'src/VBox/Runtime/r3/linux/sched-linux.cpp' where it loops without end.
According to the pthreads documentation: 1) « pthreads functions do not set errno » 2) « the function can never fail with the error EINTR »
Which means if something happen to have set errno to EINTR before these lines, there no hope of escape. Moreover, checking for EINTR is useless.
The foloowing patch fixes this problem. As this file barely changed in 5.0 it also applies cleanly on this series.