Summary: | on MacOSX: shm_unlink failed: Permission denied | ||
---|---|---|---|
Product: | PulseAudio | Reporter: | Albert Zeyer <albzey> |
Component: | core | Assignee: | pulseaudio-bugs |
Status: | RESOLVED FIXED | QA Contact: | pulseaudio-bugs |
Severity: | normal | ||
Priority: | medium | CC: | lennart |
Version: | unspecified | ||
Hardware: | Other | ||
OS: | Mac OS X (All) | ||
Whiteboard: | |||
i915 platform: | i915 features: | ||
Attachments: |
patch
Alternative patch |
Description
Albert Zeyer
2013-04-01 10:59:41 UTC
In shm.c, you use shm_open with mode & 0444. I guess that is the problem. Why are you doing that? If I change it to mode & 0777, this error does not occur anymore. The quit caused this error, not the other way around (as I thought). The quit is because of: I: [] core.c: We are idle, quitting... I: [] main.c: Daemon shutdown initiated. So nothing wrong with the quit (I guess). Created attachment 77309 [details] [review] patch The(In reply to comment #1) > In shm.c, you use shm_open with mode & 0444. I guess that is the problem. > Why are you doing that? No idea. Seems silly. The only caller for pa_shm_create_rw() uses mode 0700. I'll make a slightly different patch: instead of using "mode & 0777", I'll remove the and operator altogether and add an assertion that checks that the mode is valid. Created attachment 77654 [details] [review] Alternative patch The attached patch has also been sent to the mailing list: http://thread.gmane.org/gmane.comp.audio.pulseaudio.general/16566 Fixed in the "master" and "next" branches: http://cgit.freedesktop.org/pulseaudio/pulseaudio/commit/?id=d646d931dc52e21266687cc748961fe2323f4467 |
Use of freedesktop.org services, including Bugzilla, is subject to our Code of Conduct. How we collect and use information is described in our Privacy Policy.