I'm running 8.99.17 as of early June on a Pi 1b, and after adding some devices using USB, I'm seeing frequent crashes, always following the same pattern. The USB connected devices are a network interface, a disk, and two serial devices. The crash is always the same, and always a double (recursive) panic, which may or may not have something to do with me starting to use the hardware watchdog around the same time (the Pi is a couple of hours drive away, so I'd like it to resolve hangs on its own). Here's a sample dmesg run from after a crash and reboot: [ 20547.557417] panic: lock error: Mutex: mutex_vector_enter,524: assertion failed: !cpu_intr_p(): lock 0x806ea268 cpu 0 lwp 0x9bf27b80 [ 20547.557417] cpu0: Begin traceback... [ 20547.557417] 0x807afc44: netbsd:db_panic+0xc [ 20547.557417] 0x807afc5c: netbsd:vpanic+0x138 [ 20547.557417] 0x807afc74: netbsd:snprintf [ 20547.557417] 0x807afcac: netbsd:lockdebug_abort+0x68 [ 20547.557417] 0x807afccc: netbsd:mutex_abort+0x30 [ 20547.557417] 0x807afd1c: netbsd:mutex_enter+0x248 [ 20547.557417] 0x807afd4c: netbsd:usb_allocmem_flags+0x44 [ 20547.557417] 0x807afd64: netbsd:usb_allocmem+0x1c [ 20547.557417] 0x807afdac: netbsd:dwc2_assign_and_init_hc+0x4d8 [ 20547.557417] 0x807afde4: netbsd:dwc2_hcd_select_transactions+0x170 [ 20547.557417] 0x807afe04: netbsd:dwc2_release_channel+0x168 [ 20547.557417] 0x807afe54: netbsd:dwc2_handle_hcd_intr+0xa94 [ 20547.557417] 0x807afe74: netbsd:dwc2_intr+0xe8 [ 20547.557417] 0x807afe94: netbsd:pic_dispatch+0x28 [ 20547.557417] 0x807aff0c: netbsd:pic_do_pending_ints+0x2a4 [ 20547.557417] 0x807aff74: netbsd:irq_entry+0x60 [ 20547.557417] 0x807affac: netbsd:idle_loop+0x170 [ 20547.557417] cpu0: End traceback... [ 20547.557417] dump to dev 92,1 not possible [ 20547.557417] Skipping crash dump on recursive panic [ 20547.557417] panic: lock error: Mutex: mutex_vector_enter,524: assertion failed: !cpu_intr_p(): lock 0x80713790 cpu 0 lwp 0x9bf27b80 [ 20547.557417] cpu0: Begin traceback... [ 20547.557417] 0x807afadc: netbsd:db_panic+0xc [ 20547.557417] 0x807afaf4: netbsd:vpanic+0x138 [ 20547.557417] 0x807afb0c: netbsd:snprintf [ 20547.557417] 0x807afb44: netbsd:lockdebug_abort+0x68 [ 20547.557417] 0x807afb64: netbsd:mutex_abort+0x30 [ 20547.557417] 0x807afbb4: netbsd:mutex_enter+0x248 [ 20547.557417] 0x807afbd4: netbsd:sysmon_wdog_release+0x1c [ 20547.557417] 0x807afbfc: netbsd:sysmon_wdog_setmode+0x94 [ 20547.557417] 0x807afc14: netbsd:sysmon_wdog_shutdown+0x2c [ 20547.557417] 0x807afc2c: netbsd:doshutdownhooks+0x44 [ 20547.557417] 0x807afc44: netbsd:cpu_reboot+0x5c [ 20547.557417] 0x807afc5c: netbsd:vpanic+0x144 [ 20547.557417] 0x807afc74: netbsd:snprintf [ 20547.557417] 0x807afcac: netbsd:lockdebug_abort+0x68 [ 20547.557417] 0x807afccc: netbsd:mutex_abort+0x30 [ 20547.557417] 0x807afd1c: netbsd:mutex_enter+0x248 [ 20547.557417] 0x807afd4c: netbsd:usb_allocmem_flags+0x44 [ 20547.557417] 0x807afd64: netbsd:usb_allocmem+0x1c [ 20547.557417] 0x807afdac: netbsd:dwc2_assign_and_init_hc+0x4d8 [ 20547.557417] 0x807afde4: netbsd:dwc2_hcd_select_transactions+0x170 [ 20547.557417] 0x807afe04: netbsd:dwc2_release_channel+0x168 [ 20547.557417] 0x807afe54: netbsd:dwc2_handle_hcd_intr+0xa94 [ 20547.557417] 0x807afe74: netbsd:dwc2_intr+0xe8 [ 20547.557417] 0x807afe94: netbsd:pic_dispatch+0x28 [ 20547.557417] 0x807aff0c: netbsd:pic_do_pending_ints+0x2a4 [ 20547.557417] 0x807aff74: netbsd:irq_entry+0x60 [ 20547.557417] 0x807affac: [ 1.0000000] Copyright (c) 1996, 1997, 1998, 1999, 2000, 2001, 2002, 2003, 2004, 2005, [ 1.000000] 2006, 2007, 2008, 2009, 2010, 2011, 2012, 2013, 2014, 2015, 2016, 2017, [ 1.000000] 2018 The NetBSD Foundation, Inc. All rights reserved. [ 1.000000] Copyright (c) 1982, 1986, 1989, 1991, 1993 [ 1.000000] The Regents of the University of California. All rights reserved. [ 1.000000] NetBSD 8.99.17 (OTIUM) #23: Wed May 16 06:31:04 CEST 2018 [ 1.000000] root%barsoom.hamartun.priv.no@localhost:/usr/obj/sys/arch/evbarm/compile.evbarm/OTIUM [ 1.000000] total memory = 448 MB [ 1.000000] avail memory = 435 MB [ 1.000000] timecounter: Timecounters tick every 10.000 msec [ 1.000000] armfdt0 (root) [ 1.000000] fdt0 at armfdt0: Raspberry Pi Model B Plus Rev 1.2 [ 1.000000] fdt1 at fdt0 [ 1.000000] fdt2 at fdt1 [ 1.000000] fdt3 at fdt0 [ 1.000000] fclock0 at fdt3: 19200000 Hz fixed clock [ 1.000000] fclock1 at fdt3: 480000000 Hz fixed clock [ 1.000000] cpus0 at fdt0 [ 1.000000] cpu0 at cpus0: 700 MHz ARM1176JZ-S r0p7 (ARM11J V6ZK core) [ 1.000000] cpu0: DC enabled IC enabled WB enabled LABT [ 1.000000] cpu0: 16KB/32B 4-way L1 VIPT Instruction cache [ 1.000000] cpu0: 16KB/32B 4-way write-back-locking-C L1 VIPT Data cache [ 1.000000] vfp0 at cpu0: VFP11, rounding, exceptions [ 1.000000] bcmicu0 at fdt1 [ 1.000000] bcmcprman0 at fdt1: BCM283x Clock Controller [ 1.000000] bcmtmr0 at fdt1: VC System Timer [ 1.000000] bcmtmr0: interrupting on icu irq 3 [ 1.000000] bcmaux0 at fdt1 [ 1.000000] /soc/thermal@7e212000 at fdt1 not configured [ 1.000000] /soc/dsi@7e209000 at fdt1 not configured [ 1.000000] bcmgpio0 at fdt1: GPIO controller [ 1.000000] gpio0 at bcmgpio0: 32 pins [ 1.000000] gpio1 at bcmgpio0: 22 pins [ 1.000000] bcmdmac0 at fdt1: DMA0 DMA2 DMA4 DMA5 DMA8 DMA9 DMA10 [ 1.000000] /soc/power at fdt1 not configured [ 1.000000] bsciic0 at fdt1: Broadcom Serial Controller [ 1.000000] iic0 at bsciic0: I2C bus [ 1.000000] /phy at fdt0 not configured [ 1.000000] bcmmbox0 at fdt1: VC mailbox [ 1.000000] bcmmbox0: interrupting on icu irq 65 [ 1.000000] vcmbox0 at bcmmbox0 [ 1.000000] /chosen at fdt0 not configured [ 1.000000] /arm-pmu at fdt0 not configured [ 1.000000] gpioleds0 at fdt0: ACT PWR [ 1.000000] watchdog0 at fdt1: Power management, Reset and Watchdog controller [ 1.000000] bcmrng0 at fdt1: RNG [ 1.000000] plcom0 at fdt1 [ 1.000000] plcom0: txfifo disabled [ 1.000000] plcom0: console [ 1.000000] bsciic1 at fdt1: Broadcom Serial Controller [ 1.000000] iic1 at bsciic1: I2C bus [ 1.000000] /soc/pixelvalve@7e206000 at fdt1 not configured [ 1.000000] /soc/pixelvalve@7e207000 at fdt1 not configured [ 1.000000] /soc/pwm@7e20c000 at fdt1 not configured [ 1.000000] sdhc0 at fdt1: SDHC controller [ 1.000000] sdhc0: interrupting on icu irq 62 [ 1.000000] /soc/hvs@7e400000 at fdt1 not configured [ 1.000000] bsciic2 at fdt1: Broadcom Serial Controller [ 1.000000] iic2 at bsciic2: I2C bus [ 1.000000] /soc/vec@7e806000 at fdt1 not configured [ 1.000000] /soc/pixelvalve@7e807000 at fdt1 not configured [ 1.000000] /soc/hdmi@7e902000 at fdt1 not configured [ 1.000000] dwctwo0 at fdt1: USB controller [ 1.000000] dwctwo0: interrupting on icu irq 9 [ 1.000000] /soc/v3d@7ec00000 at fdt1 not configured [ 1.000000] /soc/gpu at fdt1 not configured [ 1.000000] genfb0 at fdt1: switching to framebuffer console [ 1.000000] genfb0: framebuffer at 0x5e876000, size 1280x720, depth 32, stride 5120 [ 1.000000] wsdisplay0 at genfb0 kbdmux 1: console (default, vt100 emulation) [ 1.000000] wsmux1: connecting to wsdisplay0 [ 1.000000] wsdisplay0: screen 1-3 added (default, vt100 emulation) [ 1.000000] vchiq0 at fdt1: BCM2835 VCHIQ [ 1.000000] /soc/mailbox@7e00b840 at fdt1 not configured [ 1.000000] timecounter: Timecounter "clockinterrupt" frequency 100 Hz quality 0 [ 1.000003] timecounter: Timecounter "bcmtmr0" frequency 1000000 Hz quality 100 [ 1.000003] sdhc0: SDHC 3.0, rev 153, platform DMA, 250000 kHz, HS 3.3V, re-tuning mode 1, 1024 byte blocks [ 1.013879] sdmmc0 at sdhc0 slot 0 [ 1.026018] usb0 at dwctwo0: USB revision 2.0 [ 1.149160] sdhc0: cmd timeout error [ 1.160489] uhub0 at usb0: NetBSD (0000) DWC2 root hub (0000), class 9/0, rev 2.00/1.00, addr 1 [ 1.160489] uhub0: 1 port with 1 removable, self powered [ 1.290770] IPsec: Initialized Security Association Processing. [ 1.330826] sdmmc0: SD card status: 4-bit, C4 [ 1.330826] ld0 at sdmmc0: <0x03:0x5344:SU16G:0x80:0x119b36bc:0x0b9> [ 1.330826] ld0: 15193 MB, 7717 cyl, 64 head, 63 sec, 512 bytes/sect x 31116288 sectors [ 1.340843] ld0: 4-bit width, High-Speed/SDR25, 50.000 MHz [ 2.992105] uhub1 at uhub0 port 1: vendor 0424 (0x424) product 9514 (0x9514), class 9/0, rev 2.00/2.00, addr 2 [ 2.992105] uhub1: multiple transaction translators [ 2.992105] uhub1: 5 ports with 4 removable, self powered [ 4.303083] usmsc0 at uhub1 port 1 [ 4.303083] usmsc0: vendor 0424 (0x424) product ec00 (0xec00), rev 2.00/2.00, addr 3 [ 4.303083] usmsc0: Ethernet address b8:27:eb:ff:51:2a [ 4.303083] ukphy0 at usmsc0 phy 1: OUI 0x00800f, model 0x000c, rev. 3 [ 4.313407] ukphy0: 10baseT, 10baseT-FDX, 100baseTX, 100baseTX-FDX, auto [ 5.314153] umodem0 at uhub1 port 2 configuration 1 interface 0 [ 5.314153] umodem0: vendor 0658 (0x658) product 0200 (0x200), rev 2.00/0.00, addr 4, iclass 2/2 [ 5.314153] umodem0: data interface 1, has no CM over data, has no break [ 5.314153] umodem0: status change notification available [ 5.314153] ucom0 at umodem0 [ 6.294876] axe0 at uhub1 port 3 [ 6.294876] axe0: ASIX Elec. Corp. (0xb95) AX88x72A (0x7720), rev 2.00/0.01, addr 5 [ 6.755247] axe0: Ethernet address 00:50:b6:8b:17:e7 [ 6.755247] ukphy1 at axe0 phy 16: OUI 0x007063, model 0x0006, rev. 1 [ 6.755247] ukphy1: 10baseT, 10baseT-FDX, 100baseTX, 100baseTX-FDX, auto [ 7.746013] uftdi0 at uhub1 port 4 configuration 1 interface 0 [ 7.746013] uftdi0: RFXCOM (0x403) RFXtrx433 (0x6001), rev 2.00/6.00, addr 6 [ 7.746013] ucom1 at uftdi0 portno 1 [ 8.716744] umass0 at uhub1 port 5 configuration 1 interface 0 [ 8.716744] umass0: Western Digital (0x1058) Elements SE 25FE (0x25fe), rev 2.10/10.19, addr 7 [ 8.716744] umass0: using SCSI over Bulk-Only [ 8.716744] scsibus0 at umass0: 2 targets, 2 luns per target [ 8.716744] uhub0: illegal enable change, port 1 [ 8.716744] sd0 at scsibus0 target 0 lun 0: <WD, Elements SE 25FE, 1019> disk fixed [ 8.736788] sd0(umass0:0:0:0): not ready, data = 00 00 00 00 04 01 00 00 00 00 [ 8.736788] sd0: drive offline [ 8.956971] sd0: fabricating a geometry [ 8.997021] sd0: GPT GUID: 33c631e7-ad51-4fe3-9071-80c9ca4e7770 [ 8.997021] dk0 at sd0: "Elements SE", 1953454080 blocks at 2048, type: ffs [ 9.007409] uk0 at scsibus0 target 0 lun 1: <WD, SES Device, 1019> enclosure services fixed [ 9.007409] WARNING: 2 errors while detecting hardware; check system log. [ 9.007409] boot device: ld0 [ 9.007409] root on ld0a dumps on ld0b [ 9.037476] /: replaying log to memory [ 9.047489] root file system type: ffs [ 9.047489] kern.module.path=/stand/evbarm/8.99.17/modules [ 9.057515] vchiq0: interrupting on icu irq 66 [ 9.057515] vchiq: vchiq_init_state: slot_zero = 0xc97b0000, is_master = 0 [ 9.057515] vchiq: local ver 8 (min 3), remote ver 8. [ 9.057515] vcaudio0 at vchiq0: auds [ 9.057515] WARNING: no TOD clock present [ 9.057515] WARNING: using filesystem time [ 9.063659] WARNING: CHECK AND RESET THE DATE! [ 9.077558] audio0 at vcaudio0: half duplex, playback, capture, mmap, independent [ 9.087585] vcaudio0: Virtual format configured - Format SLINEAR, precision 16, channels 2, frequency 48000 [ 9.087585] vcaudio0: Latency: 100 milliseconds [ 9.087585] spkr0 at audio0: PC Speaker (synthesized) [ 9.087585] wsbell at spkr0 not configured [ 10.510710] /: replaying log to disk [ 21.517770] wsdisplay0: screen 4 added (default, vt100 emulation) [ 35.794277] /m/store: replaying log to disk -tih -- Most people who graduate with CS degrees don't understand the significance of Lisp. Lisp is the most important idea in computer science. --Alan Kay
Attachment:
signature.asc
Description: PGP signature