public inbox for gcc-bugs@sourceware.org
help / color / mirror / Atom feed
* [Bug analyzer/105113] New: [12 Regression] Analyzer segfaults on __func__ in static function
@ 2022-03-30 20:17 bero at lindev dot ch
  2022-03-30 20:18 ` [Bug analyzer/105113] " bero at lindev dot ch
  2022-03-30 23:05 ` dmalcolm at gcc dot gnu.org
  0 siblings, 2 replies; 3+ messages in thread
From: bero at lindev dot ch @ 2022-03-30 20:17 UTC (permalink / raw)
  To: gcc-bugs

https://gcc.gnu.org/bugzilla/show_bug.cgi?id=105113

            Bug ID: 105113
           Summary: [12 Regression] Analyzer segfaults on __func__ in
                    static function
           Product: gcc
           Version: 12.0
            Status: UNCONFIRMED
          Severity: normal
          Priority: P3
         Component: analyzer
          Assignee: dmalcolm at gcc dot gnu.org
          Reporter: bero at lindev dot ch
  Target Milestone: ---

This is a very recent regression (didn't happen with the 20220313 snapshot).

$ cat test.c
extern void a(char const *);
static void b() { a(__func__); }
void c() { b(); }
$ gcc -O2 -fanalyzer -o test.o -c test.c
during IPA pass: analyzer
In function ‘b’,
    inlined from ‘c’ at test.c:3:12:
test.c:2:19: internal compiler error: Segmentation fault
    2 | static void b() { a(__func__); }
      |                   ^~~~~~~~~~~
0x12faf21 internal_error(char const*, ...)
        ???:0
0x13a630f cgraph_node::get_edge(gimple*)
        ???:0
0xa81d47 ana::decl_region::calc_tracked_p(tree_node*)
        ???:0
0xa91c50 ana::region_model_manager::get_region_for_global(tree_node*)
        ???:0
0xa860b6 ana::region_model::get_rvalue_1(ana::path_var,
ana::region_model_context*) const
        ???:0
0xa85a7a ana::region_model::get_rvalue(ana::path_var,
ana::region_model_context*) const
        ???:0
0xa873ca ana::region_model::handle_unrecognized_call(gcall const*,
ana::region_model_context*)
        ???:0
0xa73ae3 ana::exploded_node::on_stmt(ana::exploded_graph&, ana::supernode
const*, gimple const*, ana::program_state*, ana::uncertainty_t*,
ana::path_context*)
        ???:0
0xa73f41 ana::exploded_graph::process_node(ana::exploded_node*)
        ???:0
0xa74f01 ana::exploded_graph::process_worklist()
        ???:0
0xa762c9 ana::impl_run_checkers(ana::logger*)
        ???:0
0xa76a00 ana::run_checkers()
        ???:0
0x19724b6 execute_ipa_pass_list(opt_pass*)
        ???:0
0x190513b symbol_table::compile()
        ???:0
0x1904f08 symbol_table::finalize_compilation_unit()
        ???:0

^ permalink raw reply	[flat|nested] 3+ messages in thread

* [Bug analyzer/105113] [12 Regression] Analyzer segfaults on __func__ in static function
  2022-03-30 20:17 [Bug analyzer/105113] New: [12 Regression] Analyzer segfaults on __func__ in static function bero at lindev dot ch
@ 2022-03-30 20:18 ` bero at lindev dot ch
  2022-03-30 23:05 ` dmalcolm at gcc dot gnu.org
  1 sibling, 0 replies; 3+ messages in thread
From: bero at lindev dot ch @ 2022-03-30 20:18 UTC (permalink / raw)
  To: gcc-bugs

https://gcc.gnu.org/bugzilla/show_bug.cgi?id=105113

--- Comment #1 from Bernhard Rosenkraenzer <bero at lindev dot ch> ---
Created attachment 52720
  --> https://gcc.gnu.org/bugzilla/attachment.cgi?id=52720&action=edit
Reduced test case

^ permalink raw reply	[flat|nested] 3+ messages in thread

* [Bug analyzer/105113] [12 Regression] Analyzer segfaults on __func__ in static function
  2022-03-30 20:17 [Bug analyzer/105113] New: [12 Regression] Analyzer segfaults on __func__ in static function bero at lindev dot ch
  2022-03-30 20:18 ` [Bug analyzer/105113] " bero at lindev dot ch
@ 2022-03-30 23:05 ` dmalcolm at gcc dot gnu.org
  1 sibling, 0 replies; 3+ messages in thread
From: dmalcolm at gcc dot gnu.org @ 2022-03-30 23:05 UTC (permalink / raw)
  To: gcc-bugs

https://gcc.gnu.org/bugzilla/show_bug.cgi?id=105113

David Malcolm <dmalcolm at gcc dot gnu.org> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
         Resolution|---                         |DUPLICATE
             Status|UNCONFIRMED                 |RESOLVED

--- Comment #2 from David Malcolm <dmalcolm at gcc dot gnu.org> ---
Sorry about the breakage; this should be fixed on trunk now (PR
analyzer/105074).

*** This bug has been marked as a duplicate of bug 105074 ***

^ permalink raw reply	[flat|nested] 3+ messages in thread

end of thread, other threads:[~2022-03-30 23:05 UTC | newest]

Thread overview: 3+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2022-03-30 20:17 [Bug analyzer/105113] New: [12 Regression] Analyzer segfaults on __func__ in static function bero at lindev dot ch
2022-03-30 20:18 ` [Bug analyzer/105113] " bero at lindev dot ch
2022-03-30 23:05 ` dmalcolm at gcc dot gnu.org

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).