Summary: | audio/oss Kernel panic at every shutdown after installing OSS | ||||||
---|---|---|---|---|---|---|---|
Product: | Ports & Packages | Reporter: | Marten <martenvdberg> | ||||
Component: | Individual Port(s) | Assignee: | Chris Rees <crees> | ||||
Status: | Closed FIXED | ||||||
Severity: | Affects Some People | CC: | freebsd, freebsd | ||||
Priority: | --- | Flags: | bugzilla:
maintainer-feedback?
(crees) |
||||
Version: | Latest | ||||||
Hardware: | amd64 | ||||||
OS: | Any | ||||||
Attachments: |
|
Description
Marten
2023-04-08 20:21:09 UTC
Thanks for tracing this. Does it also work if instead of the REQUIRE in rcd./mixer you put BEFORE: mixer in /usr/local/etc/rc.d/Oss? (In reply to Chris Rees from comment #1) I just tested this, and yes that also works! Thanks! I'll sort this. (In reply to Chris Rees from comment #3) You're welcome. I'm happy to help! it's wild that this wrong ordering is allowed to just crash the kernel what's going on there? is this software just so badly written? or is is our kernel not resilient enough? There's always a risk that third party modules might be dodgy. I've had to fix a few crashes - it used to panic the system if sound.ko was loaded too! It's very niche; only Asus Xonar users use this these days, so if anyone were looking at fixing it I'd suggest their efforts may be better directed at making a 8788 FreeBSD sound driver :) Committed, thanks! A commit in branch main references this bug: URL: https://cgit.FreeBSD.org/ports/commit/?id=4353081bac0cb82f0590bf81800ac507f0cb75dd commit 4353081bac0cb82f0590bf81800ac507f0cb75dd Author: Marten <martenvdberg@hotmail.com> AuthorDate: 2023-04-13 08:10:55 +0000 Commit: Chris Rees <crees@FreeBSD.org> CommitDate: 2023-04-13 08:16:00 +0000 audio/oss: Save mixer before unloading module After installing the oss package, a kernel panic occurs every time the computer is shut down. This is because the mixer RC script tries to save the mixer values after the OSS module is unloaded. We can avoid this by making OSS unload after this is done. [crees] While here, pet rclint. PR: ports/270709 audio/oss/Makefile | 2 +- audio/oss/files/oss.in | 12 +++++++----- 2 files changed, 8 insertions(+), 6 deletions(-) |