debugging shared memory