public inbox for gcc-bugs@sourceware.org help / color / mirror / Atom feed
From: "dmalcolm at gcc dot gnu.org" <gcc-bugzilla@gcc.gnu.org> To: gcc-bugs@gcc.gnu.org Subject: [Bug analyzer/114408] [13/14 Regression] ICE when invoking strcmp multiple times with -fsanitize=undefined -O1 -fanalyzer -flto Date: Fri, 22 Mar 2024 15:09:49 +0000 [thread overview] Message-ID: <bug-114408-4-MA9V4hrNcS@http.gcc.gnu.org/bugzilla/> (raw) In-Reply-To: <bug-114408-4@http.gcc.gnu.org/bugzilla/> https://gcc.gnu.org/bugzilla/show_bug.cgi?id=114408 --- Comment #2 from David Malcolm <dmalcolm at gcc dot gnu.org> --- Created attachment 57781 --> https://gcc.gnu.org/bugzilla/attachment.cgi?id=57781&action=edit WIP patch for the the ICE The attached patch seems to fix the ICE. AIUI I'm lazily creating dominance info as it's needed; calculate_dominance_info has this early exit: if (dom_computed[dir_index] == DOM_OK) { checking_verify_dominators (dir); return; } and free_dominance_info has this early exit: if (!dom_info_available_p (fn, dir)) return; So iterating through all funs with gimple bodies at the end of analyzer calling free_dominance_info on them ought to clean things up - and seems to fix the ICE. However I'm having trouble writing a regression test for this, with the combination of ubsan and lto: I get: output is /usr/bin/ld: cannot find -lubsan collect2: error: ld returned 1 exit status Ideas on fixing welcome.
next prev parent reply other threads:[~2024-03-22 15:09 UTC|newest] Thread overview: 11+ messages / expand[flat|nested] mbox.gz Atom feed top 2024-03-20 15:26 [Bug ipa/114408] New: Crash " gabravier at gmail dot com 2024-03-21 9:35 ` [Bug analyzer/114408] [13/14 Regression] ICE " rguenth at gcc dot gnu.org 2024-03-22 12:35 ` law at gcc dot gnu.org 2024-03-22 15:09 ` dmalcolm at gcc dot gnu.org [this message] 2024-03-22 16:52 ` jakub at gcc dot gnu.org 2024-03-22 16:56 ` jakub at gcc dot gnu.org 2024-03-22 18:34 ` dmalcolm at gcc dot gnu.org 2024-03-23 13:53 ` cvs-commit at gcc dot gnu.org 2024-03-23 14:00 ` [Bug analyzer/114408] [13 " dmalcolm at gcc dot gnu.org 2024-05-09 17:12 ` cvs-commit at gcc dot gnu.org 2024-05-09 17:49 ` [Bug analyzer/114408] " dmalcolm at gcc dot gnu.org
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=bug-114408-4-MA9V4hrNcS@http.gcc.gnu.org/bugzilla/ \ --to=gcc-bugzilla@gcc.gnu.org \ --cc=gcc-bugs@gcc.gnu.org \ /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: linkBe 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).