Sanitizers for C Compilation
gcc has some useful tools to help us find bugs.
Example:
gcc -lpthread -fsanitize=thread  #check data race
gcc -fsanitize=address #check memory error
Actually, there are many other sanitiers which can be the option:  
gcc has some useful tools to help us find bugs.
Example:
gcc -lpthread -fsanitize=thread  #check data race
gcc -fsanitize=address #check memory error
Actually, there are many other sanitiers which can be the option:  
