GNU bug report logs - #65255
uptime's boot time is inconsistent after VM sleep & resume

Previous Next

Package: coreutils;

Reported by: Bruno Haible <bruno <at> clisp.org>

Date: Sat, 12 Aug 2023 23:01:02 UTC

Severity: normal

Done: Paul Eggert <eggert <at> cs.ucla.edu>

Bug is archived. No further changes may be made.

To add a comment to this bug, you must first unarchive it, by sending
a message to control AT debbugs.gnu.org, with unarchive 65255 in the body.
You can then email your comments to 65255 AT debbugs.gnu.org in the normal way.

Toggle the display of automated, internal messages from the tracker.

View this report as an mbox folder, status mbox, maintainer mbox


Report forwarded to bug-coreutils <at> gnu.org:
bug#65255; Package coreutils. (Sat, 12 Aug 2023 23:01:02 GMT) Full text and rfc822 format available.

Acknowledgement sent to Bruno Haible <bruno <at> clisp.org>:
New bug report received and forwarded. Copy sent to bug-coreutils <at> gnu.org. (Sat, 12 Aug 2023 23:01:02 GMT) Full text and rfc822 format available.

Message #5 received at submit <at> debbugs.gnu.org (full text, mbox):

From: Bruno Haible <bruno <at> clisp.org>
To: bug-coreutils <at> gnu.org
Subject: uptime's boot time is inconsistent after VM sleep & resume
Date: Sun, 13 Aug 2023 01:00:37 +0200
[Message part 1 (text/plain, inline)]
On the following platforms:
  - Linux (that includes glibc-based systems, Alpine Linux, Raspbian),
  - NetBSD,
  - Cygwin,
  - Minix,

the "up" duration is inconsistent after the VM in which the OS is running
has been
  1. put into sleep / saved / pause mode (terminology depends on the
     hypervisor),
  2. resumed,
  3. a date bump has been done in the VM (either automatically or manually).

VM sleep and a date adjustment after resume is a common operation, as can
be seen
  - from the fact that it's automatic in VirtualBox machines with the
    "guest extensions" installed [1],
  - from the fact that it's automatic in KVM [2],
  - from the fact that it's automatic in Haiku as guest,
  - from a remark in the libvirt documentation [3],
  - from stackoverflow questions such as [4].

After such a VM sleep and a date adjustment, coreutils' "uptime" is
inconsistent in three ways:

  * On Linux, the displayed "up" duration includes active time and
    hardware suspend time [5], but excludes VM sleep time.

    Such a figure is not useful for estimating the boot time, since
    (time now) - (that "up" time) is not the boot time.

    It is also not useful for estimating when e.g. a file system check
    would be necessary on file systems without a journal, or how much
    electricity was consumed — since the hardware suspend time was included.

    So this figure is useless.

  * The displayed "up" duration is inconsistent with the boot time displayed
    by "who -a". (Since the Gnulib module 'readutmp' makes efforts to find
    the boot time in a way that does not change when the date is adjusted.)

  * The behaviour is inconsistent among platforms: On platforms which have
    a /proc/uptime file, the displayed "up" time _excludes_ VM sleep time.
    On the other platforms it _includes_ VM sleep time.

Seen on Linux (Fedora Rawhide, Alpine Linux 3.18, Raspbian), NetBSD 9.3,
Cygwin 2.9.0, Minix 3.3.

I see this as a bug. Find attached a fix for this bug. I'll provide a NEWS
entry afterwards, that summarizes the changes in coreutils + gnulib on the
various platforms.

Bruno


[1] https://docs.oracle.com/en/virtualization/virtualbox/6.1/user/guestadditions.html#4.1.-Introduction-to-Guest-Additions
[2] https://bugzilla.redhat.com/show_bug.cgi?id=1115340
[3] https://libvirt.gitlab.io/libvirt-appdev-guide-python/libvirt_application_development_guide_using_python-Guest_Domains-Lifecycle-Save.html
[4] https://serverfault.com/questions/334698/
[5] This is indicated by glibc's <bits/time.h>:
      /* Monotonic system-wide clock that includes time spent in suspension.  */
      # define CLOCK_BOOTTIME                 7
    I also verified this on a laptop.
[0001-uptime-Include-VM-sleep-time-in-the-up-duration.patch (text/x-patch, attachment)]

Information forwarded to bug-coreutils <at> gnu.org:
bug#65255; Package coreutils. (Sat, 12 Aug 2023 23:22:02 GMT) Full text and rfc822 format available.

Message #8 received at 65255 <at> debbugs.gnu.org (full text, mbox):

From: Bruno Haible <bruno <at> clisp.org>
To: 65255 <at> debbugs.gnu.org
Subject: Re: uptime's boot time is inconsistent after VM sleep & resume
Date: Sun, 13 Aug 2023 01:21:06 +0200
PS: I wrote:
> (print_uptime): Don't read /proc/uptime

You might wonder: What is the replacement? Namely, as a fallback (for
situations where the current process is running inside a container or jail):
  - On Linux, the auxiliary function get_linux_boot_time_final_fallback
    reads the info from /proc/uptime.
  - On macOS and BSD systems, we don't need to read it, because the sysctl
    invoked by the auxiliary function get_bsd_boot_time_final_fallback
    reads the same info, without needing a mounted /proc file system.
  - On Minix and Cygwin, no replacement is needed, because there is no
    "container" or "jail" concept in these OSes.

Bruno







Information forwarded to bug-coreutils <at> gnu.org:
bug#65255; Package coreutils. (Sun, 13 Aug 2023 06:50:02 GMT) Full text and rfc822 format available.

Message #11 received at 65255 <at> debbugs.gnu.org (full text, mbox):

From: Paul Eggert <eggert <at> cs.ucla.edu>
To: Bruno Haible <bruno <at> clisp.org>, 65255 <at> debbugs.gnu.org
Subject: Re: bug#65255: uptime's boot time is inconsistent after VM sleep &
 resume
Date: Sat, 12 Aug 2023 23:49:26 -0700
On 2023-08-12 16:00, Bruno Haible wrote:

> I see this as a bug. Find attached a fix for this bug. I'll provide a NEWS
> entry afterwards, that summarizes the changes in coreutils + gnulib on the
> various platforms.

Thanks, this looks good. A NEWS entry would be welcome.

Does this mean Gnulib's 'uptime' module is obsolete?





Information forwarded to bug-coreutils <at> gnu.org:
bug#65255; Package coreutils. (Tue, 15 Aug 2023 13:05:02 GMT) Full text and rfc822 format available.

Message #14 received at 65255 <at> debbugs.gnu.org (full text, mbox):

From: Bruno Haible <bruno <at> clisp.org>
To: 65255 <at> debbugs.gnu.org, Paul Eggert <eggert <at> cs.ucla.edu>
Subject: Re: bug#65255: uptime's boot time is inconsistent after VM sleep &
 resume
Date: Tue, 15 Aug 2023 15:03:44 +0200
I wrote:
> > I'll provide a NEWS
> > entry afterwards, that summarizes the changes in coreutils + gnulib on the
> > various platforms.
> 
Paul Eggert wrote:
> Thanks, this looks good. A NEWS entry would be welcome.

Actually, it's 4 entries:

* The 'uptime' program is now being built on FreeBSD, Haiku.
* 'who -a' now displays the boot time on Alpine Linux, OpenBSD, Cygwin,
   Haiku, and some distributions of Android.
* 'uptime' now succeeds on some distributions of Android.
* The "up" time displayed by 'uptime' now includes VM saved/sleep time on
  Linux, Hurd, GNU/kFreeBSD, NetBSD, OpenBSD, Minix, Cygwin.

Comments:
Re entry 1: Yes, the 'uptime' program was not being built on FreeBSD. A consequence
of the fact that FreeBSD has <utmpx.h> but no <utmp.h>, and of this commit:
https://git.savannah.gnu.org/gitweb/?p=coreutils.git;a=commitdiff;h=2984e47c789ebc39f55a3b1cb20b943de88eeedc

Re entry 2, 3: Let's write "some distributions of Android" since for me it works
(under Termux, with an LG Android 11) whereas for Po Lu these two system APIs
don't work (due to SELinux policies).

Re entry 4:
The improvement comes from both
[1] https://lists.gnu.org/archive/html/coreutils/2023-08/msg00028.html
    on NetBSD, OpenBSD, Minix,
[2] https://lists.gnu.org/archive/html/bug-coreutils/2023-08/msg00068.html
    on Linux, Hurd, GNU/kFreeBSD, NetBSD, Minix, Cygwin.

Find below the detailed test results.

> Does this mean Gnulib's 'uptime' module is obsolete?

It can be marked obsolete, yes. But it should not be removed immediately,
since some other package is using it: dc3dd. See
https://codesearch.debian.net/search?q=uptime+path%3Abootstrap.conf&literal=1

Bruno


TEST RESULTS with
  + current gnulib as of today
  + current coreutils + my patches [1][2]:
--------------------------------------------------------------------------------
Fedora Rawhide Cinnamon

$ date +"%Y-%m-%d %H:%M"
2023-08-15 11:11
$ coreutils-9.3/src/who -a
           system boot  2023-08-09 21:03
           run-level 5  2023-08-09 21:03
bruno    + tty1         2023-08-09 21:03  old         1072 (:0)
           pts/3        2023-08-15 11:11            107603 id=ts/3  term=0 exit=0
$ coreutils-9.3/src/uptime
 11:11:14  up 5 days 12:57,  1 user,  load average: 0.08, 0.03, 0.00
Includes VM sleep time? no
$ coreutils-2023-08-13/src/who -a
           system boot  2023-08-09 21:03
           run-level 5  2023-08-09 21:03
bruno    + tty1         2023-08-09 21:03  old         1072 (:0)
           pts/3        2023-08-15 11:11            107603 id=ts/3  term=0 exit=0
$ coreutils-2023-08-13/src/uptime
 11:11:19  up 5 days 14:07,  1 user,  load average: 0.16, 0.04, 0.01
Includes VM sleep time? yes

--------------------------------------------------------------------------------
CentOS 6

$ date +"%Y-%m-%d %H:%M"
2023-08-15 11:18
$ coreutils-9.3/src/who -a
           system boot  2023-08-14 04:45
           run-level 5  2023-08-14 04:45
LOGIN      tty3         2023-08-14 04:45              1889 id=3
LOGIN      tty4         2023-08-14 04:45              1891 id=4
LOGIN      tty2         2023-08-14 04:45              1887 id=2
LOGIN      tty5         2023-08-14 04:45              1893 id=5
LOGIN      tty6         2023-08-14 04:45              1901 id=6
bruno    + tty1         2023-08-14 04:46  old         2072 (:0)
bruno    + pts/0        2023-08-14 04:46   .          2466 (:0.0)
$ coreutils-9.3/src/uptime
 11:18:14  up 1 day  5:26,  2 users,  load average: 0.00, 0.00, 0.00
Includes VM sleep time? no
$ coreutils-2023-08-13/src/who -a
           system boot  2023-08-14 04:45
           run-level 5  2023-08-14 04:45
LOGIN      tty3         2023-08-14 04:45              1889 id=3
LOGIN      tty4         2023-08-14 04:45              1891 id=4
LOGIN      tty2         2023-08-14 04:45              1887 id=2
LOGIN      tty5         2023-08-14 04:45              1893 id=5
LOGIN      tty6         2023-08-14 04:45              1901 id=6
bruno    + tty1         2023-08-14 04:46  old         2072 (:0)
bruno    + pts/0        2023-08-14 04:46   .          2466 (:0.0)
$ coreutils-2023-08-13/src/uptime
 11:18:19  up 1 day  6:33,  2 users,  load average: 0.00, 0.00, 0.00
Includes VM sleep time? yes

--------------------------------------------------------------------------------
Raspbian

$ date +"%Y-%m-%d %H:%M"
2023-08-15 11:21
$ coreutils-9.2/src/who -a
           system boot  1970-01-01 01:00
pi       - tty1         2023-07-09 19:16  old          445
pi       + tty7         2023-08-10 14:31  old         7911 (:0)
           run-level 5  2023-08-10 13:07
$ coreutils-9.2/src/uptime
 11:21:36  up 4 days 20:41,  2 users,  load average: 0.69, 0.20, 0.06
Includes VM sleep time? no
$ coreutils-2023-08-13/src/who -a
           system boot  2023-08-10 13:07
pi       - tty1         2023-07-09 19:16  old          445
pi       + tty7         2023-08-10 14:31  old         7911 (:0)
           run-level 5  2023-08-10 13:07
$ coreutils-2023-08-13/src/uptime
 11:21:40  up 4 days 22:13,  2 users,  load average: 0.69, 0.20, 0.06
Includes VM sleep time? yes

--------------------------------------------------------------------------------
Alpine Linux 3.18

$ date +"%Y-%m-%d %H:%M"
2023-09-13 23:32
$ coreutils-9.3/src/who -a
$ coreutils-9.3/src/uptime
 23:32:11  up 5 days  6:02,  0 users,  load average: 0.01, 0.01, 0.00
Includes VM sleep time? no
$ coreutils-2023-08-13/src/who -a
           system boot  Aug  9 16:24
$ coreutils-2023-08-13/src/uptime
 23:32:16  up 35 days  7:08,  0 users,  load average: 0.01, 0.01, 0.00
Includes VM sleep time? yes

--------------------------------------------------------------------------------
GNU/Hurd 2022

$ date +"%Y-%m-%d %H:%M"
2023-08-15 11:29
$ coreutils-9.2/src/who -a
                        Aug 15 00:06                18 id=si    term=0 exit=0
           system boot  Aug 15 00:06
           run-level 2  Aug 15 00:06                   last=S
                        Aug 15 00:06               601 id=l2    term=0 exit=0
                        Aug 15 00:06               747 id=6
                        Aug 15 00:06               746 id=5
                        Aug 15 00:06               742 id=1
                        Aug 15 00:06               744 id=3
                        Aug 15 00:06               745 id=4
                        Aug 15 00:06               743 id=2
                        Aug 15 00:06               748 id=c
login    - tty6         Aug 15 00:07 11:22         747
login    - tty4         Aug 15 00:07 11:22         745
login    - tty2         Aug 15 00:07 11:22         743
login    - tty3         Aug 15 00:07 11:22         744
bruno    - tty1         Aug 15 00:06   .           742
login    - tty5         Aug 15 00:07 11:22         746
login    - console      Aug 15 00:07 11:22         748
$ coreutils-9.2/src/uptime
 11:29:11  up  10:13,  7 users,  load average: 0.00, 0.01, 0.01
Includes VM sleep time? no
$ coreutils-2023-08-13/src/who -a
                        Aug 15 00:06                18 id=si    term=0 exit=0
           system boot  Aug 15 00:06
           run-level 2  Aug 15 00:06                   last=S
                        Aug 15 00:06               601 id=l2    term=0 exit=0
                        Aug 15 00:06               747 id=6
                        Aug 15 00:06               746 id=5
                        Aug 15 00:06               742 id=1
                        Aug 15 00:06               744 id=3
                        Aug 15 00:06               745 id=4
                        Aug 15 00:06               743 id=2
                        Aug 15 00:06               748 id=c
login    - tty6         Aug 15 00:07 11:22         747
login    - tty4         Aug 15 00:07 11:22         745
login    - tty2         Aug 15 00:07 11:22         743
login    - tty3         Aug 15 00:07 11:22         744
bruno    - tty1         Aug 15 00:06   .           742
login    - tty5         Aug 15 00:07 11:22         746
login    - console      Aug 15 00:07 11:22         748
$ coreutils-2023-08-13/src/uptime
 11:29:15  up  11:22,  7 users,  load average: 0.00, 0.01, 0.00
Includes VM sleep time? yes

--------------------------------------------------------------------------------
FreeBSD 13.2

$ date +"%Y-%m-%d %H:%M"
2023-08-15 11:34
$ coreutils-9.3/src/who -a
           system boot  2023-08-11 22:49
bruno    - ttyv0        2023-08-11 23:02   .           857
$ coreutils-9.3/src/uptime
sh: coreutils-9.3/src/uptime: not found
Includes VM sleep time? n/a
$ coreutils-2023-08-13/src/who -a
           system boot  2023-08-11 22:49
bruno    - ttyv0        2023-08-11 23:02   .           857
$ coreutils-2023-08-13/src/uptime
 11:34:23  up 3 days 12:45,  1 user,  load average: 0.48, 0.61, 0.55
Includes VM sleep time? yes

--------------------------------------------------------------------------------
GNU/kFreeBSD 7

$ date +"%Y-%m-%d %H:%M"
2023-08-15 13:37
$ coreutils-9.3/src/who -a
                        2023-08-14 05:54                17 id=si    term=0 exit=0
           system boot  2023-08-14 05:54
           run-level 2  2023-08-14 05:54                   last=S
                        2023-08-14 05:54              1554 id=l2    term=0 exit=0
LOGIN      ttyv1        2023-08-14 05:54              2168 id=2
LOGIN      ttyv2        2023-08-14 05:54              2169 id=3
LOGIN      ttyv3        2023-08-14 05:54              2170 id=4
LOGIN      ttyv4        2023-08-14 05:54              2171 id=5
LOGIN      ttyv5        2023-08-14 05:54              2172 id=6
bruno    - ttyv0        2023-08-14 05:55   .          2173
$ coreutils-9.3/src/uptime
 13:37:15  up 1 day  6:35,  1 user,  load average: 0.00, 0.00, 0.00
Includes VM sleep time? no
$ coreutils-2023-08-13/src/who -a
                        2023-08-14 05:54                17 id=si    term=0 exit=0
           system boot  2023-08-14 05:54
           run-level 2  2023-08-14 05:54                   last=S
                        2023-08-14 05:54              1554 id=l2    term=0 exit=0
LOGIN      ttyv1        2023-08-14 05:54              2168 id=2
LOGIN      ttyv2        2023-08-14 05:54              2169 id=3
LOGIN      ttyv3        2023-08-14 05:54              2170 id=4
LOGIN      ttyv4        2023-08-14 05:54              2171 id=5
LOGIN      ttyv5        2023-08-14 05:54              2172 id=6
bruno    - ttyv0        2023-08-14 05:55   .          2173
$ coreutils-2023-08-13/src/uptime
 13:37:19  up 1 day  7:42,  1 user,  load average: 0.00, 0.00, 0.00
Includes VM sleep time? yes

--------------------------------------------------------------------------------
NetBSD 9.3

$ date +"%Y-%m-%d %H:%M"
2023-08-15 11:55
$ coreutils-9.3/src/who -a
           system boot  Aug 11 22:48
           run-level    Aug 11 22:48
bruno    - constty      Aug 11 23:02   .           582
LOGIN      ttyE1        Aug 11 22:48               647 id=tyE1
LOGIN      ttyE2        Aug 11 22:48               657 id=tyE2
LOGIN      ttyE3        Aug 11 22:48               635 id=tyE3
$ coreutils-9.3/src/uptime
 11:55:13  up 3 days 10:17,  1 user,  load average: 0.00, 0.00, 0.00
Includes VM sleep time? no
$ coreutils-2023-08-13/src/who -a
           system boot  Aug 11 22:48
           run-level    Aug 11 22:48
bruno    - constty      Aug 11 23:02   .           582
LOGIN      ttyE1        Aug 11 22:48               647 id=tyE1
LOGIN      ttyE2        Aug 11 22:48               657 id=tyE2
LOGIN      ttyE3        Aug 11 22:48               635 id=tyE3
$ coreutils-2023-08-13/src/uptime
 11:55:18  up 3 days 13:06,  1 user,  load average: 0.00, 0.00, 0.00
Includes VM sleep time? yes

--------------------------------------------------------------------------------
OpenBSD 7.2

$ date +"%Y-%m-%d %H:%M"
2023-09-14 13:01
$ coreutils-9.3/src/who -a
bruno    - ttyC0        Aug  9 20:24   .
$ coreutils-9.3/src/uptime
 13:02:12  up 5 days 16:14,  0 users,  load average: 0.02, 0.01, 0.00
Includes VM sleep time? no
$ coreutils-2023-08-13/src/who -a
bruno    - ttyC0        Aug  9 20:24   .
           system boot  Aug  9 20:24
$ coreutils-2023-08-13/src/uptime
 13:02:34  up 35 days 16:38,  1 user,  load average: 0.01, 0.01, 0.00
Includes VM sleep time? yes

--------------------------------------------------------------------------------
Solaris 11.4

$ date +"%Y-%m-%d %H:%M"
2023-08-15 14:27
$ coreutils-9.3/src/who -a
           system boot  2023-08-11 04:48
           run-level    2023-08-11 04:48
bruno    + console      2023-08-11 05:23   .          1109
LOGIN      vt/5         2023-08-11 04:49              1004 id=co20
LOGIN      vt/3         2023-08-11 04:49              1010 id=co30
LOGIN      vt/2         2023-08-11 04:49              1030 id=co40
LOGIN      vt/6         2023-08-11 04:49              1039 id=co50
LOGIN      vt/4         2023-08-11 04:49              1058 id=co60
           clock change 2023-08-15 14:27
$ coreutils-9.3/src/uptime
 14:27:10  up 4 days  9:38,  1 user,  load average: 0.04, 0.02, 0.01
Includes VM sleep time? yes
$ coreutils-2023-08-13/src/who -a
           system boot  2023-08-11 04:48
           run-level    2023-08-11 04:48
bruno    + console      2023-08-11 05:23   .          1109
LOGIN      vt/5         2023-08-11 04:49              1004 id=co20
LOGIN      vt/3         2023-08-11 04:49              1010 id=co30
LOGIN      vt/2         2023-08-11 04:49              1030 id=co40
LOGIN      vt/6         2023-08-11 04:49              1039 id=co50
LOGIN      vt/4         2023-08-11 04:49              1058 id=co60
           clock change 2023-08-15 14:27
$ coreutils-2023-08-13/src/uptime
 14:27:15  up 4 days  9:38,  1 user,  load average: 0.04, 0.02, 0.01
Includes VM sleep time? yes

--------------------------------------------------------------------------------
Minix 3.3

$ date +"%Y-%m-%d %H:%M"
2023-08-15 12:31
$ coreutils-9.3/src/who -a
           system boot  Jan  1 00:00
           run-level    Aug 12 02:46
bruno    - console      Aug 14 17:44  old          196
LOGIN      ttyc1        Aug 12 02:46               197 id=tyc1
LOGIN      ttyc2        Aug 12 02:46               198 id=tyc2
LOGIN      ttyc3        Aug 12 02:46               199 id=tyc3
$ coreutils-9.3/src/uptime
 12:31:09  up  15:02,  1 user,  load average: 0.00, 0.00, 0.00
Includes VM sleep time? no
$ coreutils-2023-08-13/src/who -a
           system boot  Aug 12 02:46
           run-level    Aug 12 02:46
bruno    - console      Aug 14 17:44  old          196
LOGIN      ttyc1        Aug 12 02:46               197 id=tyc1
LOGIN      ttyc2        Aug 12 02:46               198 id=tyc2
LOGIN      ttyc3        Aug 12 02:46               199 id=tyc3
$ coreutils-2023-08-13/src/uptime
 12:31:14  up 3 days  9:44,  1 user,  load average: 0.00, 0.00, 0.00
Includes VM sleep time? yes

--------------------------------------------------------------------------------
Cygwin 2.9.0

$ date +"%Y-%m-%d %H:%M"
2023-08-15 14:35
$ coreutils-9.3/src/who -a
$ coreutils-9.3/src/uptime
 14:35:58  up 3 days 23:04,  0 users,  load average: 0.00, 0.00, 0.00
Includes VM sleep time? no
$ coreutils-2023-08-13/src/who -a
           system boot  2023-08-11 10:56
$ coreutils-2023-08-13/src/uptime
 14:36:02  up 4 days  3:40,  0 users,  load average: 0.00, 0.00, 0.00
Includes VM sleep time? yes

--------------------------------------------------------------------------------
Haiku r1beta4

$ date +"%Y-%m-%d %H:%M"
2023-08-15 14:39
$ coreutils-9.3/src/who -a
who: /etc/utmp: No such file or directory
$ coreutils-9.3/src/uptime
bash: coreutils-9.3/src/uptime: No such file or directory
Includes VM sleep time? n/a
$ coreutils-2023-08-13/src/who -a
           system boot  2023-08-12 17:02
$ coreutils-2023-08-13/src/uptime
 14:40:01  up 2 days 21:37,  0 users
Includes VM sleep time? yes

--------------------------------------------------------------------------------
Android 11

$ date +"%Y-%m-%d %H:%M"
2023-08-15 10:52
$ coreutils-9.2/src/who -a
$ coreutils-9.2/src/uptime
uptime: couldn't get boot time: No such file or directory
$ coreutils-2023-08-13/src/who -a
           system boot  2023-08-09 23:32
$ coreutils-2023-08-13/src/uptime
 10:53:52  up 5 days 11:21,  0 users

--------------------------------------------------------------------------------







Reply sent to Paul Eggert <eggert <at> cs.ucla.edu>:
You have taken responsibility. (Tue, 15 Aug 2023 21:15:01 GMT) Full text and rfc822 format available.

Notification sent to Bruno Haible <bruno <at> clisp.org>:
bug acknowledged by developer. (Tue, 15 Aug 2023 21:15:01 GMT) Full text and rfc822 format available.

Message #19 received at 65255-done <at> debbugs.gnu.org (full text, mbox):

From: Paul Eggert <eggert <at> cs.ucla.edu>
To: Bruno Haible <bruno <at> clisp.org>
Cc: 65255-done <at> debbugs.gnu.org
Subject: Re: bug#65255: uptime's boot time is inconsistent after VM sleep &
 resume
Date: Tue, 15 Aug 2023 14:14:20 -0700
[Message part 1 (text/plain, inline)]
Thanks for the further comments. I installed your patch, along with the 
attached additional patches. The first makes 'uptime' a bit more 
resilient in the case of utmp and other failures, and the second adds 
NEWS items as per your comments.
[0001-uptime-be-more-generous-about-read_utmp-failure.patch (text/x-patch, attachment)]
[0002-maint-update-uptime-NEWS.patch (text/x-patch, attachment)]

Information forwarded to bug-coreutils <at> gnu.org:
bug#65255; Package coreutils. (Tue, 15 Aug 2023 21:24:03 GMT) Full text and rfc822 format available.

Message #22 received at 65255-done <at> debbugs.gnu.org (full text, mbox):

From: Bruno Haible <bruno <at> clisp.org>
To: Paul Eggert <eggert <at> cs.ucla.edu>
Cc: 65255-done <at> debbugs.gnu.org
Subject: Re: bug#65255: uptime's boot time is inconsistent after VM sleep &
 resume
Date: Tue, 15 Aug 2023 23:23:01 +0200
Paul Eggert wrote:
> Thanks for the further comments. I installed your patch, along with the 
> attached additional patches.

The other patch I mentioned, from
https://lists.gnu.org/archive/html/coreutils/2023-08/msg00028.html ,
is also needed, for the "VM saved/sleep" change on NetBSD, OpenBSD, Minix,
as far as I understand.

Also, a typo in NEWS: s/Minux/Minix/

Bruno







Information forwarded to bug-coreutils <at> gnu.org:
bug#65255; Package coreutils. (Tue, 15 Aug 2023 22:25:02 GMT) Full text and rfc822 format available.

Message #25 received at 65255 <at> debbugs.gnu.org (full text, mbox):

From: Paul Eggert <eggert <at> cs.ucla.edu>
To: Bruno Haible <bruno <at> clisp.org>
Cc: 65255 <at> debbugs.gnu.org
Subject: Re: bug#65255: uptime's boot time is inconsistent after VM sleep &
 resume
Date: Tue, 15 Aug 2023 15:24:10 -0700
On 2023-08-15 14:23, Bruno Haible wrote:
> The other patch I mentioned, from
> https://lists.gnu.org/archive/html/coreutils/2023-08/msg00028.html  ,
> is also needed, for the "VM saved/sleep" change on NetBSD, OpenBSD, Minix,
> as far as I understand.
> 
> Also, a typo in NEWS: s/Minux/Minix/

Thanks, I had missed that patch. I installed it and fixed the NEWS typo.




bug archived. Request was from Debbugs Internal Request <help-debbugs <at> gnu.org> to internal_control <at> debbugs.gnu.org. (Wed, 13 Sep 2023 11:24:10 GMT) Full text and rfc822 format available.

This bug report was last modified 1 year and 362 days ago.

Previous Next


GNU bug tracking system
Copyright (C) 1999 Darren O. Benham, 1997,2003 nCipher Corporation Ltd, 1994-97 Ian Jackson.