From: Xi Ruoyao <xry111@xry111.site>
To: praveen ab <praveenasb@gmail.com>, gcc-help@gcc.gnu.org
Subject: Re: Random Crash Observed while running program compiled with latest gcc
Date: Thu, 09 Feb 2023 18:59:47 +0800 [thread overview]
Message-ID: <e1ace267294d5835f400be71a5ebd2fa8740a315.camel@xry111.site> (raw)
In-Reply-To: <CAFtRY14PEx9R0pB8VxtoLTKUJRqNMFKM5naqxhM57Lp27z+zXw@mail.gmail.com>
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@xry111.site>
School of Aerospace Science and Technology, Xidian University
next prev parent reply other threads:[~2023-02-09 10:59 UTC|newest]
Thread overview: 4+ messages / expand[flat|nested] mbox.gz Atom feed top
2023-02-09 10:56 praveen ab
2023-02-09 10:59 ` Xi Ruoyao [this message]
2023-02-09 11:01 ` Arsen Arsenović
2023-02-09 17:45 ` praveen ab
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=e1ace267294d5835f400be71a5ebd2fa8740a315.camel@xry111.site \
--to=xry111@xry111.site \
--cc=gcc-help@gcc.gnu.org \
--cc=praveenasb@gmail.com \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).