On MacOSX, after some time and after playing some audio, I get this error:
E:  shm.c: shm_unlink(/pulse-shm-3622699848) failed: Permission denied
And PulseAudio quits after that. Otherwise (before that), it works fine.
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]
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]
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