Subject: port-alpha/8043: shmget fails on alpha
To: None <gnats-bugs@gnats.netbsd.org>
From: Charlie Root <root@garbled.net>
List: netbsd-bugs
Date: 07/21/1999 15:06:51
>Number:         8043
>Category:       port-alpha
>Synopsis:       shmget fails on alpha
>Confidential:   no
>Severity:       serious
>Priority:       medium
>Responsible:    port-alpha-maintainer (NetBSD/alpha Portmaster)
>State:          open
>Class:          sw-bug
>Submitter-Id:   net
>Arrival-Date:   Wed Jul 21 14:35:01 1999
>Last-Modified:
>Originator:     Charlie Root
>Organization:
	
>Release:        1.4<NetBSD-current source date>
>Environment:
	
System: NetBSD giauzar 1.4_ALPHA NetBSD 1.4_ALPHA (GIAUZAR) #0: Mon Apr 12 12:28:55 MST 1999 root@giauzar:/usr/src/current/src/sys/arch/alpha/compile/GIAUZAR alpha


>Description:
Shmget fails miserably on an alpha running 1.4
giauzar# ./foo foo.c
>How-To-Repeat:
snippet of test code stolen from src/regress/sys/uvm/mmap/mmap.c

        pgsize = sysconf(_SC_PAGESIZE);

        printf(">>> CREATING SYSV SHM SEGMENT <<<\n");

        if ((shmid = shmget(IPC_PRIVATE, npgs * pgsize, IPC_CREAT)) == -1)
                err(1, "shmget");


	
>Fix:
prayer?
	
>Audit-Trail:
>Unformatted:
>>> CREATING SYSV SHM SEGMENT <<<
foo: shmget: Invalid argument