I'm trying to debug Hyprland and running it with gdb completely freezes all keyboard input and forces you to restart the computer. You can't Ctrl+C or Ctrl+Alt+F[1-6] to get away. It's completely stuck.
Does anyone know what may be causing it? Or even better know any way to escape when it happens? Or at least stop linux from switching you to that tty when it happens when you debug it with gdbserver remotely from another tty?
chvtthrough ssh – xhienne Oct 18 '23 at 23:25loginctl terminate-session ID(something happened with Termux, but I should get it to work in a moment). – Daniel Krajnik Oct 18 '23 at 23:37screensession. If you are stuck, you can get your gdb session back from ssh (ssh ... screen -x) and then you can continue your debugging. PS: you didn't address my suggestion to attach to a running Hyprland process: does this trigger a console switch too? – xhienne Oct 18 '23 at 23:44sshing from another machine and runningloginctl terminate-sessionworked. Good news. Thanks for assistance. – Daniel Krajnik Oct 18 '23 at 23:48screensadly. I originally used tmux only to find out that Hyprland needs to start from "raw" tty. Changing this would invalidate results of debugging. – Daniel Krajnik Oct 18 '23 at 23:49gdb Hyprland, thengdb attach <PID>on tty1? Instead of using gdbserver? Because I tried that as well, but this gave errorptrace: Operation not permitted.. – Daniel Krajnik Oct 18 '23 at 23:51Hyprlandin tty3 (without gdb) andgdb -pelsewhere. You probably need to be root for that. – xhienne Oct 18 '23 at 23:57/proc/sys/kernel/yama/ptrace_scopesetting. – Daniel Krajnik Oct 19 '23 at 00:04