The mixer(8) command does not return if I use it to set a value of one of mixer devices to an empty string, for example `mixer pcm ""`. It does not make much sense to set the value to an empty string, but I should get at least an error message. Tested on FreeBSD 10.4-RELEASE and FreeBSD 13.0-CURRENT.
Can you run gdb on the hanging process and type "bt" + enter? pkg install gdb gdb83 -p XXXPID bt --HPS
(In reply to Hans Petter Selasky from comment #1) I've posted the patch here: https://reviews.freebsd.org/D21409
A commit references this bug: Author: 0mp Date: Sun Aug 25 17:55:33 UTC 2019 New revision: 351481 URL: https://svnweb.freebsd.org/changeset/base/351481 Log: mixer(8): Report an error if the passed value is an empty string This patch fixes a bug that made the mixer command enter an infinite loop when instructed to set the value of a device to an empty string (e.g., `mixer vol ""`). Additionally, some tests for mixer(8) are being added. PR: 240039 Reviewed by: hselasky, mav Approved by: src (hselasky, mav) MFC after: 1 week Differential Revision: https://reviews.freebsd.org/D21409 Changes: head/etc/mtree/BSD.tests.dist head/usr.sbin/mixer/Makefile head/usr.sbin/mixer/mixer.c head/usr.sbin/mixer/tests/ head/usr.sbin/mixer/tests/Makefile head/usr.sbin/mixer/tests/mixer_test.sh
A commit references this bug: Author: 0mp Date: Fri Mar 13 11:27:30 UTC 2020 New revision: 358955 URL: https://svnweb.freebsd.org/changeset/base/358955 Log: MFC 351481, 357619: Approved by: bcr (mentor), hselasky (src) Differential Revision: https://reviews.freebsd.org/D24058 mixer(8): Report an error if the passed value is an empty string This patch fixes a bug that made the mixer command enter an infinite loop when instructed to set the value of a device to an empty string (e.g., `mixer vol ""`). Additionally, some tests for mixer(8) are being added. PR: 240039 Reviewed by: hselasky, mav Approved by: src (hselasky, mav) Differential Revision: https://reviews.freebsd.org/D21409 mixer: call the cleanup function in a test The set_empty_value test has a cleanup function, but is not called. Fix it Reviewed by: 0mp Approved by: kp Differential Revision: https://reviews.freebsd.org/D23498 Changes: _U stable/12/ stable/12/etc/mtree/BSD.tests.dist stable/12/usr.sbin/mixer/Makefile stable/12/usr.sbin/mixer/mixer.c stable/12/usr.sbin/mixer/tests/ stable/12/usr.sbin/mixer/tests/mixer_test.sh