tmux server crashes on attach-session -c <non-existent dir>

Previous Topic Next Topic
 
classic Classic list List threaded Threaded
3 messages Options
Reply | Threaded
Open this post in threaded view
|

tmux server crashes on attach-session -c <non-existent dir>

falsifian
>Synopsis: tmux server crashes on attach-session -c <non-existent dir>
>Category: user
>Environment:
        System      : OpenBSD 6.8
        Details     : OpenBSD 6.8-beta (GENERIC) #56: Wed Sep  2 10:34:44 MDT 2020
                         [hidden email]:/usr/src/sys/arch/amd64/compile/GENERIC

        Architecture: OpenBSD.amd64
        Machine     : amd64
>Description:
        In a tmux session, if I run
          :attach-session -c aoeu
        where "aoeu" does not exist, the tmux server often crashes.

        Observed on 6.7-stable and -current (snapshot installed within the past 24 hours).
>How-To-Repeat:
        1. Make sure you won't miss anything if your tmux server crashes.
        2. Start a new tmux session.
        3. Make sure there's no directory called "aoeu" in your working directory.
        4. Type (control-b):attach-session -c aoeu
           (I'm assuming control-b is your tmux prefix.)
        5. Repeat step 4 until the tmux server crashes. In my experience it takes less than 10 tries.
>Fix:
        Avoid running "attach-session -c" with a non-existent directory. Unfortunately, I often make mistakes.


dmesg:
OpenBSD 6.8-beta (GENERIC) #56: Wed Sep  2 10:34:44 MDT 2020
    [hidden email]:/usr/src/sys/arch/amd64/compile/GENERIC
real mem = 4278190080 (4080MB)
avail mem = 4133584896 (3942MB)
random: boothowto does not indicate good seed
mpath0 at root
scsibus0 at mpath0: 256 targets
mainbus0 at root
bios0 at mainbus0
acpi at bios0 not configured
cpu0 at mainbus0: (uniprocessor)
cpu0: AMD Phenom(tm) II X3 710 Processor, 2612.34 MHz, 10-04-02
cpu0: FPU,VME,DE,PSE,TSC,MSR,PAE,CX8,SEP,PGE,CMOV,PAT,PSE36,CFLUSH,MMX,FXSR,SSE,SSE2,SSE3,CX16,POPCNT,HV,NXE,MMXX,FFXSR,PAGE1GB,LONG,3DNOW2,3DNOW,LAHF,CMPLEG,EAPICSP,AMCR8,ABM,SSE4A,MASSE,3DNOWP,OSVW,IBS,SKINIT,ITSC
cpu0: 64KB 64b/line 2-way I-cache, 64KB 64b/line 2-way D-cache, 512KB 64b/line 16-way L2 cache, 6MB 64b/line 48-way L3 cache
cpu0: ITLB 32 4KB entries fully associative, 16 4MB entries fully associative
cpu0: DTLB 48 4KB entries fully associative, 48 4MB entries fully associative
cpu0: AMD erratum 721 detected and fixed
cpu0: smt 0, core 0, package 0
pvbus0 at mainbus0: OpenBSD
pvclock0 at pvbus0
pci0 at mainbus0 bus 0
pchb0 at pci0 dev 0 function 0 "OpenBSD VMM Host" rev 0x00
virtio0 at pci0 dev 1 function 0 "Qumranet Virtio RNG" rev 0x00
viornd0 at virtio0
virtio0: irq 3
virtio1 at pci0 dev 2 function 0 "Qumranet Virtio Network" rev 0x00
vio0 at virtio1: address fe:e1:bb:d1:64:0e
virtio1: irq 5
virtio2 at pci0 dev 3 function 0 "Qumranet Virtio Storage" rev 0x00
vioblk0 at virtio2
scsibus1 at vioblk0: 1 targets
sd0 at scsibus1 targ 0 lun 0: <VirtIO, Block Device, >
sd0: 32768MB, 512 bytes/sector, 67108864 sectors
virtio2: irq 6
virtio3 at pci0 dev 4 function 0 "OpenBSD VMM Control" rev 0x00
vmmci0 at virtio3
virtio3: irq 7
isa0 at mainbus0
isadma0 at isa0
com0 at isa0 port 0x3f8/8 irq 4: ns8250, no fifo
com0: console
vscsi0 at root
scsibus2 at vscsi0: 256 targets
softraid0 at root
scsibus3 at softraid0: 256 targets
root on sd0a (77826c84796f7df2.a) swap on sd0b dump on sd0b
WARNING: /mnt was not properly unmounted

usbdevs:
usbdevs: no USB controllers found

pcidump:
Domain /dev/pci0:
 0:0:0: OpenBSD VMM Host
        0x0000: Vendor ID: 0b5d, Product ID: 0666
        0x0004: Command: 0000, Status: 0000
        0x0008: Class: 06 Bridge, Subclass: 00 Host,
                Interface: 00, Revision: 00
        0x000c: BIST: 00, Header Type: 00, Latency Timer: 00,
                Cache Line Size: 00
        0x0010: BAR empty (00000000)
        0x0014: BAR empty (00000000)
        0x0018: BAR empty (00000000)
        0x001c: BAR empty (00000000)
        0x0020: BAR empty (00000000)
        0x0024: BAR empty (00000000)
        0x0028: Cardbus CIS: 00000000
        0x002c: Subsystem Vendor ID: 0b5d Product ID: 0000
        0x0030: Expansion ROM Base Address: 00000000
        0x0038: 00000000
        0x003c: Interrupt Pin: 00 Line: 00 Min Gnt: 00 Max Lat: 00
        0x0000: 06660b5d 00000000 06000000 00000000
        0x0010: 00000000 00000000 00000000 00000000
        0x0020: 00000000 00000000 00000000 00000b5d
        0x0030: 00000000 00000000 00000000 00000000
        0x0040: 00000000 00000000 00000000 00000000
        0x0050: 00000000 00000000 00000000 00000000
        0x0060: 00000000 00000000 00000000 00000000
        0x0070: 00000000 00000000 00000000 00000000
        0x0080: 00000000 00000000 00000000 00000000
        0x0090: 00000000 00000000 00000000 00000000
        0x00a0: 00000000 00000000 00000000 00000000
        0x00b0: 00000000 00000000 00000000 00000000
        0x00c0: 00000000 00000000 00000000 00000000
        0x00d0: 00000000 00000000 00000000 00000000
        0x00e0: 00000000 00000000 00000000 00000000
        0x00f0: 00000000 00000000 00000000 00000000
 0:1:0: Qumranet Virtio RNG
        0x0000: Vendor ID: 1af4, Product ID: 1005
        0x0004: Command: 0005, Status: 0000
        0x0008: Class: 08 System, Subclass: 80 Miscellaneous,
                Interface: 00, Revision: 00
        0x000c: BIST: 00, Header Type: 00, Latency Timer: 00,
                Cache Line Size: 00
        0x0010: BAR io addr: 0x00001000/0x1000
        0x0014: BAR empty (00000000)
        0x0018: BAR empty (00000000)
        0x001c: BAR empty (00000000)
        0x0020: BAR empty (00000000)
        0x0024: BAR empty (00000000)
        0x0028: Cardbus CIS: 00000000
        0x002c: Subsystem Vendor ID: 0b5d Product ID: 0004
        0x0030: Expansion ROM Base Address: 00000000
        0x0038: 00000000
        0x003c: Interrupt Pin: 01 Line: 03 Min Gnt: 00 Max Lat: 00
        0x0000: 10051af4 00000005 08800000 00000000
        0x0010: 00001001 00000000 00000000 00000000
        0x0020: 00000000 00000000 00000000 00040b5d
        0x0030: 00000000 00000000 00000000 00000103
        0x0040: 00000001 00000000 00000000 00000000
        0x0050: 00000010 00000000 00000000 00000000
        0x0060: 00000000 c0000000 f8f8e20d 0000000b
        0x0070: 00000000 00000000 00000000 00000000
        0x0080: 00000000 00000000 00000000 00000000
        0x0090: 00000000 00000000 00000000 00000000
        0x00a0: 00000000 00000000 00000000 00000000
        0x00b0: 00000000 00000000 00000000 00000000
        0x00c0: 00000000 00000000 00000000 00000000
        0x00d0: 00000000 00000000 00000000 00000000
        0x00e0: 00000000 00000000 00000000 00000000
        0x00f0: 00000000 00000000 00000000 00000000
 0:2:0: Qumranet Virtio Network
        0x0000: Vendor ID: 1af4, Product ID: 1000
        0x0004: Command: 0005, Status: 0000
        0x0008: Class: 08 System, Subclass: 80 Miscellaneous,
                Interface: 00, Revision: 00
        0x000c: BIST: 00, Header Type: 00, Latency Timer: 00,
                Cache Line Size: 00
        0x0010: BAR io addr: 0x00002000/0x1000
        0x0014: BAR empty (00000000)
        0x0018: BAR empty (00000000)
        0x001c: BAR empty (00000000)
        0x0020: BAR empty (00000000)
        0x0024: BAR empty (00000000)
        0x0028: Cardbus CIS: 00000000
        0x002c: Subsystem Vendor ID: 0b5d Product ID: 0001
        0x0030: Expansion ROM Base Address: 00000000
        0x0038: 00000000
        0x003c: Interrupt Pin: 01 Line: 05 Min Gnt: 00 Max Lat: 00
        0x0000: 10001af4 00000005 08800000 00000000
        0x0010: 00002001 00000000 00000000 00000000
        0x0020: 00000000 00000000 00000000 00010b5d
        0x0030: 00000000 00000000 00000000 00000105
        0x0040: 00000001 00000000 00000000 00000000
        0x0050: 00000010 00000000 00000000 00000000
        0x0060: 00000000 b0000000 f8f8e221 0000000b
        0x0070: 00000000 00000000 00000000 00000000
        0x0080: 00000000 00000000 00000000 00000000
        0x0090: 00000000 00000000 fbf43e6c 0000000b
        0x00a0: 00000000 00000000 00000000 00000000
        0x00b0: 00000000 00000000 00000000 00000000
        0x00c0: 00000000 00000000 00000000 00000000
        0x00d0: 00000000 00000000 00000000 00000000
        0x00e0: 00000000 00000000 00000000 00000000
        0x00f0: 00000000 00000000 00000000 00000000
 0:3:0: Qumranet Virtio Storage
        0x0000: Vendor ID: 1af4, Product ID: 1001
        0x0004: Command: 0005, Status: 0000
        0x0008: Class: 01 Mass Storage, Subclass: 00 SCSI,
                Interface: 00, Revision: 00
        0x000c: BIST: 00, Header Type: 00, Latency Timer: 00,
                Cache Line Size: 00
        0x0010: BAR io addr: 0x00003000/0x1000
        0x0014: BAR empty (00000000)
        0x0018: BAR empty (00000000)
        0x001c: BAR empty (00000000)
        0x0020: BAR empty (00000000)
        0x0024: BAR empty (00000000)
        0x0028: Cardbus CIS: 00000000
        0x002c: Subsystem Vendor ID: 0b5d Product ID: 0002
        0x0030: Expansion ROM Base Address: 00000000
        0x0038: 00000000
        0x003c: Interrupt Pin: 01 Line: 06 Min Gnt: 00 Max Lat: 00
        0x0000: 10011af4 00000005 01000000 00000000
        0x0010: 00003001 00000000 00000000 00000000
        0x0020: 00000000 00000000 00000000 00020b5d
        0x0030: 00000000 00000000 00000000 00000106
        0x0040: 00000001 00000000 00000000 00000000
        0x0050: 00000010 00000000 00000000 00000000
        0x0060: 00000000 70000000 f8f8e21a 0000000b
        0x0070: 00000000 00000000 00000000 00000000
        0x0080: 00000000 00000000 00000000 00000000
        0x0090: 00000000 00000000 fb717ce8 0000000b
        0x00a0: 00000000 00000000 00000000 00000000
        0x00b0: 00000000 00000000 00000000 00000000
        0x00c0: 00000000 00000000 00000000 00000000
        0x00d0: 00000000 00000000 00000000 00000000
        0x00e0: 00000000 00000000 00000000 00000000
        0x00f0: 00000000 00000000 00000000 00000000
 0:4:0: OpenBSD VMM Control
        0x0000: Vendor ID: 0b5d, Product ID: 0777
        0x0004: Command: 0005, Status: 0000
        0x0008: Class: 07 Communications, Subclass: 80 Miscellaneous,
                Interface: 00, Revision: 00
        0x000c: BIST: 00, Header Type: 00, Latency Timer: 00,
                Cache Line Size: 00
        0x0010: BAR io addr: 0x00004000/0x1000
        0x0014: BAR empty (00000000)
        0x0018: BAR empty (00000000)
        0x001c: BAR empty (00000000)
        0x0020: BAR empty (00000000)
        0x0024: BAR empty (00000000)
        0x0028: Cardbus CIS: 00000000
        0x002c: Subsystem Vendor ID: 0b5d Product ID: ffff
        0x0030: Expansion ROM Base Address: 00000000
        0x0038: 00000000
        0x003c: Interrupt Pin: 01 Line: 07 Min Gnt: 00 Max Lat: 00
        0x0000: 07770b5d 00000005 07800000 00000000
        0x0010: 00004001 00000000 00000000 00000000
        0x0020: 00000000 00000000 00000000 ffff0b5d
        0x0030: 00000000 00000000 00000000 00000107
        0x0040: 00000001 00000000 00000000 00000000
        0x0050: 00000010 00000000 00000000 00000000
        0x0060: 00000000 a0000000 f8f8e234 0000000b
        0x0070: 00000000 00000000 00000000 00000000
        0x0080: 00000000 00000000 00000000 00000000
        0x0090: 00000000 00000000 00000000 00000000
        0x00a0: 00000000 00000000 00000000 00000000
        0x00b0: 00000000 00000000 00000000 00000000
        0x00c0: 00000000 00000000 00000000 00000000
        0x00d0: 00000000 00000000 00000000 00000000
        0x00e0: 00000000 00000000 00000000 00000000
        0x00f0: 00000000 00000000 00000000 00000000

acpidump:

Reply | Threaded
Open this post in threaded view
|

Re: tmux server crashes on attach-session -c <non-existent dir>

Nicholas Marriott-2
This should be fixed by cmd-attach-session.c r1.85, please test.

Thanks


On Thu, Sep 03, 2020 at 01:01:41AM +0000, [hidden email] wrote:

> >Synopsis: tmux server crashes on attach-session -c <non-existent dir>
> >Category: user
> >Environment:
> System      : OpenBSD 6.8
> Details     : OpenBSD 6.8-beta (GENERIC) #56: Wed Sep  2 10:34:44 MDT 2020
> [hidden email]:/usr/src/sys/arch/amd64/compile/GENERIC
>
> Architecture: OpenBSD.amd64
> Machine     : amd64
> >Description:
> In a tmux session, if I run
>  :attach-session -c aoeu
> where "aoeu" does not exist, the tmux server often crashes.
>
> Observed on 6.7-stable and -current (snapshot installed within the past 24 hours).
> >How-To-Repeat:
> 1. Make sure you won't miss anything if your tmux server crashes.
> 2. Start a new tmux session.
> 3. Make sure there's no directory called "aoeu" in your working directory.
> 4. Type (control-b):attach-session -c aoeu
>   (I'm assuming control-b is your tmux prefix.)
> 5. Repeat step 4 until the tmux server crashes. In my experience it takes less than 10 tries.
> >Fix:
> Avoid running "attach-session -c" with a non-existent directory. Unfortunately, I often make mistakes.
>
>
> dmesg:
> OpenBSD 6.8-beta (GENERIC) #56: Wed Sep  2 10:34:44 MDT 2020
>     [hidden email]:/usr/src/sys/arch/amd64/compile/GENERIC
> real mem = 4278190080 (4080MB)
> avail mem = 4133584896 (3942MB)
> random: boothowto does not indicate good seed
> mpath0 at root
> scsibus0 at mpath0: 256 targets
> mainbus0 at root
> bios0 at mainbus0
> acpi at bios0 not configured
> cpu0 at mainbus0: (uniprocessor)
> cpu0: AMD Phenom(tm) II X3 710 Processor, 2612.34 MHz, 10-04-02
> cpu0: FPU,VME,DE,PSE,TSC,MSR,PAE,CX8,SEP,PGE,CMOV,PAT,PSE36,CFLUSH,MMX,FXSR,SSE,SSE2,SSE3,CX16,POPCNT,HV,NXE,MMXX,FFXSR,PAGE1GB,LONG,3DNOW2,3DNOW,LAHF,CMPLEG,EAPICSP,AMCR8,ABM,SSE4A,MASSE,3DNOWP,OSVW,IBS,SKINIT,ITSC
> cpu0: 64KB 64b/line 2-way I-cache, 64KB 64b/line 2-way D-cache, 512KB 64b/line 16-way L2 cache, 6MB 64b/line 48-way L3 cache
> cpu0: ITLB 32 4KB entries fully associative, 16 4MB entries fully associative
> cpu0: DTLB 48 4KB entries fully associative, 48 4MB entries fully associative
> cpu0: AMD erratum 721 detected and fixed
> cpu0: smt 0, core 0, package 0
> pvbus0 at mainbus0: OpenBSD
> pvclock0 at pvbus0
> pci0 at mainbus0 bus 0
> pchb0 at pci0 dev 0 function 0 "OpenBSD VMM Host" rev 0x00
> virtio0 at pci0 dev 1 function 0 "Qumranet Virtio RNG" rev 0x00
> viornd0 at virtio0
> virtio0: irq 3
> virtio1 at pci0 dev 2 function 0 "Qumranet Virtio Network" rev 0x00
> vio0 at virtio1: address fe:e1:bb:d1:64:0e
> virtio1: irq 5
> virtio2 at pci0 dev 3 function 0 "Qumranet Virtio Storage" rev 0x00
> vioblk0 at virtio2
> scsibus1 at vioblk0: 1 targets
> sd0 at scsibus1 targ 0 lun 0: <VirtIO, Block Device, >
> sd0: 32768MB, 512 bytes/sector, 67108864 sectors
> virtio2: irq 6
> virtio3 at pci0 dev 4 function 0 "OpenBSD VMM Control" rev 0x00
> vmmci0 at virtio3
> virtio3: irq 7
> isa0 at mainbus0
> isadma0 at isa0
> com0 at isa0 port 0x3f8/8 irq 4: ns8250, no fifo
> com0: console
> vscsi0 at root
> scsibus2 at vscsi0: 256 targets
> softraid0 at root
> scsibus3 at softraid0: 256 targets
> root on sd0a (77826c84796f7df2.a) swap on sd0b dump on sd0b
> WARNING: /mnt was not properly unmounted
>
> usbdevs:
> usbdevs: no USB controllers found
>
> pcidump:
> Domain /dev/pci0:
>  0:0:0: OpenBSD VMM Host
> 0x0000: Vendor ID: 0b5d, Product ID: 0666
> 0x0004: Command: 0000, Status: 0000
> 0x0008: Class: 06 Bridge, Subclass: 00 Host,
> Interface: 00, Revision: 00
> 0x000c: BIST: 00, Header Type: 00, Latency Timer: 00,
> Cache Line Size: 00
> 0x0010: BAR empty (00000000)
> 0x0014: BAR empty (00000000)
> 0x0018: BAR empty (00000000)
> 0x001c: BAR empty (00000000)
> 0x0020: BAR empty (00000000)
> 0x0024: BAR empty (00000000)
> 0x0028: Cardbus CIS: 00000000
> 0x002c: Subsystem Vendor ID: 0b5d Product ID: 0000
> 0x0030: Expansion ROM Base Address: 00000000
> 0x0038: 00000000
> 0x003c: Interrupt Pin: 00 Line: 00 Min Gnt: 00 Max Lat: 00
> 0x0000: 06660b5d 00000000 06000000 00000000
> 0x0010: 00000000 00000000 00000000 00000000
> 0x0020: 00000000 00000000 00000000 00000b5d
> 0x0030: 00000000 00000000 00000000 00000000
> 0x0040: 00000000 00000000 00000000 00000000
> 0x0050: 00000000 00000000 00000000 00000000
> 0x0060: 00000000 00000000 00000000 00000000
> 0x0070: 00000000 00000000 00000000 00000000
> 0x0080: 00000000 00000000 00000000 00000000
> 0x0090: 00000000 00000000 00000000 00000000
> 0x00a0: 00000000 00000000 00000000 00000000
> 0x00b0: 00000000 00000000 00000000 00000000
> 0x00c0: 00000000 00000000 00000000 00000000
> 0x00d0: 00000000 00000000 00000000 00000000
> 0x00e0: 00000000 00000000 00000000 00000000
> 0x00f0: 00000000 00000000 00000000 00000000
>  0:1:0: Qumranet Virtio RNG
> 0x0000: Vendor ID: 1af4, Product ID: 1005
> 0x0004: Command: 0005, Status: 0000
> 0x0008: Class: 08 System, Subclass: 80 Miscellaneous,
> Interface: 00, Revision: 00
> 0x000c: BIST: 00, Header Type: 00, Latency Timer: 00,
> Cache Line Size: 00
> 0x0010: BAR io addr: 0x00001000/0x1000
> 0x0014: BAR empty (00000000)
> 0x0018: BAR empty (00000000)
> 0x001c: BAR empty (00000000)
> 0x0020: BAR empty (00000000)
> 0x0024: BAR empty (00000000)
> 0x0028: Cardbus CIS: 00000000
> 0x002c: Subsystem Vendor ID: 0b5d Product ID: 0004
> 0x0030: Expansion ROM Base Address: 00000000
> 0x0038: 00000000
> 0x003c: Interrupt Pin: 01 Line: 03 Min Gnt: 00 Max Lat: 00
> 0x0000: 10051af4 00000005 08800000 00000000
> 0x0010: 00001001 00000000 00000000 00000000
> 0x0020: 00000000 00000000 00000000 00040b5d
> 0x0030: 00000000 00000000 00000000 00000103
> 0x0040: 00000001 00000000 00000000 00000000
> 0x0050: 00000010 00000000 00000000 00000000
> 0x0060: 00000000 c0000000 f8f8e20d 0000000b
> 0x0070: 00000000 00000000 00000000 00000000
> 0x0080: 00000000 00000000 00000000 00000000
> 0x0090: 00000000 00000000 00000000 00000000
> 0x00a0: 00000000 00000000 00000000 00000000
> 0x00b0: 00000000 00000000 00000000 00000000
> 0x00c0: 00000000 00000000 00000000 00000000
> 0x00d0: 00000000 00000000 00000000 00000000
> 0x00e0: 00000000 00000000 00000000 00000000
> 0x00f0: 00000000 00000000 00000000 00000000
>  0:2:0: Qumranet Virtio Network
> 0x0000: Vendor ID: 1af4, Product ID: 1000
> 0x0004: Command: 0005, Status: 0000
> 0x0008: Class: 08 System, Subclass: 80 Miscellaneous,
> Interface: 00, Revision: 00
> 0x000c: BIST: 00, Header Type: 00, Latency Timer: 00,
> Cache Line Size: 00
> 0x0010: BAR io addr: 0x00002000/0x1000
> 0x0014: BAR empty (00000000)
> 0x0018: BAR empty (00000000)
> 0x001c: BAR empty (00000000)
> 0x0020: BAR empty (00000000)
> 0x0024: BAR empty (00000000)
> 0x0028: Cardbus CIS: 00000000
> 0x002c: Subsystem Vendor ID: 0b5d Product ID: 0001
> 0x0030: Expansion ROM Base Address: 00000000
> 0x0038: 00000000
> 0x003c: Interrupt Pin: 01 Line: 05 Min Gnt: 00 Max Lat: 00
> 0x0000: 10001af4 00000005 08800000 00000000
> 0x0010: 00002001 00000000 00000000 00000000
> 0x0020: 00000000 00000000 00000000 00010b5d
> 0x0030: 00000000 00000000 00000000 00000105
> 0x0040: 00000001 00000000 00000000 00000000
> 0x0050: 00000010 00000000 00000000 00000000
> 0x0060: 00000000 b0000000 f8f8e221 0000000b
> 0x0070: 00000000 00000000 00000000 00000000
> 0x0080: 00000000 00000000 00000000 00000000
> 0x0090: 00000000 00000000 fbf43e6c 0000000b
> 0x00a0: 00000000 00000000 00000000 00000000
> 0x00b0: 00000000 00000000 00000000 00000000
> 0x00c0: 00000000 00000000 00000000 00000000
> 0x00d0: 00000000 00000000 00000000 00000000
> 0x00e0: 00000000 00000000 00000000 00000000
> 0x00f0: 00000000 00000000 00000000 00000000
>  0:3:0: Qumranet Virtio Storage
> 0x0000: Vendor ID: 1af4, Product ID: 1001
> 0x0004: Command: 0005, Status: 0000
> 0x0008: Class: 01 Mass Storage, Subclass: 00 SCSI,
> Interface: 00, Revision: 00
> 0x000c: BIST: 00, Header Type: 00, Latency Timer: 00,
> Cache Line Size: 00
> 0x0010: BAR io addr: 0x00003000/0x1000
> 0x0014: BAR empty (00000000)
> 0x0018: BAR empty (00000000)
> 0x001c: BAR empty (00000000)
> 0x0020: BAR empty (00000000)
> 0x0024: BAR empty (00000000)
> 0x0028: Cardbus CIS: 00000000
> 0x002c: Subsystem Vendor ID: 0b5d Product ID: 0002
> 0x0030: Expansion ROM Base Address: 00000000
> 0x0038: 00000000
> 0x003c: Interrupt Pin: 01 Line: 06 Min Gnt: 00 Max Lat: 00
> 0x0000: 10011af4 00000005 01000000 00000000
> 0x0010: 00003001 00000000 00000000 00000000
> 0x0020: 00000000 00000000 00000000 00020b5d
> 0x0030: 00000000 00000000 00000000 00000106
> 0x0040: 00000001 00000000 00000000 00000000
> 0x0050: 00000010 00000000 00000000 00000000
> 0x0060: 00000000 70000000 f8f8e21a 0000000b
> 0x0070: 00000000 00000000 00000000 00000000
> 0x0080: 00000000 00000000 00000000 00000000
> 0x0090: 00000000 00000000 fb717ce8 0000000b
> 0x00a0: 00000000 00000000 00000000 00000000
> 0x00b0: 00000000 00000000 00000000 00000000
> 0x00c0: 00000000 00000000 00000000 00000000
> 0x00d0: 00000000 00000000 00000000 00000000
> 0x00e0: 00000000 00000000 00000000 00000000
> 0x00f0: 00000000 00000000 00000000 00000000
>  0:4:0: OpenBSD VMM Control
> 0x0000: Vendor ID: 0b5d, Product ID: 0777
> 0x0004: Command: 0005, Status: 0000
> 0x0008: Class: 07 Communications, Subclass: 80 Miscellaneous,
> Interface: 00, Revision: 00
> 0x000c: BIST: 00, Header Type: 00, Latency Timer: 00,
> Cache Line Size: 00
> 0x0010: BAR io addr: 0x00004000/0x1000
> 0x0014: BAR empty (00000000)
> 0x0018: BAR empty (00000000)
> 0x001c: BAR empty (00000000)
> 0x0020: BAR empty (00000000)
> 0x0024: BAR empty (00000000)
> 0x0028: Cardbus CIS: 00000000
> 0x002c: Subsystem Vendor ID: 0b5d Product ID: ffff
> 0x0030: Expansion ROM Base Address: 00000000
> 0x0038: 00000000
> 0x003c: Interrupt Pin: 01 Line: 07 Min Gnt: 00 Max Lat: 00
> 0x0000: 07770b5d 00000005 07800000 00000000
> 0x0010: 00004001 00000000 00000000 00000000
> 0x0020: 00000000 00000000 00000000 ffff0b5d
> 0x0030: 00000000 00000000 00000000 00000107
> 0x0040: 00000001 00000000 00000000 00000000
> 0x0050: 00000010 00000000 00000000 00000000
> 0x0060: 00000000 a0000000 f8f8e234 0000000b
> 0x0070: 00000000 00000000 00000000 00000000
> 0x0080: 00000000 00000000 00000000 00000000
> 0x0090: 00000000 00000000 00000000 00000000
> 0x00a0: 00000000 00000000 00000000 00000000
> 0x00b0: 00000000 00000000 00000000 00000000
> 0x00c0: 00000000 00000000 00000000 00000000
> 0x00d0: 00000000 00000000 00000000 00000000
> 0x00e0: 00000000 00000000 00000000 00000000
> 0x00f0: 00000000 00000000 00000000 00000000
>
> acpidump:
>

Reply | Threaded
Open this post in threaded view
|

Re: tmux server crashes on attach-session -c <non-existent dir>

falsifian
Thanks, that seems to fix it.

FWIW, backporting your change from r1.85 onto stable also fixed it for me.

On 2020-09-03 12:48, Nicholas Marriott wrote:

> This should be fixed by cmd-attach-session.c r1.85, please test.
>
> Thanks
>
>
> On Thu, Sep 03, 2020 at 01:01:41AM +0000, [hidden email] wrote:
>>> Synopsis: tmux server crashes on attach-session -c <non-existent dir>
>>> Category: user
>>> Environment:
>> System      : OpenBSD 6.8
>> Details     : OpenBSD 6.8-beta (GENERIC) #56: Wed Sep  2 10:34:44 MDT 2020
>> [hidden email]:/usr/src/sys/arch/amd64/compile/GENERIC
>>
>> Architecture: OpenBSD.amd64
>> Machine     : amd64
>>> Description:
>> In a tmux session, if I run
>>  :attach-session -c aoeu
>> where "aoeu" does not exist, the tmux server often crashes.
>>
>> Observed on 6.7-stable and -current (snapshot installed within the past 24 hours).
>>> How-To-Repeat:
>> 1. Make sure you won't miss anything if your tmux server crashes.
>> 2. Start a new tmux session.
>> 3. Make sure there's no directory called "aoeu" in your working directory.
>> 4. Type (control-b):attach-session -c aoeu
>>   (I'm assuming control-b is your tmux prefix.)
>> 5. Repeat step 4 until the tmux server crashes. In my experience it takes less than 10 tries.
>>> Fix:
>> Avoid running "attach-session -c" with a non-existent directory. Unfortunately, I often make mistakes.
>>
>>
>> dmesg:
>> OpenBSD 6.8-beta (GENERIC) #56: Wed Sep  2 10:34:44 MDT 2020
>>     [hidden email]:/usr/src/sys/arch/amd64/compile/GENERIC
>> real mem = 4278190080 (4080MB)
>> avail mem = 4133584896 (3942MB)
>> random: boothowto does not indicate good seed
>> mpath0 at root
>> scsibus0 at mpath0: 256 targets
>> mainbus0 at root
>> bios0 at mainbus0
>> acpi at bios0 not configured
>> cpu0 at mainbus0: (uniprocessor)
>> cpu0: AMD Phenom(tm) II X3 710 Processor, 2612.34 MHz, 10-04-02
>> cpu0: FPU,VME,DE,PSE,TSC,MSR,PAE,CX8,SEP,PGE,CMOV,PAT,PSE36,CFLUSH,MMX,FXSR,SSE,SSE2,SSE3,CX16,POPCNT,HV,NXE,MMXX,FFXSR,PAGE1GB,LONG,3DNOW2,3DNOW,LAHF,CMPLEG,EAPICSP,AMCR8,ABM,SSE4A,MASSE,3DNOWP,OSVW,IBS,SKINIT,ITSC
>> cpu0: 64KB 64b/line 2-way I-cache, 64KB 64b/line 2-way D-cache, 512KB 64b/line 16-way L2 cache, 6MB 64b/line 48-way L3 cache
>> cpu0: ITLB 32 4KB entries fully associative, 16 4MB entries fully associative
>> cpu0: DTLB 48 4KB entries fully associative, 48 4MB entries fully associative
>> cpu0: AMD erratum 721 detected and fixed
>> cpu0: smt 0, core 0, package 0
>> pvbus0 at mainbus0: OpenBSD
>> pvclock0 at pvbus0
>> pci0 at mainbus0 bus 0
>> pchb0 at pci0 dev 0 function 0 "OpenBSD VMM Host" rev 0x00
>> virtio0 at pci0 dev 1 function 0 "Qumranet Virtio RNG" rev 0x00
>> viornd0 at virtio0
>> virtio0: irq 3
>> virtio1 at pci0 dev 2 function 0 "Qumranet Virtio Network" rev 0x00
>> vio0 at virtio1: address fe:e1:bb:d1:64:0e
>> virtio1: irq 5
>> virtio2 at pci0 dev 3 function 0 "Qumranet Virtio Storage" rev 0x00
>> vioblk0 at virtio2
>> scsibus1 at vioblk0: 1 targets
>> sd0 at scsibus1 targ 0 lun 0: <VirtIO, Block Device, >
>> sd0: 32768MB, 512 bytes/sector, 67108864 sectors
>> virtio2: irq 6
>> virtio3 at pci0 dev 4 function 0 "OpenBSD VMM Control" rev 0x00
>> vmmci0 at virtio3
>> virtio3: irq 7
>> isa0 at mainbus0
>> isadma0 at isa0
>> com0 at isa0 port 0x3f8/8 irq 4: ns8250, no fifo
>> com0: console
>> vscsi0 at root
>> scsibus2 at vscsi0: 256 targets
>> softraid0 at root
>> scsibus3 at softraid0: 256 targets
>> root on sd0a (77826c84796f7df2.a) swap on sd0b dump on sd0b
>> WARNING: /mnt was not properly unmounted
>>
>> usbdevs:
>> usbdevs: no USB controllers found
>>
>> pcidump:
>> Domain /dev/pci0:
>>  0:0:0: OpenBSD VMM Host
>> 0x0000: Vendor ID: 0b5d, Product ID: 0666
>> 0x0004: Command: 0000, Status: 0000
>> 0x0008: Class: 06 Bridge, Subclass: 00 Host,
>> Interface: 00, Revision: 00
>> 0x000c: BIST: 00, Header Type: 00, Latency Timer: 00,
>> Cache Line Size: 00
>> 0x0010: BAR empty (00000000)
>> 0x0014: BAR empty (00000000)
>> 0x0018: BAR empty (00000000)
>> 0x001c: BAR empty (00000000)
>> 0x0020: BAR empty (00000000)
>> 0x0024: BAR empty (00000000)
>> 0x0028: Cardbus CIS: 00000000
>> 0x002c: Subsystem Vendor ID: 0b5d Product ID: 0000
>> 0x0030: Expansion ROM Base Address: 00000000
>> 0x0038: 00000000
>> 0x003c: Interrupt Pin: 00 Line: 00 Min Gnt: 00 Max Lat: 00
>> 0x0000: 06660b5d 00000000 06000000 00000000
>> 0x0010: 00000000 00000000 00000000 00000000
>> 0x0020: 00000000 00000000 00000000 00000b5d
>> 0x0030: 00000000 00000000 00000000 00000000
>> 0x0040: 00000000 00000000 00000000 00000000
>> 0x0050: 00000000 00000000 00000000 00000000
>> 0x0060: 00000000 00000000 00000000 00000000
>> 0x0070: 00000000 00000000 00000000 00000000
>> 0x0080: 00000000 00000000 00000000 00000000
>> 0x0090: 00000000 00000000 00000000 00000000
>> 0x00a0: 00000000 00000000 00000000 00000000
>> 0x00b0: 00000000 00000000 00000000 00000000
>> 0x00c0: 00000000 00000000 00000000 00000000
>> 0x00d0: 00000000 00000000 00000000 00000000
>> 0x00e0: 00000000 00000000 00000000 00000000
>> 0x00f0: 00000000 00000000 00000000 00000000
>>  0:1:0: Qumranet Virtio RNG
>> 0x0000: Vendor ID: 1af4, Product ID: 1005
>> 0x0004: Command: 0005, Status: 0000
>> 0x0008: Class: 08 System, Subclass: 80 Miscellaneous,
>> Interface: 00, Revision: 00
>> 0x000c: BIST: 00, Header Type: 00, Latency Timer: 00,
>> Cache Line Size: 00
>> 0x0010: BAR io addr: 0x00001000/0x1000
>> 0x0014: BAR empty (00000000)
>> 0x0018: BAR empty (00000000)
>> 0x001c: BAR empty (00000000)
>> 0x0020: BAR empty (00000000)
>> 0x0024: BAR empty (00000000)
>> 0x0028: Cardbus CIS: 00000000
>> 0x002c: Subsystem Vendor ID: 0b5d Product ID: 0004
>> 0x0030: Expansion ROM Base Address: 00000000
>> 0x0038: 00000000
>> 0x003c: Interrupt Pin: 01 Line: 03 Min Gnt: 00 Max Lat: 00
>> 0x0000: 10051af4 00000005 08800000 00000000
>> 0x0010: 00001001 00000000 00000000 00000000
>> 0x0020: 00000000 00000000 00000000 00040b5d
>> 0x0030: 00000000 00000000 00000000 00000103
>> 0x0040: 00000001 00000000 00000000 00000000
>> 0x0050: 00000010 00000000 00000000 00000000
>> 0x0060: 00000000 c0000000 f8f8e20d 0000000b
>> 0x0070: 00000000 00000000 00000000 00000000
>> 0x0080: 00000000 00000000 00000000 00000000
>> 0x0090: 00000000 00000000 00000000 00000000
>> 0x00a0: 00000000 00000000 00000000 00000000
>> 0x00b0: 00000000 00000000 00000000 00000000
>> 0x00c0: 00000000 00000000 00000000 00000000
>> 0x00d0: 00000000 00000000 00000000 00000000
>> 0x00e0: 00000000 00000000 00000000 00000000
>> 0x00f0: 00000000 00000000 00000000 00000000
>>  0:2:0: Qumranet Virtio Network
>> 0x0000: Vendor ID: 1af4, Product ID: 1000
>> 0x0004: Command: 0005, Status: 0000
>> 0x0008: Class: 08 System, Subclass: 80 Miscellaneous,
>> Interface: 00, Revision: 00
>> 0x000c: BIST: 00, Header Type: 00, Latency Timer: 00,
>> Cache Line Size: 00
>> 0x0010: BAR io addr: 0x00002000/0x1000
>> 0x0014: BAR empty (00000000)
>> 0x0018: BAR empty (00000000)
>> 0x001c: BAR empty (00000000)
>> 0x0020: BAR empty (00000000)
>> 0x0024: BAR empty (00000000)
>> 0x0028: Cardbus CIS: 00000000
>> 0x002c: Subsystem Vendor ID: 0b5d Product ID: 0001
>> 0x0030: Expansion ROM Base Address: 00000000
>> 0x0038: 00000000
>> 0x003c: Interrupt Pin: 01 Line: 05 Min Gnt: 00 Max Lat: 00
>> 0x0000: 10001af4 00000005 08800000 00000000
>> 0x0010: 00002001 00000000 00000000 00000000
>> 0x0020: 00000000 00000000 00000000 00010b5d
>> 0x0030: 00000000 00000000 00000000 00000105
>> 0x0040: 00000001 00000000 00000000 00000000
>> 0x0050: 00000010 00000000 00000000 00000000
>> 0x0060: 00000000 b0000000 f8f8e221 0000000b
>> 0x0070: 00000000 00000000 00000000 00000000
>> 0x0080: 00000000 00000000 00000000 00000000
>> 0x0090: 00000000 00000000 fbf43e6c 0000000b
>> 0x00a0: 00000000 00000000 00000000 00000000
>> 0x00b0: 00000000 00000000 00000000 00000000
>> 0x00c0: 00000000 00000000 00000000 00000000
>> 0x00d0: 00000000 00000000 00000000 00000000
>> 0x00e0: 00000000 00000000 00000000 00000000
>> 0x00f0: 00000000 00000000 00000000 00000000
>>  0:3:0: Qumranet Virtio Storage
>> 0x0000: Vendor ID: 1af4, Product ID: 1001
>> 0x0004: Command: 0005, Status: 0000
>> 0x0008: Class: 01 Mass Storage, Subclass: 00 SCSI,
>> Interface: 00, Revision: 00
>> 0x000c: BIST: 00, Header Type: 00, Latency Timer: 00,
>> Cache Line Size: 00
>> 0x0010: BAR io addr: 0x00003000/0x1000
>> 0x0014: BAR empty (00000000)
>> 0x0018: BAR empty (00000000)
>> 0x001c: BAR empty (00000000)
>> 0x0020: BAR empty (00000000)
>> 0x0024: BAR empty (00000000)
>> 0x0028: Cardbus CIS: 00000000
>> 0x002c: Subsystem Vendor ID: 0b5d Product ID: 0002
>> 0x0030: Expansion ROM Base Address: 00000000
>> 0x0038: 00000000
>> 0x003c: Interrupt Pin: 01 Line: 06 Min Gnt: 00 Max Lat: 00
>> 0x0000: 10011af4 00000005 01000000 00000000
>> 0x0010: 00003001 00000000 00000000 00000000
>> 0x0020: 00000000 00000000 00000000 00020b5d
>> 0x0030: 00000000 00000000 00000000 00000106
>> 0x0040: 00000001 00000000 00000000 00000000
>> 0x0050: 00000010 00000000 00000000 00000000
>> 0x0060: 00000000 70000000 f8f8e21a 0000000b
>> 0x0070: 00000000 00000000 00000000 00000000
>> 0x0080: 00000000 00000000 00000000 00000000
>> 0x0090: 00000000 00000000 fb717ce8 0000000b
>> 0x00a0: 00000000 00000000 00000000 00000000
>> 0x00b0: 00000000 00000000 00000000 00000000
>> 0x00c0: 00000000 00000000 00000000 00000000
>> 0x00d0: 00000000 00000000 00000000 00000000
>> 0x00e0: 00000000 00000000 00000000 00000000
>> 0x00f0: 00000000 00000000 00000000 00000000
>>  0:4:0: OpenBSD VMM Control
>> 0x0000: Vendor ID: 0b5d, Product ID: 0777
>> 0x0004: Command: 0005, Status: 0000
>> 0x0008: Class: 07 Communications, Subclass: 80 Miscellaneous,
>> Interface: 00, Revision: 00
>> 0x000c: BIST: 00, Header Type: 00, Latency Timer: 00,
>> Cache Line Size: 00
>> 0x0010: BAR io addr: 0x00004000/0x1000
>> 0x0014: BAR empty (00000000)
>> 0x0018: BAR empty (00000000)
>> 0x001c: BAR empty (00000000)
>> 0x0020: BAR empty (00000000)
>> 0x0024: BAR empty (00000000)
>> 0x0028: Cardbus CIS: 00000000
>> 0x002c: Subsystem Vendor ID: 0b5d Product ID: ffff
>> 0x0030: Expansion ROM Base Address: 00000000
>> 0x0038: 00000000
>> 0x003c: Interrupt Pin: 01 Line: 07 Min Gnt: 00 Max Lat: 00
>> 0x0000: 07770b5d 00000005 07800000 00000000
>> 0x0010: 00004001 00000000 00000000 00000000
>> 0x0020: 00000000 00000000 00000000 ffff0b5d
>> 0x0030: 00000000 00000000 00000000 00000107
>> 0x0040: 00000001 00000000 00000000 00000000
>> 0x0050: 00000010 00000000 00000000 00000000
>> 0x0060: 00000000 a0000000 f8f8e234 0000000b
>> 0x0070: 00000000 00000000 00000000 00000000
>> 0x0080: 00000000 00000000 00000000 00000000
>> 0x0090: 00000000 00000000 00000000 00000000
>> 0x00a0: 00000000 00000000 00000000 00000000
>> 0x00b0: 00000000 00000000 00000000 00000000
>> 0x00c0: 00000000 00000000 00000000 00000000
>> 0x00d0: 00000000 00000000 00000000 00000000
>> 0x00e0: 00000000 00000000 00000000 00000000
>> 0x00f0: 00000000 00000000 00000000 00000000
>>
>> acpidump:

--
James