[Bug 1871129] Re: htop is blank when using in focal in wsl1
** Changed in: ubuntuwsl Assignee: (unassigned) => Rafael David Tinoco (rafaeldtinoco) -- You received this bug notification because you are a member of Ubuntu Server, which is subscribed to the bug report. https://bugs.launchpad.net/bugs/1871129 Title: htop is blank when using in focal in wsl1 To manage notifications about this bug go to: https://bugs.launchpad.net/ubuntuwsl/+bug/1871129/+subscriptions -- Ubuntu-server-bugs mailing list [email protected] Modify settings or unsubscribe at: https://lists.ubuntu.com/mailman/listinfo/ubuntu-server-bugs
[Bug 1871129] Re: htop is blank when using in focal in wsl1
rafaeldtinoco@wsl1:~$ sudo apt-mark hold libc6 libc6 set on hold. rafaeldtinoco@wsl1:~$ dpkg -l libc6 hi libc6:amd642.31-0ubuntu8+lp1871129~1 amd64GNU C Library: Shared libraries Not sure how much time upstream will take to fix this bug, so make sure to mark libc6 as "hold" so it does not get upgraded. The version I'm using for the mitigation is: 2.31-0ubuntu8+lp1871129~1. It is the latest for today but won't be if there is some stable release upgrade for glibc (libc6) landing in the archive. I confirm "htop" works good with this mitigation. o/ -- You received this bug notification because you are a member of Ubuntu Server, which is subscribed to the bug report. https://bugs.launchpad.net/bugs/1871129 Title: htop is blank when using in focal in wsl1 To manage notifications about this bug go to: https://bugs.launchpad.net/ubuntuwsl/+bug/1871129/+subscriptions -- Ubuntu-server-bugs mailing list [email protected] Modify settings or unsubscribe at: https://lists.ubuntu.com/mailman/listinfo/ubuntu-server-bugs
[Bug 1871129] Re: htop is blank when using in focal in wsl1
PPA: https://launchpad.net/~rafaeldtinoco/+archive/ubuntu/lp1871129 Reminder: this is just a temporary workaround as we wait upstream fix. -- You received this bug notification because you are a member of Ubuntu Server, which is subscribed to the bug report. https://bugs.launchpad.net/bugs/1871129 Title: htop is blank when using in focal in wsl1 To manage notifications about this bug go to: https://bugs.launchpad.net/ubuntuwsl/+bug/1871129/+subscriptions -- Ubuntu-server-bugs mailing list [email protected] Modify settings or unsubscribe at: https://lists.ubuntu.com/mailman/listinfo/ubuntu-server-bugs
[Bug 1871129] Re: htop is blank when using in focal in wsl1
This is a "hotfix" for the issue. I'm preparing a PPA so people can use it but it won't be the final fix. It is more likely that WSL1 will have to support CLOCK_REALTIME eventually =). ** Patch added: "glibc_2.31-0ubuntu8+lp1871129~1.debdiff" https://bugs.launchpad.net/ubuntu/+source/htop/+bug/1871129/+attachment/5352574/+files/glibc_2.31-0ubuntu8+lp1871129~1.debdiff -- You received this bug notification because you are a member of Ubuntu Server, which is subscribed to the bug report. https://bugs.launchpad.net/bugs/1871129 Title: htop is blank when using in focal in wsl1 To manage notifications about this bug go to: https://bugs.launchpad.net/ubuntuwsl/+bug/1871129/+subscriptions -- Ubuntu-server-bugs mailing list [email protected] Modify settings or unsubscribe at: https://lists.ubuntu.com/mailman/listinfo/ubuntu-server-bugs
[Bug 1871129] Re: htop is blank when using in focal in wsl1
** Also affects: wsl (Ubuntu) Importance: Undecided Status: New ** Changed in: wsl (Ubuntu) Status: New => Confirmed ** Changed in: glibc (Ubuntu) Status: Confirmed => Invalid ** Changed in: htop (Ubuntu) Status: Opinion => Invalid ** Changed in: htop (Ubuntu) Importance: Medium => Undecided ** Changed in: glibc (Ubuntu) Importance: Medium => Undecided ** Changed in: wsl (Ubuntu) Importance: Undecided => Medium -- You received this bug notification because you are a member of Ubuntu Server, which is subscribed to the bug report. https://bugs.launchpad.net/bugs/1871129 Title: htop is blank when using in focal in wsl1 To manage notifications about this bug go to: https://bugs.launchpad.net/ubuntu/+source/glibc/+bug/1871129/+subscriptions -- Ubuntu-server-bugs mailing list [email protected] Modify settings or unsubscribe at: https://lists.ubuntu.com/mailman/listinfo/ubuntu-server-bugs
[Bug 1871129] Re: htop is blank when using in focal in wsl1
Commit to blame in glibc:
commit 3537ecb49cf7177274607004c562d6f9ecc99474
Author: Adhemerval Zanella
Date: Tue Nov 5 21:37:44 2019 +
Refactor nanosleep in terms of clock_nanosleep
The generic version is straightforward. For Hurd, its nanosleep
implementation is moved to clock_nanosleep with adjustments from
generic unix implementation.
The generic clock_nanosleep unix version is also removed since
it calls nanosleep.
Checked on x86_64-linux-gnu and powerpc64le-linux-gnu.
Reviewed-by: Florian Weimer
diff --git a/posix/nanosleep.c b/posix/nanosleep.c
index d8564c7119..ed41c8cce7 100644
--- a/posix/nanosleep.c
+++ b/posix/nanosleep.c
@@ -24,10 +24,13 @@ int
__nanosleep (const struct timespec *requested_time,
struct timespec *remaining)
{
- __set_errno (ENOSYS);
- return -1;
+ int ret = __clock_nanosleep (CLOCK_REALTIME, 0, requested_time, remaining);
+ if (ret != 0)
+{
+ __set_errno (ret);
+ return -1;
+}
+ return 0;
}
-stub_warning (nanosleep)
-
-hidden_def (__nanosleep)
+libc_hidden_def (__nanosleep)
weak_alias (__nanosleep, nanosleep)
--
You received this bug notification because you are a member of Ubuntu
Server, which is subscribed to the bug report.
https://bugs.launchpad.net/bugs/1871129
Title:
htop is blank when using in focal in wsl1
To manage notifications about this bug go to:
https://bugs.launchpad.net/ubuntu/+source/glibc/+bug/1871129/+subscriptions
--
Ubuntu-server-bugs mailing list
[email protected]
Modify settings or unsubscribe at:
https://lists.ubuntu.com/mailman/listinfo/ubuntu-server-bugs
[Bug 1871129] Re: htop is blank when using in focal in wsl1
At our side we *could* change this clock from CLOCK_REALTIME to CLOCK_MONOTONIC but =) that does not seem the right thing to do to fix WSL1 because it does not behave properly with REALTIME clocks. Let's wait upstream bug for now... ** Changed in: htop (Ubuntu) Status: Confirmed => Opinion -- You received this bug notification because you are a member of Ubuntu Server, which is subscribed to the bug report. https://bugs.launchpad.net/bugs/1871129 Title: htop is blank when using in focal in wsl1 To manage notifications about this bug go to: https://bugs.launchpad.net/ubuntu/+source/glibc/+bug/1871129/+subscriptions -- Ubuntu-server-bugs mailing list [email protected] Modify settings or unsubscribe at: https://lists.ubuntu.com/mailman/listinfo/ubuntu-server-bugs
[Bug 1871129] Re: htop is blank when using in focal in wsl1
The issue is happening because WSL is currently not POSIX compliant and
any call to glibc that uses CLOCK_REALTIME will fail with EINVAL (-1)
(such as clock_gettime() or clock_nanosleep()). It is likely that a
glibc change has made this to appear (instead of the htop different
version).
Upstream related bugs:
https://github.com/microsoft/WSL/issues/2503
https://github.com/microsoft/WSL/issues/4898 <- opened and being worked
--
htop strace output:
12324 read(4, "htop\0", 4096) = 5
12324 read(4, "", 4091) = 0
12324 close(4) = 0
12324 getdents64(3, /* 0 entries */, 32768) = 0
12324 close(3) = 0
12324 clock_nanosleep(CLOCK_REALTIME, 0, {tv_sec=0, tv_nsec=7500},
0x76dce7b0) = -1 EINVAL (Invalid argument)
12324 clock_nanosleep(CLOCK_REALTIME, 0, {tv_sec=0, tv_nsec=7500},
0x76dce7b0) = -1 EINVAL (Invalid argument)
12324 clock_nanosleep(CLOCK_REALTIME, 0, {tv_sec=0, tv_nsec=7500},
0x76dce7b0) = -1 EINVAL (Invalid argument)
12324 clock_nanosleep(CLOCK_REALTIME, 0, {tv_sec=0, tv_nsec=7500},
0x76dce7b0) = -1 EINVAL (Invalid argument)
12324 clock_nanosleep(CLOCK_REALTIME, 0, {tv_sec=0, tv_nsec=7500},
0x76dce7b0) = -1 EINVAL (Invalid argument)
12324 clock_nanosleep(CLOCK_REALTIME, 0, {tv_sec=0, tv_nsec=7500},
0x76dce7b0) = -1 EINVAL (Invalid argument)
12324 clock_nanosleep(CLOCK_REALTIME, 0, {tv_sec=0, tv_nsec=7500},
0x76dce7b0) = -1 EINVAL (Invalid argument)
12324 clock_nanosleep(CLOCK_REALTIME, 0, {tv_sec=0, tv_nsec=7500},
0x76dce7b0) = -1 EINVAL (Invalid argument)
12324 clock_nanosleep(CLOCK_REALTIME, 0, {tv_sec=0, tv_nsec=7500},
0x76dce7b0) = -1 EINVAL (Invalid argument)
...
--
As a workaround a software can use monotonic clock instead but changing
glibc specific function clocks is likely a no-go at this point in time
(specially if just for WSL).
** Bug watch added: github.com/microsoft/WSL/issues #2503
https://github.com/microsoft/WSL/issues/2503
** Bug watch added: github.com/microsoft/WSL/issues #4898
https://github.com/microsoft/WSL/issues/4898
** Also affects: glibc (Ubuntu)
Importance: Undecided
Status: New
** Changed in: glibc (Ubuntu)
Status: New => Confirmed
** Changed in: glibc (Ubuntu)
Importance: Undecided => Medium
** Changed in: htop (Ubuntu)
Assignee: Rafael David Tinoco (rafaeldtinoco) => (unassigned)
--
You received this bug notification because you are a member of Ubuntu
Server, which is subscribed to the bug report.
https://bugs.launchpad.net/bugs/1871129
Title:
htop is blank when using in focal in wsl1
To manage notifications about this bug go to:
https://bugs.launchpad.net/ubuntu/+source/glibc/+bug/1871129/+subscriptions
--
Ubuntu-server-bugs mailing list
[email protected]
Modify settings or unsubscribe at:
https://lists.ubuntu.com/mailman/listinfo/ubuntu-server-bugs
