From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from eggs.gnu.org ([208.118.235.92]:46528) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1THeGe-0007ws-0B for qemu-devel@nongnu.org; Fri, 28 Sep 2012 13:22:26 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1THeGb-000129-IV for qemu-devel@nongnu.org; Fri, 28 Sep 2012 13:22:23 -0400 Received: from mx1.redhat.com ([209.132.183.28]:30912) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1THeGb-00010a-B8 for qemu-devel@nongnu.org; Fri, 28 Sep 2012 13:22:21 -0400 Received: from int-mx02.intmail.prod.int.phx2.redhat.com (int-mx02.intmail.prod.int.phx2.redhat.com [10.5.11.12]) by mx1.redhat.com (8.14.4/8.14.4) with ESMTP id q8SHMKEC006885 (version=TLSv1/SSLv3 cipher=DHE-RSA-AES256-SHA bits=256 verify=OK) for ; Fri, 28 Sep 2012 13:22:20 -0400 Message-ID: <5065DCCA.6070607@redhat.com> Date: Fri, 28 Sep 2012 14:22:18 -0300 From: Lucas Meneghel Rodrigues MIME-Version: 1.0 Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 7bit Subject: [Qemu-devel] Bug: When setting hardware clock on linux guest, hwclock shows crazy date (in the year 2043) List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , To: QEMU devel , Marcelo Tosatti 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'")