I had similar problem when I played with storable in my
Win32::MMF module, which is shared memory under Windows, also uses the
Storable module. I found that this problem happens usually when you are trying to:
- read data unlocked, while another process trying to write data to shared memory at the same time and corrupted the shared memory. This happens a lot with arrays and hashes.
The work around is to lock the shared memory while reading and writing.