Foot Version
foot version: 1.26.1-13-gcc6b29fe (May 14 2026, branch 'master') -pgo +ime +graphemes +toplevel-tag +blur +assertions
TERM environment variable
foot
Compositor Name and Version
niri 26.04
Distribution
gentoo
Terminal multiplexer
No response
Shell, TUI, application
No response
Server/standalone mode
- Standalone
- Server
Foot config
[main]
include=~/.config/foot/font.ini
dpi-aware=no
bold-text-in-bright=no
[colors]
alpha=1.0
foreground=ffffff
background=2e3436
regular0=000000 # black
regular1=a40000 # red
regular2=7fff00 # green
regular3=c4a000 # yellow
regular4=1e90ff # blue
regular5=75507b # magenta
regular6=0b939b # cyan
regular7=dcdccc # white
bright0=555753 # bright black
bright1=ef2929 # bright red
bright2=8ae234 # bright green
bright3=fce94f # bright yellow
bright4=729fcf # bright blue
bright5=ad7fa8 # bright magenta
bright6=00f5e9 # bright cyan
bright7=eeeeec # bright white
[key-bindings]
clipboard-copy=Mod4+c
clipboard-paste=Shift+Insert
primary-paste=Mod4+v
search-start=Mod4+f
spawn-terminal=Mod4+n
show-urls-launch=Mod4+Shift+u
show-urls-copy=Mod4+Shift+c
font-increase=Mod4+plus
font-decrease=Mod4+Shift+minus
[text-bindings]
\x1b[2012%071a=Mod1+Tab # use by magit
[search-bindings]
find-prev=Mod1+p
find-next=Mod1+n
[url]
launch=url-lancher-foot ${url}
[mouse]
hide-when-typing=yes
[tweak]
grapheme-shaping=yes
Description of Bug and Steps to Reproduce
- Download opencode from: https://github.com/anomalyco/opencode/releases/download/v1.14.49/opencode-linux-x64.tar.gz
- unpack package, and run ./opencode
Relevant logs, stacktraces, etc.
GDB says:
Current directory: /home/yyc/Work/foot/meson_build_debug/
Command: gdb /home/yyc/Work/foot/meson_build_debug/foot
set annotate 1
set filename-display absolute
Skip loading private file: /home/yyc/.gdbinit_priv does not exist.
Reading symbols from /home/yyc/Work/foot/meson_build_debug/foot...
(peda)$ (peda)$ (peda)$ r
Starting program: /home/yyc/Work/foot/meson_build_debug/foot
[Thread debugging using libthread_db enabled]
Using host libthread_db library "/usr/lib64/libthread_db.so.1".
warn: config.c:1635: /home/yyc/.config/foot/foot.ini:7: [colors]: deprecated; use [colors-dark] instead
warn: config.c:1635: /home/yyc/.config/foot/foot.ini:8: [colors]: deprecated; use [colors-dark] instead
warn: config.c:1635: /home/yyc/.config/foot/foot.ini:9: [colors]: deprecated; use [colors-dark] instead
warn: config.c:1635: /home/yyc/.config/foot/foot.ini:10: [colors]: deprecated; use [colors-dark] instead
warn: config.c:1635: /home/yyc/.config/foot/foot.ini:11: [colors]: deprecated; use [colors-dark] instead
warn: config.c:1635: /home/yyc/.config/foot/foot.ini:12: [colors]: deprecated; use [colors-dark] instead
warn: config.c:1635: /home/yyc/.config/foot/foot.ini:13: [colors]: deprecated; use [colors-dark] instead
warn: config.c:1635: /home/yyc/.config/foot/foot.ini:14: [colors]: deprecated; use [colors-dark] instead
warn: config.c:1635: /home/yyc/.config/foot/foot.ini:15: [colors]: deprecated; use [colors-dark] instead
warn: config.c:1635: /home/yyc/.config/foot/foot.ini:16: [colors]: deprecated; use [colors-dark] instead
warn: config.c:1635: /home/yyc/.config/foot/foot.ini:17: [colors]: deprecated; use [colors-dark] instead
warn: config.c:1635: /home/yyc/.config/foot/foot.ini:18: [colors]: deprecated; use [colors-dark] instead
warn: config.c:1635: /home/yyc/.config/foot/foot.ini:19: [colors]: deprecated; use [colors-dark] instead
warn: config.c:1635: /home/yyc/.config/foot/foot.ini:20: [colors]: deprecated; use [colors-dark] instead
warn: config.c:1635: /home/yyc/.config/foot/foot.ini:21: [colors]: deprecated; use [colors-dark] instead
warn: config.c:1635: /home/yyc/.config/foot/foot.ini:22: [colors]: deprecated; use [colors-dark] instead
warn: config.c:1635: /home/yyc/.config/foot/foot.ini:23: [colors]: deprecated; use [colors-dark] instead
warn: config.c:1635: /home/yyc/.config/foot/foot.ini:24: [colors]: deprecated; use [colors-dark] instead
warn: config.c:1635: /home/yyc/.config/foot/foot.ini:25: [colors]: deprecated; use [colors-dark] instead
warn: wayland.c:1854: compositor does not implement the xdg-toplevel-icon protocol
[Detaching after fork from child process 77655]
[New Thread 0x7fffe8fff6c0 (LWP 77656)]
[New Thread 0x7fffe866f6c0 (LWP 77657)]
[New Thread 0x7fffe7cdf6c0 (LWP 77658)]
[New Thread 0x7fffe734f6c0 (LWP 77659)]
[Thread 0x7fffe866f6c0 (LWP 77657) exited]
[Thread 0x7fffe8fff6c0 (LWP 77656) exited]
[Thread 0x7fffe7cdf6c0 (LWP 77658) exited]
[Thread 0x7fffe734f6c0 (LWP 77659) exited]
[New Thread 0x7fffe734f6c0 (LWP 77674)]
[New Thread 0x7fffe7cdf6c0 (LWP 77675)]
[New Thread 0x7fffe866f6c0 (LWP 77676)]
[New Thread 0x7fffe8fff6c0 (LWP 77677)]
[New Thread 0x7fffe675e6c0 (LWP 77678)]
[New Thread 0x7fffe5dce6c0 (LWP 77679)]
[New Thread 0x7fffe543e6c0 (LWP 77680)]
[New Thread 0x7fffe4aae6c0 (LWP 77681)]
[New Thread 0x7fffd7fff6c0 (LWP 77687)]
[New Thread 0x7fffd766f6c0 (LWP 77688)]
[New Thread 0x7fffd6cdf6c0 (LWP 77689)]
[New Thread 0x7fffd634f6c0 (LWP 77690)]
[Thread 0x7fffd634f6c0 (LWP 77690) exited]
[Thread 0x7fffd766f6c0 (LWP 77688) exited]
[Thread 0x7fffd7fff6c0 (LWP 77687) exited]
[Thread 0x7fffd6cdf6c0 (LWP 77689) exited]
err: xsnprintf.c:42: xvsnprintf: No buffer space available
Thread 1 "foot" received signal SIGABRT, Aborted.
0x00007ffff7b9218b in pthread_kill () from /usr/lib64/libc.so.6
(peda)$ bt
=> # 0 0x00007ffff7b9218b pthread_kill
# 1 0x00007ffff7b33a36 raise
# 2 0x00007ffff7b17315 abort
# 3 0x0000555555602f84 fatal_error
# 4 0x00005555556035de xvsnprintf
# 5 0x00005555556036a5 xsnprintf
# 6 0x00005555555fc701 kitty_notification
# 7 0x00005555555fe89e osc_dispatch
# 8 0x00005555555f02fa action_osc_end
# 9 0x00005555555f0f2e state_osc_string_switch
# 10 0x00005555555f17b9 vt_from_slave
# 11 0x00005555555d85f9 fdm_ptmx
# 12 0x0000555555585202 fdm_poll
# 13 0x00005555555962c9 main
# 14 0x00007ffff7b195ee ?? ()
# 15 0x00007ffff7b196a9 __libc_start_main
# 16 0x000055555556a5c5 _start
(peda)$ f 4
#4 0x00005555556035de in xvsnprintf (
buf=0x7fffffff63f0 "033円]99;i=opentui-notifications:p=?;p=title,body,?,close,alive,icon,buttons:a=focus,report:o=unfocused:u=0,1,2:c=1:w=1:s=system,si", n=128,
format=0x55555561cd88 "033円]99;i=%s:p=?;p=%s:a=%s:o=%s:u=%s:c=1:w=1:s=system,silent,error,warn,warning,info,question%s", ap=0x7fffffff6130) at /home/yyc/Work/foot/xsnprintf.c:42
/home/yyc/Work/foot/xsnprintf.c:42:1359:beg:0x5555556035de
(peda)$ p len
1ドル = 166
(peda)$ p n
2ドル = 128
(peda)$ up
#5 0x00005555556036a5 in xsnprintf (
buf=0x7fffffff63f0 "033円]99;i=opentui-notifications:p=?;p=title,body,?,close,alive,icon,buttons:a=focus,report:o=unfocused:u=0,1,2:c=1:w=1:s=system,si", n=128,
format=0x55555561cd88 "033円]99;i=%s:p=?;p=%s:a=%s:o=%s:u=%s:c=1:w=1:s=system,silent,error,warn,warning,info,question%s") at /home/yyc/Work/foot/xsnprintf.c:52
/home/yyc/Work/foot/xsnprintf.c:52:1577:beg:0x5555556036a5
(peda)$ up
#6 0x00005555555fc701 in kitty_notification (term=0x5555557779c0,
string=0x555555728913 "i=opentui-notifications") at /home/yyc/Work/foot/osc.c:765
/home/yyc/Work/foot/osc.c:765:20535:beg:0x5555555fc701
(peda)$ p reply_id
3ドル = 0x555555661910 "opentui-notifications"
(peda)$ p p_caps
4ドル = 0x55555561cd48 "title,body,?,close,alive,icon,buttons"
(peda)$ p a_caps
5ドル = 0x55555561cd6e "focus,report"
(peda)$ p when_caps
6ドル = "unfocused000円300円367円377円177円000円000円001円000円000円000円000円000円000円000円\v000円000円000円000円000円000円000円\v000円000円000円000円000円000円000円340円246円VUUU000円000円Pd377円377円377円177円000円000円037円000円000円000円000円000円000円"
(peda)$ p terminator
7ドル = 0x55555561cbca "033円\\"
(peda)$ up
#7 0x00005555555fe89e in osc_dispatch (term=0x5555557779c0) at /home/yyc/Work/foot/osc.c:1511
/home/yyc/Work/foot/osc.c:1511:43437:beg:0x5555555fe89e
(peda)$ down
#6 0x00005555555fc701 in kitty_notification (term=0x5555557779c0,
string=0x555555728913 "i=opentui-notifications") at /home/yyc/Work/foot/osc.c:765
/home/yyc/Work/foot/osc.c:765:20535:beg:0x5555555fc701
(peda)$
Is there any special reason to limit capacity of reply (https://codeberg.org/dnkl/foot/src/master/osc.c#L764) to 128?
We don't know the length of reply_id, if it is too long, 128 is not enough to hold the printed string...
Make it larger can fix this issue.
Regards.