Kitty: Pressing "Ctrl-d" to a kitty terminal with "--single-instance" close all kitty's instances that share that instance group

Created on 24 Apr 2020  路  6Comments  路  Source: kovidgoyal/kitty

OS: ArchLinux 5.6.6-arch1-1 #1 SMP PREEMPT Tue, 21 Apr 2020 10:35:16 +0000 x86_64 GNU/Linux
Kitty: kitty 0.17.2 created by Kovid Goyal

Hi, this is a weird bug, after issuing a regular update with pacman, I'm getting the above bug, kitty is installed from the AUR so a kitty update didn't break it, checking my /var/log/pacman.log the updates that caused the breakage are https://pastebin.com/NfWJ1ETr (all log):

The packages are:

[2020-04-24T09:56:25-0500] [ALPM] upgraded archlinux-keyring (20200108-1 -> 20200422-1)
[2020-04-24T09:56:27-0500] [ALPM] upgraded iana-etc (20200327-1 -> 20200401-1)
[2020-04-24T09:56:27-0500] [ALPM] upgraded containerd (1.3.3-1 -> 1.3.4-1)
[2020-04-24T09:56:27-0500] [ALPM] upgraded systemd-libs (245.4-2 -> 245.5-1)
[2020-04-24T09:56:27-0500] [ALPM] upgraded openssl (1.1.1.f-1 -> 1.1.1.g-1)
[2020-04-24T09:56:28-0500] [ALPM] upgraded systemd (245.4-2 -> 245.5-1)
[2020-04-24T09:56:28-0500] [ALPM] upgraded dhcpcd (8.1.7-1 -> 9.0.2-1)
[2020-04-24T09:56:28-0500] [ALPM] upgraded libmfx (20.1.0-1 -> 20.1.1-1)
[2020-04-24T09:56:28-0500] [ALPM] upgraded xorgproto (2019.2-2 -> 2020.1-1)
[2020-04-24T09:56:28-0500] [ALPM] upgraded llvm-libs (9.0.1-3 -> 10.0.0-1)
[2020-04-24T09:56:29-0500] [ALPM] upgraded mesa (20.0.4-1 -> 20.0.5-1)
[2020-04-24T09:56:29-0500] [ALPM] upgraded libva (2.7.0-1 -> 2.7.1-1)
[2020-04-24T09:56:29-0500] [ALPM] installed srt (1.4.1-1)
[2020-04-24T09:56:29-0500] [ALPM] upgraded ffmpeg (1:4.2.2-5 -> 1:4.2.2-6)
[2020-04-24T09:56:29-0500] [ALPM] upgraded firefox-tridactyl (1.17.1-1 -> 1.18.0-1)
[2020-04-24T09:56:29-0500] [ALPM] upgraded gawk (5.0.1-2 -> 5.1.0-1)
[2020-04-24T09:56:29-0500] [ALPM] upgraded git (2.26.1-1 -> 2.26.2-1)
[2020-04-24T09:56:29-0500] [ALPM] upgraded pixman (0.38.4-1 -> 0.40.0-1)
[2020-04-24T09:56:29-0500] [ALPM] upgraded librsvg (2:2.48.3-1 -> 2:2.48.4-1)
[2020-04-24T09:56:29-0500] [ALPM] upgraded graphviz (2.42.3-3 -> 2.44.0-1)
[2020-04-24T09:56:29-0500] [ALPM] upgraded httpie (2.0.0-2 -> 2.1.0-1)
[2020-04-24T09:56:29-0500] [ALPM] upgraded imagemagick (7.0.10.6-1 -> 7.0.10.7-1)
[2020-04-24T09:56:29-0500] [ALPM] upgraded intel-media-sdk (20.1.0-1 -> 20.1.1-1)
[2020-04-24T09:56:29-0500] [ALPM] upgraded iwd (1.6-1 -> 1.7-1)
[2020-04-24T09:56:29-0500] [ALPM] upgraded libuv (1.36.0-1 -> 1.37.0-1)
[2020-04-24T09:56:29-0500] [ALPM] upgraded libluv (1.34.2-1 -> 1.36.0-1)
[2020-04-24T09:56:29-0500] [ALPM] upgraded libmagick6 (6.9.11.6-1 -> 6.9.11.7-1)
[2020-04-24T09:56:29-0500] [ALPM] upgraded libsecret (0.20.2-1 -> 0.20.3-1)
[2020-04-24T09:56:29-0500] [ALPM] upgraded libyaml (0.2.2-1 -> 0.2.4-1)
[2020-04-24T09:56:30-0500] [ALPM] upgraded linux (5.6.4.arch1-1 -> 5.6.6.arch1-1)
[2020-04-24T09:56:29-0500] [ALPM] upgraded libmagick6 (6.9.11.6-1 -> 6.9.11.7-1)
[2020-04-24T09:56:29-0500] [ALPM] upgraded libsecret (0.20.2-1 -> 0.20.3-1)
[2020-04-24T09:56:29-0500] [ALPM] upgraded libyaml (0.2.2-1 -> 0.2.4-1)
[2020-04-24T09:56:30-0500] [ALPM] upgraded linux (5.6.4.arch1-1 -> 5.6.6.arch1-1)
[2020-04-24T09:56:30-0500] [ALPM] upgraded python-beautifulsoup4 (4.8.2-1 -> 4.9.0-1)
[2020-04-24T09:56:30-0500] [ALPM] upgraded python-cryptography (2.8-2 -> 2.9.2-1)
[2020-04-24T09:56:30-0500] [ALPM] upgraded python-docutils (0.14-4 -> 0.16-1)
[2020-04-24T09:56:30-0500] [ALPM] upgraded python-importlib-metadata (1.5.0-1 -> 1.5.1-1)
[2020-04-24T09:56:30-0500] [ALPM] upgraded python-regex (2020.2.20-1 -> 2020.4.4-1)
[2020-04-24T09:56:30-0500] [ALPM] upgraded python-sphinx (3.0.1-1 -> 3.0.2-1)
[2020-04-24T09:56:31-0500] [ALPM] upgraded rust (1:1.42.0-1 -> 1:1.43.0-1)
[2020-04-24T09:56:31-0500] [ALPM] upgraded s-nail (14.9.17-1 -> 14.9.18-1)
[2020-04-24T09:56:31-0500] [ALPM] upgraded spirv-tools (2019.5-2 -> 2020.2-1)
[2020-04-24T09:56:31-0500] [ALPM] upgraded systemd-sysvcompat (245.4-2 -> 245.5-1)
[2020-04-24T09:56:31-0500] [ALPM] upgraded tree (1.8.0-1 -> 1.8.0-2)
[2020-04-24T09:56:31-0500] [ALPM] upgraded uchardet (0.0.6-2 -> 0.0.7-1)
[2020-04-24T09:56:31-0500] [ALPM] upgraded unzip (6.0-13 -> 6.0-14)
[2020-04-24T09:56:31-0500] [ALPM] upgraded vulkan-intel (20.0.4-1 -> 20.0.5-1)
[2020-04-24T09:56:31-0500] [ALPM] upgraded xf86-video-intel (1:2.99.917+901+gf2a54e25-1 -> 1:2.99.917+906+g846b53da-1)
[2020-04-24T09:56:31-0500] [ALPM] upgraded xmlsec (1.2.29-1 -> 1.2.30-1)

See this screencast:

  1. Open xterm
  2. from xterm opening kitty with a single instance kitty -1
  3. open another kitty with the same single instance kitty -1
  4. press Ctrl-d in one of the instances, all closes
  5. core dump

simplescreenrecorder-2020-04-24_10 35 31

The core dump from journalctl:

Apr 24 10:35:53 laptop-work-arch systemd-coredump[175743]: Process 175105 (kitty) of user 1000 dumped core.

                                                           Stack trace of thread 175105:
                                                           #0  0x00007f6ffd6dcfc9 n/a (iris_dri.so + 0xb6ffc9)
                                                           #1  0x00007f6ffda1ebcf n/a (iris_dri.so + 0xeb1bcf)
                                                           #2  0x00007f6ffcc9ef40 n/a (iris_dri.so + 0x131f40)
                                                           #3  0x00007f6ffceddf7d n/a (iris_dri.so + 0x370f7d)
                                                           #4  0x00007f6ffcede120 n/a (iris_dri.so + 0x371120)
                                                           #5  0x00007f6fff59eb9d n/a (fast_data_types.so + 0x21b9d)
                                                           #6  0x00007f6fff5fd86e n/a (fast_data_types.so + 0x8086e)
                                                           #7  0x00007f6ffeb6b736 n/a (glfw-x11.so + 0xd736)
                                                           #8  0x00007f6ffeb77c3c glfwRunMainLoop (glfw-x11.so + 0x19c3c)
                                                           #9  0x00007f6fff5f6148 n/a (fast_data_types.so + 0x79148)
                                                           #10 0x00007f7000658996 n/a (libpython3.8.so.1.0 + 0x142996)
                                                           #11 0x00007f700070558e _PyEval_EvalFrameDefault (libpython3.8.so.1.0 + 0x1ef58e)
                                                           #12 0x00007f70006f58f4 _PyEval_EvalCodeWithName (libpython3.8.so.1.0 + 0x1df8f4)
                                                           #13 0x00007f70006f6c7b _PyFunction_Vectorcall (libpython3.8.so.1.0 + 0x1e0c7b)
                                                           #14 0x00007f700070514a _PyEval_EvalFrameDefault (libpython3.8.so.1.0 + 0x1ef14a)
                                                           #15 0x00007f70006f58f4 _PyEval_EvalCodeWithName (libpython3.8.so.1.0 + 0x1df8f4)
                                                           #16 0x00007f70006f6c7b _PyFunction_Vectorcall (libpython3.8.so.1.0 + 0x1e0c7b)
                                                           #17 0x00007f700064eee4 _PyObject_FastCallDict (libpython3.8.so.1.0 + 0x138ee4)
                                                           #18 0x00007f700066e3c3 _PyObject_Call_Prepend (libpython3.8.so.1.0 + 0x1583c3)
                                                           #19 0x00007f7000755279 n/a (libpython3.8.so.1.0 + 0x23f279)
                                                           #20 0x00007f700064c3d2 _PyObject_MakeTpCall (libpython3.8.so.1.0 + 0x1363d2)
                                                           #21 0x00007f700070979c _PyEval_EvalFrameDefault (libpython3.8.so.1.0 + 0x1f379c)
                                                           #22 0x00007f70006f6a9d _PyFunction_Vectorcall (libpython3.8.so.1.0 + 0x1e0a9d)
                                                           #23 0x00007f700070514a _PyEval_EvalFrameDefault (libpython3.8.so.1.0 + 0x1ef14a)
                                                           #24 0x00007f70006f6a9d _PyFunction_Vectorcall (libpython3.8.so.1.0 + 0x1e0a9d)
                                                           #25 0x00007f700070514a _PyEval_EvalFrameDefault (libpython3.8.so.1.0 + 0x1ef14a)
                                                           #26 0x00007f70006f6a9d _PyFunction_Vectorcall (libpython3.8.so.1.0 + 0x1e0a9d)
                                                           #27 0x00007f700070514a _PyEval_EvalFrameDefault (libpython3.8.so.1.0 + 0x1ef14a)
                                                           #28 0x00007f70006f58f4 _PyEval_EvalCodeWithName (libpython3.8.so.1.0 + 0x1df8f4)
                                                           #29 0x00007f700077cd73 PyEval_EvalCode (libpython3.8.so.1.0 + 0x266d73)
                                                           #30 0x00007f70007838ad n/a (libpython3.8.so.1.0 + 0x26d8ad)
                                                           #31 0x00007f7000658397 n/a (libpython3.8.so.1.0 + 0x142397)
                                                           #32 0x00007f700070514a _PyEval_EvalFrameDefault (libpython3.8.so.1.0 + 0x1ef14a)
                                                           #33 0x00007f70006f58f4 _PyEval_EvalCodeWithName (libpython3.8.so.1.0 + 0x1df8f4)
                                                           #34 0x00007f70006f6c7b _PyFunction_Vectorcall (libpython3.8.so.1.0 + 0x1e0c7b)
                                                           #35 0x00007f700070514a _PyEval_EvalFrameDefault (libpython3.8.so.1.0 + 0x1ef14a)
                                                           #36 0x00007f70006f58f4 _PyEval_EvalCodeWithName (libpython3.8.so.1.0 + 0x1df8f4)
                                                           #37 0x00007f70006f6c7b _PyFunction_Vectorcall (libpython3.8.so.1.0 + 0x1e0c7b)
                                                           #38 0x00007f70006523fd PyObject_Call (libpython3.8.so.1.0 + 0x13c3fd)
                                                           #39 0x00007f700078c471 n/a (libpython3.8.so.1.0 + 0x276471)
                                                           #40 0x00007f700062649f n/a (libpython3.8.so.1.0 + 0x11049f)
                                                           #41 0x00007f7000626803 Py_Main (libpython3.8.so.1.0 + 0x110803)
                                                           #42 0x00005597e7433240 main (kitty + 0x1240)
                                                           #43 0x00007f7000377023 __libc_start_main (libc.so.6 + 0x27023)
                                                           #44 0x00005597e743337e _start (kitty + 0x137e)

                                                           Stack trace of thread 175106:
                                                           #0  0x00007f700033dcf5 pthread_cond_wait@@GLIBC_2.3.2 (libpthread.so.0 + 0xfcf5)
                                                           #1  0x00007f6ffcff230c n/a (iris_dri.so + 0x48530c)
                                                           #2  0x00007f6ffcff1f08 n/a (iris_dri.so + 0x484f08)
                                                           #3  0x00007f700033746f start_thread (libpthread.so.0 + 0x946f)
                                                           #4  0x00007f700044f3d3 __clone (libc.so.6 + 0xff3d3)

                                                           Stack trace of thread 175109:
                                                           #0  0x00007f700033dcf5 pthread_cond_wait@@GLIBC_2.3.2 (libpthread.so.0 + 0xfcf5)
                                                           #1  0x00007f6ffcff230c n/a (iris_dri.so + 0x48530c)
                                                           #2  0x00007f6ffcff1f08 n/a (iris_dri.so + 0x484f08)
                                                           #3  0x00007f700033746f start_thread (libpthread.so.0 + 0x946f)
                                                           #4  0x00007f700044f3d3 __clone (libc.so.6 + 0xff3d3)

                                                           Stack trace of thread 175121:
                                                           #0  0x00007f7000444abf __poll (libc.so.6 + 0xf4abf)
                                                           #1  0x00007f6fff5f65a4 n/a (fast_data_types.so + 0x795a4)
                                                           #2  0x00007f700033746f start_thread (libpthread.so.0 + 0x946f)
                                                           #3  0x00007f700044f3d3 __clone (libc.so.6 + 0xff3d3)

                                                           Stack trace of thread 175122:
                                                           #0  0x00007f7000444abf __poll (libc.so.6 + 0xf4abf)
                                                           #1  0x00007f6fff5f7635 n/a (fast_data_types.so + 0x7a635)
                                                           #2  0x00007f700033746f start_thread (libpthread.so.0 + 0x946f)
                                                           #3  0x00007f700044f3d3 __clone (libc.so.6 + 0xff3d3)

                                                           Stack trace of thread 175108:
                                                           #0  0x00007f700033dcf5 pthread_cond_wait@@GLIBC_2.3.2 (libpthread.so.0 + 0xfcf5)
                                                           #1  0x00007f6ffcff230c n/a (iris_dri.so + 0x48530c)
                                                           #2  0x00007f6ffcff1f08 n/a (iris_dri.so + 0x484f08)
                                                           #3  0x00007f700033746f start_thread (libpthread.so.0 + 0x946f)
                                                           #4  0x00007f700044f3d3 __clone (libc.so.6 + 0xff3d3)

                                                          Stack trace of thread 175107:
                                                           #0  0x00007f700033dcf5 pthread_cond_wait@@GLIBC_2.3.2 (libpthread.so.0 + 0xfcf5)
                                                           #1  0x00007f6ffcff230c n/a (iris_dri.so + 0x48530c)
                                                           #2  0x00007f6ffcff1f08 n/a (iris_dri.so + 0x484f08)
                                                           #3  0x00007f700033746f start_thread (libpthread.so.0 + 0x946f)
                                                           #4  0x00007f700044f3d3 __clone (libc.so.6 + 0xff3d3)

Thanks and let me know if you need anything more!

Most helpful comment

You need mesa 20.0.7-2
see https://bugs.archlinux.org/task/66666

All 6 comments

I had the same issue today and I just wanted to open a bug report as well :-)

Downgrading mesa to mesa-20.0.4-2 is a workaround for me.

I had the same issue today and I just wanted to open a bug report as well :-)

Downgrading mesa to mesa-20.0.4-2 is a workaround for me.

Thanks, that worked for me:

sudo pacman -U /var/cache/pacman/pkg/mesa-20.0.4-2-x86_64.pkg.tar.zst

Mesa changelog: Mesa Release Notes 20.0.5

This is a crash in iris_dri.so caused by a mesa update. Looks like its a
driver bug not a kitty one.

And here is the upstream bug report: https://gitlab.freedesktop.org/mesa/mesa/-/issues/2865

Post for the Arch users looking for a solution.

The mesa 20.0.7 came to pacman today.

After the update, trying to open kitty causes a segmentation fault:

terminated by signal SIGSEGV (Address boundary error)

Downgrading to mesa 20.0.6 resolve the issue for now.

You need mesa 20.0.7-2
see https://bugs.archlinux.org/task/66666

Was this page helpful?
0 / 5 - 0 ratings

Related issues

crocket picture crocket  路  4Comments

JJGO picture JJGO  路  3Comments

lazarcf picture lazarcf  路  4Comments

bewzaalex picture bewzaalex  路  3Comments

Askannz picture Askannz  路  3Comments