[Bug 1563025] Re: 'last' command output is wrong
Richard Hickling
1563025 at bugs.launchpad.net
Sat Feb 1 10:49:08 UTC 2025
It seems the specific lines that cause this in my particular case are:
```
[1] [00000] [~~ ] [shutdown] [~ ] [6.2.0-1018-aws ] [0.0.0.0 ] [2024-11-10T19:08:47,195287+00:00]
[2] [00000] [~~ ] [reboot ] [~ ] [6.8.0-1018-aws ] [0.0.0.0 ] [2024-11-10T19:08:53,261639+00:00]
[1] [00053] [~~ ] [runlevel] [~ ] [6.8.0-1018-aws ] [0.0.0.0 ] [2024-11-10T19:09:10,367096+00:00]
```
Could it be a regexp problem given the coincidentally identical minor
versions (`1018`) of these kernels?
--
You received this bug notification because you are a member of Ubuntu
Foundations Bugs, which is subscribed to util-linux in Ubuntu.
https://bugs.launchpad.net/bugs/1563025
Title:
'last' command output is wrong
Status in util-linux package in Ubuntu:
Confirmed
Bug description:
Xubuntu 15.10
util-linux 2.26.2-6ubuntu3
The output of 'last reboot' is wrong. It says 'reboot' is 'still
running' when it shouldn't be, and then arbitrarily 'reboot' stops
running, causing strange lines such as:
reboot system boot 4.2.0-30-generic Tue Mar 22 21:25 - 22:59
(2+01:33)
This line shows that 'reboot' was logged in from 9:25pm to 10:59pm on
the same day, but the total login time was 2 days, 1 hour and 33
minutes.
'reboot' can be 'still running' multiple times simultaneously.
I've attached the results of these commands:
last reboot
last -f /var/log/wtmp.1 reboot
last
last -f /var/log/wtmp.1
To manage notifications about this bug go to:
https://bugs.launchpad.net/ubuntu/+source/util-linux/+bug/1563025/+subscriptions
More information about the foundations-bugs
mailing list