tmux crash when renumber-windows and hook after-join-pane are set at the same time

classic Classic list List threaded Threaded
1 message Options
Reply | Threaded
Open this post in threaded view
|

tmux crash when renumber-windows and hook after-join-pane are set at the same time

Uwe Werler
>Synopsis: tmux crash when renumber-windows and hook after-join-pane are set at the same time
>Category: system
>Environment:
        System      : OpenBSD 6.0
        Details     : OpenBSD 6.0-current (GENERIC) #2201: Fri Aug 19 13:06:24 MDT 2016
                         [hidden email]:/usr/src/sys/arch/amd64/compile/GENERIC

        Architecture: OpenBSD.amd64
        Machine     : amd64
>Description:
        tmux crashes when tmux crash when 'renumber-windows' and hook 'after-join-pane' are set at the same time
  it's also the same when setting a hook 'afer-move-pane'
>How-To-Repeat:
        1. open tmux with standard config
  2. open an additional window
  3. set-option -g renumber-windows on
  4. set-hook -g 'after-join-pane' 'display-message XXX'
  5. from within the second window: join-pane -s %0
>Fix:
        set either option at the same time

backtrace:

DRSN31644872A:~$ gdb /usr/src/usr.bin/tmux/tmux tmux.core
GNU gdb 6.3
Copyright 2004 Free Software Foundation, Inc.
GDB is free software, covered by the GNU General Public License, and you are
welcome to change it and/or distribute copies of it under certain conditions.
Type "show copying" to see the conditions.
There is absolutely no warranty for GDB.  Type "show warranty" for details.
This GDB was configured as "amd64-unknown-openbsd6.0"...
Core was generated by `tmux'.
Program terminated with signal 10, Bus error.
Loaded symbols for /usr/src/usr.bin/tmux/tmux
Reading symbols from /usr/lib/libutil.so.12.1...done.
Loaded symbols for /usr/lib/libutil.so.12.1
Reading symbols from /usr/lib/libcurses.so.14.0...done.
Loaded symbols for /usr/lib/libcurses.so.14.0
Reading symbols from /usr/lib/libevent.so.4.1...done.
Loaded symbols for /usr/lib/libevent.so.4.1
Reading symbols from /usr/lib/libc.so.88.0...done.
Loaded symbols for /usr/lib/libc.so.88.0
Reading symbols from /usr/libexec/ld.so...done.
Loaded symbols for /usr/libexec/ld.so
#0  0x00001c7a8c749031 in window_printable_flags (s=Variable "s" is not available.
) at window.c:702
702             if (wl->window->flags & WINDOW_ZOOMED)
(gdb) backtrace
#0  0x00001c7a8c749031 in window_printable_flags (s=Variable "s" is not available.
) at window.c:702
#1  0x00001c7a8c71953e in format_defaults_winlink (ft=0x1c7cda80d680, s=0x1c7d58466200, wl=0x1c7c90c9f080) at format.c:1111
#2  0x00001c7a8c719b3e in format_defaults (ft=0x1c7cda80d680, c=Variable "c" is not available.
) at format.c:999
#3  0x00001c7a8c70bfda in cmd_run_shell_exec (self=Variable "self" is not available.
) at cmd-run-shell.c:96
#4  0x00001c7a8c714e92 in cmdq_continue (cmdq=0x1c7d38251800) at cmd-queue.c:234
#5  0x00001c7a8c71dc0e in hooks_wait (hooks=Variable "hooks" is not available.
) at hooks.c:224
#6  0x00001c7a8c714ebb in cmdq_continue (cmdq=0x1c7d01c91a00) at cmd-queue.c:238
#7  0x00001c7a8c730a19 in server_client_handle_key (c=0x1c7c90c9d000, key=Variable "key" is not available.
) at server-client.c:690
#8  0x00001c7a8c738f76 in tty_keys_next (tty=0x1c7c90c9d0e0) at tty-keys.c:653
#9  0x00001c7a8c73d8b0 in tty_read_callback (bufev=Variable "bufev" is not available.
) at tty.c:181
#10 0x00001c7d6eed80f8 in event_base_loop (base=0x1c7d56a46c00, flags=Variable "flags" is not available.
) at /usr/src/lib/libevent/event.c:350
#11 0x00001c7a8c72961a in proc_loop (tp=0x1c7c8de48e00, loopcb=0x1c7a8c732140 <server_loop>) at proc.c:219
#12 0x00001c7a8c73254a in server_start (base=Variable "base" is not available.
) at server.c:184
#13 0x00001c7a8c7043f0 in client_connect (base=0x1c7d56a46c00, path=0x1c7cfacbbc60 "/tmp/tmux-1000/SSH", start_server=1) at client.c:158
#14 0x00001c7a8c704524 in client_main (base=0x1c7d56a46c00, argc=6, argv=0x7f7ffffcc5d0, flags=Variable "flags" is not available.
) at client.c:269
#15 0x00001c7a8c7389ef in main (argc=6, argv=0x7f7ffffcc598) at tmux.c:332


dmesg:
OpenBSD 6.0-current (GENERIC) #2201: Fri Aug 19 13:06:24 MDT 2016
    [hidden email]:/usr/src/sys/arch/amd64/compile/GENERIC
real mem = 1056899072 (1007MB)
avail mem = 1020493824 (973MB)
mpath0 at root
scsibus0 at mpath0: 256 targets
mainbus0 at root
bios0 at mainbus0: SMBIOS rev. 2.5 @ 0xe1000 (10 entries)
bios0: vendor innotek GmbH version "VirtualBox" date 12/01/2006
bios0: innotek GmbH VirtualBox
acpi0 at bios0: rev 2
acpi0: sleep states S0 S5
acpi0: tables DSDT FACP APIC SSDT
acpi0: wakeup devices
acpitimer0 at acpi0: 3579545 Hz, 32 bits
acpimadt0 at acpi0 addr 0xfee00000: PC-AT compat
cpu0 at mainbus0: apid 0 (boot processor)
cpu0: Intel(R) Core(TM) i5-3380M CPU @ 2.90GHz, 2899.23 MHz
cpu0: FPU,VME,DE,PSE,TSC,MSR,PAE,MCE,CX8,APIC,SEP,MTRR,PGE,MCA,CMOV,PAT,PSE36,CFLUSH,MMX,FXSR,SSE,SSE2,SSE3,PCLMUL,MWAIT,SSSE3,CX16,SSE4.1,SSE4.2,POPCNT,AES,XSAVE,AVX,RDRAND,NXE,LONG,LAHF,ITSC
cpu0: 256KB 64b/line 8-way L2 cache
cpu0: smt 0, core 0, package 0
mtrr: CPU supports MTRRs but not enabled by BIOS
cpu0: apic clock running at 1000MHz
cpu0: mwait min=64, max=64
ioapic0 at mainbus0: apid 1 pa 0xfec00000, version 20, 24 pins
acpiprt0 at acpi0: bus 0 (PCI0)
acpicpu0 at acpi0: C1(@1 halt!)
"PNP0303" at acpi0 not configured
"PNP0F03" at acpi0 not configured
acpibat0 at acpi0: BAT0 model "1" serial 0 type VBOX oem "innotek"
acpiac0 at acpi0: AC unit online
acpivideo0 at acpi0: GFX0
pci0 at mainbus0 bus 0
pchb0 at pci0 dev 0 function 0 "Intel 82441FX" rev 0x02
pcib0 at pci0 dev 1 function 0 "Intel 82371SB ISA" rev 0x00
pciide0 at pci0 dev 1 function 1 "Intel 82371AB IDE" rev 0x01: DMA, channel 0 configured to compatibility, channel 1 configured to compatibility
wd0 at pciide0 channel 0 drive 0: <VBOX HARDDISK>
wd0: 128-sector PIO, LBA, 30783MB, 63044256 sectors
wd1 at pciide0 channel 0 drive 1: <VBOX HARDDISK>
wd1: 128-sector PIO, LBA, 16384MB, 33554432 sectors
wd0(pciide0:0:0): using PIO mode 4, Ultra-DMA mode 2
wd1(pciide0:0:1): using PIO mode 4, Ultra-DMA mode 2
atapiscsi0 at pciide0 channel 1 drive 0
scsibus1 at atapiscsi0: 2 targets
cd0 at scsibus1 targ 0 lun 0: <VBOX, CD-ROM, 1.0> ATAPI 5/cdrom removable
cd0(pciide0:1:0): using PIO mode 4, Ultra-DMA mode 2
vga1 at pci0 dev 2 function 0 "InnoTek VirtualBox Graphics Adapter" rev 0x00
wsdisplay0 at vga1 mux 1: console (80x25, vt100 emulation)
wsdisplay0: screen 1-5 added (80x25, vt100 emulation)
virtio0 at pci0 dev 3 function 0 "Qumranet Virtio Network" rev 0x00
vio0 at virtio0: address 08:00:27:d2:85:b6
virtio0: apic 1 int 19
"InnoTek VirtualBox Guest Service" rev 0x00 at pci0 dev 4 function 0 not configured
auich0 at pci0 dev 5 function 0 "Intel 82801AA AC97" rev 0x01: apic 1 int 21, ICH AC97
ac97: codec id 0x83847600 (SigmaTel STAC9700)
audio0 at auich0
ohci0 at pci0 dev 6 function 0 "Apple Intrepid USB" rev 0x00: apic 1 int 22, version 1.0
piixpm0 at pci0 dev 7 function 0 "Intel 82371AB Power" rev 0x08: apic 1 int 23
iic0 at piixpm0
virtio1 at pci0 dev 8 function 0 "Qumranet Virtio Network" rev 0x00
vio1 at virtio1: address 08:00:27:fe:05:ca
virtio1: apic 1 int 16
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, using wsdisplay0
pms0 at pckbc0 (aux slot)
wsmouse0 at pms0 mux 0
pcppi0 at isa0 port 0x61
spkr0 at pcppi0
usb0 at ohci0: USB revision 1.0
uhub0 at usb0 "Apple OHCI root hub" rev 1.00/1.00 addr 1
vscsi0 at root
scsibus2 at vscsi0: 256 targets
softraid0 at root
scsibus3 at softraid0: 256 targets
root on wd0a (e9eda1ca1f2676b8.a) swap on wd0b dump on wd0b

usbdevs:
Controller /dev/usb0:
addr 1: full speed, self powered, config 1, OHCI root hub(0x0000), Apple(0x106b), rev 1.00
 port 1 powered
 port 2 powered
 port 3 powered
 port 4 powered
 port 5 powered
 port 6 powered
 port 7 powered
 port 8 powered
 port 9 powered
 port 10 powered
 port 11 powered
 port 12 powered