gcc version is 4.1.2 used to compile the program in debug mode
valgrind --log-file="log.txt" -v prog
program throws error of unable to attach to shared memory at address
without valgrind the program is starting properly
Not sure if this is because of old gcc version.
Also please let me know if there is any workaround without upgrading compiler if that is the reason.