Closed
Description
Describe the bug
I know you're not a fan of tmux
, but it is part of my workflow and I'm very happy with kitty + tmux.
So I have a key to select some text with tmux
and put it in the clipboard so I can paste it in a browser window for instance. But once in a while, this will crash kitty.
To Reproduce
Steps to reproduce the behavior:
- Use tmux with the config file below
- Enter scrollback mode (
C-a
for me), then select some text withv
, and yank it to the system's clipboard withY
- press
q
to exit scrollback mode - Most of the time this will work, but sometimes it will crash kitty. It seems to be random. I'd say it crashes about 10% of the time.
Screenshots
When kitty crashes, dmesg
shows:
[162056.889709] kitty[1904332]: segfault at 0 ip 0000000000000000 sp 00007ffe6a956788 error 14
[162056.889727] Code: Unable to access opcode bytes at RIP 0xffffffffffffffd6.
Environment details
kitty 0.26.4 created by Kovid Goyal
Linux drakkar 5.15.0-52-generic #58~20.04.1-Ubuntu SMP Thu Oct 13 13:09:46 UTC 2022 x86_64
Linux Mint 20.3 Una drakkar /dev/tty
DISTRIB_ID=LinuxMint
DISTRIB_RELEASE=20.3
DISTRIB_CODENAME=una
DISTRIB_DESCRIPTION="Linux Mint 20.3 Una"
Running under: X11
Frozen: True
Paths:
kitty: /home/rock/.local/kitty.app/bin/kitty
base dir: /home/rock/.local/kitty.app/lib/kitty
extensions dir: /home/rock/.local/kitty.app/lib/kitty-extensions
system shell: /bin/bash
Loaded config files:
/etc/xdg/kitty/kitty.conf
/home/rock/.config/kitty/kitty.conf
Config options different from defaults:
bold_font Terminus Bold
bold_italic_font Terminus Bold Italic
enable_audio_bell False
font_family Terminus
font_size 10.0
italic_font Terminus Italic
shell bash --login
symbol_map:
U+e000 - U+f8ff → icons-in-terminal
U+f000 - U+fffd → icons-in-terminal
U+100000 - U+10fffd → icons-in-terminal
update_check_interval 0.0
visual_bell_duration 0.1
Colors:
background #0e1419
color1 #ff3333
color10 #e9fe83
color11 #fff778
color12 #68d4ff
color13 #ffa3aa
color14 #c7fffc
color2 #b8cc52
color3 #e6c446
color4 #36a3d9
color5 #f07078
color6 #95e5cb
color7 #ffffff
color8 #323232
color9 #ff6565
cursor #f19618
foreground #e5e1cf
selection_background #243340
selection_foreground #0e1419
Important environment variables seen by the kitty process:
PATH /home/rock/.nvm/versions/node/v16.17.1/bin:/home/rock/.serverless/bin:/usr/local/sbin:/usr/local/bin:/home/rock/bin::/home/rock/.cargo/bin:/home/rock/.nvm/versions/node/v16.17.1/bin:/home/rock/bin:/home/rock/.local/bin:/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin:/usr/games:/usr/local/games:/snap/bin:/home/rock/.rvm/bin:/usr/local/go/bin:/home/rock/go/bin:/home/rock/.yarn/bin:/home/rock/.config/yarn/global:/home/rock/.rvm/bin
LANG en_US
EDITOR /usr/bin/nvim
SHELL /bin/bash
DISPLAY :0
USER rock
XDG_SEAT seat0
XDG_SESSION_TYPE x11
XDG_SEAT_PATH /org/freedesktop/DisplayManager/Seat0
LC_MONETARY de_CH.UTF-8
XDG_SESSION_CLASS user
XDG_SESSION_ID c2
XDG_SESSION_PATH /org/freedesktop/DisplayManager/Session0
LC_ADDRESS de_CH.UTF-8
XDG_RUNTIME_DIR /run/user/1000
LC_TELEPHONE de_CH.UTF-8
XDG_CURRENT_DESKTOP X-Cinnamon
XDG_SESSION_DESKTOP cinnamon
XDG_GREETER_DATA_DIR /var/lib/lightdm-data/rock
LC_NAME de_CH.UTF-8
LC_MEASUREMENT de_CH.UTF-8
LC_IDENTIFICATION de_CH.UTF-8
XDG_VTNR 7
LC_ALL en_US.UTF-8
XDG_CONFIG_DIRS /etc/xdg/xdg-cinnamon:/etc/xdg
XDG_DATA_DIRS /usr/share/cinnamon:/usr/share/gnome:/home/pierre/.local/share/flatpak/exports/share:/var/lib/flatpak/exports/share:/usr/local/share:/usr/share
LC_NUMERIC de_CH.UTF-8
LC_PAPER de_CH.UTF-8
Additional context
# tmux.conf
unbind Y
bind -T copy-mode-vi Y send-keys -X copy-pipe "xclip -sel clip -i"