NetBSD Problem Report #58017

From www@netbsd.org  Sat Mar  9 13:40:33 2024
Return-Path: <www@netbsd.org>
Received: from mail.netbsd.org (mail.netbsd.org [199.233.217.200])
	(using TLSv1.3 with cipher TLS_AES_256_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 3A4961A923C
	for <gnats-bugs@gnats.NetBSD.org>; Sat,  9 Mar 2024 13:40:33 +0000 (UTC)
Message-Id: <20240309134030.B82CA1A923F@mollari.NetBSD.org>
Date: Sat,  9 Mar 2024 13:40:30 +0000 (UTC)
From: ea1abz@gmail.com
Reply-To: ea1abz@gmail.com
To: gnats-bugs@NetBSD.org
Subject: system crash  on external USB audio card disconnect
X-Send-Pr-Version: www-1.0

>Number:         58017
>Category:       kern
>Synopsis:       system crash  on external USB audio card disconnect
>Confidential:   no
>Severity:       serious
>Priority:       medium
>Responsible:    kern-bug-people
>State:          open
>Class:          sw-bug
>Submitter-Id:   net
>Arrival-Date:   Sat Mar 09 13:45:00 +0000 2024
>Originator:     Ramiro Aceves
>Release:        NetBSD 10.0_RC
>Organization:
>Environment:
NetBSD netbsd-nuc.home 10.0_RC5 NetBSD 10.0_RC5 (GENERIC) #0: Tue Feb 27 05:27:39 UTC 2024  mkrepro@mkrepro.NetBSD.org:/usr/src/sys/arch/amd64/compile/GENERIC amd64

>Description:
Hello

I was into my XFCE session. My system has tree audio devices, internal, HDMI and an external USB M Audio Fast Trak Pro USB card.

netbsd-nuc# audiocfg list
0: [*] audio2 @ uaudio0: USB audio
       playback: 2ch, 44100Hz
       record:   2ch, 48000Hz
       (P-) slinear_le 16/16, 2ch, { 44100 }
       (P-) slinear_le 16/16, 2ch, { 44100 }
       (-R) slinear_le 16/16, 2ch, 8000-48000Hz
1: [ ] audio0 @ hdafg0: Realtek product 0235
       playback: 2ch, 48000Hz
       record:   2ch, 48000Hz
       (PR) slinear_le 16/16, 2ch, { 44100, 48000, 96000, 192000 }
       (PR) slinear_le 20/32, 2ch, { 44100, 48000, 96000, 192000 }
       (PR) slinear_le 24/32, 2ch, { 44100, 48000, 96000, 192000 }
       (  ) ac3 16/16, 2ch, { 44100, 48000, 96000, 192000 }
2: [ ] audio1 @ hdafg1: Intel HDMI/DP
       playback: 2ch, 48000Hz
       record:   2ch, 48000Hz
       (P-) slinear_le 16/16, 2ch, { 48000 }
       (P-) slinear_le 16/16, 4ch, { 48000 }
       (P-) slinear_le 16/16, 6ch, { 48000 }
       (P-) slinear_le 16/16, 8ch, { 48000 }
       (PR) slinear_le 16/16, 2ch, 48000-48000Hz



I decided to play an audio file on the external USB card. I issued the following  command to see the available cards but I did not realize that the command was issued to an opened ssh session on my raspberry PI Zero W:

netbsd-raspa$ su
Password:
anetbsd-raspa# audiocfg list
0: [*] audio0 @ vcaudio0: vchiq auds 3
       playback: 2ch, 48000Hz
       record:   unavailable
       (P-) slinear_le 16/16, 2ch, 48000-48000Hz


I did not see the USB external card device and decided to stop and start it on its  rear panel button.

I started audacity program and after the splash screen appeared the system freezed. The screen was fully freezed and I could not log into the system trough ssh as usual. After several seconds the screen went black and system rebooted (or powered down, I do not remembered).

No /var/crash messages. No /var/log/Xorg messages.

Only catched this fatal page fault in /var/log/messages:


Mar  9 10:23:18 netbsd-nuc dbus-daemon[1363]: [session uid=1000 pid=1417] Successfully activated service 'org.xfce.Xfconf'
Mar  9 11:49:09 netbsd-nuc dbus-daemon[1363]: [session uid=1000 pid=1417] Activating service name='org.xfce.Xfconf' requested by ':1.34' (uid=1000 pid=785 comm="/usr/pkg/lib/xfce4/panel/wrapper-2.0 /usr/pkg/lib/")
Mar  9 11:49:09 netbsd-nuc dbus-daemon[1363]: [session uid=1000 pid=1417] Successfully activated service 'org.xfce.Xfconf'
Mar  9 12:44:41 netbsd-nuc /netbsd: [ 16643.3371974] spkr3: detached
Mar  9 12:44:41 netbsd-nuc /netbsd: [ 16643.3371974] audio2: detached
Mar  9 12:44:41 netbsd-nuc /netbsd: [ 16643.3371974] uaudio0: detached
Mar  9 12:44:41 netbsd-nuc /netbsd: [ 16643.3371974] uaudio0: detached[ 16643.3371974] umidi0: detached
Mar  9 12:44:41 netbsd-nuc /netbsd: [ 16643.3371974] uaudio0: detached[ 1663 (addr 12) disconnected
Mar  9 12:44:49 netbsd-nuc /netbsd: [ 16650.4773917] uaudio0 at uhub7 port 3 configuration 1 interface 0
Mar  9 12:44:49 netbsd-nuc /netbsd: [ 16650.4773917] uaudio0: M-Audio (0x0763) FastTrack Pro (0x2012), rev 1.10/1.00, addr 14
Mar  9 12:44:49 netbsd-nuc /netbsd: [ 16650.4773917] uaudio0: audio rev 1.00
Mar  9 12:44:49 netbsd-nuc /netbsd: [ 16650.4773917] uaudio0: M-Audio : playback, capture, full duplex, independent
Mar  9 12:44:49 netbsd-nuc /netbsd: [ 16650.4773917] audio2: slinear_le:16 2ch 44100Hz, blk 10584 bytes (60ms) for playback
Mar  9 12:44:49 netbsd-nuc /netbsd: [ 16650.4773917] uaudio0: M-Audio : playbh 48000Hz, blk 12000 bytes (62.5ms) for recording
Mar  9 12:44:49 netbsd-nuc /netbsd: [ 16650.4773917] spkr3 at audio2: PC Speaker (synthesized)
Mar  9 12:44:49 netbsd-nuc /netbsd: [ 16650.4773917] wsbell at spkr3 not configured
Mar  9 12:44:49 netbsd-nuc /netbsd: [ 16650.4773917] umidi0 at uhub7 port 3 configuration 1 interface 1
Mar  9 12:44:49 netbsd-nuc /netbsd: [ 16650.4773917] umidi0 at uhub7 port 3 configurationro (0x2012), rev 1.10/1.00, addr 14
Mar  9 12:44:49 netbsd-nuc /netbsd: [ 16650.4773917] umidi0: (genuine USB-MIDI)
Mar  9 12:44:49 netbsd-nuc /netbsd: [ 16650.4773917] umidi0: out=1, in=1
Mar  9 12:44:49 netbsd-nuc /netbsd: [ 16650.4773917] midi1 at umidi0: <0 >0 on umidi0
Mar  9 12:46:18 netbsd-nuc dbus-daemon[1363]: [session uid=1000 pid=1417] Activating service name='org.xfce.Xfconf' requested by ':1.62' (uid=1000 pid=20744 comm="/usr/pkg/bin/thunar")
Mar  9 12:46:18 netbsd-nuc dbus-daemon[1363]: [session uid=1000 pid=1417] Successfully activated service 'org.xfce.Xfconf'
Mar  9 12:46:30 netbsd-nuc /netbsd: [ 16751.7800889] audio0(hdafg0): device timeout
Mar  9 12:46:37 netbsd-nuc /netbsd: [ 16758.7902756] xhci0: xhci_set_dequeue: endpoint 0x85: timed out
Mar  9 12:46:52 netbsd-nuc /netbsd: [ 16773.7906757] xhci0: xhci_set_dequeue: endpoint 0x85: timed out
Mar  9 12:47:07 netbsd-nuc /netbsd: [ 16788.7910745] xhci0: xhci_set_dequeue: endpoint 0x85: timed out
Mar  9 12:55:09 netbsd-nuc syslogd[849]: restart
Mar  9 12:55:09 netbsd-nuc /netbsd: [ 16803.7914745] fatal page fault in supervisor mode
Mar  9 12:55:09 netbsd-nuc /netbsd: [ 16803.7914745] trap type 6 code 0 rip 0xffffffff80489c62 cs 0x8 rflags 0x10246 cr2 0x8 ilevel 0x5 rsp 0xffffa50436981fe8
Mar  9 12:55:12 netbsd-nuc root: /etc/rc: WARNING: $nettest is not set properly - see rc.conf(5).
Mar  9 12:55:12 netbsd-nuc ntpd[1101]: ntpd 4.2.8p15-o Tue Feb 27 05:27:39 UTC 2024 (1): Starting
Mar  9 12:55:12 netbsd-nuc ntpd[1101]: Command line: /usr/sbin/ntpd -p /var/run/ntpd.pid
Mar  9 12:55:12 netbsd-nuc ntpd[1101]: ----------------------------------------------------
Mar  9 12:55:12 netbsd-nuc ntpd[1101]: ntp-4 is maintained by Network Time Foundation,
Mar  9 12:55:12 netbsd-nuc ntpd[1101]: Inc. (NTF), a non-profit 501(c)(3) public-benefit
Mar  9 12:55:12 netbsd-nuc ntpd[1101]: corporation.  Support and training for ntp-4 are
Mar  9 12:55:12 netbsd-nuc ntpd[1101]: available at https://www.nwtime.org/support
Mar  9 12:55:12 netbsd-nuc ntpd[1101]: ----------------------------------------------------
Mar  9 12:55:13 netbsd-nuc ntpd[1102]: proto: precision = 0.649 usec (-20)
Mar  9 12:55:13 netbsd-nuc ntpd[1102]: baseday_set_day: invalid day (25556), UNIX epoch substituted
Mar  9 12:55:13 netbsd-nuc ntpd[1102]: basedate set to 1970-01-01
Mar  9 12:55:13 netbsd-nuc ntpd[1102]: gps base set to 1980-01-06 (week 0)
Mar  9 12:55:13 netbsd-nuc ntpd[1102]: Listen and drop on 0 v6wildcard [::]:123
Mar  9 12:55:13 netbsd-nuc ntpd[1102]: Listen and drop on 1 v4wildcard 0.0.0.0:123
Mar  9 12:55:13 netbsd-nuc ntpd[1102]: Listen normally on 2 wm0 [fe80::1e69:7aff:fe0a:839d%1]:123
Mar  9 12:55:13 netbsd-nuc ntpd[1102]: Listen normally on 3 wm0 192.168.1.200:123
Mar  9 12:55:13 netbsd-nuc ntpd[1102]: Listen normally on 4 lo0 127.0.0.1:123
Mar  9 12:55:13 netbsd-nuc ntpd[1102]: Listen normally on 5 lo0 [::1]:123
Mar  9 12:55:13 netbsd-nuc ntpd[1102]: Listen normally on 6 lo0 [fe80::1%2]:123
Mar  9 12:55:13 netbsd-nuc ntpd[1102]: Listening on routing socket on fd #27 for interface updates
Mar  9 12:55:16 netbsd-nuc ntpd[1102]: kernel reports TIME_ERROR: 0x41: Clock Unsynchronized
Mar  9 12:55:16 netbsd-nuc ntpd[1102]: kernel reports TIME_ERROR: 0x41: Clock Unsynchronized
Mar  9 12:55:17 netbsd-nuc ntpd[1102]: Soliciting pool server 2001:ba0:1800:1c9::1
Mar  9 12:55:31 netbsd-nuc root: /etc/rc: WARNING: $dbus is not set properly - see rc.conf(5).
Mar  9 12:56:22 netbsd-nuc ntpd[1102]: Soliciting pool server 2001:ba0:21f:4900::
Mar  9 12:57:27 netbsd-nuc ntpd[1102]: Soliciting pool server 2001:720:1410:101f::15
Mar  9 12:58:33 netbsd-nuc ntpd[1102]: Soliciting pool server 2001:ba0:21f:4900::3
Mar  9 12:59:38 netbsd-nuc ntpd[1102]: Soliciting pool server 94.143.139.219
Mar  9 12:59:39 netbsd-nuc ntpd[1102]: Soliciting pool server 178.215.228.24
Mar  9 12:59:40 netbsd-nuc ntpd[1102]: Soliciting pool server 178.32.88.247
Mar  9 12:59:42 netbsd-nuc ntpd[1102]: Soliciting pool server 2606:4700:f1::1
Mar  9 13:00:48 netbsd-nuc ntpd[1102]: Soliciting pool server 2001:ba0:21f:4900::
Mar  9 13:01:46 netbsd-nuc dbus-daemon[1612]: [session uid=1000 pid=1585] Activating service name='org.a11y.Bus' requested by ':1.0' (uid=1000 pid=1608 comm="xfce4-session")
Mar  9 13:01:47 netbsd-nuc dbus-daemon[1612]: [session uid=1000 pid=1585] Activating service name='org.gtk.vfs.Daemon' requested by ':1.1' (uid=1000 pid=2006 comm="/usr/pkg/libexec/at-spi-bus-launcher")
Mar  9 13:01:47 netbsd-nuc dbus-daemon[1612]: [session uid=1000 pid=1585] Successfully activated service 'org.gtk.vfs.Daemon'
Mar  9 13:01:47 netbsd-nuc dbus-daemon[1612]: [session uid=1000 pid=1585] Successfully activated service 'org.a11y.Bus'
Mar  9 13:01:47 netbsd-nuc dbus-daemon[1612]: [session uid=1000 pid=1585] Activating service name='org.xfce.Xfconf' requested by ':1.4' (uid=1000 pid=1608 comm="xfce4-session")
Mar  9 13:01:47 netbsd-nuc dbus-daemon[1612]: [session uid=1000 pid=1585] Successfully activated service 'org.xfce.Xfconf'
Mar  9 13:01:53 netbsd-nuc dbus-daemon[1612]: [session uid=1000 pid=1585] Activating service name='org.freedesktop.thumbnails.Thumbnailer1' requested by ':1.15' (uid=1000 pid=1827 comm="xfdesktop --display :0.0 --sm-client-id 11c0a801c8")
Mar  9 13:01:57 netbsd-nuc ntpd[1102]: Soliciting pool server 2001:ba0:21f:4900::2
Mar  9 13:02:10 netbsd-nuc dbus-daemon[1612]: [session uid=1000 pid=1585] Successfully activated service 'org.freedesktop.thumbnails.Thumbnailer1'
Mar  9 13:02:10 netbsd-nuc dbus-daemon[1612]: [session uid=1000 pid=1585] Activating service name='org.xfce.FileManager' requested by ':1.15' (uid=1000 pid=1827 comm="xfdesktop --display :0.0 --sm-client-id 11c0a801c8")
Mar  9 13:02:10 netbsd-nuc dbus-daemon[1612]: [session uid=1000 pid=1585] Activating service name='org.freedesktop.FileManager1' requested by ':1.15' (uid=1000 pid=1827 comm="xfdesktop --display :0.0 --sm-client-id 11c0a801c8")
Mar  9 13:02:10 netbsd-nuc dbus-daemon[1612]: [session uid=1000 pid=1585] Activated service 'org.freedesktop.FileManager1' failed: Failed to execute program org.freedesktop.FileManager1: No such file or directory
Mar  9 13:02:12 netbsd-nuc dbus-daemon[1612]: [session uid=1000 pid=1585] Successfully activated service 'org.xfce.FileManager'
Mar  9 13:03:05 netbsd-nuc ntpd[1102]: Soliciting pool server 2001:ba0:21f:4900::3
Mar  9 13:03:43 netbsd-nuc dbus-daemon[1612]: [session uid=1000 pid=1585] Activating service name='org.gnome.GConf' requested by ':1.47' (uid=1000 pid=1778 comm="/usr/pkg/libexec/gvfsd-network --spawner :1.2 /org")
Mar  9 13:03:43 netbsd-nuc dbus-daemon[1612]: [session uid=1000 pid=1585] Successfully activated service 'org.gnome.GConf'
Mar  9 13:04:12 netbsd-nuc ntpd[1102]: Soliciting pool server 185.90.148.209
Mar  9 13:04:13 netbsd-nuc ntpd[1102]: Soliciting pool server 158.227.98.15
Mar  9 13:05:00 netbsd-nuc /netbsd: [ 16803.7914745] fatal page fault in supervisor mode[ 1015.9101831] audio2: detached
Mar  9 13:05:00 netbsd-nuc /netbsd: [ 1015.9101831] uaudio0: detached
Mar  9 13:05:00 netbsd-nuc /netbsd: [ 1015.9101831] uaudio0: at uhub7 port 3 (addr 12) disconnected
Mar  9 13:05:00 netbsd-nuc /netbsd: [ 1015.9101831] midi1: detached
Mar  9 13:05:00 netbsd-nuc /netbsd: [ 1015.9101831] umidi0: detached
Mar  9 13:05:00 netbsd-nuc /netbsd: [ 1015.9101831] umidi0: at uhub7 port 3 (addr 12) disconnected
Mar  9 13:05:07 netbsd-nuc /netbsd: [ 1023.0503650] uaudio0 at uhub7 port 3 configuration 1 interface 0
Mar  9 13:05:07 netbsd-nuc /netbsd: [ 1023.0503650] uaudio0 at uhub7 port 3 configuratioPro (0x2012), rev 1.10/1.00, addr 14
Mar  9 13:05:07 netbsd-nuc /netbsd: [ 1023.0503650] uaudio0: audio rev 1.00
Mar  9 13:05:07 netbsd-nuc /netbsd: [ 1023.0503650] uaudio0 at uhub7 port 3 configuratioPro (0x2012), rendependent
Mar  9 13:05:07 netbsd-nuc /netbsd: [ 1023.0503650] audio2: slinear_le:16 2ch 44100Hz, blk 10584 bytes (60ms) for playback
Mar  9 13:05:07 netbsd-nuc /netbsd: [ 1023.0503650] audio2: slinear_le:16 2ch 48000Hz, blk 12000 bytes (62.5ms) for recording
Mar  9 13:05:07 netbsd-nuc /netbsd: [ 1023.0503650] spkr3 at audio2: PC Speaker (synthesized)
Mar  9 13:05:07 netbsd-nuc /netbsd: [ 1023.0503650] wsbell at spkr3 not configured
Mar  9 13:05:07 netbsd-nuc /netbsd: [ 1023.0503650] umidi0 at uhub7 port 3 configuration 1 interface 1
Mar  9 13:05:07 netbsd-nuc /netbsd: [ 1023.0503650] umidi0 at uhub7 port 3 configuration 1 interface 1[ 1023.0503650] umidi0: out=1, in=1
Mar  9 13:05:07 netbsd-nuc /netbsd: [ 1023.0503650] midi1 at umidi0: <0 >0 on umidi0
Mar  9 13:06:20 netbsd-nuc ramiro: sh: WARNING: $dbus is not set properly - see rc.conf(5).
Mar  9 13:06:25 netbsd-nuc syslogd[849]: Exiting on signal 15
Mar  9 14:13:42 netbsd-nuc syslogd[570]: restart
Mar  9 14:13:42 netbsd-nuc /netbsd: [   1.0000000] Copyright (c) 1996, 1997, 1998, 1999, 2000, 2001, 2002, 2003,
Mar  9 14:13:42 netbsd-nuc /netbsd: [   1.0000000]     2004, 2005, 2006, 2007, 2008, 2009, 2010, 2011, 2012, 2013,
Mar  9 14:13:42 netbsd-nuc /netbsd: [   1.0000000]     2014, 2015, 2016, 2017, 2018, 2019, 2020, 2021, 2022, 2023,
Mar  9 14:13:42 netbsd-nuc /netbsd: [   1.0000000]     2024






>How-To-Repeat:
I did the same after the reboot and could not reproduce it.

>Fix:
I do not know

NetBSD Home
NetBSD PR Database Search

(Contact us) $NetBSD: query-full-pr,v 1.47 2022/09/11 19:34:41 kim Exp $
$NetBSD: gnats_config.sh,v 1.9 2014/08/02 14:16:04 spz Exp $
Copyright © 1994-2024 The NetBSD Foundation, Inc. ALL RIGHTS RESERVED.