Click here to Skip to main content
14,209,109 members
Rate this:
Please Sign up or sign in to vote.
See more:
I have created 4 shared memory segments using
shmid=shmget(key+sdz, shmSize, 0664);
shmat(shmid, CurAddr,SHM_RND);
CurAddr is updated by changing the offset for shmSize for different segments.

the segments are successfully created, checked through ipcs,the client also successfully attach to shared mem segment but the data read is (null) and the client terminated
giving segmentation fault.((null) is compared wid string)
Updated 20-Apr-14 22:14pm
Richard MacCutchan 11-Apr-14 9:03am
Well that's unfortunate. And exactly how can we help?

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)

Advertise | Privacy | Cookies | Terms of Service
Web05 | 2.8.190617.3 | Last Updated 21 Apr 2014
Copyright © CodeProject, 1999-2019
All Rights Reserved.
Layout: fixed | fluid

CodeProject, 503-250 Ferrand Drive Toronto Ontario, M3C 3G8 Canada +1 416-849-8900 x 100