Skip site navigation (1)Skip section navigation (2)
Date:      Fri, 21 Dec 2001 22:36:44 -0500 (EST)
From:      Alan Eldridge <alane@geeksrus.net>
To:        FreeBSD-gnats-submit@freebsd.org
Subject:   ports/33079: gramofile's fail creating big sets of semaphores
Message-ID:  <200112220336.fBM3aiL87641@wwweasel.geeksrus.net>

next in thread | raw e-mail | index | archive | help

>Number:         33079
>Category:       ports
>Synopsis:       gramofile's fail creating big sets of semaphores
>Confidential:   no
>Severity:       serious
>Priority:       medium
>Responsible:    freebsd-ports
>State:          open
>Quarter:        
>Keywords:       
>Date-Required:
>Class:          sw-bug
>Submitter-Id:   current-users
>Arrival-Date:   Fri Dec 21 19:40:01 PST 2001
>Closed-Date:
>Last-Modified:
>Originator:     Alan Eldridge
>Release:        FreeBSD 4.4-STABLE i386
>Organization:
Geeksrus.NET
>Environment:
System: FreeBSD wwweasel.geeksrus.net 4.4-STABLE FreeBSD 4.4-STABLE #0: Sun Dec 2 19:14:12 EST 2001 root@wwweasel.geeksrus.net:/usr/obj/usr/src/sys/WWWEASEL i386
>Description:

bplay_gramo(brec_gramo) use semaphore sets to keep track of i/o
buffers in shm regions. Currently, they try to create sets of 30
semaphores each, which is too many. The actual limit doesn't seem
to be specified anywhere in a userland header.

>How-To-Repeat:

Try to use gramofile to record from soundcard. Fails with a little
dialog box saying that semget ran out of space.

>Fix:

Since the actual limit isn't publicized, I just cut it by a factor of
3. This is arbitrary, but I think reasonable.

Index: audio/gramofile/files/patch-bplaysrc::shmbuf.c
===================================================================
RCS file: audio/gramofile/files/patch-bplaysrc::shmbuf.c
diff -N audio/gramofile/files/patch-bplaysrc::shmbuf.c
--- /dev/null	1 Jan 1970 00:00:00 -0000
+++ audio/gramofile/files/patch-bplaysrc::shmbuf.c	22 Dec 2001 02:54:51 -0000
@@ -0,0 +1,11 @@
+--- bplaysrc/shmbuf.c.orig	Mon Mar 27 16:38:56 2000
++++ bplaysrc/shmbuf.c	Fri Dec 21 19:35:13 2001
+@@ -41,7 +41,7 @@
+  * you may want to adjust this to whats configured into your kernel,
+  * 30 is just the current default. (see <sys/sem.h>)  -nox
+  */
+-#define SEMMSL  30
++#define SEMMSL  10
+ #else
+ #define SEMMSL  32
+ #endif

>Release-Note:
>Audit-Trail:
>Unformatted:

To Unsubscribe: send mail to majordomo@FreeBSD.org
with "unsubscribe freebsd-ports" in the body of the message




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