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

            Bug ID: 70161
           Summary: fdump-ipa-all-graph causes segfault
           Product: gcc
           Version: 6.0
            Status: UNCONFIRMED
          Severity: minor
          Priority: P3
         Component: ipa
          Assignee: unassigned at gcc dot gnu.org
          Reporter: vries at gcc dot gnu.org
  Target Milestone: ---

...
$ gcc hello.c -fdump-ipa-all-graph
hello.c: In function ‘main’:
hello.c:4:1: internal compiler error: Segmentation fault
 main (void)
 ^~~~
0xf5c9f4 crash_signal
        src/gcc/toplev.c:335
0xd8dbb3 execute_function_dump
        src/gcc/passes.c:1759
0xd8d6a1 do_per_function
        src/gcc/passes.c:1645
0xd8ed73 execute_one_ipa_transform_pass
        src/gcc/passes.c:2217
0xd8ee15 execute_all_ipa_transforms()
        src/gcc/passes.c:2243
0x911fb2 cgraph_node::expand()
        src/gcc/cgraphunit.c:1966
0x912a4c output_in_order
        src/gcc/cgraphunit.c:2211
0x913118 symbol_table::compile()
        src/gcc/cgraphunit.c:2459
0x913357 symbol_table::finalize_compilation_unit()
        src/gcc/cgraphunit.c:2555
Please submit a full bug report,
with preprocessed source if appropriate.
Please include the complete backtrace with any bug report.
See <http://gcc.gnu.org/bugs.html> for instructions.
...

With gdb, we see the cause of the sigsegv:
...
Program received signal SIGSEGV, Segmentation fault.
0x0000000000d8dbb3 in execute_function_dump (fn=0x7ffff619f738, data=0x0) at
/home/vries/gcc_versions/devel/release-branches/trunk/src/gcc/passes.c:1759
1759              if (!pass->graph_dump_initialized)
(gdb) p pass
$1 = (opt_pass *) 0x0
(gdb) p current_pass.name
$5 = 0x24f6970 "inline"
...

Reply via email to