What's ridiculous is my not feeding stuff properly. From now onwards, ALWAYS remember that for shared memory dynamic allocation, the size is specified IN BYTES.