Hi,
When I run tmux and I resize the X11 window that the tmux is in a
couple of times, tmux crashes. (If it matters, I'm running dwm. I go
to an empty workspace, open xterm, start tmux and run
"tail -f /var/log/messages", and then open another xterm. Then alternate
Alt-h and Alt-l to change the size of the masterarea, and observe how
tmux crashes.)
This happens for a bit over a week already, I think, but I finally had
some time to recompile tmux with debugging symbols and produce a proper
backtrace. The backtrace and my dmesg can be found below. Let me know
if I can provide more info.
Caspar
--
$ egdb /usr/bin/tmux tmux.core
GNU gdb (GDB) 17.1
[...]
Reading symbols from /usr/bin/tmux...
[New process 304874]
Core was generated by `tmux'.
Program terminated with signal SIGABRT, Aborted.
#0 thrkill () at /tmp/-:2
⚠ warning: 2 /tmp/-: No such file or directory
(gdb)
#0 thrkill () at /tmp/-:2
#1 0x6939d5bdd37965b0 in ?? ()
#2 0x00000fa1c198133b in _libc_abort () at /usr/src/lib/libc/stdlib/abort.c:51
#3 0x00000fa1c18ebf94 in wrterror (d=0xfa2111dc7f8, msg=0xfa1c18cdee2
"recorded size %hu != %zu")
at /usr/src/lib/libc/stdlib/malloc.c:378
#4 0x00000fa1c18ef52e in orecallocarray (p=0xfa198baa780, oldsize=325,
newsize=595, argpool=<optimized out>)
at /usr/src/lib/libc/stdlib/malloc.c:2042
#5 _libc_recallocarray (ptr=0xfa198baa780, oldnmemb=65, newnmemb=<optimized
out>, size=<optimized out>)
at /usr/src/lib/libc/stdlib/malloc.c:2169
#6 0x00000f9f297cb4f2 in xrecallocarray (ptr=0x0, oldnmemb=6, nmemb=0, size=5)
at /usr/src/usr.bin/tmux/xmalloc.c:81
#7 0x00000f9f2975cd0f in grid_expand_line (gd=0xfa156302e60, py=<optimized
out>, sx=119,
bg=<error reading variable: Cannot access memory at address 0x8>) at
/usr/src/usr.bin/tmux/grid.c:512
#8 grid_set_cell (gd=0xfa156302e60, px=65, py=<optimized out>,
gc=0x7bae7c55e078) at /usr/src/usr.bin/tmux/grid.c:598
#9 0x00000f9f2975f16d in grid_reflow_join (target=0xfa156302e60,
gd=0xfa156302ac0, sx=119, yy=<optimized out>,
width=66, already=<optimized out>) at /usr/src/usr.bin/tmux/grid.c:1305
#10 0x00000f9f2975ecb2 in grid_reflow (gd=0xfa156302ac0, sx=119) at
/usr/src/usr.bin/tmux/grid.c:1493
#11 0x00000f9f29787389 in screen_reflow (s=0xfa1a30f4968, new_x=119,
cx=<optimized out>, cy=<optimized out>, cursor=1)
at /usr/src/usr.bin/tmux/screen.c:601
#12 screen_resize_cursor (s=0xfa1a30f4968, sx=119, sy=18, reflow=<optimized
out>, eat_empty=<optimized out>, cursor=1)
at /usr/src/usr.bin/tmux/screen.c:315
#13 0x00000f9f297c90ba in window_pane_resize (wp=0xfa1a30f4600, sx=119, sy=18)
at /usr/src/usr.bin/tmux/window.c:1090
#14 0x00000f9f2976dbd3 in layout_fix_panes (w=0xfa198bbfc00, skip=0x0) at
/usr/src/usr.bin/tmux/layout.c:340
#15 0x00000f9f2977d6be in resize_window (w=0xfa198bbfc00, sx=119, sy=18,
xpixel=16, ypixel=32)
at /usr/src/usr.bin/tmux/resize.c:46
#16 0x00000f9f2978e756 in server_client_check_window_resize (w=0xfa198bbfc00)
at /usr/src/usr.bin/tmux/server-client.c:2782
#17 server_client_loop () at /usr/src/usr.bin/tmux/server-client.c:2719
#18 0x00000f9f29792e88 in server_loop () at /usr/src/usr.bin/tmux/server.c:273
#19 0x00000f9f2977c689 in proc_loop (tp=0xfa1a3102000, loopcb=0xf9f29792e10
<server_loop>)
at /usr/src/usr.bin/tmux/proc.c:210
#20 0x00000f9f297927d0 in server_start (client=0xfa16a5d8500, flags=<optimized
out>, base=0xfa16a5f8c00,
lockfd=<optimized out>, lockfile=0xfa1a30fb180 "\"#S\"") at
/usr/src/usr.bin/tmux/server.c:248
#21 0x00000f9f29726a52 in client_connect (base=0xfa16a5f8c00,
path=0xfa1a30fbd80 "/tmp/tmux-1000/default",
flags=402718720) at /usr/src/usr.bin/tmux/client.c:165
#22 client_main (base=0xfa16a5f8c00, argc=0, argv=0x7bae7c55e740,
flags=<optimized out>, feat=0)
at /usr/src/usr.bin/tmux/client.c:285
#23 0x00000f9f297a05f9 in main (argc=0, argv=0x7bae7c55e740) at
/usr/src/usr.bin/tmux/tmux.c:549
OpenBSD 7.8-current (GENERIC.MP) #281: Thu Mar 5 00:05:34 MST 2026
[email protected]:/usr/src/sys/arch/amd64/compile/GENERIC.MP
real mem = 8437223424 (8046MB)
avail mem = 8154615808 (7776MB)
random: good seed from bootblocks
mpath0 at root
scsibus0 at mpath0: 256 targets
mainbus0 at root
bios0 at mainbus0: SMBIOS rev. 3.0 @ 0x8c02c000 (32 entries)
bios0: vendor Microsoft Corporation version "1.0.28" date 01/26/2024
bios0: Microsoft Corporation Surface Go 2
efi0 at bios0: UEFI 2.5
efi0: INSYDE Corp. rev 0xcd78e922
acpi0 at bios0: ACPI 5.0
acpi0: sleep states S0ix S3 S4 S5
acpi0: tables DSDT FACP UEFI SSDT TPM2 MSDM SSDT HPET APIC MCFG SSDT SSDT LPIT
WSMT SSDT SSDT SSDT SSDT DBGP DBG2 SSDT SSDT SSDT SSDT DMAR NHLT FPDT BGRT
acpi0: wakeup devices GLAN(S4) XHC_(S3) XDCI(S4) HDAS(S4) RP01(S4) PXSX(S4)
RP02(S4) PXSX(S4) RP03(S4) PXSX(S4) RP04(S4) PXSX(S4) RP05(S4) PXSX(S4)
RP06(S4) PXSX(S4) [...]
acpitimer0 at acpi0: 3579545 Hz, 24 bits
acpihpet0 at acpi0: 23999999 Hz
acpimadt0 at acpi0 addr 0xfee00000: PC-AT compat
cpu0 at mainbus0: apid 0 (boot processor)
cpu0: Intel(R) Core(TM) m3-8100Y CPU @ 1.10GHz, 3390.75 MHz, 06-8e-09, patch
000000f6
cpu0: cpuid 1
edx=bfebfbff<FPU,VME,DE,PSE,TSC,MSR,PAE,MCE,CX8,APIC,SEP,MTRR,PGE,MCA,CMOV,PAT,PSE36,CFLUSH,DS,ACPI,MMX,FXSR,SSE,SSE2,SS,HTT,TM,PBE>
ecx=77fafbbf<SSE3,PCLMUL,DTES64,MWAIT,DS-CPL,VMX,EST,TM2,SSSE3,SDBG,FMA3,CX16,xTPR,PDCM,PCID,SSE4.1,SSE4.2,x2APIC,MOVBE,POPCNT,DEADLINE,AES,XSAVE,AVX,F16C,RDRAND>
cpu0: cpuid 6 eax=27f7<SENSOR,ARAT,PTS> ecx=9<EFFFREQ>
cpu0: cpuid 7.0
ebx=29c67af<FSGSBASE,TSC_ADJUST,SGX,BMI1,AVX2,SMEP,BMI2,ERMS,INVPCID,MPX,RDSEED,ADX,SMAP,CLFLUSHOPT,PT>
edx=bc002e00<SRBDS_CTRL,MD_CLEAR,TSXFA,IBRS,IBPB,STIBP,L1DF,SSBD>
cpu0: cpuid a vers=4, gp=4, gpwidth=48, ff=3, ffwidth=48
cpu0: cpuid d.1 eax=f<XSAVEOPT,XSAVEC,XGETBV1,XSAVES>
cpu0: cpuid 80000001 edx=2c100800<NXE,PAGE1GB,RDTSCP,LONG>
ecx=121<LAHF,ABM,3DNOWP>
cpu0: cpuid 80000007 edx=100<ITSC>
cpu0: msr 10a=a000c04<RSBA,MISC_PKG_CT,ENERGY_FILT,GDS_CTRL,RFDS_NO>
cpu0: MELTDOWN
cpu0: 32KB 64b/line 8-way D-cache, 32KB 64b/line 8-way I-cache, 256KB 64b/line
4-way L2 cache, 4MB 64b/line 16-way L3 cache
cpu0: smt 0, core 0, package 0
mtrr: Pentium Pro MTRR support, 10 var ranges, 88 fixed ranges
cpu0: apic clock running at 24MHz
cpu0: mwait min=64, max=64, C-substates=0.2.1.2.4.1.1.1, IBE
cpu1 at mainbus0: apid 2 (application processor)
cpu1: Intel(R) Core(TM) m3-8100Y CPU @ 1.10GHz, 2693.73 MHz, 06-8e-09, patch
000000f6
cpu1: smt 0, core 1, package 0
cpu2 at mainbus0: apid 1 (application processor)
cpu2: Intel(R) Core(TM) m3-8100Y CPU @ 1.10GHz, 2693.73 MHz, 06-8e-09, patch
000000f6
cpu2: smt 1, core 0, package 0
cpu3 at mainbus0: apid 3 (application processor)
cpu3: Intel(R) Core(TM) m3-8100Y CPU @ 1.10GHz, 2693.73 MHz, 06-8e-09, patch
000000f6
cpu3: smt 1, core 1, package 0
ioapic0 at mainbus0: apid 2 pa 0xfec00000, version 20, 120 pins
acpimcfg0 at acpi0
acpimcfg0: addr 0xe0000000, bus 0-255
acpiprt0 at acpi0: bus 0 (PCI0)
acpiprt1 at acpi0: bus -1 (RP01)
acpiprt2 at acpi0: bus -1 (RP02)
acpiprt3 at acpi0: bus 1 (RP03)
acpiprt4 at acpi0: bus 2 (RP04)
acpiprt5 at acpi0: bus -1 (RP05)
acpiprt6 at acpi0: bus -1 (RP06)
acpiprt7 at acpi0: bus 3 (RP07)
acpiprt8 at acpi0: bus -1 (RP08)
acpiprt9 at acpi0: bus -1 (RP09)
acpiprt10 at acpi0: bus -1 (RP10)
acpiprt11 at acpi0: bus -1 (RP11)
acpiprt12 at acpi0: bus -1 (RP12)
acpiprt13 at acpi0: bus -1 (RP13)
acpiprt14 at acpi0: bus -1 (RP14)
acpiprt15 at acpi0: bus -1 (RP15)
acpiprt16 at acpi0: bus -1 (RP16)
acpiprt17 at acpi0: bus -1 (RP17)
acpiprt18 at acpi0: bus -1 (RP18)
acpiprt19 at acpi0: bus -1 (RP19)
acpiprt20 at acpi0: bus -1 (RP20)
acpiprt21 at acpi0: bus -1 (RP21)
acpiprt22 at acpi0: bus -1 (RP22)
acpiprt23 at acpi0: bus -1 (RP23)
acpiprt24 at acpi0: bus -1 (RP24)
acpiec0 at acpi0
acpipci0 at acpi0 PCI0: 0x00000000 0x00000011 0x00000001
"INT33D3" at acpi0 not configured
"INT33D4" at acpi0 not configured
"INT33D2" at acpi0 not configured
acpicmos0 at acpi0
"MSFT0001" at acpi0 not configured
pchgpio0 at acpi0 GPI0 addr 0xfdaf0000/0x10000 0xfdae0000/0x10000
0xfdac0000/0x10000 irq 14, 176 pins
"NXP3001" at acpi0 not configured
"ELAN9038" at acpi0 not configured
"INT3472" at acpi0 not configured
"INT3472" at acpi0 not configured
"INT3403" at acpi0 not configured
"INT3403" at acpi0 not configured
"INT3403" at acpi0 not configured
inthid0 at acpi0: HIDD, 5 button array
"PNP0C14" at acpi0 not configured
intelpmc0 at acpi0: PEPD
state 0: 0x7f:1:2:0x00:0x0000000000000060
counter: 0x7f:64:0:0x00:0x0000000000000632
frequency: 0
state 1: 0x7f:1:2:0x00:0x0000000000000060
counter: 0x00:32:0:0x03:0x00000000fe00013c
frequency: 9580
acpiac0 at acpi0: AC unit offline
acpibat0 at acpi0: BAT1 model "Uhu" serial 0 type LION oem "SMP"
"MSHW0213" at acpi0 not configured
acpibtn0 at acpi0: LIDD
"QCI0704" at acpi0 not configured
"QCI0705" at acpi0 not configured
"PNP0C14" at acpi0 not configured
"PNP0C14" at acpi0 not configured
tpm0 at acpi0 TPM_ 2.0 (TIS) addr 0xfed40000/0x5000, device 0x00fc1050 rev 0x1
"USBC000" at acpi0 not configured
"INT3400" at acpi0 not configured
acpicpu0 at acpi0: C3(200@1034 mwait.1@0x60), C2(200@151 mwait.1@0x33),
C1(1000@1 mwait.1), PSS
acpicpu1 at acpi0: C3(200@1034 mwait.1@0x60), C2(200@151 mwait.1@0x33),
C1(1000@1 mwait.1), PSS
acpicpu2 at acpi0: C3(200@1034 mwait.1@0x60), C2(200@151 mwait.1@0x33),
C1(1000@1 mwait.1), PSS
acpicpu3 at acpi0: C3(200@1034 mwait.1@0x60), C2(200@151 mwait.1@0x33),
C1(1000@1 mwait.1), PSS
acpipwrres0 at acpi0: WRST
acpipwrres1 at acpi0: PXTC
acpipwrres2 at acpi0: PXTC, resource for TPL1
acpitz0 at acpi0
acpitz0: no critical temperature defined
acpivideo0 at acpi0: GFX0
acpivout0 at acpivideo0: DD1F
cpu0: using VERW MDS workaround (except on vmm entry)
cpu0: Enhanced SpeedStep 3390 MHz: speeds: 1601, 1600, 1500, 1400, 1300, 1200,
1100, 1000, 900, 800, 700, 600, 500, 400 MHz
pci0 at mainbus0 bus 0
pchb0 at pci0 dev 0 function 0 "Intel Core 7G Host" rev 0x02
inteldrm0 at pci0 dev 2 function 0 "Intel UHD Graphics 615" rev 0x02
drm0 at inteldrm0
inteldrm0: msi, KABYLAKE, gen 9
"Intel Core 6G Thermal" rev 0x02 at pci0 dev 4 function 0 not configured
vendor "Intel", unknown product 0x1919 (class multimedia subclass
miscellaneous, rev 0x01) at pci0 dev 5 function 0 not configured
"Intel 100 Series ISH" rev 0x21 at pci0 dev 19 function 0 not configured
xhci0 at pci0 dev 20 function 0 "Intel 100 Series xHCI" rev 0x21: msi, xHCI 1.0
usb0 at xhci0: USB revision 3.0
uhub0 at usb0 configuration 1 interface 0 "Intel xHCI root hub" rev 3.00/1.00
addr 1
pchtemp0 at pci0 dev 20 function 2 "Intel 100 Series Thermal" rev 0x21
vendor "Intel", unknown product 0x9d32 (class multimedia subclass
miscellaneous, rev 0x01) at pci0 dev 20 function 3 not configured
dwiic0 at pci0 dev 21 function 0 "Intel 100 Series I2C" rev 0x21: apic 2 int 16
iic0 at dwiic0
"NXP3001" at iic0 addr 0x28 not configured
dwiic1 at pci0 dev 21 function 1 "Intel 100 Series I2C" rev 0x21: apic 2 int 17
iic1 at dwiic1
ihidev0 at iic1 addr 0x10 irq 31, vendor 0x4f3 product 0x2a1c, ELAN9038
ihidev0: 72 report ids
ims0 at ihidev0 reportid 1: 1 button, tip
wsmouse0 at ims0 mux 0
hid at ihidev0 reportid 2 not configured
hid at ihidev0 reportid 3 not configured
hid at ihidev0 reportid 4 not configured
hid at ihidev0 reportid 6 not configured
ims1 at ihidev0 reportid 7: 3 buttons, tip, barrel, eraser
wsmouse1 at ims1 mux 0
hid at ihidev0 reportid 10 not configured
hid at ihidev0 reportid 23 not configured
hid at ihidev0 reportid 25 not configured
hid at ihidev0 reportid 34 not configured
hid at ihidev0 reportid 41 not configured
hid at ihidev0 reportid 42 not configured
hid at ihidev0 reportid 43 not configured
hid at ihidev0 reportid 44 not configured
hid at ihidev0 reportid 45 not configured
hid at ihidev0 reportid 46 not configured
hid at ihidev0 reportid 47 not configured
hid at ihidev0 reportid 48 not configured
hid at ihidev0 reportid 49 not configured
hid at ihidev0 reportid 50 not configured
hid at ihidev0 reportid 51 not configured
hid at ihidev0 reportid 52 not configured
hid at ihidev0 reportid 53 not configured
hid at ihidev0 reportid 54 not configured
hid at ihidev0 reportid 72 not configured
dwiic2 at pci0 dev 21 function 2 "Intel 100 Series I2C" rev 0x21: apic 2 int 18
iic2 at dwiic2
dwiic3 at pci0 dev 21 function 3 "Intel 100 Series I2C" rev 0x21: apic 2 int 19
iic3 at dwiic3
"Intel 100 Series MEI" rev 0x21 at pci0 dev 22 function 0 not configured
"Intel 100 Series UART" rev 0x21 at pci0 dev 25 function 0 not configured
dwiic4 at pci0 dev 25 function 2 "Intel 100 Series I2C" rev 0x21: apic 2 int 34
iic4 at dwiic4
ppb0 at pci0 dev 28 function 0 "Intel 100 Series PCIE" rev 0xf1: msi
pci1 at ppb0 bus 1
iwx0 at pci1 dev 0 function 0 "Intel Wi-Fi 6 AX200" rev 0x1a, msix
ppb1 at pci0 dev 28 function 3 "Intel 100 Series PCIE" rev 0xf1: msi
pci2 at ppb1 bus 2
rtsx0 at pci2 dev 0 function 0 "Realtek RTS522A Card Reader" rev 0x01: msi
sdmmc0 at rtsx0: 4-bit, dma
ppb2 at pci0 dev 28 function 6 "Intel 100 Series PCIE" rev 0xf1: msi
pci3 at ppb2 bus 3
nvme0 at pci3 dev 0 function 0 "Kioxia BG4" rev 0x00: msix, NVMe 1.3
nvme0: KBG40ZPZ128G TOSHIBA MEMORY, firmware AEMS0102, serial 40P10101NCDL
scsibus1 at nvme0: 2 targets, initiator 0
sd0 at scsibus1 targ 1 lun 0: <NVMe, KBG40ZPZ128G TOS, AEMS>
sd0: 122104MB, 512 bytes/sector, 250069680 sectors
"Intel 100 Series UART" rev 0x21 at pci0 dev 30 function 0 not configured
pcib0 at pci0 dev 31 function 0 "Intel 200 Series LPC" rev 0x21
"Intel 100 Series PMC" rev 0x21 at pci0 dev 31 function 2 not configured
azalia0 at pci0 dev 31 function 3 "Intel 200 Series HD Audio" rev 0x21: msi
azalia0: codecs: Realtek ALC298, Intel/0x280b, using Realtek ALC298
audio0 at azalia0
isa0 at pcib0
isadma0 at isa0
pckbc0 at isa0 port 0x60/5 irq 1 irq 12
pckbd0 at pckbc0 (kbd slot)
wskbd0 at pckbd0: console keyboard
pcppi0 at isa0 port 0x61
spkr0 at pcppi0
vmm0 at mainbus0: VMX/EPT
efifb at mainbus0 not configured
ugen0 at uhub0 port 5 "Intel Bluetooth" rev 2.01/0.01 addr 2
uhidev0 at uhub0 port 7 configuration 1 interface 0 "Microsoft Surface
Keyboard" rev 2.00/0.04 addr 3
uhidev0: iclass 3/1
ukbd0 at uhidev0: 8 variable keys, 6 key codes
wskbd1 at ukbd0 mux 1
uhidev1 at uhub0 port 7 configuration 1 interface 1 "Microsoft Surface
Keyboard" rev 2.00/0.04 addr 3
uhidev1: iclass 3/0, 91 report ids
umstc0 at uhidev1 reportid 3
uhid0 at uhidev1 reportid 4: input=0, output=0, feature=63
uhid1 at uhidev1 reportid 19: input=20, output=0, feature=0
uhid2 at uhidev1 reportid 91: input=1, output=0, feature=0
uhidev2 at uhub0 port 7 configuration 1 interface 2 "Microsoft Surface
Keyboard" rev 2.00/0.04 addr 3
uhidev2: iclass 3/0
uhid3 at uhidev2: input=64, output=64, feature=0
uhidev3 at uhub0 port 7 configuration 1 interface 3 "Microsoft Surface
Keyboard" rev 2.00/0.04 addr 3
uhidev3: iclass 3/0, 93 report ids
umt0 at uhidev3: clickpad, 5 contacts
wsmouse2 at umt0 mux 0
ums0 at uhidev3 reportid 1: 2 buttons
wsmouse3 at ums0 mux 0
uhid4 at uhidev3 reportid 7: input=0, output=0, feature=1
uhid5 at uhidev3 reportid 11: input=0, output=0, feature=66
uhid6 at uhidev3 reportid 12: input=0, output=0, feature=736
uhid7 at uhidev3 reportid 13: input=0, output=0, feature=4
uhid8 at uhidev3 reportid 16: input=0, output=0, feature=1
uhid9 at uhidev3 reportid 68: input=0, output=0, feature=256
ums1 at uhidev3 reportid 93: 0 buttons
wsmouse4 at ums1 mux 0
vscsi0 at root
scsibus2 at vscsi0: 256 targets
softraid0 at root
scsibus3 at softraid0: 256 targets
sd1 at scsibus3 targ 1 lun 0: <OPENBSD, SR CRYPTO, 006>
sd1: 97279MB, 512 bytes/sector, 199228912 sectors
root on sd1a (7f77a99182007587.a) swap on sd1b dump on sd1b
inteldrm0: 1920x1280, 32bpp
wsdisplay0 at inteldrm0 mux 1: console (std, vt100 emulation), using wskbd0
wskbd1: connecting to wsdisplay0
wsdisplay0: screen 1-5 added (std, vt100 emulation)
iwx0: hw rev 0x340, fw 77.30b1cbd8.0, address a4:b1:c1:30:3d:a6