Closed Bug 1596546 Opened 5 years ago Closed 5 years ago

disable cubeb lazy dlopening on OpenBSD to fix sound when sandboxed

Categories

(Core :: Audio/Video: cubeb, defect, P3)

Unspecified
OpenBSD
defect

Tracking

()

RESOLVED FIXED
mozilla72
Tracking Status
firefox72 --- fixed

People

(Reporter: gaston, Assigned: gaston)

References

(Regression)

Details

(Keywords: regression)

Attachments

(1 file)

Since bug #1580271 the firefox process only sees the files we unveil to it, which doesnt include libsndio, which is used to play sound via cubeb sndio backend.

In bug #1575883, cubeb was updated to contain https://github.com/kinetiknz/cubeb/pull/539 which lazily dlopen() libsndio when needed (ie at the first sound played) - of course this doesnt go well with the unveil work, thus the sound is broken, as reported on https://marc.info/?l=openbsd-ports&m=157339003330019&w=2.

Technically, on OpenBSD we know that sndio is the sound backend we use, so we can disable the sndio dlopening and directly link with sndio as it was the case before.

All that to say i'm going to put https://cgit.rhaalovely.net/mozilla-firefox/commit/?h=unveil&id=ed3d4671090ec2449cb9ab935a923862275f43d6 for review :)

Pushed by mgregan@mozilla.com:
https://hg.mozilla.org/integration/autoland/rev/58992c594ec7
disable sndio lazy loading on OpenBSD, and directly link with it r=kinetik
Priority: -- → P3
Status: NEW → RESOLVED
Closed: 5 years ago
Resolution: --- → FIXED
Target Milestone: --- → mozilla72

Does building cubeb tests as part of Firefox still work? (Remove --disable-tests from your .mozconfig.) For one, bug 1588669 also removed OpenBSD conditional from media/libcubeb/gtest/moz.build.

Flags: needinfo?(landry)
Regressed by: 1588669
Keywords: regression

i dont have --disable-tests, so dunno if the tests are built or not by default...

Flags: needinfo?(landry)
Has Regression Range: --- → yes
You need to log in before you can comment on or make changes to this bug.

Attachment

General

Created:
Updated:
Size: