Skip site navigation (1)Skip section navigation (2)
Date:      Thu, 17 May 2007 12:00:00 -0400
From:      Joe Marcus Clarke <marcus@FreeBSD.org>
To:        Khairil Yusof <kaeru@inigo-tech.com>
Cc:        Brian Gruber <knightbg@yahoo.com>, freebsd-gnome@FreeBSD.org
Subject:   Re: Crash of mixer appler after recent update of ports -	known	issue ?
Message-ID:  <464C7C00.8050700@FreeBSD.org>
In-Reply-To: <1179389188.5904.96.camel@localhost>
References:  <342078.61969.qm@web32410.mail.mud.yahoo.com>	 <1179378035.5904.91.camel@localhost>	 <1179381577.12097.18.camel@shumai.marcuscom.com> <1179389188.5904.96.camel@localhost>

next in thread | previous in thread | raw e-mail | index | archive | help
This is a multi-part message in MIME format.
--------------080303040407030504060705
Content-Type: text/plain; charset=ISO-8859-1
Content-Transfer-Encoding: 7bit

-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1

Khairil Yusof wrote:
> On Thu, 2007-05-17 at 01:59 -0400, Joe Marcus Clarke wrote:
> 
> <snipped>
> 
>> A ktrace of the offending process would help determine why this is the
>> case.  It looks like a simple permissions issue.
> 
> [kaeru@wolverine ~]$ ktrace -d pulseaudio
> shm.c: shm_open() failed: Permission denied
> core.c: failed to allocate shared memory pool. Falling back to a normal
> memory pool.

This patch should fix it.  I believe the reason this works on Linux is
that shm segments are not file-backed.

Joe

- --
Joe Marcus Clarke
FreeBSD GNOME Team	::	gnome@FreeBSD.org
FreeNode / #freebsd-gnome
http://www.FreeBSD.org/gnome
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.4.6 (Darwin)
Comment: Using GnuPG with Mozilla - http://enigmail.mozdev.org

iD8DBQFGTHwAb2iPiv4Uz4cRAlmHAKCL6CUWxj9nAc5LtP2LwIEsW/3jXwCeJ/hN
UzsuGlyi6lMO799WSyOEEu4=
=mKxI
-----END PGP SIGNATURE-----

--------------080303040407030504060705
Content-Type: text/plain;
 name="patch-src_pulsecore_shm.c"
Content-Transfer-Encoding: 7bit
Content-Disposition: inline;
 filename="patch-src_pulsecore_shm.c"

--- src/pulsecore/shm.c.orig	Thu May 17 11:57:56 2007
+++ src/pulsecore/shm.c	Thu May 17 11:58:10 2007
@@ -50,7 +50,7 @@
 #define MAX_SHM_SIZE (1024*1024*20)
 
 static char *segment_name(char *fn, size_t l, unsigned id) {
-    snprintf(fn, l, "/pulse-shm-%u", id);
+    snprintf(fn, l, "/tmp/pulse-shm-%u", id);
     return fn;
 }
 

--------------080303040407030504060705--



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?464C7C00.8050700>