From owner-freebsd-bugs@FreeBSD.ORG Fri Jul 27 17:50:01 2007 Return-Path: Delivered-To: freebsd-bugs@hub.freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id ACDFA16A41A for ; Fri, 27 Jul 2007 17:50:01 +0000 (UTC) (envelope-from gnats@FreeBSD.org) Received: from freefall.freebsd.org (freefall.freebsd.org [IPv6:2001:4f8:fff6::28]) by mx1.freebsd.org (Postfix) with ESMTP id 696C213C494 for ; Fri, 27 Jul 2007 17:50:01 +0000 (UTC) (envelope-from gnats@FreeBSD.org) Received: from freefall.freebsd.org (gnats@localhost [127.0.0.1]) by freefall.freebsd.org (8.14.1/8.14.1) with ESMTP id l6RHo19K094491 for ; Fri, 27 Jul 2007 17:50:01 GMT (envelope-from gnats@freefall.freebsd.org) Received: (from gnats@localhost) by freefall.freebsd.org (8.14.1/8.14.1/Submit) id l6RHo1nW094490; Fri, 27 Jul 2007 17:50:01 GMT (envelope-from gnats) Resent-Date: Fri, 27 Jul 2007 17:50:01 GMT Resent-Message-Id: <200707271750.l6RHo1nW094490@freefall.freebsd.org> Resent-From: FreeBSD-gnats-submit@FreeBSD.org (GNATS Filer) Resent-To: freebsd-bugs@FreeBSD.org Resent-Reply-To: FreeBSD-gnats-submit@FreeBSD.org, Jin Guojun Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id 305F616A41F for ; Fri, 27 Jul 2007 17:44:15 +0000 (UTC) (envelope-from nobody@FreeBSD.org) Received: from www.freebsd.org (www.freebsd.org [IPv6:2001:4f8:fff6::21]) by mx1.freebsd.org (Postfix) with ESMTP id 15B6913C45B for ; Fri, 27 Jul 2007 17:44:15 +0000 (UTC) (envelope-from nobody@FreeBSD.org) Received: from www.freebsd.org (localhost [127.0.0.1]) by www.freebsd.org (8.14.1/8.14.1) with ESMTP id l6RHiERQ021631 for ; Fri, 27 Jul 2007 17:44:14 GMT (envelope-from nobody@www.freebsd.org) Received: (from nobody@localhost) by www.freebsd.org (8.14.1/8.14.1/Submit) id l6RHiEK5021630; Fri, 27 Jul 2007 17:44:14 GMT (envelope-from nobody) Message-Id: <200707271744.l6RHiEK5021630@www.freebsd.org> Date: Fri, 27 Jul 2007 17:44:14 GMT From: Jin Guojun To: freebsd-gnats-submit@FreeBSD.org X-Send-Pr-Version: www-3.0 Cc: Subject: kern/114970: Wrong system time (last) when machine is crashed due to lose power X-BeenThere: freebsd-bugs@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: Bug reports List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Fri, 27 Jul 2007 17:50:01 -0000 >Number: 114970 >Category: kern >Synopsis: Wrong system time (last) when machine is crashed due to lose power >Confidential: no >Severity: non-critical >Priority: medium >Responsible: freebsd-bugs >State: open >Quarter: >Keywords: >Date-Required: >Class: sw-bug >Submitter-Id: current-users >Arrival-Date: Fri Jul 27 17:50:01 GMT 2007 >Closed-Date: >Last-Modified: >Originator: Jin Guojun >Release: 6.2-RELEASE >Organization: LBL >Environment: FreeBSD bsd-ms 6.2-RELEASE FreeBSD 6.2-RELEASE #0: Tue May 29 15:34:22 PDT 2007 root@bsd-ms:/usr/src/sys/i386/compile/SMP.MM i386 >Description: gjin ttyv0 Fri Jul 27 10:24 still logged in reboot ~ Fri Jul 27 10:23 gjin ttyv0 Thu Jul 26 15:34 - crash (18:49) reboot ~ Thu Jul 26 15:33 shutdown ~ Thu Jul 26 15:32 root ttyv0 Thu Jul 26 15:14 - shutdown (00:17) reboot ~ Thu Jul 26 15:14 shutdown ~ Thu Jul 26 15:12 root ttyv0 Thu Jul 26 15:08 - shutdown (00:03) reboot ~ Thu Jul 26 15:08 shutdown ~ Thu Jul 26 15:06 When power outage or other thing happened to cause machine down, the last did not provide a correct down time when this happened. The crash line shows the time duration when the machine is rebooted, not the machine was crashed. >How-To-Repeat: Logon as a user and unplug the power. Wait for a hour or longer then power on the machine, then type last command to check the timestamp. >Fix: >Release-Note: >Audit-Trail: >Unformatted: