VirtualBox

Opened 8 years ago

Last modified 8 years ago

#14933 closed defect

Sometimes Hang at Startup — at Version 1

Reported by: GenyMobile Owned by:
Component: other Version: VirtualBox 4.3.34
Keywords: hang startup Cc:
Guest type: Linux Host type: Linux

Description (last modified by Frank Mehnert)

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.

Change History (2)

by GenyMobile, 8 years ago

Attachment: pthread_join_loop.patch added

comment:1 by Frank Mehnert, 8 years ago

Description: modified (diff)
Note: See TracTickets for help on using tickets.

© 2023 Oracle
ContactPrivacy policyTerms of Use