From owner-freebsd-gnome@FreeBSD.ORG Thu May 17 15:59:51 2007 Return-Path: X-Original-To: freebsd-gnome@FreeBSD.org Delivered-To: freebsd-gnome@FreeBSD.org Received: from mx1.freebsd.org (mx1.freebsd.org [69.147.83.52]) by hub.freebsd.org (Postfix) with ESMTP id 5798216A404 for ; Thu, 17 May 2007 15:59:51 +0000 (UTC) (envelope-from marcus@FreeBSD.org) Received: from av-tac-rtp.cisco.com (hen.cisco.com [64.102.19.198]) by mx1.freebsd.org (Postfix) with ESMTP id DF24813C48A for ; Thu, 17 May 2007 15:59:50 +0000 (UTC) (envelope-from marcus@FreeBSD.org) X-TACSUNS: Virus Scanned Received: from rooster.cisco.com (localhost [127.0.0.1]) by av-tac-rtp.cisco.com (8.11.7p3+Sun/8.11.7) with ESMTP id l4HFxnI13992; Thu, 17 May 2007 11:59:49 -0400 (EDT) Received: from [64.102.193.121] (dhcp-64-102-193-121.cisco.com [64.102.193.121]) by rooster.cisco.com (8.11.7p3+Sun/8.11.7) with ESMTP id l4HFxnq00825; Thu, 17 May 2007 11:59:49 -0400 (EDT) Message-ID: <464C7C00.8050700@FreeBSD.org> Date: Thu, 17 May 2007 12:00:00 -0400 From: Joe Marcus Clarke Organization: FreeBSD, Inc. User-Agent: Thunderbird 2.0.0.0 (Macintosh/20070326) MIME-Version: 1.0 To: Khairil Yusof 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> In-Reply-To: <1179389188.5904.96.camel@localhost> X-Enigmail-Version: 0.95.0 Content-Type: multipart/mixed; boundary="------------080303040407030504060705" Cc: Brian Gruber , freebsd-gnome@FreeBSD.org Subject: Re: Crash of mixer appler after recent update of ports - known issue ? X-BeenThere: freebsd-gnome@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: GNOME for FreeBSD -- porting and maintaining List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Thu, 17 May 2007 15:59:51 -0000 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: > > > >> 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--