From nobody  Thu Apr  3 07:51:36 1997
Received: (from nobody@localhost)
          by freefall.freebsd.org (8.8.5/8.8.5) id HAA28856;
          Thu, 3 Apr 1997 07:51:36 -0800 (PST)
Message-Id: <199704031551.HAA28856@freefall.freebsd.org>
Date: Thu, 3 Apr 1997 07:51:36 -0800 (PST)
From: paul@kryten.woc.atinc.com
To: freebsd-gnats-submit@freebsd.org
Subject: sys call shm_get() broken in 2.2.1-RELEASE, but OK in 2.1.0-RELEASE
X-Send-Pr-Version: www-1.0

>Number:         3186
>Category:       kern
>Synopsis:       sys call shm_get() broken in 2.2.1-RELEASE, but OK in 2.1.0-RELEASE
>Confidential:   no
>Severity:       serious
>Priority:       high
>Responsible:    freebsd-bugs
>State:          closed
>Quarter:
>Keywords:
>Date-Required:
>Class:          sw-bug
>Submitter-Id:   current-users
>Arrival-Date:   Thu Apr  3 08:00:01 PST 1997
>Closed-Date:    Thu Apr 3 11:43:58 PST 1997
>Last-Modified:  Thu Apr  3 11:50:02 PST 1997
>Originator:     Paul Berner
>Release:        2.2.1-RELEASE & 2.1.0-RELEASE
>Organization:
A&T, Inc.
>Environment:
FreeBSD kiawah.woc.Atinc.COM 2.2.1-RELEASE FreeBSD 2.2.1-RELEASE 
#0: Tue Mar 25 15:12:02 GMT 1997     jkh@time.cdrom.com:/usr/src/sys/compile/GENERIC  i386
>Description:
Call to shm_get() produces:
Bad system call (core dumped)

>How-To-Repeat:
make this program:

#include <sys/types.h>
#include <sys/ipc.h>
#include <sys/shm.h>

int main()
{
        key_t           key = 6575;
        int             area_a_id;

#ifndef SHM_R
#define SHM_R           000400 
#define SHM_W           000200 
#endif

/* set up shared memory regions */
        area_a_id = shmget(key, 64*sizeof(double),
                        IPC_CREAT|SHM_R|SHM_W|(SHM_R>>3)|(SHM_R>>6));
    return 0;
}

/* works fine in 2.1.0-R,  but cores in 2.2.1-R */
>Fix:

>Release-Note:
>Audit-Trail:

From: "Jordan K. Hubbard" <jkh@time.cdrom.com>
To: paul@kryten.woc.atinc.com
Cc: freebsd-gnats-submit@freebsd.org
Subject: Re: kern/3186: sys call shm_get() broken in 2.2.1-RELEASE, but OK in 2.1.0-RELEASE 
Date: Thu, 03 Apr 1997 11:07:04 -0800

 I hate to ask the obvious question, but is this with SYSVSHM compiled
 into the kernel?  If you're running GENERIC, it's no longer in there
 by default (and the reason for taking it out escapes me for the
 moment, to be honest).
State-Changed-From-To: open->closed 
State-Changed-By: gpalmer 
State-Changed-When: Thu Apr 3 11:43:58 PST 1997 
State-Changed-Why:  
Submitter reports that the necessary kernel options were not present on 
his system, producing this error. 

From: "Paul Berner, PhD" <paul@kryten.woc.atinc.com>
To: FreeBSD-gnats@freefall.freebsd.org, freebsd-bugs@freefall.freebsd.org
Cc: paul@kryten.woc.atinc.com
Subject: Re: kern/3186: sys call shm_get() broken in 2.2.1-RELEASE, but OK in 2.1.0-RELEASE
Date: Thu, 3 Apr 1997 13:01:30 -0500 (EST)

 PLEASE WITHDRAW THIS PR:
 	GENERIC kernel does NOT have:
 
 options         SYSVSHM
 options         SYSVSEM
 options         SYSVMSG
 
 	When kernel IS built with these options the problem goes away.
 
 	Sorry for the mistake. -pb
 
 On Thu, 3 Apr 1997 FreeBSD-gnats@freefall.freebsd.org wrote:
 
 > Thank you very much for your problem report.
 > It has the internal identification `kern/3186'.
 > The individual assigned to look at your
 > bug is: freebsd-bugs. 
 > 
 > >Category:       kern
 > >Responsible:    freebsd-bugs
 > >Synopsis:       sys call shm_get() broken in 2.2.1-RELEASE, but OK in 2.1.0-RELEASE
 > >Arrival-Date:   Thu Apr  3 08:00:01 PST 1997
 > 
 
>Unformatted:
