Hi,

running tail -f on a file and then pressing Ctrl-4 while it waits for data
results in a crash:

# tail -f /var/log/messages
Nov 28 21:51:20 fw-ipv6onlyorg last message repeated 2 times
Nov 28 21:51:55 fw-ipv6onlyorg bgpd[11379]: nexthop 80.249.208.217 now valid: 
via 10.10.1.1
^\Quit (core dumped) 


bt on the core file shows this:

(gdb) bt
#0  0x0000116a463efbfa in kevent () at <stdin>:2
#1  0x00001167c26021df in forward (tf=0x116a33e57400, nfiles=1,
style=RLINES, origoff=10)
    at /usr/src/usr.bin/tail/forward.c:191
#2  0x00001167c26040b8 in main (argc=870675600, argv=Variable "argv" is not
available.
) at /usr/src/usr.bin/tail/tail.c:167

i can reproduce this on any version between 5.7 and now, on amd64.

-- 

OpenBSD 5.8-current (GENERIC.MP) #168: Sat Nov 28 15:35:15 CET 2015
    ben...@fw-ipv6onlyorg.adns.de:/usr/src/sys/arch/amd64/compile/GENERIC.MP
real mem = 8572895232 (8175MB)
avail mem = 8308957184 (7924MB)
mpath0 at root
scsibus0 at mpath0: 256 targets
mainbus0 at root
bios0 at mainbus0: SMBIOS rev. 2.5 @ 0xfcd20 (81 entries)
bios0: vendor American Megatrends Inc. version "'V1.00.B20'" date 05/19/2009
bios0: empty empty
acpi0 at bios0: rev 0
acpi0: sleep states S0 S1 S4 S5
acpi0: tables DSDT FACP APIC MCFG OEMB HPET
acpi0: wakeup devices GPE_(S4) P0P1(S4) PS2K(S4) PS2M(S4) USB0(S4) USB1(S4) 
USB2(S4) USB5(S4) EUSB(S4) USB3(S4) USB4(S4) USBE(S4) P0P4(S4) P0P5(S4) 
P0P6(S4) P0P7(S4) [...]
acpitimer0 at acpi0: 3579545 Hz, 24 bits
acpimadt0 at acpi0 addr 0xfee00000: PC-AT compat
cpu0 at mainbus0: apid 0 (boot processor)
cpu0: Intel(R) Xeon(R) CPU E5405 @ 2.00GHz, 1995.30 MHz
cpu0: 
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,SSE3,DTES64,MWAIT,DS-CPL,VMX,TM2,SSSE3,CX16,xTPR,PDCM,DCA,SSE4.1,XSAVE,NXE,LONG,LAHF,PERF,SENSOR
cpu0: 6MB 64b/line 16-way L2 cache
cpu0: smt 0, core 0, package 0
mtrr: Pentium Pro MTRR support, 8 var ranges, 88 fixed ranges
cpu0: apic clock running at 332MHz
cpu0: mwait min=64, max=64, C-substates=0.2.2.2, IBE
cpu1 at mainbus0: apid 1 (application processor)
cpu1: Intel(R) Xeon(R) CPU E5405 @ 2.00GHz, 1995.01 MHz
cpu1: 
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,SSE3,DTES64,MWAIT,DS-CPL,VMX,TM2,SSSE3,CX16,xTPR,PDCM,DCA,SSE4.1,XSAVE,NXE,LONG,LAHF,PERF,SENSOR
cpu1: 6MB 64b/line 16-way L2 cache
cpu1: smt 0, core 1, package 0
cpu2 at mainbus0: apid 2 (application processor)
cpu2: Intel(R) Xeon(R) CPU E5405 @ 2.00GHz, 1995.01 MHz
cpu2: 
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,SSE3,DTES64,MWAIT,DS-CPL,VMX,TM2,SSSE3,CX16,xTPR,PDCM,DCA,SSE4.1,XSAVE,NXE,LONG,LAHF,PERF,SENSOR
cpu2: 6MB 64b/line 16-way L2 cache
cpu2: smt 0, core 2, package 0
cpu3 at mainbus0: apid 3 (application processor)
cpu3: Intel(R) Xeon(R) CPU E5405 @ 2.00GHz, 1995.01 MHz
cpu3: 
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,SSE3,DTES64,MWAIT,DS-CPL,VMX,TM2,SSSE3,CX16,xTPR,PDCM,DCA,SSE4.1,XSAVE,NXE,LONG,LAHF,PERF,SENSOR
cpu3: 6MB 64b/line 16-way L2 cache
cpu3: smt 0, core 3, package 0
ioapic0 at mainbus0: apid 4 pa 0xfec00000, version 20, 24 pins
acpimcfg0 at acpi0 addr 0xe0000000, bus 0-255
acpihpet0 at acpi0: 14318179 Hz
acpiprt0 at acpi0: bus 0 (PCI0)
acpiprt1 at acpi0: bus 7 (NPE2)
acpiprt2 at acpi0: bus 5 (NPE4)
acpiprt3 at acpi0: bus 1 (P0P1)
acpicpu0 at acpi0: C1(@1 halt!)
acpicpu1 at acpi0: C1(@1 halt!)
acpicpu2 at acpi0: C1(@1 halt!)
acpicpu3 at acpi0: C1(@1 halt!)
acpibtn0 at acpi0: SLPB
acpibtn1 at acpi0: PWRB
ipmi at mainbus0 not configured
pci0 at mainbus0 bus 0
pchb0 at pci0 dev 0 function 0 "Intel 5100 Host" rev 0x90
ppb0 at pci0 dev 2 function 0 "Intel 5100 PCIE" rev 0x90
pci1 at ppb0 bus 7
em0 at pci1 dev 0 function 0 "Intel 82571EB" rev 0x06: apic 4 int 16, address 
00:e0:81:b7:64:d6
em1 at pci1 dev 0 function 1 "Intel 82571EB" rev 0x06: apic 4 int 17, address 
00:e0:81:b7:64:d7
ppb1 at pci0 dev 3 function 0 "Intel 5100 PCIE" rev 0x90
pci2 at ppb1 bus 6
ppb2 at pci0 dev 4 function 0 "Intel 5100 PCIE" rev 0x90: msi
pci3 at ppb2 bus 5
ppb3 at pci0 dev 5 function 0 "Intel 5100 PCIE" rev 0x90
pci4 at ppb3 bus 4
ppb4 at pci0 dev 6 function 0 "Intel 5100 PCIE" rev 0x90
pci5 at ppb4 bus 3
ppb5 at pci0 dev 7 function 0 "Intel 5100 PCIE" rev 0x90
pci6 at ppb5 bus 2
"Intel I/OAT SCNB" rev 0x90 at pci0 dev 8 function 0 not configured
pchb1 at pci0 dev 16 function 0 "Intel 5100 FSB" rev 0x90
pchb2 at pci0 dev 16 function 1 "Intel 5100 FSB" rev 0x90
pchb3 at pci0 dev 16 function 2 "Intel 5100 FSB" rev 0x90
pchb4 at pci0 dev 17 function 0 "Intel 5100 Reserved" rev 0x90
pchb5 at pci0 dev 19 function 0 "Intel 5100 Reserved" rev 0x90
pchb6 at pci0 dev 21 function 0 "Intel 5100 DDR" rev 0x90
pchb7 at pci0 dev 22 function 0 "Intel 5100 DDR" rev 0x90
uhci0 at pci0 dev 26 function 0 "Intel 82801I USB" rev 0x02: apic 4 int 16
uhci1 at pci0 dev 26 function 1 "Intel 82801I USB" rev 0x02: apic 4 int 21
ehci0 at pci0 dev 26 function 7 "Intel 82801I USB" rev 0x02: apic 4 int 18
usb0 at ehci0: USB revision 2.0
uhub0 at usb0 "Intel EHCI root hub" rev 2.00/1.00 addr 1
uhci2 at pci0 dev 29 function 0 "Intel 82801I USB" rev 0x02: apic 4 int 23
uhci3 at pci0 dev 29 function 1 "Intel 82801I USB" rev 0x02: apic 4 int 19
uhci4 at pci0 dev 29 function 2 "Intel 82801I USB" rev 0x02: apic 4 int 18
uhci5 at pci0 dev 29 function 3 "Intel 82801I USB" rev 0x02: apic 4 int 16
ehci1 at pci0 dev 29 function 7 "Intel 82801I USB" rev 0x02: apic 4 int 23
usb1 at ehci1: USB revision 2.0
uhub1 at usb1 "Intel EHCI root hub" rev 2.00/1.00 addr 1
ppb6 at pci0 dev 30 function 0 "Intel 82801BA Hub-to-PCI" rev 0x92
pci7 at ppb6 bus 1
vga1 at pci7 dev 0 function 0 "XGI Technology Volari Z7" rev 0x00
wsdisplay0 at vga1 mux 1: console (80x25, vt100 emulation)
wsdisplay0: screen 1-5 added (80x25, vt100 emulation)
pcib0 at pci0 dev 31 function 0 "Intel 82801IR LPC" rev 0x02
ahci0 at pci0 dev 31 function 2 "Intel 82801I AHCI" rev 0x02: msi, AHCI 1.2
ahci0: port 0: 3.0Gb/s
ahci0: port 1: 3.0Gb/s
scsibus1 at ahci0: 32 targets
sd0 at scsibus1 targ 0 lun 0: <ATA, FUJITSU MHZ2250B, 0000> SCSI3 0/direct 
fixed naa.500000e0440400ef
sd0: 238475MB, 512 bytes/sector, 488397168 sectors
sd1 at scsibus1 targ 1 lun 0: <ATA, FUJITSU MHZ2250B, 0000> SCSI3 0/direct 
fixed naa.500000e044039824
sd1: 238475MB, 512 bytes/sector, 488397168 sectors
ichiic0 at pci0 dev 31 function 3 "Intel 82801I SMBus" rev 0x02: apic 4 int 18
iic0 at ichiic0
iic0: addr 0x1e 00=f6 02=f0 03=ff 04=f6 06=f0 07=ff 08=f6 0a=f0 0b=ff 0c=f6 
0e=f0 0f=ff 10=f6 12=f0 13=ff 14=f6 16=f0 17=ff 18=f6 1a=f0 1b=ff 1c=f6 1e=f0 
1f=ff 20=f6 22=f0 23=ff 24=f6 26=f0 27=ff 28=f6 2a=f0 2b=ff 2c=f6 2e=f0 2f=ff 
30=f6 32=f0 33=ff 34=f6 36=f0 37=ff 38=f6 3a=f0 3b=ff 3c=f6 3e=f0 3f=ff 40=f6 
42=f0 43=ff 44=f6 46=f0 47=ff 48=f6 4a=f0 4b=ff 4c=f6 4e=f0 4f=ff 50=f6 52=f0 
53=ff 54=f6 56=f0 57=ff 58=f6 5a=f0 5b=ff 5c=f6 5e=f0 5f=ff 60=f6 62=f0 63=ff 
64=f6 66=f0 67=ff 68=f6 6a=f0 6b=ff 6c=f6 6e=f0 6f=ff 70=f6 72=f0 73=ff 74=f6 
76=f0 77=ff 78=f6 7a=f0 7b=ff 7c=f6 7e=f0 7f=ff 80=f6 82=f0 83=ff 84=f6 86=f0 
87=ff 88=f6 8a=f0 8b=ff 8c=f6 8e=f0 8f=ff 90=f6 92=f0 93=ff 94=f6 96=f0 97=ff 
98=f6 9a=f0 9b=ff 9c=f6 9e=f0 9f=ff a0=f6 a2=f0 a3=ff a4=f6 a6=f0 a7=ff a8=f6 
aa=f0 ab=ff ac=f6 ae=f0 af=ff b0=f6 b2=f0 b3=ff b4=f6 b6=f0 b7=ff b8=f6 ba=f0 
bb=ff bc=f6 be=f0 bf=ff c0=f6 c2=f0 c3=ff c4=f6 c6=f0 c7=ff c8=f6 ca=f0 cb=ff 
cc=f6 ce=f0 cf=ff d0=f6 d2=f0 d3=ff d4=f6 d6=f0 d7=ff d8=f6 da=f0 db=ff dc=f6 
de=f0 df=ff e0=f6 e2=f0 e3=ff e4=f6 e6=f0 e7=ff e8=f6 ea=f0 eb=ff ec=f6 ee=f0 
ef=ff f0=f6 f2=f0 f3=ff f4=f6 f6=f0 f7=ff f8=f6 fa=f0 fb=ff fc=f6 fe=f0 ff=ff 
words 00=f6f6 01=0000 02=f0f0 03=ffff 04=f6f6 05=0000 06=f0f0 07=ffff
wbng0 at iic0 addr 0x2f: w83793g
iic0: addr 0x4b 00=0c 01=00 03=64 04=0c 05=00 07=64 08=0c 09=00 0b=64 0c=0d 
0d=00 0f=64 10=0c 11=00 13=64 14=0c 15=00 17=64 18=0c 19=00 1b=64 1c=0c 1d=00 
1f=64 20=0c 21=00 23=64 24=0c 25=00 27=64 28=0d 29=00 2b=64 2c=0c 2d=00 2f=64 
30=0c 31=00 33=64 34=0c 35=00 37=64 38=0c 39=00 3b=64 3c=0c 3d=00 3f=64 40=0c 
41=00 43=64 44=0d 45=00 47=64 48=0c 49=00 4b=64 4c=0c 4d=00 4f=64 50=0d 51=00 
53=64 54=0d 55=00 57=64 58=0c 59=00 5b=64 5c=0c 5d=00 5f=64 60=0c 61=00 63=64 
64=0c 65=00 67=64 68=0c 69=00 6b=64 6c=0c 6d=00 6f=64 70=0d 71=00 73=64 74=0c 
75=00 77=64 78=0d 79=00 7b=64 7c=0d 7d=00 7f=64 80=0d 81=00 83=64 84=0d 85=00 
87=64 88=0d 89=00 8b=64 8c=0d 8d=00 8f=64 90=0d 91=00 93=64 94=0d 95=00 97=64 
98=0d 99=00 9b=64 9c=0d 9d=00 9f=64 a0=0d a1=00 a3=64 a4=0d a5=00 a7=64 a8=0d 
a9=00 ab=64 ac=0d ad=00 af=64 b0=0d b1=00 b3=64 b4=0d b5=00 b7=64 b8=0d b9=00 
bb=64 bc=0d bd=00 bf=64 c0=0d c1=00 c3=64 c4=0d c5=00 c7=64 c8=0d c9=00 cb=64 
cc=0d cd=00 cf=64 d0=0d d1=00 d3=64 d4=0d d5=00 d7=64 d8=0d d9=00 db=64 dc=0d 
dd=00 df=64 e0=0d e1=00 e3=64 e4=0d e5=00 e7=64 e8=0d e9=00 eb=64 ec=0d ed=00 
ef=64 f0=0d f1=00 f3=64 f4=0d f5=00 f7=64 f8=0d f9=00 fb=64 fc=0c fd=00 ff=64 
words 00=0d00 01=00ff 02=5f00 03=6400 04=0d00 05=00ff 06=5f00 07=6400
usb2 at uhci0: USB revision 1.0
uhub2 at usb2 "Intel UHCI root hub" rev 1.00/1.00 addr 1
usb3 at uhci1: USB revision 1.0
uhub3 at usb3 "Intel UHCI root hub" rev 1.00/1.00 addr 1
usb4 at uhci2: USB revision 1.0
uhub4 at usb4 "Intel UHCI root hub" rev 1.00/1.00 addr 1
usb5 at uhci3: USB revision 1.0
uhub5 at usb5 "Intel UHCI root hub" rev 1.00/1.00 addr 1
usb6 at uhci4: USB revision 1.0
uhub6 at usb6 "Intel UHCI root hub" rev 1.00/1.00 addr 1
usb7 at uhci5: USB revision 1.0
uhub7 at usb7 "Intel UHCI root hub" rev 1.00/1.00 addr 1
isa0 at pcib0
isadma0 at isa0
com0 at isa0 port 0x3f8/8 irq 4: ns16550a, 16 byte fifo
com0: console
pckbc0 at isa0 port 0x60/5 irq 1 irq 12
pckbd0 at pckbc0 (kbd slot)
wskbd0 at pckbd0: console keyboard, using wsdisplay0
pcppi0 at isa0 port 0x61
spkr0 at pcppi0
wbsio0 at isa0 port 0x2e/2: W83627DHG rev 0x25
wbsio0 port 0xa10/2 not configured
vscsi0 at root
scsibus2 at vscsi0: 256 targets
softraid0 at root
scsibus3 at softraid0: 256 targets
root on sd0a (3fd1e75883e2865c.a) swap on sd0b dump on sd0b


Reply via email to