From owner-freebsd-bugs Wed Oct 7 23:40:05 1998 Return-Path: Received: (from majordom@localhost) by hub.freebsd.org (8.8.8/8.8.8) id XAA03817 for freebsd-bugs-outgoing; Wed, 7 Oct 1998 23:40:05 -0700 (PDT) (envelope-from owner-freebsd-bugs@FreeBSD.ORG) Received: from freefall.freebsd.org (freefall.FreeBSD.ORG [204.216.27.21]) by hub.freebsd.org (8.8.8/8.8.8) with ESMTP id XAA03741 for ; Wed, 7 Oct 1998 23:40:01 -0700 (PDT) (envelope-from gnats@FreeBSD.org) Received: (from gnats@localhost) by freefall.freebsd.org (8.8.8/8.8.5) id XAA00759; Wed, 7 Oct 1998 23:40:01 -0700 (PDT) Received: (from nobody@localhost) by hub.freebsd.org (8.8.8/8.8.8) id XAA03264; Wed, 7 Oct 1998 23:34:56 -0700 (PDT) (envelope-from nobody) Message-Id: <199810080634.XAA03264@hub.freebsd.org> Date: Wed, 7 Oct 1998 23:34:56 -0700 (PDT) From: rrs@lmi.net To: freebsd-gnats-submit@FreeBSD.ORG X-Send-Pr-Version: www-1.0 Subject: misc/8202: semop() is not wrapped for thread safety in libc_r Sender: owner-freebsd-bugs@FreeBSD.ORG Precedence: bulk X-Loop: FreeBSD.org >Number: 8202 >Category: misc >Synopsis: semop() is not wrapped for thread safety in libc_r >Confidential: no >Severity: non-critical >Priority: low >Responsible: freebsd-bugs >State: open >Quarter: >Keywords: >Date-Required: >Class: change-request >Submitter-Id: current-users >Arrival-Date: Wed Oct 7 23:40:00 PDT 1998 >Last-Modified: >Originator: Rob Schulhof >Organization: LanMinds Internet >Release: FreeBSD 3.0-19980930 >Environment: FreeBSD schoolie.lmi.net 3.0-BETA FreeBSD 3.0-BETA #8: Wed Sep 30 20:33:07 PDT 1998 root@schoolie.lanminds.com:/usr/src/src/sys/compile/SCHOOL i386 >Description: Semaphore operations are not thread safe. If one thread sleeps waiting on a semop() then all of the threads are suspended. >How-To-Repeat: Create a set of threads that wait on a single semaphore value to reach zero, increment the value for a finite time, then decrement the value and exit. >Fix: Implement semop and semctl wrappers in libc_r. I don't know if any kernel mods are necessary. >Audit-Trail: >Unformatted: To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-bugs" in the body of the message