[Bug 1140081] New: Unable to change VTs after wayland compositor crash
http://bugzilla.suse.com/show_bug.cgi?id=1140081 Bug ID: 1140081 Summary: Unable to change VTs after wayland compositor crash Classification: openSUSE Product: openSUSE Tumbleweed Version: Current Hardware: Other OS: Other Status: NEW Severity: Normal Priority: P5 - None Component: Basesystem Assignee: bnc-team-screening@forge.provo.novell.com Reporter: fvogt@suse.com QA Contact: qa-bugs@suse.de CC: fbui@suse.com, fvogt@suse.com, tiwai@suse.com, tzimmermann@suse.com, vliaskovitis@suse.com Depends on: 1101591 Found By: --- Blocker: --- Unfortunately the issue seems to be back, but this time I'm unable to reproduce it in a VM the same way as in the original bug report. Issue first seen with kernel-default-5.2.rc5-3.1.ga562f5a.x86_64 and systemd 242. Jun 30 22:09:00 linux-e202.suse.de systemd-logind[1263]: Failed to restore VT, ignoring: Input/output error Jul 01 17:23:43 linux-e202.suse.de systemd-logind[1263]: Failed to restore VT, ignoring: Input/output error Jul 01 19:07:57 linux-e202.suse.de systemd-logind[1254]: Failed to restore VT, ignoring: Input/output error I set SYSTEMD_LOG_LEVEL=debug for logind now, once it happens again (if it does at all with that option...) I'll add the debug messages here. +++ This bug was initially created as a clone of Bug #1101591 +++ When the wayland compositor crashes, the system becomes unusable: - Ctrl-Alt-FX has no effect - "chvt X" over SSH hangs chvt shows the following trace: [<0>] __vt_event_wait.isra.4.part.5+0x2b/0x60 [<0>] vt_waitactive+0x60/0xa0 [<0>] vt_ioctl+0x6a5/0x1100 [<0>] tty_ioctl+0x21c/0x890 [<0>] do_vfs_ioctl+0x90/0x5e0 [<0>] ksys_ioctl+0x60/0x90 [<0>] __x64_sys_ioctl+0x16/0x20 [<0>] do_syscall_64+0x60/0x110 [<0>] entry_SYSCALL_64_after_hwframe+0x49/0xbe [<0>] 0xffffffffffffffff Backtraces of all tasks are attached, but chvt seems to be the only one inside VT/tty/graphics code. Linux linux-e202.suse.de 4.18.0-rc4-1.g36e98dd-default #1 SMP PREEMPT Mon Jul 9 07:48:38 UTC 2018 (36e98dd) x86_64 x86_64 x86_64 GNU/Linux The system has hybrid graphics, with i915 and nouveau loaded. This is 100% reproducible. -- You are receiving this mail because: You are on the CC list for the bug.
http://bugzilla.suse.com/show_bug.cgi?id=1140081
http://bugzilla.suse.com/show_bug.cgi?id=1140081#c1
Stefan Dirsch
http://bugzilla.suse.com/show_bug.cgi?id=1140081
Alynx Zhou
http://bugzilla.suse.com/show_bug.cgi?id=1140081
http://bugzilla.suse.com/show_bug.cgi?id=1140081#c3
--- Comment #3 from Franck Bui
I set SYSTEMD_LOG_LEVEL=debug for logind now, once it happens again (if it does at all with that option...) I'll add the debug messages here.
So I guess you haven't managed to reproduce with the debug logs enabled, have you ? -- You are receiving this mail because: You are on the CC list for the bug.
http://bugzilla.suse.com/show_bug.cgi?id=1140081
http://bugzilla.suse.com/show_bug.cgi?id=1140081#c4
--- Comment #4 from Fabian Vogt
(In reply to Fabian Vogt from comment #0)
I set SYSTEMD_LOG_LEVEL=debug for logind now, once it happens again (if it does at all with that option...) I'll add the debug messages here.
So I guess you haven't managed to reproduce with the debug logs enabled, have you ?
I didn't immediately reboot after configuring the loglevel and disabling nouveau, but waited until it happened again and was forced to reset. That was only two days ago, so now I'm waiting for it to happen again. -- You are receiving this mail because: You are on the CC list for the bug.
http://bugzilla.suse.com/show_bug.cgi?id=1140081
http://bugzilla.suse.com/show_bug.cgi?id=1140081#c5
Fabian Vogt
http://bugzilla.suse.com/show_bug.cgi?id=1140081
Fabian Vogt
http://bugzilla.suse.com/show_bug.cgi?id=1140081
http://bugzilla.suse.com/show_bug.cgi?id=1140081#c8
Franck Bui
http://bugzilla.suse.com/show_bug.cgi?id=1140081
http://bugzilla.suse.com/show_bug.cgi?id=1140081#c9
--- Comment #9 from Franck Bui
http://bugzilla.suse.com/show_bug.cgi?id=1140081
http://bugzilla.suse.com/show_bug.cgi?id=1140081#c10
--- Comment #10 from Fabian Vogt
Created attachment 821945 [details] Patch that tries to restore VT twice
Added on top of v243 and after triggering some crashes I get "systemd-logind[1587]: FOO: First attempt to restore VT failed, retrying a 2nd time with a fresh handle" and am able to switch VTs. I can't say for sure that it's a 100% fix, but so far the issue hasn't returned. -- You are receiving this mail because: You are on the CC list for the bug.
http://bugzilla.suse.com/show_bug.cgi?id=1140081
http://bugzilla.suse.com/show_bug.cgi?id=1140081#c11
--- Comment #11 from Franck Bui
http://bugzilla.suse.com/show_bug.cgi?id=1140081
http://bugzilla.suse.com/show_bug.cgi?id=1140081#c12
Franck Bui
http://bugzilla.suse.com/show_bug.cgi?id=1140081
http://bugzilla.suse.com/show_bug.cgi?id=1140081#c13
Takashi Iwai
http://bugzilla.suse.com/show_bug.cgi?id=1140081
http://bugzilla.suse.com/show_bug.cgi?id=1140081#c14
--- Comment #14 from Franck Bui
Erm, that's a way old issue I worked on it, so my memory is really vague. Now reading back the bsc#1101591, too...
yeah sorry, but my question is only about the kernel behavior here that is why it doesn't restore VT_AUTO when the control process (i.e. the one that set VT_PROCESS) dies. -- You are receiving this mail because: You are on the CC list for the bug.
http://bugzilla.suse.com/show_bug.cgi?id=1140081
http://bugzilla.suse.com/show_bug.cgi?id=1140081#c15
--- Comment #15 from Takashi Iwai
(In reply to Takashi Iwai from comment #13)
Erm, that's a way old issue I worked on it, so my memory is really vague. Now reading back the bsc#1101591, too...
yeah sorry, but my question is only about the kernel behavior here that is why it doesn't restore VT_AUTO when the control process (i.e. the one that set VT_PROCESS) dies.
As far as I read the code, the kernel seems restoring to VT_AUTO not at hangup or close but only at changing the VT. As mentioned, change_console() has a couple of places checking the presence of the control session and calls reset_vc() accordingly. But I don't know why it's written so and whether it's the intentional behavior, too. -- You are receiving this mail because: You are on the CC list for the bug.
http://bugzilla.suse.com/show_bug.cgi?id=1140081
Franck Bui
http://bugzilla.suse.com/show_bug.cgi?id=1140081
http://bugzilla.suse.com/show_bug.cgi?id=1140081#c16
Franck Bui
participants (1)
-
bugzilla_noreply@novell.com