Buffer overflow is causing gdb to behave in a erratic way and proper logs are not being printed. How to enable gdb to print logs in a proper way?
Also, is there a way to detect runtime stack smashing in a multithreaded environment?
Searched about -lmcheck
but it is not thread safe.