VirtualBox

Opened 14 years ago

Closed 9 years ago

#6318 closed defect (obsolete)

Monotonic counter as seen from guest is not monotonic

Reported by: Samuel Tardieu Owned by:
Component: other Version: VirtualBox 3.1.4
Keywords: Cc:
Guest type: Linux Host type: Linux

Description (last modified by Frank Mehnert)

The attached program, which uses the Linux kernel monotonic counter, shows that the counter is not monotonic in a 32 or 64 bits Linux host, at least when the guest is a 64 bits Linux.

Several programs, such as the Ada runtime or the Factor programming language, depend on the fact that the monotonic counter is indeed monotonic.

Tested with:

  • Host: Arch Linux 64 bits 2.6.32
  • Guest: Arch Linux 32 bits or 64 bits 2.6.32

In the guest, compile and run the test program:

% gcc -O2 -o t t.c -lrt % ./t

After a few seconds at most, the program will exit with an error message, proof of the problem. If it doesn't, then everything is fine (this happens when executed outside of VirtualBox for example).

Attachments (1)

t.c (572 bytes ) - added by Samuel Tardieu 14 years ago.
Source file t.c which demonstrates the problem

Download all attachments as: .zip

Change History (3)

by Samuel Tardieu, 14 years ago

Attachment: t.c added

Source file t.c which demonstrates the problem

comment:1 by Frank Mehnert, 14 years ago

Please attach a VBox.log file of such a VM session.

comment:2 by Frank Mehnert, 9 years ago

Description: modified (diff)
Resolution: obsolete
Status: newclosed
Note: See TracTickets for help on using tickets.

© 2023 Oracle
ContactPrivacy policyTerms of Use