From nobody@FreeBSD.org  Fri May  2 11:51:00 2014
Return-Path: <nobody@FreeBSD.org>
Received: from mx1.freebsd.org (mx1.freebsd.org [8.8.178.115])
	(using TLSv1 with cipher ADH-AES256-SHA (256/256 bits))
	(No client certificate requested)
	by hub.freebsd.org (Postfix) with ESMTPS id ACA61961
	for <freebsd-gnats-submit@FreeBSD.org>; Fri,  2 May 2014 11:51:00 +0000 (UTC)
Received: from cgiserv.freebsd.org (cgiserv.freebsd.org [IPv6:2001:1900:2254:206a::50:4])
	(using TLSv1 with cipher DHE-RSA-AES256-SHA (256/256 bits))
	(Client did not present a certificate)
	by mx1.freebsd.org (Postfix) with ESMTPS id 9A10C1D92
	for <freebsd-gnats-submit@FreeBSD.org>; Fri,  2 May 2014 11:51:00 +0000 (UTC)
Received: from cgiserv.freebsd.org ([127.0.1.6])
	by cgiserv.freebsd.org (8.14.8/8.14.8) with ESMTP id s42BoxNi070685
	for <freebsd-gnats-submit@FreeBSD.org>; Fri, 2 May 2014 11:50:59 GMT
	(envelope-from nobody@cgiserv.freebsd.org)
Received: (from nobody@localhost)
	by cgiserv.freebsd.org (8.14.8/8.14.8/Submit) id s42BoxuD070680;
	Fri, 2 May 2014 11:50:59 GMT
	(envelope-from nobody)
Message-Id: <201405021150.s42BoxuD070680@cgiserv.freebsd.org>
Date: Fri, 2 May 2014 11:50:59 GMT
From: Matthias Apitz <guru@unixarea.de>
To: freebsd-gnats-submit@FreeBSD.org
Subject: last(1) output stops in the past
X-Send-Pr-Version: www-3.1
X-GNATS-Notify:

>Number:         189233
>Category:       bin
>Synopsis:       last(1) output stops in the past
>Confidential:   no
>Severity:       non-critical
>Priority:       low
>Responsible:    freebsd-bugs
>State:          open
>Quarter:
>Keywords:
>Date-Required:
>Class:          sw-bug
>Submitter-Id:   current-users
>Arrival-Date:   Fri May 02 12:00:00 UTC 2014
>Closed-Date:
>Last-Modified:
>Originator:     Matthias Apitz
>Release:        CURRENT (r255948)
>Organization:
>Environment:
# uname -a
FreeBSD aurora.Sisis.de 10.0-ALPHA4 FreeBSD 10.0-ALPHA4 #1: Fri Oct 18 12:10:57 CEST 2013     guru@aurora.Sisis.de:/usr/obj/usr/src/sys/GENERIC  i386
>Description:
The output of last -10 stopps in the past (today is May 2):

# last -10
shutdown time                              Tue Mar 25 17:30
guru       ttyv1                           Tue Mar 25 17:28 - shutdown  (00:02)
guru       ttyv0                           Tue Mar 25 17:15 - shutdown  (00:14)
boot time                                  Tue Mar 25 16:13
shutdown time                              Tue Mar 25 06:53
guru       pts/0                           Tue Mar 25 06:41 - 06:53  (00:12)
guru       ttyv0                           Tue Mar 25 06:39 - shutdown  (00:14)
boot time                                  Tue Mar 25 06:38
shutdown time                              Mon Mar 24 07:04
guru       pts/0                           Mon Mar 24 06:24 - 07:04  (00:39)sh

trussing shows that not the full file size is read-in:

..
open("utx.log.0",O_CLOEXEC,0666)                 = 3 (0x3)
fstat(3,{ mode=-rw-r--r-- ,inode=5379456,size=111586,blksize=32768 }) = 0 (0x0)
read(3,"\0\^U\a\0\^D\M-^\^Xr\^Wo\M^H\M-m"...,32768) = 32768 (0x8000)
read(3,"\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0"...,32768) = 32768 (0x8000)
read(3,"\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0"...,32768) = 32768 (0x8000)
close(3)                                         = 0 (0x0)
..

>How-To-Repeat:
just let grow utx.log enogh
>Fix:


>Release-Note:
>Audit-Trail:
>Unformatted:
