NetBSD Problem Report #54585

From mpumford@mudcovered.org.uk  Mon Sep 30 09:20:25 2019
Return-Path: <mpumford@mudcovered.org.uk>
Received: from mail.netbsd.org (mail.netbsd.org [199.233.217.200])
	(using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits))
	(Client CN "mail.NetBSD.org", Issuer "mail.NetBSD.org CA" (not verified))
	by mollari.NetBSD.org (Postfix) with ESMTPS id 502F37A1E1
	for <gnats-bugs@gnats.NetBSD.org>; Mon, 30 Sep 2019 09:20:25 +0000 (UTC)
Message-Id: <20190930092017.37B9D38FCBA@trigati.mudcovered.org.uk>
Date: Mon, 30 Sep 2019 10:20:17 +0100 (BST)
From: mpumford@mudcovered.org.uk
Reply-To: mpumford@mudcovered.org.uk
To: gnats-bugs@NetBSD.org
Subject: Kernel panic building package under jenkins
X-Send-Pr-Version: 3.95

>Number:         54585
>Category:       kern
>Synopsis:       Kernel panic building package under jenkins
>Confidential:   no
>Severity:       critical
>Priority:       medium
>Responsible:    kern-bug-people
>State:          needs-pullups
>Class:          sw-bug
>Submitter-Id:   net
>Arrival-Date:   Mon Sep 30 09:25:01 +0000 2019
>Closed-Date:    
>Last-Modified:  Sat Apr 17 07:53:19 +0000 2021
>Originator:     Mike Pumford
>Release:        NetBSD 9.0_BETA
>Organization:

>Environment:


System: NetBSD trigati.mudcovered.org.uk 9.0_BETA NetBSD 9.0_BETA (GENERIC) #0: Sat Sep 28 09:56:10 BST 2019 builder@trigati.mudcovered.org.uk:/work/netbsd/.jenkins/workspace/NetBSD-9-amd64-build/obj.amd64/sys/arch/amd64/compile/GENERIC amd64
Architecture: x86_64
Machine: amd64
>Description:
    Kernel panic when building packages in a chroot environment managed 
by jenkins.

Panic is as follows:
[ 14305.111922] panic: kernel diagnostic assertion "semcnt >= 0" failed: file "/
work/netbsd/9-stable/src/sys/kern/kern_uidinfo.c", line 241
[ 14305.111922] cpu5: Begin traceback...
[ 14305.111922] vpanic() at netbsd:vpanic+0x160
[ 14305.111922] stge_eeprom_wait.isra.4() at netbsd:stge_eeprom_wait.isra.4
[ 14305.111922] chgsemcnt() at netbsd:chgsemcnt+0x56
[ 14305.111922] ksem_release() at netbsd:ksem_release+0x6a
[ 14305.111922] ksem_close_fop() at netbsd:ksem_close_fop+0x49
[ 14305.111922] closef() at netbsd:closef+0x6d
[ 14305.111922] fd_close() at netbsd:fd_close+0x1f4
[ 14305.121926] sys__ksem_destroy() at netbsd:sys__ksem_destroy+0x9c
[ 14305.121926] syscall() at netbsd:syscall+0x181
[ 14305.121926] --- syscall (number 255) ---
[ 14305.121926] 7b40fce3ee6a:
[ 14305.121926] cpu5: End traceback... 

>How-To-Repeat:

System is freshly upgraded to 9.0_BETA. Core system is at same level as
kernel. Packages including java, are built for 8.1_STABLE as of about a
month ago:

Jenkins is running pkgsrc build using pkg_comp1 using libkver to simulate
a NetBSD 8.1_STABLE amd64 system in a chroot. Packages being built are:

bash abcde ap-php apcupsd archivemail daemond distcc dovecot2
dovecot2-pigeonhole emacs26 estd exim fetchmail www/firefox fvwm git
gitweb jenkins net-snmp lldpd m4 mencoder mgetty+sendfax minidlna nagios-base
nagios-plugin-raidctl nagios-plugin-snmp nagios-plugin-spamd nagios-plugins
nmap npm yarn p5-IO-Tty p5-Net-SNMP p5-Net-Telnet p5-glib2 p5-gtk2
p5-pango p5-JSON p5-Perl-Tidy pkg_comp1 pkgin procmail py-certbot rrdtool
rsync samba4 spamassassin squid3 sudo thunderbird vorbis-tools xv

MAKE_JOBS=8 is set for the build on this system.

Build is being monitored using the console log window of jenkins at the 
time (don't know at the moment if this is related or not). 

I've now reproduced this twice once with the build being monitored in 
a native firefox running on the system and once with the build being 
monitored on a different system.

Systat output from the second failure indicates that there was a fair 
amount of disk io going on.

Last console output on Jenkins was:
npm-6.10.3.tgz
cd /pkg_comp/obj/pkgsrc/lang/npm/default/cli-6.10.3 && /usr/bin/env USETOOLS=no PTHREAD_CFLAGS=\ -pthread\  PTHREAD_LDFLAGS=\ -pthread PTHREAD_LIBS= PTHREADBASE=/usr DL_CFLAGS=\ -pthread\  DL_LDFLAGS=\ -pthread DL_LIBS= PYTHON=/usr/pkg/bin/python2.7 CC=gcc CFLAGS=-O2\ -D_FORTIFY_SOURCE=2\ -I/usr/include\ -I/usr/pkg/include CPPFLAGS=-I/usr/include\ -I/usr/pkg/include CXX=c++ CXXFLAGS=-O2\ -D_FORTIFY_SOURCE=2\ -I/usr/include\ -I/usr/pkg/include COMPILER_RPATH_FLAG=-Wl,-R F77=g77 FC=g77 FFLAGS=-O LANG=C LC_ALL=C LC_COLLATE=C LC_CTYPE=C LC_MESSAGES=C LC_MONETARY=C LC_NUMERIC=C LC_TIME=C LDFLAGS=-L/usr/lib\ -Wl,-R/usr/lib\ -L/usr/pkg/lib\ -Wl,-R/usr/pkg/lib LINKER_RPATH_FLAG=-R PATH=/pkg_comp/obj/pkgsrc/lang/npm/default/.cwrapper/bin:/pkg_comp/obj/pkgsrc/lang/npm/default/.buildlink/bin:/pkg_comp/obj/pkgsrc/lang/npm/default/.gcc/bin:/pkg_comp/obj/pkgsrc/lang/npm/default/.tools/bin:/usr/pkg/bin:/bin:/usr/bin:/usr/pkg/bin:/usr/local/bin:/usr/X11R7/bin:/sbin:/usr/sbin:/usr/pkg/bin:/usr/X11R7/
 bin PREFIX=/usr/pkg MAKELEVEL=0 CONFIG_SITE= PKG_SYSCONFDIR=/usr/pkg/etc CXXCPP=cpp HOME=/pkg_comp/obj/pkgsrc/lang/npm/default/.home CWRAPPERS_CONFIG_DIR=/pkg_comp/obj/pkgsrc/lang/npm/default/.cwrapper/config CPP=cpp LOCALBASE=/usr/pkg X11BASE=/usr/X11R7 PKGMANDIR=man PKGINFODIR=info PKGGNUDIR=gnu/ MAKECONF=/dev/null OBJECT_FMT=ELF USETOOLS=no BSD_INSTALL_PROGRAM=/usr/bin/install\ -c\ -s\ -o\ root\ -g\ wheel\ -m\ 755 BSD_INSTALL_SCRIPT=/usr/bin/install\ -c\ -o\ root\ -g\ wheel\ -m\ 755 BSD_INSTALL_LIB=/usr/bin/install\ -c\ -o\ root\ -g\ wheel\ -m\ 755 BSD_INSTALL_DATA=/usr/bin/install\ -c\ -o\ root\ -g\ wheel\ -m\ 644 BSD_INSTALL_MAN=/usr/bin/install\ -c\ -o\ root\ -g\ wheel\ -m\ 644 BSD_INSTALL=/usr/bin/install BSD_INSTALL_PROGRAM_DIR=/usr/bin/install\ -d\ -o\ root\ -g\ wheel\ -m\ 755 BSD_INSTALL_SCRIPT_DIR=/usr/bin/install\ -d\ -o\ root\ -g\ wheel\ -m\ 755 BSD_INSTALL_LIB_DIR=/usr/bin/install\ -d\ -o\ root\ -g\ wheel\ -m\ 755 BSD_INSTALL_DATA_DIR=/usr/bin/install\ -d\ -o\ root\ -g
 \ wheel\ -m\ 755 BSD_INSTALL_MAN_DIR=/usr/bin/install\ -d\ -o\ root\ -g\ wheel\ -m\ 755 BSD_INSTALL_GAME=/usr/bin/install\ -c\ -s\ -o\ root\ -g\ wheel\ -m\ 2555 BSD_INSTALL_GAME_DATA=/usr/bin/install\ -c\ -o\ root\ -g\ wheel\ -m\ 664 BSD_INSTALL_GAME_DIR=/usr/bin/install\ -d\ -o\ root\ -g\ wheel\ -m\ 775 INSTALL_INFO= MAKEINFO=/pkg_comp/obj/pkgsrc/lang/npm/default/.tools/bin/makeinfo FLEX= BISON= PKG_CONFIG= PKG_CONFIG_LIBDIR=/pkg_comp/obj/pkgsrc/lang/npm/default/.buildlink/lib/pkgconfig:/pkg_comp/obj/pkgsrc/lang/npm/default/.buildlink/share/pkgconfig PKG_CONFIG_LOG=/pkg_comp/obj/pkgsrc/lang/npm/default/.pkg-config.log PKG_CONFIG_PATH= CWRAPPERS_CONFIG_DIR=/pkg_comp/obj/pkgsrc/lang/npm/default/.cwrapper/config DESTDIR=/pkg_comp/obj/pkgsrc/lang/npm/default/.destdir /usr/pkg/bin/node  bin/npm-cli.js install -g -f npm-6.10.3.tgz

Full dmesg:
NetBSD 9.0_BETA (GENERIC) #0: Sat Sep 28 09:56:10 BST 2019
        builder@trigati.mudcovered.org.uk:/work/netbsd/.jenkins/workspace/NetBSD
-9-amd64-build/obj.amd64/sys/arch/amd64/compile/GENERIC
total memory = 16259 MB
avail memory = 15760 MB
cpu_rng: RDRAND
timecounter: Timecounters tick every 10.000 msec
Kernelized RAIDframe activated
running cgd selftest aes-xts-256 aes-xts-512 done
timecounter: Timecounter "i8254" frequency 1193182 Hz quality 100
ASUS All Series (System Version)
mainbus0 (root)
ACPI: RSDP 0x00000000000F04A0 000024 (v02 ALASKA)
ACPI: XSDT 0x00000000B8DCB088 000084 (v01 ALASKA A M I    01072009 AMI  00010013
)
ACPI: FACP 0x00000000B8DDABC8 00010C (v05 ALASKA A M I    01072009 AMI  00010013
)
ACPI: DSDT 0x00000000B8DCB1A0 00FA24 (v02 ALASKA A M I    00000011 INTL 20120711
)
ACPI: FACS 0x00000000B930BF80 000040
ACPI: APIC 0x00000000B8DDACD8 000092 (v03 ALASKA A M I    01072009 AMI  00010013
)
ACPI: FPDT 0x00000000B8DDAD70 000044 (v01 ALASKA A M I    01072009 AMI  00010013
)
ACPI: SSDT 0x00000000B8DDADB8 000C7D (v01 Ther_R Ther_Rvp 00001000 INTL 20120711
)
ACPI: SSDT 0x00000000B8DDBA38 000539 (v01 PmRef  Cpu0Ist  00003000 INTL 20051117
)
ACPI: SSDT 0x00000000B8DDBF78 000B74 (v01 CpuRef CpuSsdt  00003000 INTL 20051117
)
ACPI: MCFG 0x00000000B8DDCAF0 00003C (v01 ALASKA A M I    01072009 MSFT 00000097
)
ACPI: HPET 0x00000000B8DDCB30 000038 (v01 ALASKA A M I    01072009 AMI. 00000005
)
ACPI: SSDT 0x00000000B8DDCB68 00036D (v01 SataRe SataTabl 00001000 INTL 20120711
)
ACPI: SSDT 0x00000000B8DDCED8 005977 (v01 SaSsdt SaSsdt   00003000 INTL 20120711
)
ACPI: DMAR 0x00000000B8DE28F0 0000B8 (v01 INTEL  BDW      00000001 INTL 00000001)
ACPI: UEFI 0x00000000B8DE28A8 000042 (v01 ALASKA A M I    01072009      00000000)
ACPI: 6 ACPI AML tables successfully acquired and loaded
ioapic0 at mainbus0 apid 8: pa 0xfec00000, version 0x20, 24 pins
x2APIC available but disabled by DMAR table
cpu0 at mainbus0 apid 0
cpu0: Intel(R) Core(TM) i7-4790K CPU @ 4.00GHz, id 0x306c3
cpu0: package 0, core 0, smt 0
cpu1 at mainbus0 apid 2
cpu1: Intel(R) Core(TM) i7-4790K CPU @ 4.00GHz, id 0x306c3
cpu1: package 0, core 1, smt 0
cpu2 at mainbus0 apid 4
cpu2: Intel(R) Core(TM) i7-4790K CPU @ 4.00GHz, id 0x306c3
cpu2: package 0, core 2, smt 0
cpu3 at mainbus0 apid 6
cpu3: Intel(R) Core(TM) i7-4790K CPU @ 4.00GHz, id 0x306c3
cpu3: package 0, core 3, smt 0
cpu4 at mainbus0 apid 1
cpu4: Intel(R) Core(TM) i7-4790K CPU @ 4.00GHz, id 0x306c3
cpu4: package 0, core 0, smt 1
cpu5 at mainbus0 apid 3
cpu5: Intel(R) Core(TM) i7-4790K CPU @ 4.00GHz, id 0x306c3
cpu5: package 0, core 1, smt 1
cpu6 at mainbus0 apid 5
cpu6: Intel(R) Core(TM) i7-4790K CPU @ 4.00GHz, id 0x306c3
cpu6: package 0, core 2, smt 1
cpu7 at mainbus0 apid 7
cpu7: Intel(R) Core(TM) i7-4790K CPU @ 4.00GHz, id 0x306c3
cpu7: package 0, core 3, smt 1
acpi0 at mainbus0: Intel ACPICA 20190405
acpi0: X/RSDT: OemId <ALASKA,   A M I,01072009>, AslId <AMI ,00010013>
acpi0: MCFG: segment 0, bus 0-255, address 0x00000000e0000000
ACPI: Dynamic OEM Table Load:
ACPI: SSDT 0xFFFF824429121810 0003D3 (v01 PmRef  Cpu0Cst  00003001 INTL 20051117)
ACPI: Dynamic OEM Table Load:
ACPI: SSDT 0xFFFF82410A82D010 0005AA (v01 PmRef  ApIst    00003000 INTL 20051117)
ACPI: Dynamic OEM Table Load:
ACPI: SSDT 0xFFFF82410A726090 000119 (v01 PmRef  ApCst    00003000 INTL 20051117)
acpi0: SCI interrupting at int 9
acpi0: fixed power button present
timecounter: Timecounter "ACPI-Fast" frequency 3579545 Hz quality 1000
hpet0 at acpi0: high precision event timer (mem 0xfed00000-0xfed00400)
timecounter: Timecounter "hpet0" frequency 14318180 Hz quality 2000
acpiec0 at acpi0 (EC0, PNP0C09): io 0x62,0x66
acpiec1 at acpi0 (H_EC, PNP0C09-1): using acpiec0
acpivga0 at acpi0 (GFX0): ACPI Display Adapter
acpiout0 at acpivga0 (DD01, 0x0100): ACPI Display Output Device
acpiout1 at acpivga0 (DD02, 0x0002): ACPI Display Output Device
acpiout2 at acpivga0 (DD03, 0x0300): ACPI Display Output Device
acpiout3 at acpivga0 (DD04, 0x0301): ACPI Display Output Device
acpiout4 at acpivga0 (DD05, 0x0302): ACPI Display Output Device
acpiout5 at acpivga0 (DD06, 0x0303): ACPI Display Output Device
acpiout6 at acpivga0 (DD07, 0x0304): ACPI Display Output Device
acpiout7 at acpivga0 (DD08, 0x0305): ACPI Display Output Device
acpiout8 at acpivga0 (DD09, 0x0009): ACPI Display Output Device
acpiout9 at acpivga0 (DD0A, 0x000a): ACPI Display Output Device
acpiout10 at acpivga0 (DD0B, 0x000b): ACPI Display Output Device
acpiout11 at acpivga0 (DD0C, 0x000c): ACPI Display Output Device
acpiout12 at acpivga0 (DD0D, 0x000d): ACPI Display Output Device
acpiout13 at acpivga0 (DD0E, 0x000e): ACPI Display Output Device
acpiout14 at acpivga0 (DD0F, 0x000f): ACPI Display Output Device
acpiout15 at acpivga0 (DD1F, 0x0400): ACPI Display Output Device
acpiout15: brightness levels: [0-100]
acpivga0: autoconfiguration error: unknown output device acpiout0
acpivga0: autoconfiguration error: unknown output device acpiout1
acpivga0: autoconfiguration error: unknown output device acpiout2
acpivga0: autoconfiguration error: unknown output device acpiout3
acpivga0: autoconfiguration error: unknown output device acpiout4
acpivga0: autoconfiguration error: unknown output device acpiout5
acpivga0: autoconfiguration error: unknown output device acpiout6
acpivga0: autoconfiguration error: unknown output device acpiout7
acpivga0: autoconfiguration error: unknown output device acpiout8
acpivga0: autoconfiguration error: unknown output device acpiout9
acpivga0: autoconfiguration error: unknown output device acpiout10
acpivga0: autoconfiguration error: unknown output device acpiout11
acpivga0: autoconfiguration error: unknown output device acpiout12
acpivga0: autoconfiguration error: unknown output device acpiout13
acpivga0: autoconfiguration error: unknown output device acpiout14
acpivga0: connected output devices:
acpivga0:   0x0400 (acpiout15): Unknown Output Device, head 0
TPMX (PNP0C01) at acpi0 not configured
FWHD (INT0800) at acpi0 not configured
LDRC (PNP0C02) at acpi0 not configured
LDR2 (PNP0C02) at acpi0 not configured
attimer1 at acpi0 (TIMR, PNP0100): io 0x40-0x43,0x50-0x53 irq 0
CWDT (INT3F0D) at acpi0 not configured
SIO1 (PNP0C02) at acpi0 not configured
RMSC (PNP0C02) at acpi0 not configured
pckbc1 at acpi0 (PS2K, MSFT0001) (kbd port): io 0x60,0x64 irq 1
acpiwmi0 at acpi0 (WMI1, PNP0C14-MXM2): ACPI WMI Interface
acpiwmibus at acpiwmi0 not configured
PDRC (PNP0C02) at acpi0 not configured
acpibut0 at acpi0 (PWRB, PNP0C0C-170): ACPI Power Button
acpifan0 at acpi0 (FAN0, PNP0C0B-0): ACPI Fan
acpifan1 at acpi0 (FAN1, PNP0C0B-1): ACPI Fan
acpifan2 at acpi0 (FAN2, PNP0C0B-2): ACPI Fan
acpifan3 at acpi0 (FAN3, PNP0C0B-3): ACPI Fan
acpifan4 at acpi0 (FAN4, PNP0C0B-4): ACPI Fan
acpitz0 at acpi0 (TZ00)
acpitz0: active cooling level 0: 80.0C
acpitz0: active cooling level 1: 55.0C
acpitz0: active cooling level 2: 50.0C
acpitz0: active cooling level 3: 45.0C
acpitz0: active cooling level 4: 40.0C
acpitz0: levels: critical 105.0 C
acpitz1 at acpi0 (TZ01): cpu0 cpu1 cpu2 cpu3 cpu4 cpu5 cpu6 cpu7
acpitz1: levels: critical 105.0 C, passive 108.0 C, passive cooling
acpiwmi1 at acpi0 (AMW0, PNP0C14-ASUSWMI): ACPI WMI Interface
wmieeepc0 at acpiwmi1: Asus Eee PC WMI mappings
ACPI: Enabled 6 GPEs in block 00 to 3F
pckbd0 at pckbc1 (kbd slot)
pckbc1: using irq 1 for kbd slot
wskbd0 at pckbd0: console keyboard
pci0 at mainbus0 bus 0: configuration mode 1
pci0: i/o space, memory space enabled, rd/line, rd/mult, wr/inv ok
pchb0 at pci0 dev 0 function 0: vendor 8086 product 0c00 (rev. 0x06)
ppb0 at pci0 dev 1 function 0: vendor 8086 product 0c01 (rev. 0x06)
ppb0: PCI Express capability version 2 <Root Port of PCI-E Root Complex> x16 @ 8.0GT/s
pci1 at ppb0 bus 1
pci1: i/o space, memory space enabled, rd/line, wr/inv ok
i915drmkms0 at pci0 dev 2 function 0: vendor 8086 product 0412 (rev. 0x06)
hdaudio0 at pci0 dev 3 function 0: HD Audio Controller
hdaudio0: interrupting at msi0 vec 0
hdaudio0: autoconfiguration error: RIRB timeout
unknown at hdaudio0 not configured
xhci0 at pci0 dev 20 function 0: vendor 8086 product 8cb1 (rev. 0x00)
xhci0: interrupting at msi1 vec 0
xhci0: xHCI version 1.0
usb0 at xhci0: USB revision 3.0
usb1 at xhci0: USB revision 2.0
vendor 8086 product 8cba (miscellaneous communications) at pci0 dev 22 function 0 not configured
wm0 at pci0 dev 25 function 0: I218 V Ethernet Connection (rev. 0x00)
wm0: interrupting at msi2 vec 0
wm0: PCI-Express bus
wm0: 2048 words FLASH, version 0.1.4
wm0: Ethernet address 10:c3:7b:95:20:ed
wm0: 0x6a4480<FLASH,IOH_VALID,PCIE,ASF_FIRM,AMT,WOL,EEE>
ihphy0 at wm0 phy 2: i217 10/100/1000 media interface, rev. 5
ihphy0: 10baseT, 10baseT-FDX, 100baseTX, 100baseTX-FDX, 1000baseT, 1000baseT-FDX, auto
ehci0 at pci0 dev 26 function 0: vendor 8086 product 8cad (rev. 0x00)
ehci0: interrupting at ioapic0 pin 16
ehci0: BIOS has given up ownership
ehci0: EHCI version 1.0
usb2 at ehci0: USB revision 2.0
hdaudio1 at pci0 dev 27 function 0: HD Audio Controller
hdaudio1: interrupting at msi3 vec 0
hdafg0 at hdaudio1: vendor 10ec product 0900
hdafg0: DAC00 8ch: Speaker [Jack]
hdafg0: DAC01 2ch: HP Out [Jack]
hdafg0: DIG02 2ch: SPDIF Out [Built-In]
hdafg0: DIG03 2ch: SPDIF Out [Jack]
hdafg0: ADC04 2ch: Line In [Jack], Mic In [Jack]
hdafg0: ADC05 2ch: Mic In [Jack]
hdafg0: 8ch/2ch 32000Hz 44100Hz 48000Hz 88200Hz 96000Hz 192000Hz PCM16 PCM20 PCM24 AC3
audio0 at hdafg0: playback, capture, full duplex, independent
audio0: slinear_le:16 8ch 48000Hz, blk 40ms for playback
audio0: slinear_le:16 2ch 48000Hz, blk 40ms for recording
spkr0 at audio0: PC Speaker (synthesized)
wsbell at spkr0 not configured
ppb1 at pci0 dev 28 function 0: vendor 8086 product 8c90 (rev. 0xd0)
ppb1: PCI Express capability version 2 <Root Port of PCI-E Root Complex> x2 @ 5.0GT/s
pci2 at ppb1 bus 2
pci2: i/o space, memory space enabled, rd/line, wr/inv ok
ppb2 at pci0 dev 28 function 3: vendor 8086 product 8c96 (rev. 0xd0)
ppb2: PCI Express capability version 2 <Root Port of PCI-E Root Complex> x1 @ 5.0GT/s
pci3 at ppb2 bus 3
pci3: i/o space, memory space enabled, rd/line, wr/inv ok
ppb3 at pci3 dev 0 function 0: vendor 1b21 product 1184 (rev. 0x00)
ppb3: PCI Express capability version 2 <Upstream Port of PCI-E Switch>
pci4 at ppb3 bus 4
pci4: i/o space, memory space enabled, rd/line, wr/inv ok
ppb4 at pci4 dev 1 function 0: vendor 1b21 product 1184 (rev. 0x00)
ppb4: PCI Express capability version 2 <Downstream Port of PCI-E Switch> x1 @ 5.0GT/s
ppb4: link is x1 @ 2.5GT/s
pci5 at ppb4 bus 5
pci5: i/o space, memory space enabled, rd/line, wr/inv ok
vendor 14e4 product 43b1 (miscellaneous network, revision 0x03) at pci5 dev 0 function 0 not configured
ppb5 at pci4 dev 3 function 0: vendor 1b21 product 1184 (rev. 0x00)
ppb5: PCI Express capability version 2 <Downstream Port of PCI-E Switch> x1 @ 5.0GT/s
pci6 at ppb5 bus 6
pci6: i/o space, memory space enabled, rd/line, wr/inv ok
ppb6 at pci4 dev 5 function 0: vendor 1b21 product 1184 (rev. 0x00)
ppb6: PCI Express capability version 2 <Downstream Port of PCI-E Switch> x1 @ 5.0GT/s
pci7 at ppb6 bus 7
pci7: i/o space, memory space enabled, rd/line, wr/inv ok
ppb7 at pci4 dev 7 function 0: vendor 1b21 product 1184 (rev. 0x00)
ppb7: PCI Express capability version 2 <Downstream Port of PCI-E Switch> x1 @ 5.0GT/s
pci8 at ppb7 bus 8
pci8: i/o space, memory space enabled, rd/line, wr/inv ok
ahcisata0 at pci8 dev 0 function 0: vendor 1b21 product 0612 (rev. 0x02)
ahcisata0: 64-bit DMA
ahcisata0: AHCI revision 1.20, 2 ports, 32 slots, CAP 0xeb32ff81<CCCS,PSC,SSC,PMD,SPM,ISS=0x3=Gen3,SCLO,SAL,SSS,SSNTF,SNCQ,S64A>
ahcisata0: interrupting at msi4 vec 0
atabus0 at ahcisata0 channel 0
atabus1 at ahcisata0 channel 1
ppb8 at pci0 dev 28 function 6: vendor 8086 product 8c9c (rev. 0xd0)
ppb8: PCI Express capability version 2 <Root Port of PCI-E Root Complex> x1 @ 5.0GT/s
pci9 at ppb8 bus 9
pci9: i/o space, memory space enabled, rd/line, wr/inv ok
xhci1 at pci9 dev 0 function 0: vendor 1b21 product 1142 (rev. 0x00)
xhci1: interrupting at msix5 vec 0
xhci1: xHCI version 1.0
usb3 at xhci1: USB revision 3.0
usb4 at xhci1: USB revision 2.0
ehci1 at pci0 dev 29 function 0: vendor 8086 product 8ca6 (rev. 0x00)
ehci1: interrupting at ioapic0 pin 23
ehci1: BIOS has given up ownership
ehci1: EHCI version 1.0
usb5 at ehci1: USB revision 2.0
ichlpcib0 at pci0 dev 31 function 0: vendor 8086 product 8cc4 (rev. 0x00)
timecounter: Timecounter "ichlpcib0" frequency 3579545 Hz quality 1000
ichlpcib0: 24-bit timer
tco0 at ichlpcib0: TCO (watchdog) timer configured.
tco0: Min/Max interval 1/367 seconds
ahcisata1 at pci0 dev 31 function 2: vendor 8086 product 8c82 (rev. 0x00)
ahcisata1: 64-bit DMA
ahcisata1: AHCI revision 1.30, 6 ports, 32 slots, CAP 0xc330ff45<EMS,PSC,SSC,PMD,ISS=0x3=Gen3,SCLO,SAL,SNCQ,S64A>
ahcisata1: interrupting at msi6 vec 0
atabus2 at ahcisata1 channel 0
atabus3 at ahcisata1 channel 2
atabus4 at ahcisata1 channel 3
ichsmb0 at pci0 dev 31 function 3: vendor 8086 product 8ca2 (rev. 0x00)
ichsmb0: interrupting at ioapic0 pin 18
iic0 at ichsmb0: I2C bus
isa0 at ichlpcib0
pcppi0 at isa0 port 0x61
spkr1 at pcppi0: PC Speaker
wsbell at spkr1 not configured
midi0 at pcppi0: PC speaker
sysbeep0 at pcppi0
attimer1: attached to pcppi0
acpicpu0 at cpu0: ACPI CPU
acpicpu0: C1: FFH, lat   1 us, pow  1000 mW
acpicpu0: C2: FFH, lat 148 us, pow   200 mW
acpicpu0: P0: FFH, lat  10 us, pow 88000 mW, 4001 MHz, turbo boost
acpicpu0: P1: FFH, lat  10 us, pow 88000 mW, 4000 MHz
acpicpu0: P2: FFH, lat  10 us, pow 81704 mW, 3800 MHz
acpicpu0: P3: FFH, lat  10 us, pow 72258 mW, 3500 MHz
acpicpu0: P4: FFH, lat  10 us, pow 66530 mW, 3300 MHz
acpicpu0: P5: FFH, lat  10 us, pow 60999 mW, 3100 MHz
acpicpu0: P6: FFH, lat  10 us, pow 55687 mW, 2900 MHz
acpicpu0: P7: FFH, lat  10 us, pow 48456 mW, 2600 MHz
acpicpu0: P8: FFH, lat  10 us, pow 43627 mW, 2400 MHz
acpicpu0: P9: FFH, lat  10 us, pow 39003 mW, 2200 MHz
acpicpu0: P10: FFH, lat  10 us, pow 32072 mW, 1900 MHz
acpicpu0: P11: FFH, lat  10 us, pow 27930 mW, 1700 MHz
acpicpu0: P12: FFH, lat  10 us, pow 23963 mW, 1500 MHz
acpicpu0: P13: FFH, lat  10 us, pow 20178 mW, 1300 MHz
acpicpu0: P14: FFH, lat  10 us, pow 15137 mW, 1000 MHz
acpicpu0: P15: FFH, lat  10 us, pow 11779 mW,  800 MHz
coretemp0 at cpu0: thermal sensor, 1 C resolution, Tjmax=100
acpicpu1 at cpu1: ACPI CPU
coretemp1 at cpu1: thermal sensor, 1 C resolution, Tjmax=100
acpicpu2 at cpu2: ACPI CPU
coretemp2 at cpu2: thermal sensor, 1 C resolution, Tjmax=100
acpicpu3 at cpu3: ACPI CPU
coretemp3 at cpu3: thermal sensor, 1 C resolution, Tjmax=100
acpicpu4 at cpu4: ACPI CPU
acpicpu5 at cpu5: ACPI CPU
acpicpu6 at cpu6: ACPI CPU
acpicpu7 at cpu7: ACPI CPU
timecounter: Timecounter "clockinterrupt" frequency 100 Hz quality 0
timecounter: Timecounter "TSC" frequency 3997922680 Hz quality 3000
uhub0 at usb0: NetBSD (0000) xHCI root hub (0000), class 9/0, rev 3.00/1.00, addr 0
uhub0: 6 ports with 6 removable, self powered
uhub1 at usb1: NetBSD (0000) xHCI root hub (0000), class 9/0, rev 2.00/1.00, addr 0
uhub1: 14 ports with 14 removable, self powered
uhub2 at usb3: NetBSD (0000) xHCI root hub (0000), class 9/0, rev 3.00/1.00, addr 0
uhub2: 2 ports with 2 removable, self powered
uhub3 at usb4: NetBSD (0000) xHCI root hub (0000), class 9/0, rev 2.00/1.00, addr 0
uhub3: 2 ports with 2 removable, self powered
IPsec: Initialized Security Association Processing.
uhub4 at usb2: NetBSD (0000) EHCI root hub (0000), class 9/0, rev 2.00/1.00, addr 1
uhub4: 2 ports with 2 removable, self powered
uhub5 at usb5: NetBSD (0000) EHCI root hub (0000), class 9/0, rev 2.00/1.00, addr 1
uhub5: 2 ports with 2 removable, self powered
ahcisata0 port 0: device present, speed: 6.0Gb/s
ahcisata1 port 0: device present, speed: 1.5Gb/s
ahcisata1 port 2: device present, speed: 6.0Gb/s
ahcisata1 port 3: device present, speed: 6.0Gb/s
ubt0 at uhub1 port 13
ubt0: Broadcom Corp (0xb05) BCM20702A0 (0x17cf), rev 2.00/1.12, addr 1
wd0 at atabus0 drive 0
uhub6 at uhub3 port 2: vendor 0557 (0x557) product 8021 (0x8021), class 9/0, rev 1.10/1.00, addr 1
wd0: <ST2000DM001-1ER164>
wd0: drive supports 16-sector PIO transfers, LBA48 addressing
wd0: 1863 GB, 3876021 cyl, 16 head, 63 sec, 512 bytes/sect x 3907029168 sectors
uhub6: 4 ports with 4 removable, self powered
wd0: drive supports PIO mode 4, DMA mode 2, Ultra-DMA mode 6 (Ultra/133), WRITE DMA FUA, NCQ (32 tags)
wd0(ahcisata0:0:0): using PIO mode 4, DMA mode 2, Ultra-DMA mode 6 (Ultra/133) (using DMA), NCQ (31 tags)
atapibus0 at atabus2: 1 targets
cd0 at atapibus0 drive 0: <ATAPI   iHAS124   F, 3524728 2F8729503074, CL9M> cdrom removable
cd0: drive supports PIO mode 4, DMA mode 2, Ultra-DMA mode 6 (Ultra/133)
cd0(ahcisata1:0:0): using PIO mode 4, DMA mode 2, Ultra-DMA mode 6 (Ultra/133) (using DMA)
wd1 at atabus3 drive 0
wd1: <ST2000DM006-2DM164>
wd1: drive supports 16-sector PIO transfers, LBA48 addressing
wd1: 1863 GB, 3876021 cyl, 16 head, 63 sec, 512 bytes/sect x 3907029168 sectors
wd1: drive supports PIO mode 4, DMA mode 2, Ultra-DMA mode 6 (Ultra/133), WRITE DMA FUA, NCQ (32 tags)
wd1(ahcisata1:2:0): using PIO mode 4, DMA mode 2, Ultra-DMA mode 6 (Ultra/133) (using DMA), NCQ (31 tags)
wd2 at atabus4 drive 0
wd2: <ST2000DM006-2DM164>
wd2: drive supports 16-sector PIO transfers, LBA48 addressing
wd2: 1863 GB, 3876021 cyl, 16 head, 63 sec, 512 bytes/sect x 3907029168 sectors
wd2: drive supports PIO mode 4, DMA mode 2, Ultra-DMA mode 6 (Ultra/133), WRITE DMA FUA, NCQ (32 tags)
wd2(ahcisata1:3:0): using PIO mode 4, DMA mode 2, Ultra-DMA mode 6 (Ultra/133) (using DMA), NCQ (31 tags)
uhub7 at uhub5 port 1: vendor 8087 (0x8087) product 8001 (0x8001), class 9/0, rev 2.00/0.00, addr 2
uhub7: single transaction translator
uhub8 at uhub4 port 1: vendor 8087 (0x8087) product 8009 (0x8009), class 9/0, rev 2.00/0.00, addr 2
uhub8: single transaction translator
uhub8: 6 ports with 6 removable, self powered
uhub7: 8 ports with 8 removable, self powered
uhidev0 at uhub6 port 1 configuration 1 interface 0
uhidev0: Logitech (0x46d) USB Receiver (0xc534), rev 2.00/29.01, addr 2, iclass 3/1
ukbd0 at uhidev0: 8 Variable keys, 6 Array codes
wskbd1 at ukbd0 mux 1
uhidev1 at uhub6 port 1 configuration 1 interface 1
uhidev1: Logitech (0x46d) USB Receiver (0xc534), rev 2.00/29.01, addr 2, iclass 3/1
uhidev1: 17 report ids
ums0 at uhidev1 reportid 2: 16 buttons, W and Z dirs
wsmouse0 at ums0 mux 0
uhid0 at uhidev1 reportid 3: input=4, output=0, feature=0
uhid1 at uhidev1 reportid 4: input=1, output=0, feature=0
uhid2 at uhidev1 reportid 16: input=6, output=6, feature=0
uhid3 at uhidev1 reportid 17: input=19, output=19, feature=0
uhidev2 at uhub6 port 1 configuration 1 interface 2
uhidev2: Logitech (0x46d) USB Receiver (0xc534), rev 2.00/29.01, addr 2, iclass 3/1
ums1 at uhidev2: 5 buttons and Z dir
wsmouse1 at ums1 mux 0
raid0: RAID Level 1
raid0: Components: /dev/wd1e /dev/wd2e
raid0: Total Sectors: 3907026944 (1907728 MB)
WARNING: 16 errors while detecting hardware; check system log.
boot device: wd0
root on wd0a dumps on wd0b
/: replaying log to memory
root file system type: ffs
kern.module.path=/stand/amd64/9.0/modules
kern info: [drm] Memory usable by graphics device = 2048M
kern info: [drm] Supports vblank timestamp caching Rev 2 (21.10.2013).
kern info: [drm] Driver supports precise vblank timestamp query.
kern info: [drm] failed to find VBIOS tables
i915drmkms0: interrupting at ioapic0 pin 16 (i915drmkms0)
intelfb0 at i915drmkms0
intelfb0: framebuffer at 0xffff9e013c713000, size 1920x1080, depth 32, stride 7680
no data for est. mode 640x480x67
wsdisplay0 at intelfb0 kbdmux 1: console (default, vt100 emulation), using wskbd0
wsmux1: connecting to wsdisplay0
wskbd1: connecting to wsdisplay0
/: replaying log to disk
/var: replaying log to disk
/usr: replaying log to disk
no data for est. mode 640x480x67
wsdisplay0: screen 1 added (default, vt100 emulation)
no data for est. mode 640x480x67
wsdisplay0: screen 2 added (default, vt100 emulation)
no data for est. mode 640x480x67
wsdisplay0: screen 3 added (default, vt100 emulation)
no data for est. mode 640x480x67
wsdisplay0: screen 4 added (default, vt100 emulation)


>Fix:


>Release-Note:

>Audit-Trail:
From: Mike Pumford <mpumford@mudcovered.org.uk>
To: gnats-bugs@netbsd.org
Cc: 
Subject: Re: kern/54585: Kernel panic building package under jenkins
Date: Tue, 1 Oct 2019 19:02:30 +0100

 Seems to be triggered by the npm package build as that s the point where 
 the build log stopped. This is 100% repeatable for me with 3 builds 
 generating 3 crashes with the same panic.

 Removing npm from my package list stops the failure. I don't think its 
 node related as I'm running a fair amount of node stuff on this system 
 without any issues at all.

 Mike

State-Changed-From-To: open->needs-pullups
State-Changed-By: maya@NetBSD.org
State-Changed-When: Sat, 17 Apr 2021 07:53:19 +0000
State-Changed-Why:

From: "Chuck Silvers" <chs@netbsd.org>
To: gnats-bugs@gnats.NetBSD.org
Cc: 
Subject: PR/55509 CVS commit: src/sys/kern
Date: Mon, 14 Dec 2020 23:12:12 +0000

 Module Name:	src
 Committed By:	chs
 Date:		Mon Dec 14 23:12:12 UTC 2020

 Modified Files:
 	src/sys/kern: uipc_sem.c

 Log Message:
 when updating the per-uid "semcnt", decrement the counter for the uid
 that created the ksem, not the uid of the process freeing the ksem.
 fixes PR 55509.

 Reported-by: syzbot+9d04b3ef2ca180ef9b06@syzkaller.appspotmail.com


 To generate a diff of this commit:
 cvs rdiff -u -r1.59 -r1.60 src/sys/kern/uipc_sem.c


>Unformatted:

NetBSD Home
NetBSD PR Database Search

(Contact us) $NetBSD: query-full-pr,v 1.46 2020/01/03 16:35:01 leot Exp $
$NetBSD: gnats_config.sh,v 1.9 2014/08/02 14:16:04 spz Exp $
Copyright © 1994-2020 The NetBSD Foundation, Inc. ALL RIGHTS RESERVED.