From: Lucas Meneghel Rodrigues <lmr@redhat.com>
To: QEMU devel <qemu-devel@nongnu.org>,
Marcelo Tosatti <mtosatti@redhat.com>
Subject: [Qemu-devel] Bug: When setting hardware clock on linux guest, hwclock shows crazy date (in the year 2043)
Date: Fri, 28 Sep 2012 14:22:18 -0300 [thread overview]
Message-ID: <5065DCCA.6070607@redhat.com> (raw)
Very easy to reproduce:
1) Build the latest qemu.git (we've captured this on internal automated
testing, verified manually), the commit for reference is:
14:07:02 INFO | git commit ID is
6f8fd2530e9a530f237240daf1c981fa5df7f978 (tag v1.2.0-461-g6f8fd25)
2) Install a linux guest in it (caught with RHEL 6.2, verified with
Fedora 17)
3) In the linux guest, set the hardware clock with hwclock:
/sbin/hwclock --set --date "2/2/80 03:04:00"
4) Verify if hardware clock was set back to the eighties:
LC_ALL=C /sbin/hwclock
5) Observe amazed that hwclock reports a date in the year 2043:
14:09:34 INFO | ('hwclock', 'FAIL', 2, "Failed to set hwclock back to
the eighties. Output of hwclock is 'Sun Dec 27 20:35:46 2043 -0.489664
seconds'")
reply other threads:[~2012-09-28 17:22 UTC|newest]
Thread overview: [no followups] expand[flat|nested] mbox.gz Atom feed
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=5065DCCA.6070607@redhat.com \
--to=lmr@redhat.com \
--cc=mtosatti@redhat.com \
--cc=qemu-devel@nongnu.org \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).