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

            Bug ID: 68117
           Summary: [6 Regression] ICE: Segmentation fault building
                    Firefox on ppc64le
           Product: gcc
           Version: 6.0
            Status: UNCONFIRMED
          Severity: normal
          Priority: P3
         Component: middle-end
          Assignee: unassigned at gcc dot gnu.org
          Reporter: trippels at gcc dot gnu.org
  Target Milestone: ---

trippels@gcc2-power8 libvorbis % /home/trippels/gcc_test/usr/local/bin/gcc -o
Unified_c_media_libvorbis0.o -c -I../../dist/system_wrappers -include
/home/trippels/gecko-dev/config/gcc_hidden.h -DMOZ_GLUE_IN_PROGRAM
-DAB_CD=en-US -DNO_NSPR_10_SUPPORT -I/home/trippels/gecko-dev/media/libvorbis
-I. -I/home/trippels/gecko-dev/media/libvorbis/lib -I../../dist/include
-I/usr/include/nspr4 -I/home/trippels/moz-build-dir/dist/include/nss
-I/usr/include/pixman-1 -fPIC -include ../../mozilla-config.h -DMOZILLA_CLIENT
-MD -MP -MF .deps/Unified_c_media_libvorbis0.o.pp -Wall
-Wdeclaration-after-statement -Wempty-body -Wpointer-to-int-cast -Wsign-compare
-Wtype-limits -Werror=char-subscripts -Werror=comment -Werror=endif-labels
-Werror=enum-compare -Werror=ignored-qualifiers -Werror=int-to-pointer-cast
-Werror=multichar -Werror=nonnull -Werror=pointer-arith -Werror=pointer-sign
-Werror=return-type -Werror=sequence-point -Werror=trigraphs
-Werror=unknown-pragmas -Wno-unused -Wcast-align -w -ffunction-sections
-fdata-sections -std=gnu99 -fgnu89-inline -fno-strict-aliasing -fno-math-errno
-pthread -pipe -DNDEBUG -DTRIMMED -O3 -fomit-frame-pointer -Wno-uninitialized
/home/trippels/moz-build-dir/media/libvorbis/Unified_c_media_libvorbis0.c
In file included from
/home/trippels/moz-build-dir/media/libvorbis/Unified_c_media_libvorbis0.c:137:0:
/home/trippels/gecko-dev/media/libvorbis/lib/vorbisenc.c: In function
‘get_setup_template’:
/home/trippels/gecko-dev/media/libvorbis/lib/vorbisenc.c:633:20: error: invalid
PHI argument
 static const void *get_setup_template(long ch,long srate,
                    ^
<<< Unknown tree: <invalid tree code> >>>
/home/trippels/gecko-dev/media/libvorbis/lib/vorbisenc.c:633:20: internal
compiler error: Segmentation fault
0x107f7e73 crash_signal
        ../../gcc/gcc/toplev.c:353
0x1084fe44 contains_struct_check
        ../../gcc/gcc/tree.h:3032
0x1084fe44 verify_gimple_phi
        ../../gcc/gcc/tree-cfg.c:4669
0x1084fe44 verify_gimple_in_cfg(function*, bool)
        ../../gcc/gcc/tree-cfg.c:4963
0x106f98e3 execute_function_todo
        ../../gcc/gcc/passes.c:1968
0x106fa5e3 do_per_function
        ../../gcc/gcc/passes.c:1659
0x106fa8ff execute_todo
        ../../gcc/gcc/passes.c:2025
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.

Adding --save-temp to the above makes the issue go away.

Valgrind shows:

/home/trippels/gecko-dev/media/libvorbis/lib/vorbisenc.c:633:20: error: invalid
PHI argument
 static const void *get_setup_template(long ch,long srate,
                    ^
<<< Unknown tree: <invalid tree code> >>>
==2662== Invalid read of size 1
==2662==    at 0x1084FE44: contains_struct_check (tree.h:3032)
==2662==    by 0x1084FE44: verify_gimple_phi (tree-cfg.c:4669)
==2662==    by 0x1084FE44: verify_gimple_in_cfg(function*, bool)
(tree-cfg.c:4963)
==2662==    by 0x106F98E3: execute_function_todo(function*, void*)
(passes.c:1968)
==2662==    by 0x106FA5E3: do_per_function(void (*)(function*, void*), void*)
(passes.c:1659)
==2662==    by 0x106FA8FF: execute_todo(unsigned int) (passes.c:2025)
==2662==    by 0x106FE287: execute_one_pass(opt_pass*) (passes.c:2357)
==2662==    by 0x106FE763: execute_pass_list_1(opt_pass*) (passes.c:2397)
==2662==    by 0x106FE77B: execute_pass_list_1(opt_pass*) (passes.c:2398)
==2662==    by 0x106FE77B: execute_pass_list_1(opt_pass*) (passes.c:2398)
==2662==    by 0x106FE803: execute_pass_list(function*, opt_pass*)
(passes.c:2408)
==2662==    by 0x1034A7CF: cgraph_node::expand() (cgraphunit.c:1983)
==2662==    by 0x1034C7B7: expand_all_functions (cgraphunit.c:2119)
==2662==    by 0x1034C7B7: symbol_table::compile() (cgraphunit.c:2472)
==2662==    by 0x1034EEBB: symbol_table::finalize_compilation_unit()
(cgraphunit.c:2562)
==2662==  Address 0x118b0961 is not stack'd, malloc'd or (recently) free'd
==2662==

Reply via email to