I'm getting a run-time error flagged by GDB which says:

Program received signal SIGSEGV, Segmentation fault.
[Switching to Thread 3412.0x4ac]
0x7c96df51 in ntdll!RtlpNtMakeTemporaryKey ()
from C:\WINDOWS\system32\ntdll.dll


My program is running well if I'm not using debugger to run it. What could be the cause of this error? And why is my app not crashing if I'm having a segmentation fault?