kmscon
kmscon copied to clipboard
kmscon loops at 100% cpu
OS: openSUSE Tumbleweed Version: 9.0.0+git42
Steps to reproduce:
- sudo systemctl start [email protected]
- switch to tty3
- switch back to my graphical session
The result: kmscon spins at 100% cpu. The strace shows repeating:
10:30:13.227205 epoll_wait(3, [{events=EPOLLIN, data=0x5571c978db50}, {events=EPOLLIN, data=0x5571c978d9c0}], 32, -1) = 2 <0.000009>
10:30:13.227246 openat(AT_FDCWD, "/proc/10812/cgroup", O_RDONLY|O_CLOEXEC) = 26 <0.000013>
10:30:13.227289 fstat(26, {st_mode=S_IFREG|0444, st_size=0, ...}) = 0 <0.000010>
10:30:13.227328 read(26, "0::/system.slice/system-kmsconvt.slice/[email protected]\n", 1024) = 61 <0.000012>
10:30:13.227372 ioctl(26, TCGETS, 0x7ffda38a6f20) = -1 ENOTTY (Inappropriate ioctl for device) <0.000009>
10:30:13.227414 read(26, "", 1024) = 0 <0.000009>
10:30:13.227448 close(26) = 0 <0.000010>
10:30:13.227484 openat(AT_FDCWD, "/proc/1/cgroup", O_RDONLY|O_CLOEXEC) = 26 <0.000013>
10:30:13.227525 fstat(26, {st_mode=S_IFREG|0444, st_size=0, ...}) = 0 <0.000009>
10:30:13.227564 read(26, "0::/init.scope\n", 1024) = 15 <0.000011>
10:30:13.227604 ioctl(26, TCGETS, 0x7ffda38a6ec0) = -1 ENOTTY (Inappropriate ioctl for device) <0.000009>
10:30:13.227646 read(26, "", 1024) = 0 <0.000009>
10:30:13.227680 close(26) = 0 <0.000010>
Update: I don't need to switch to tty3. It just starts doing that after some time. No interaction required.
I was going to also report this. Indeed the commit fbb4d024f8dba803abd629de0fcad27af147c99e causes issues.
As an unrelated note, it seems like KMSCON currently prevents graphical sessions from running under it for some reason
This is fixed by https://github.com/Aetf/kmscon/pull/103 and #105.