Today I have read an article about GCC Undefined Behavior Sanitizer (ubsan). However, when I follow steps there (add -fsanitize=undefined to my
-fsanitize=undefined
I have installed libubsan0 and lib64ubsan0 and added -lubsan option, and my application compiled successfully!
libubsan0
lib64ubsan0
-lubsan