On Thu, 2023-02-09 at 16:26 +0530, praveen ab via Gcc-help wrote: > Hi All, > > We are upgrading the GCC version for our existing C/C++ project. > Earlier we were using gcc 5.4 and everything was working fine.(The > application works fine even with gcc 7.4) > When trying to build the application using gcc 8.1 and above we are > observing the random crashes mostly segmentation fault. > Any suggestions on how to debug this? > > Right now I am trying the following: > Enabling the -Wall flag and trying to fix all the warnings > Using GDB to inspect memory location and variables. > > Please Suggest anything else that needs to be checked? Try -fsanitize=undefined and -fsanitize=address. -- Xi Ruoyao <xry111@xxxxxxxxxxx> School of Aerospace Science and Technology, Xidian University