screen -ls displays incorrect dates and times for existing sessions
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
screen (Debian) |
New
|
Unknown
|
|||
screen (Ubuntu) |
Triaged
|
Low
|
Unassigned |
Bug Description
Consider the following output:
380639.pts-1.host user@host 2024-01-23 13:09:12 ~ $ screen -ls
There are screens on:
1 Socket in /run/screen/S-user.
380639.pts-1.host user@host 2024-01-23 13:09:33 ~ $ LANG=C date
Tue Jan 23 13:09:42 UTC 2024
380639.pts-1.host user@host 2024-01-23 13:09:42 ~ $
1. Ubuntu version
$ cat /etc/lsb-release
DISTRIB_ID=Ubuntu
DISTRIB_
DISTRIB_
DISTRIB_
2. Package version
$ LANG=C apt-cache policy screen
screen:
Installed: 4.9.0-1
Candidate: 4.9.0-1
Version table:
*** 4.9.0-1 500
500 http://
100 /var/lib/
3. I expect creation dates for screen sessions listed via screen -ls to be in the past and to be accurate.
4. screen -ls dates are in the future.
ProblemType: Bug
DistroRelease: Ubuntu 22.04
Package: screen 4.9.0-1
ProcVersionSign
Uname: Linux 5.4.0-169-generic x86_64
ApportVersion: 2.20.11-0ubuntu82.5
Architecture: amd64
CasperMD5CheckR
CloudArchitecture: x86_64
CloudID: lxd
CloudName: lxd
CloudPlatform: lxd
CloudSubPlatform: LXD socket API v. 1.0 (/dev/lxd/sock)
Date: Tue Jan 23 12:44:59 2024
ProcEnviron:
TERM=xterm-
PATH=(custom, no user)
XDG_RUNTIME_
LANG=de_DE.utf8
SHELL=/bin/bash
SourcePackage: screen
UpgradeStatus: No upgrade log present (probably fresh install)
Changed in screen (Debian): | |
status: | Unknown → New |
Thanks for taking the time to report a bug.
I've confirmed the problem locally. I have also noticed that the Debian package (which is where Ubuntu's screen comes from) carries its own patch to calculate session creation time. This is probably an issue with that patch, although I haven't tested other distros.
I opened a bug against the Debian package. Meanwhile, I'll set this one as Triaged and with a low priority.
Thank you.