Memory fault(coredump)

Dear All,

I made a program which do some simple jobs like reading data from other process's shared memory and writing messages to the queues of other process.

what happens is my program works fine and do all the task as expected but then then program ends it give Memory fault(coredump). I cannot figure out why.

Looking forward for you replies.

Regards.