cuda-gdb question

Hi,

I have codes running into random memory crash in normal mode. it seems to be heap corruption. Basically, I am linking the g++ compiled files with nvcc compiled files to get executive file.

the frustrating thing is that
the code never run into memory crash (execute correctly) in cuda-gdb mode even when the executive file can not run due to the crash!!!

does anyone experience the same situation?

thanks!