-
Notifications
You must be signed in to change notification settings - Fork 1.1k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Segfault without debug message when XKB_DEFAULT_LAYOUT is not correct #7789
Comments
Here is a symbolicated stack from sway 1.9 release on arch
and some log lines for googlability
|
It's the kernel console behavior, out of Sway's control. Nevertheless, crashing is always a bug. |
If we can't create the XKB keymap used for keysym translation, gracefully error out instead of crashing. This can happen if the XKB_DEFAULT_LAYOUT is set to an invalid value, for instance. Closes: swaywm#7789
#8037 should help. |
If we can't create the XKB keymap used for keysym translation, gracefully error out instead of crashing. This can happen if the XKB_DEFAULT_LAYOUT is set to an invalid value, for instance. Closes: #7789
If we can't create the XKB keymap used for keysym translation, gracefully error out instead of crashing. This can happen if the XKB_DEFAULT_LAYOUT is set to an invalid value, for instance. Closes: swaywm#7789
Please fill out the following:
Sway Version:
sway version 1.9-dev-4326a26a (Oct 22 2023, branch 'makepkg')
(also reproducible with latest arch package)
Debug Log:
debug_log
Configuration File:
Default (/etc/sway/config)
Stack Trace:
Description:
Set XKB_DEFAULT_LAYOUT to a layout you do not have (fr-latin9 in my case)
Run sway
Sway segfault (SIGSEGV and return 139)
I would have expected sway to launch anyway, using default keyboard and/or output a helpful message about what went wrong
Upon trying to understand this issue, I used
sway -Vd
in order to understand what was happening:When doing so from a terminal emulator (eg, a started sway or X session), we get full debug (just like when using
sway -d 2>sway.log
)However, when the command is issued directly from TTY, a lot of output is missing (including the obvious last lines pointing at what the error was), only 26 lines were printed, the last one being
00:00:00.003 [DEBUG] [sway/server.c:89] Initializing Wayland server
This behavior is quite confusing, and do not seem documented (neither in the wiki nor the man pages), is it a bug?
NB: This bug seem to involve wlroots/libxkbcommon, and I did not know to who I should report it. If you think this bug report should be redirected to one or the other, please feel free to redirect me there.
The text was updated successfully, but these errors were encountered: