Relay-Version: version B 2.10 5/3/83; site utzoo.UUCP Posting-Version: version B 2.10.2 9/3/84; site enmasse.UUCP Path: utzoo!watmath!clyde!burl!ulysses!allegra!mit-eddie!think!harvard!talcott!panda!enmasse!keith From: keith@enmasse.UUCP (Keith Crews) Newsgroups: net.unix-wizards Subject: Re: Shared Memory Problem Message-ID: <233@enmasse.UUCP> Date: Wed, 2-Apr-86 10:15:44 EST Article-I.D.: enmasse.233 Posted: Wed Apr 2 10:15:44 1986 Date-Received: Sat, 5-Apr-86 08:24:47 EST References: <367@drivax.UUCP> Reply-To: keith@enmasse.UUCP (Keith Crews) Distribution: net Organization: Enmasse Computer Corp., Acton, Mass. Lines: 18 In article <367@drivax.UUCP> holloway@drivax.UUCP (Bruce Holloway) writes: >I'm having a problem with the shared memory routines under System V, and >I wonder if any gurus out there could help me.... > >I'm trying to create a shared memory segment, and put its base address into >a structure pointer. Everything seems fine until I actually try to use >the memory, when I get a core dump. > >What am I doing wrong? (My code included). > > shmid = shmget(key, sizeof(MES), IPC_CREAT | IPC_EXCL); > You need to give access attributes on this shmget. Eg IPC_CREAT | IPC_EXCL | 0666 Keith Crews