Hi,
>Synopsis: stuck in netlock
>Category: amd64
>Environment:
System : OpenBSD 6.2
Details : OpenBSD 6.2-current (GENERIC.MP) #333: Sun Jan 7
09:13:00 MST 2018
[email protected]:/usr/src/sys/arch/amd64/compile/GENERIC.MP
Architecture: OpenBSD.amd64
Machine : amd64
>Description:
processes getting stuck w/STATE=netlock, kill has no effect.
>How-To-Repeat:
using the desktop normally, until trying to restart chrome ends
up failing.
I've had this happen to me atleast twice in the last few of weeks.
At first time i noticed how trying to launch chrome did lock up
all the other processes in netlock, and "pkill chrome" did allow
the system to recover, i was unable to figure out what was wrong
and rebooting did make everything work again, while ie.
removing ~/.cache & ~/.config did not.
long before running the "ps cl" below, i had already killed all
the xterm-windows those processes were in. cwm(1) was unable to
kill some of those, but xkill did not.
after exiting X w/ctrl+alt+backspace(iirc?) i didn't get back to
$-prompt, and ^T did show xauth stuck in netlock..
i guess it's obvious where it was heading; so i got pics of
"# reboot -nq" failing because stuck in the fckng netlock -_-
i do have ddb.{panic,console,log}=1, but
"# sysctl ddb.trigger=1" ==
"sysctl: ddb.trigger: Operation not supported by device"
?? so i had no option but "virsh reset <domain>"...
-Artturi
"$ ps cl | grep netlock":
1000 11941 1 0 10 0 1440 3976 netlock Dsp p0 0:00.16 ssh
1000 58467 1 0 10 0 1452 3992 netlock Dsp p1 0:00.34 ssh
1000 23909 1 0 10 0 1436 3960 netlock RE/3 p2- 0:00.02 ssh
1000 11699 1 0 10 0 1552 4132 netlock Dp p2- 0:14.07 ssh
1000 44333 1 0 10 0 1452 4040 netlock Dp p4- 0:00.30 ssh
1000 50770 1 0 10 0 12284 23468 netlock D p5- 4:04.48 weechat
1000 64651 1 0 10 0 1412 3916 netlock D p6- 0:00.02 ssh
1000 71503 1 0 10 0 1432 3944 netlock Ds+p p7 0:00.20 ssh
1000 45823 1 0 10 0 1500 4080 netlock Dp p9- 0:00.21 ssh
1000 65348 1 0 10 0 1480 4204 netlock Dp pe- 0:30.40 ssh
1000 74456 1 1 10 0 4772 10096 netlock Dp pg- 0:01.90 mutt
"$ ps cl"
UID PID PPID CPU PRI NI VSZ RSS WCHAN STAT TT TIME COMMAND
1000 11941 1 0 10 0 1440 3976 netlock Dsp p0 0:00.16 ssh
1000 75836 28487 0 18 0 748 872 pause Ssp p0 0:00.06 ksh
1000 11216 75836 0 28 0 952 1232 - R+p/2 p0 0:00.00 ps
1000 58467 1 0 10 0 1452 3992 netlock Dsp p1 0:00.34 ssh
1000 1522 76480 0 3 0 748 908 ttyin Is+p p1 0:00.06 ksh
1000 23909 1 0 10 0 1436 3960 netlock RE/3 p2- 0:00.02 ssh
1000 11699 1 0 10 0 1552 4132 netlock Dp p2- 0:14.07 ssh
1000 64202 90615 0 18 0 752 912 pause Isp p2 0:00.12 ksh
1000 6401 64202 0 10 0 1400 2896 wait Ip p2 0:00.02 man
1000 82273 6401 0 3 0 960 2444 ttyin I+p p2 0:00.05 more
1000 44333 1 0 10 0 1452 4040 netlock Dp p4- 0:00.30 ssh
1000 50770 1 0 10 0 12284 23468 netlock D p5- 4:04.48 weechat
1000 64651 1 0 10 0 1412 3916 netlock D p6- 0:00.02 ssh
1000 71503 1 0 10 0 1432 3944 netlock Ds+p p7 0:00.20 ssh
1000 45823 1 0 10 0 1500 4080 netlock Dp p9- 0:00.21 ssh
1000 65348 1 0 10 0 1480 4204 netlock Dp pe- 0:30.40 ssh
1000 74456 1 1 10 0 4772 10096 netlock Dp pg- 0:01.90 mutt
1000 13823 1 0 18 0 684 804 pause Isp C0 0:00.16 ksh
1000 41484 13823 0 18 0 676 792 pause I+p C0 0:00.09 sh
1000 30568 41484 0 10 0 428 1836 wait I+ C0 0:00.02 xinit
1000 45439 30568 0 18 0 656 760 pause Ip C0 0:00.01 sh
1000 67103 1 0 2 0 596 1824 select I C0 4:03.86
dbus-launch
1000 77867 1 0 2 0 1536 6824 poll Ip C0 0:01.48 xclock
>Fix:
wish i knew.
dmesg:
OpenBSD 6.2-current (GENERIC.MP) #333: Sun Jan 7 09:13:00 MST 2018
[email protected]:/usr/src/sys/arch/amd64/compile/GENERIC.MP
real mem = 8572960768 (8175MB)
avail mem = 8306216960 (7921MB)
mpath0 at root
scsibus0 at mpath0: 256 targets
mainbus0 at root
bios0 at mainbus0: SMBIOS rev. 2.8 @ 0xf69e0 (11 entries)
bios0: vendor SeaBIOS version "1.10.2-2.fc27" date 04/01/2014
bios0: QEMU Standard PC (i440FX + PIIX, 1996)
acpi0 at bios0: rev 0
acpi0: sleep states S3 S4 S5
acpi0: tables DSDT FACP APIC
acpi0: wakeup devices
acpitimer0 at acpi0: 3579545 Hz, 24 bits
acpimadt0 at acpi0 addr 0xfee00000: PC-AT compat
cpu0 at mainbus0: apid 0 (boot processor)
cpu0: AMD FX(tm)-9590 Eight-Core Processor, 4690.64 MHz
cpu0:
FPU,VME,DE,PSE,TSC,MSR,PAE,MCE,CX8,APIC,SEP,MTRR,PGE,MCA,CMOV,PAT,PSE36,CFLUSH,MMX,FXSR,SSE,SSE2,HTT,SSE3,PCLMUL,SSSE3,FMA3,CX16,SSE4.1,SSE4.2,x2APIC,POPCNT,DEADLINE,AES,XSAVE,AVX,F16C,HV,NXE,MMXX,FFXSR,PAGE1GB,RDTSCP,LONG,LAHF,CMPLEG,SVM,AMCR8,ABM,SSE4A,MASSE,3DNOWP,OSVW,XOP,FMA4,TBM,BMI1
cpu0: 64KB 64b/line 2-way I-cache, 64KB 64b/line 2-way D-cache, 512KB 64b/line
16-way L2 cache
cpu0: ITLB 255 4KB entries direct-mapped, 255 4MB entries direct-mapped
cpu0: DTLB 255 4KB entries direct-mapped, 255 4MB entries direct-mapped
mtrr: Pentium Pro MTRR support, 8 var ranges, 88 fixed ranges
cpu0: apic clock running at 999MHz
cpu1 at mainbus0: apid 1 (application processor)
cpu1: AMD FX(tm)-9590 Eight-Core Processor, 4690.05 MHz
cpu1:
FPU,VME,DE,PSE,TSC,MSR,PAE,MCE,CX8,APIC,SEP,MTRR,PGE,MCA,CMOV,PAT,PSE36,CFLUSH,MMX,FXSR,SSE,SSE2,HTT,SSE3,PCLMUL,SSSE3,FMA3,CX16,SSE4.1,SSE4.2,x2APIC,POPCNT,DEADLINE,AES,XSAVE,AVX,F16C,HV,NXE,MMXX,FFXSR,PAGE1GB,RDTSCP,LONG,LAHF,CMPLEG,SVM,AMCR8,ABM,SSE4A,MASSE,3DNOWP,OSVW,XOP,FMA4,TBM,BMI1
cpu1: 64KB 64b/line 2-way I-cache, 64KB 64b/line 2-way D-cache, 512KB 64b/line
16-way L2 cache
cpu1: ITLB 255 4KB entries direct-mapped, 255 4MB entries direct-mapped
cpu1: DTLB 255 4KB entries direct-mapped, 255 4MB entries direct-mapped
cpu2 at mainbus0: apid 2 (application processor)
cpu2: AMD FX(tm)-9590 Eight-Core Processor, 4690.06 MHz
cpu2:
FPU,VME,DE,PSE,TSC,MSR,PAE,MCE,CX8,APIC,SEP,MTRR,PGE,MCA,CMOV,PAT,PSE36,CFLUSH,MMX,FXSR,SSE,SSE2,HTT,SSE3,PCLMUL,SSSE3,FMA3,CX16,SSE4.1,SSE4.2,x2APIC,POPCNT,DEADLINE,AES,XSAVE,AVX,F16C,HV,NXE,MMXX,FFXSR,PAGE1GB,RDTSCP,LONG,LAHF,CMPLEG,SVM,AMCR8,ABM,SSE4A,MASSE,3DNOWP,OSVW,XOP,FMA4,TBM,BMI1
cpu2: 64KB 64b/line 2-way I-cache, 64KB 64b/line 2-way D-cache, 512KB 64b/line
16-way L2 cache
cpu2: ITLB 255 4KB entries direct-mapped, 255 4MB entries direct-mapped
cpu2: DTLB 255 4KB entries direct-mapped, 255 4MB entries direct-mapped
cpu3 at mainbus0: apid 4 (application processor)
cpu3: AMD FX(tm)-9590 Eight-Core Processor, 4690.03 MHz
cpu3:
FPU,VME,DE,PSE,TSC,MSR,PAE,MCE,CX8,APIC,SEP,MTRR,PGE,MCA,CMOV,PAT,PSE36,CFLUSH,MMX,FXSR,SSE,SSE2,HTT,SSE3,PCLMUL,SSSE3,FMA3,CX16,SSE4.1,SSE4.2,x2APIC,POPCNT,DEADLINE,AES,XSAVE,AVX,F16C,HV,NXE,MMXX,FFXSR,PAGE1GB,RDTSCP,LONG,LAHF,CMPLEG,SVM,AMCR8,ABM,SSE4A,MASSE,3DNOWP,OSVW,XOP,FMA4,TBM,BMI1
cpu3: 64KB 64b/line 2-way I-cache, 64KB 64b/line 2-way D-cache, 512KB 64b/line
16-way L2 cache
cpu3: ITLB 255 4KB entries direct-mapped, 255 4MB entries direct-mapped
cpu3: DTLB 255 4KB entries direct-mapped, 255 4MB entries direct-mapped
cpu4 at mainbus0: apid 5 (application processor)
cpu4: AMD FX(tm)-9590 Eight-Core Processor, 4690.00 MHz
cpu4:
FPU,VME,DE,PSE,TSC,MSR,PAE,MCE,CX8,APIC,SEP,MTRR,PGE,MCA,CMOV,PAT,PSE36,CFLUSH,MMX,FXSR,SSE,SSE2,HTT,SSE3,PCLMUL,SSSE3,FMA3,CX16,SSE4.1,SSE4.2,x2APIC,POPCNT,DEADLINE,AES,XSAVE,AVX,F16C,HV,NXE,MMXX,FFXSR,PAGE1GB,RDTSCP,LONG,LAHF,CMPLEG,SVM,AMCR8,ABM,SSE4A,MASSE,3DNOWP,OSVW,XOP,FMA4,TBM,BMI1
cpu4: 64KB 64b/line 2-way I-cache, 64KB 64b/line 2-way D-cache, 512KB 64b/line
16-way L2 cache
cpu4: ITLB 255 4KB entries direct-mapped, 255 4MB entries direct-mapped
cpu4: DTLB 255 4KB entries direct-mapped, 255 4MB entries direct-mapped
cpu5 at mainbus0: apid 6 (application processor)
cpu5: AMD FX(tm)-9590 Eight-Core Processor, 4690.04 MHz
cpu5:
FPU,VME,DE,PSE,TSC,MSR,PAE,MCE,CX8,APIC,SEP,MTRR,PGE,MCA,CMOV,PAT,PSE36,CFLUSH,MMX,FXSR,SSE,SSE2,HTT,SSE3,PCLMUL,SSSE3,FMA3,CX16,SSE4.1,SSE4.2,x2APIC,POPCNT,DEADLINE,AES,XSAVE,AVX,F16C,HV,NXE,MMXX,FFXSR,PAGE1GB,RDTSCP,LONG,LAHF,CMPLEG,SVM,AMCR8,ABM,SSE4A,MASSE,3DNOWP,OSVW,XOP,FMA4,TBM,BMI1
cpu5: 64KB 64b/line 2-way I-cache, 64KB 64b/line 2-way D-cache, 512KB 64b/line
16-way L2 cache
cpu5: ITLB 255 4KB entries direct-mapped, 255 4MB entries direct-mapped
cpu5: DTLB 255 4KB entries direct-mapped, 255 4MB entries direct-mapped
ioapic0 at mainbus0: apid 0 pa 0xfec00000, version 11, 24 pins
acpiprt0 at acpi0: bus 0 (PCI0)
acpicpu0 at acpi0: C1(@1 halt!)
acpicpu1 at acpi0: C1(@1 halt!)
acpicpu2 at acpi0: C1(@1 halt!)
acpicpu3 at acpi0: C1(@1 halt!)
acpicpu4 at acpi0: C1(@1 halt!)
acpicpu5 at acpi0: C1(@1 halt!)
"ACPI0006" at acpi0 not configured
"PNP0A06" at acpi0 not configured
"PNP0A06" at acpi0 not configured
"PNP0A06" at acpi0 not configured
"QEMU0002" at acpi0 not configured
"ACPI0010" at acpi0 not configured
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 82371SB IDE" rev 0x00: DMA, channel 0
wired to compatibility, channel 1 wired to compatibility
pciide0: channel 0 disabled (no drives)
pciide0: channel 1 disabled (no drives)
piixpm0 at pci0 dev 1 function 3 "Intel 82371AB Power" rev 0x03: apic 0 int 9
iic0 at piixpm0
virtio0 at pci0 dev 2 function 0 "Qumranet Virtio Storage" rev 0x00
vioblk0 at virtio0
scsibus1 at vioblk0: 2 targets
sd0 at scsibus1 targ 0 lun 0: <VirtIO, Block Device, > SCSI3 0/direct fixed
sd0: 204800MB, 512 bytes/sector, 419430400 sectors
virtio0: msix shared
virtio1 at pci0 dev 3 function 0 "Qumranet Virtio Network" rev 0x00
vio0 at virtio1: address 52:54:00:d8:72:b3
virtio1: msix shared
virtio2 at pci0 dev 5 function 0 "Qumranet Virtio Console" rev 0x00
virtio2: no matching child driver; not configured
em0 at pci0 dev 6 function 0 "Intel 82574L" rev 0x00: apic 0 int 10, address
68:05:ca:23:90:88
xhci0 at pci0 dev 7 function 0 "NEC xHCI" rev 0x03: apic 0 int 11
usb0 at xhci0: USB revision 3.0
uhub0 at usb0 configuration 1 interface 0 "NEC xHCI root hub" rev 3.00/1.00
addr 1
virtio3 at pci0 dev 9 function 0 "Qumranet Virtio SCSI" rev 0x00
vioscsi0 at virtio3: qsize 128
scsibus2 at vioscsi0: 255 targets
virtio3: msix shared
radeondrm0 at pci0 dev 10 function 0 "ATI Radeon HD 5670" rev 0x00
drm0 at radeondrm0
radeondrm0: apic 0 int 10
azalia0 at pci0 dev 10 function 1 "ATI Radeon HD 5600 Audio" rev 0x00: apic 0
int 11
azalia0: no supported codecs
virtio4 at pci0 dev 11 function 0 "Qumranet Virtio Storage" rev 0x00
vioblk1 at virtio4
scsibus3 at vioblk1: 2 targets
sd1 at scsibus3 targ 0 lun 0: <VirtIO, Block Device, > SCSI3 0/direct fixed
sd1: 102400MB, 512 bytes/sector, 209715200 sectors
virtio4: msix shared
xhci1 at pci0 dev 13 function 0 "Etron EJ188 xHCI" rev 0x00: apic 0 int 10
usb1 at xhci1: USB revision 3.0
uhub1 at usb1 configuration 1 interface 0 "Etron xHCI root hub" rev 3.00/1.00
addr 1
isa0 at pcib0
isadma0 at isa0
fdc0 at isa0 port 0x3f0/6 irq 6 drq 2
com0 at isa0 port 0x3f8/8 irq 4: ns16550a, 16 byte fifo
pckbc0 at isa0 port 0x60/5 irq 1 irq 12
pckbd0 at pckbc0 (kbd slot)
wskbd0 at pckbd0: console keyboard
pms0 at pckbc0 (aux slot)
wsmouse0 at pms0 mux 0
pcppi0 at isa0 port 0x61
spkr0 at pcppi0
vmm0 at mainbus0: SVM/RVI
uhidev0 at uhub0 port 5 configuration 1 interface 0 "Cypress Cypress USB
Keyboard / PS2 Mouse" rev 1.10/0.01 addr 2
uhidev0: iclass 3/1
ukbd0 at uhidev0: 8 variable keys, 6 key codes
wskbd1 at ukbd0 mux 1
uhidev1 at uhub0 port 5 configuration 1 interface 1 "Cypress Cypress USB
Keyboard / PS2 Mouse" rev 1.10/0.01 addr 2
uhidev1: iclass 3/1, 3 report ids
ums0 at uhidev1 reportid 1: 3 buttons, Z dir
wsmouse1 at ums0 mux 0
uhid0 at uhidev1 reportid 2: input=1, output=0, feature=0
uhid1 at uhidev1 reportid 3: input=1, output=0, feature=0
uhidev2 at uhub0 port 6 configuration 1 interface 0 "Razer Razer Naga Hex" rev
2.00/2.00 addr 3
uhidev2: iclass 3/1
ums1 at uhidev2: 5 buttons, Z dir
wsmouse2 at ums1 mux 0
uhidev3 at uhub0 port 6 configuration 1 interface 1 "Razer Razer Naga Hex" rev
2.00/2.00 addr 3
uhidev3: iclass 3/1, 3 report ids
ukbd1 at uhidev3 reportid 1: 8 variable keys, 6 key codes
wskbd2 at ukbd1 mux 1
uhid2 at uhidev3 reportid 2: input=3, output=0, feature=0
uhid3 at uhidev3 reportid 3: input=3, output=0, feature=0
uhub2 at uhub1 port 1 configuration 1 interface 0 "ALCOR USB Hub 2.0" rev
2.00/7.02 addr 2
uhub3 at uhub2 port 1 configuration 1 interface 0 "ALCOR USB Hub 2.0" rev
2.00/7.02 addr 3
uftdi0 at uhub3 port 1 configuration 1 interface 0 "FTDI FT232R USB UART" rev
2.00/6.00 addr 4
ucom0 at uftdi0 portno 1
fd0 at fdc0 drive 1: density unknown
uhidev4 at uhub3 port 3 configuration 1 interface 0 "Logitech Logitech USB
Keyboard" rev 2.00/60.00 addr 5
uhidev4: iclass 3/1
ukbd2 at uhidev4: 8 variable keys, 6 key codes
wskbd3 at ukbd2 mux 1
uhidev5 at uhub3 port 3 configuration 1 interface 1 "Logitech Logitech USB
Keyboard" rev 2.00/60.00 addr 5
uhidev5: iclass 3/0, 4 report ids
uhid4 at uhidev5 reportid 3: input=4, output=0, feature=0
uhid5 at uhidev5 reportid 4: input=1, output=0, feature=0
uftdi1 at uhub3 port 4 configuration 1 interface 0 "FTDI FT232R USB UART" rev
2.00/6.00 addr 6
ucom1 at uftdi1 portno 1
uftdi2 at uhub2 port 2 configuration 1 interface 0 "FTDI FT232R USB UART" rev
2.00/6.00 addr 7
ucom2 at uftdi2 portno 1
uftdi3 at uhub2 port 4 configuration 1 interface 0 "FTDI FT232R USB UART" rev
2.00/6.00 addr 8
ucom3 at uftdi3 portno 1
uhub4 at uhub1 port 2 configuration 1 interface 0 "VIA Labs USB 2.0 HUB
" rev 2.00/85.70 addr 9
uvideo0 at uhub4 port 4 configuration 1 interface 0 "317GAWCM001LON32E0K7 USB
Video device" rev 2.00/21.11 addr 10
video0 at uvideo0
uaudio0 at uhub4 port 4 configuration 1 interface 2 "317GAWCM001LON32E0K7 USB
Video device" rev 2.00/21.11 addr 10
uaudio0: audio rev 1.00, 3 mixer controls
audio0 at uaudio0
uhub5 at uhub1 port 6 configuration 1 interface 0 "VLI Labs, Inc. USB 3.0 HUB
" rev 3.00/85.74 addr 11
vscsi0 at root
scsibus4 at vscsi0: 256 targets
softraid0 at root
scsibus5 at softraid0: 256 targets
root on sd1a (a6b8f833567d5088.a) swap on sd1b dump on sd1b
WARNING: / was not properly unmounted
radeondrm0: 1920x1200, 32bpp
wsdisplay0 at radeondrm0 mux 1: console (std, vt100 emulation), using wskbd0
wskbd1: connecting to wsdisplay0
wskbd2: connecting to wsdisplay0
wskbd3: connecting to wsdisplay0
wsdisplay0: screen 1-5 added (std, vt100 emulation)
arp_rtrequest: bad gateway value: em0
usbdevs:
Controller /dev/usb0:
addr 1: super speed, self powered, config 1, xHCI root hub(0x0000),
NEC(0x1033), rev 1.00
port 1 disabled
port 2 disabled
port 3 disabled
port 4 disabled
port 5 addr 2: low speed, power 100 mA, config 1, Cypress USB Keyboard / PS2
Mouse(0x0101), Cypress(0x04b4), rev 0.01
port 6 addr 3: full speed, power 100 mA, config 1, Razer Naga Hex(0x0036),
Razer(0x1532), rev 2.00
port 7 disabled
port 8 disabled
Controller /dev/usb1:
addr 1: super speed, self powered, config 1, xHCI root hub(0x0000),
Etron(0x1b6f), rev 1.00
port 1 addr 2: full speed, self powered, config 1, USB Hub 2.0(0x0606),
ALCOR(0x05e3), rev 7.02
port 1 addr 3: full speed, self powered, config 1, USB Hub 2.0(0x0606),
ALCOR(0x05e3), rev 7.02
port 1 addr 4: full speed, power 90 mA, config 1, FT232R USB UART(0x6001),
FTDI(0x0403), rev 6.00, iSerialNumber A600ae86
port 2 powered
port 3 addr 5: low speed, power 98 mA, config 1, Logitech USB
Keyboard(0xc31b), Logitech(0x046d), rev 60.00
port 4 addr 6: full speed, power 90 mA, config 1, FT232R USB UART(0x6001),
FTDI(0x0403), rev 6.00, iSerialNumber A40081We
port 2 addr 7: full speed, power 90 mA, config 1, FT232R USB UART(0x6001),
FTDI(0x0403), rev 6.00, iSerialNumber A600afb9
port 3 powered
port 4 addr 8: full speed, power 90 mA, config 1, FT232R USB UART(0x6001),
FTDI(0x0403), rev 6.00, iSerialNumber A40081WI
port 2 addr 9: high speed, self powered, config 1, USB 2.0 HUB
(0x2811), VIA Labs(0x2109), rev 85.70
port 1 powered
port 2 powered
port 3 powered
port 4 addr 10: high speed, power 500 mA, config 1, USB Video device(0x58fe),
317GAWCM001LON32E0K7(0x0bda), rev 21.11, iSerialNumber 200901010001
port 3 disabled
port 4 disabled
port 5 disabled
port 6 addr 11: super speed, self powered, config 1, USB 3.0 HUB
(0x8110), VLI Labs, Inc.(0x2109), rev 85.74
port 1 disabled
port 2 disabled
port 3 disabled
port 4 disabled
port 7 disabled
port 8 disabled