I am trying to map two different virtual address ranges to the same physical address ranges. I am currently using shm_open and passing mmap the handle from it and the same offset into the shm handle.
The second mmap succeeds, but shortly after my program segfaults in code doing operations on heap allocated memory that was successfully accessed before.
The social network of the future: No ads, no corporate surveillance, ethical design, and decentralization! Own your data with Mastodon!