Segmentation Fault using Python Shared Memory
Basically the problem seems to be that the underlying mmap’ed file (owned by shm within read_from_shm) is being closed when shm is garbage collected when the function returns. Then shmData refers back to it, which is where you get the segfault (for referring to a closed mmap) This seems to be a known bug, but … Read more