[Bug 270709] audio/oss Kernel panic at every shutdown after installing OSS

From: <bugzilla-noreply_at_freebsd.org>
Date: Sat, 08 Apr 2023 20:21:09 UTC

            Bug ID: 270709
           Summary: audio/oss Kernel panic at every shutdown after
                    installing OSS
           Product: Ports & Packages
           Version: Latest
          Hardware: amd64
                OS: Any
            Status: New
          Severity: Affects Some People
          Priority: ---
         Component: Individual Port(s)
          Assignee: crees@FreeBSD.org
          Reporter: martenvdberg@hotmail.com
          Assignee: crees@FreeBSD.org
             Flags: maintainer-feedback?(crees@FreeBSD.org)

Created attachment 241357
  --> https://bugs.freebsd.org/bugzilla/attachment.cgi?id=241357&action=edit

After installing the oss package, a kernel panic occurs every time the computer
is shut down. 

Steps to reproduce:
- Fresh install of FreeBSD 13.1-RELEASE. Tested this with bot UFS and ZFS
filesystems which does not make a difference.
- Build and install a custom Kernel with all sound support removed as
instructed by the audio/oss port.
- Install the oss package
- set oss_enable="YES" in /etc/rc.conf
- Reboot
- Then the kernel panic occurs after the shutdown command is give (core dump
- The kernel panic can also be provoked by first shutting down oss (# service
oss stop) and then shutting down mixer(8) (#service mixer stop)

The sound card (ASUS Xonar D2X) does work with the oss drivers. dmesg() notes
that the Open Sound System is started. Only other message related with this
issue is "pci0:6:4:0: Device leaked IRQ resources".

Hardware in my setup:
Motherboard: Asus Z9PA-D8 motherboard
CPU:2x Intel Xeon E5-2697 v2 @ 2.70GHz
GPU: NVIDIA GeForce GTX 1080
ASUS Xonar D2X

Because the panic occurs whenever mixer(8) is shut down after oss is shut down,
the following workaround will prevent the panic from occurring: add "# REQUIRE:
oss" to /etc/rc.d/mixer, which ensures mixer(8) shuts down before oss.

See also the forum thread discussing this

You are receiving this mail because:
You are the assignee for the bug.