| Summary: | mixer(8): setting a mixer device with an empty string (`mixer pcm ""`) does not return | ||
|---|---|---|---|
| Product: | Base System | Reporter: | Mateusz Piotrowski <0mp> |
| Component: | bin | Assignee: | Mateusz Piotrowski <0mp> |
| Status: | Closed FIXED | ||
| Severity: | Affects Only Me | CC: | hselasky |
| Priority: | --- | ||
| Version: | 11.2-RELEASE | ||
| Hardware: | Any | ||
| OS: | Any | ||
|
Description
Mateusz Piotrowski
2019-08-22 15:53:54 UTC
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 |