I'm working with shared memory.
I have requested mmap to get me shared memory of a given size to write onto:
char * sharedMemory = mmap(0, memorySize, PROT_WRITE, MAP_SHARED, sharedMemFd, 0xf0000);
(taken from other shared memory examples, guys). Now, memorySize is o ver 6*10^6 at the time.... but when I try to do memcpy on it I get a SIGBUS. I isolated the index where the problem is happening and it's on char index 5169152. Why is that? Is there a max value that can be mmapped or something?
Thanks in advance.