[Bug lto/56495] New: ICE in lto_output_tree with -g -flto -O2

2013-03-01 Thread spammeup2011 at googlemail dot com


http://gcc.gnu.org/bugzilla/show_bug.cgi?id=56495



 Bug #: 56495

   Summary: ICE in lto_output_tree with -g -flto -O2

Classification: Unclassified

   Product: gcc

   Version: 4.8.0

Status: UNCONFIRMED

  Severity: normal

  Priority: P3

 Component: lto

AssignedTo: unassig...@gcc.gnu.org

ReportedBy: spammeup2...@googlemail.com





GCC segfaults while compiling the attached code from Parma Polyhedra Library.

The testcase is huge, but reducing it led to a testcase that only failed in 1

of 10 cases or so. The error message sometimes changed to "tree code '(some

garbage)' is not supported in LTO streams" but i could not reproduce that one. 

GCC 4.8.0 20130301 fails while GCC 4.7.2 works.



Compiler output:

gcc -O2 -flto -g -s ppl.ii 

ppl_c_Rational_Box.cc: In function

'Parma_Polyhedra_Library::operator>(Parma_Polyhedra_Library::Linear_Expression

const&, __gmp_expr<__mpz_struct [1], __mpz_struct [1]> const&)':

ppl_c_Rational_Box.cc:1781:8302: internal compiler error: Segmentation fault

Please submit a full bug report,

with preprocessed source if appropriate.

See  for instructions.



Backtrace:

Program received signal SIGSEGV, Segmentation fault.

lto_output_tree (ob=0x1ece9d0, expr=0xe0049, ref_p=true, 

this_ref_p=true) at ../.././gcc/lto-streamer-out.c:371

371../.././gcc/lto-streamer-out.c: No such file or directory.

(gdb) bt

#0  lto_output_tree (ob=0x1ece9d0, expr=0xe0049, ref_p=true, 

this_ref_p=true) at ../.././gcc/lto-streamer-out.c:371

#1  0x009ed78b in write_ts_block_tree_pointers (ref_p=true, 

expr=0x7491ca80, ob=0x1ece9d0) at ../.././gcc/tree-streamer-out.c:760

#2  streamer_write_tree_body (ob=0x1ece9d0, expr=0x7491ca80, 

ref_p=) at ../.././gcc/tree-streamer-out.c:887

#3  0x008194fd in lto_write_tree (ref_p=true, expr=0x7491ca80, 

ob=0x1ece9d0) at ../.././gcc/lto-streamer-out.c:321

#4  lto_output_tree (ob=0x1ece9d0, expr=0x7491ca80, ref_p=, 

this_ref_p=) at ../.././gcc/lto-streamer-out.c:410

#5  0x009ed176 in write_ts_common_tree_pointers (ref_p=true, 

expr=0x7fffe85aa0f0, ob=0x1ece9d0) at ../.././gcc/tree-streamer-out.c:514

#6  streamer_write_tree_body (ob=0x1ece9d0, expr=0x7fffe85aa0f0, 

ref_p=) at ../.././gcc/tree-streamer-out.c:845

#7  0x008194fd in lto_write_tree (ref_p=true, expr=0x7fffe85aa0f0, 

ob=0x1ece9d0) at ../.././gcc/lto-streamer-out.c:321

#8  lto_output_tree (ob=ob@entry=0x1ece9d0, expr=0x7fffe85aa0f0, 

ref_p=ref_p@entry=true, this_ref_p=this_ref_p@entry=true)

at ../.././gcc/lto-streamer-out.c:410

#9  0x009ed82b in write_ts_exp_tree_pointers (ref_p=, 

expr=, ob=)

at ../.././gcc/tree-streamer-out.c:747

#10 streamer_write_tree_body (ob=0x1ece9d0, expr=0x7fffe858d880, 

---Type  to continue, or q  to quit---

ref_p=) at ../.././gcc/tree-streamer-out.c:884

#11 0x008194fd in lto_write_tree (ref_p=true, expr=0x7fffe858d880, 

ob=0x1ece9d0) at ../.././gcc/lto-streamer-out.c:321

#12 lto_output_tree (ob=0x1ece9d0, expr=0x7fffe858d880, ref_p=, 

this_ref_p=) at ../.././gcc/lto-streamer-out.c:410

#13 0x009ed7f5 in write_ts_exp_tree_pointers (ref_p=, 

expr=, ob=)

at ../.././gcc/tree-streamer-out.c:746

#14 streamer_write_tree_body (ob=0x1ece9d0, expr=0x7fffe85a39d8, 

ref_p=) at ../.././gcc/tree-streamer-out.c:884

#15 0x008194fd in lto_write_tree (ref_p=true, expr=0x7fffe85a39d8, 

ob=0x1ece9d0) at ../.././gcc/lto-streamer-out.c:321

#16 lto_output_tree (ob=0x1ece9d0, expr=0x7fffe85a39d8, ref_p=, 

this_ref_p=) at ../.././gcc/lto-streamer-out.c:410

#17 0x009ed7f5 in write_ts_exp_tree_pointers (ref_p=, 

expr=, ob=)

at ../.././gcc/tree-streamer-out.c:746

#18 streamer_write_tree_body (ob=0x1ece9d0, expr=0x7fffe859a300, 

ref_p=) at ../.././gcc/tree-streamer-out.c:884

#19 0x008194fd in lto_write_tree (ref_p=true, expr=0x7fffe859a300, 

ob=0x1ece9d0) at ../.././gcc/lto-streamer-out.c:321

#20 lto_output_tree (ob=ob@entry=0x1ece9d0, expr=0x7fffe859a300, 

ref_p=ref_p@entry=true, this_ref_p=this_ref_p@entry=true)

---Type  to continue, or q  to quit---

at ../.././gcc/lto-streamer-out.c:410

#21 0x009ed936 in write_ts_decl_common_tree_pointers (ref_p=true, 

expr=0x7fffe85ac5f0, ob=0x1ece9d0) at ../.././gcc/tree-streamer-out.c:584

#22 streamer_write_tree_body (ob=0x1ece9d0, expr=0x7fffe85ac5f0, 

ref_p=) at ../.././gcc/tree-streamer-out.c:857

#23 0x008194fd in lto_write_tree (ref_p=true, expr=0x7fffe85ac5f0, 

ob=0x1ece9d0) at ../.././gcc/lto-streamer-out.c:321

#24 lto_output_tree (ob=0x1ece9d0, expr=0x7fffe85ac5f0, ref_p=, 

this_ref_p=) at ../.././gcc/lto-streamer-out.c:410

#25 0x00c468bf in output_gimple_stmt (stmt=0x7fffe7f80740, 

ob=0x1ece9d0) at ../.././g

[Bug lto/56495] ICE in lto_output_tree with -g -flto -O2

2013-03-01 Thread spammeup2011 at googlemail dot com


http://gcc.gnu.org/bugzilla/show_bug.cgi?id=56495



--- Comment #1 from Florian Meyer  
2013-03-01 14:47:03 UTC ---

Created attachment 29562

  --> http://gcc.gnu.org/bugzilla/attachment.cgi?id=29562

Zipped Preprocessed source



Preprocessed source in zipped form. The file is 3mb unpacked.


[Bug lto/56495] ICE in lto_output_tree with -g -flto -O2

2013-03-06 Thread spammeup2011 at googlemail dot com


http://gcc.gnu.org/bugzilla/show_bug.cgi?id=56495



--- Comment #3 from Florian Meyer  
2013-03-06 21:34:11 UTC ---

Seems i can only reproduce it with the live package provided by Gentoo , even

though it does not apply any patches. If I configure and compile the current

GCC trunk by hand and with the same options the crash does not appear. I'm not

sure where the difference comes from but it seems to have been a false alarm.

Sorry for the waste of time. 



LC_ALL="C" gcc -v -s ppl.ii -O2 -flto -g

Using built-in specs.

COLLECT_GCC=/usr/x86_64-pc-linux-gnu/gcc-bin/4.8.0-pre/gcc

COLLECT_LTO_WRAPPER=/usr/libexec/gcc/x86_64-pc-linux-gnu/4.8.0-pre/lto-wrapper

Target: x86_64-pc-linux-gnu

Configured with:

/mnt/portage/temp/portage/sys-devel/gcc-4.8.0_pre/work/gcc-4.8.0-/configure

--prefix=/usr --bindir=/usr/x86_64-pc-linux-gnu/gcc-bin/4.8.0-pre

--includedir=/usr/lib/gcc/x86_64-pc-linux-gnu/4.8.0-pre/include

--datadir=/usr/share/gcc-data/x86_64-pc-linux-gnu/4.8.0-pre

--mandir=/usr/share/gcc-data/x86_64-pc-linux-gnu/4.8.0-pre/man

--infodir=/usr/share/gcc-data/x86_64-pc-linux-gnu/4.8.0-pre/info

--with-gxx-include-dir=/usr/lib/gcc/x86_64-pc-linux-gnu/4.8.0-pre/include/g++-v4

--host=x86_64-pc-linux-gnu --build=x86_64-pc-linux-gnu --disable-altivec

--disable-fixed-point --enable-lto --enable-nls --without-included-gettext

--with-system-zlib --enable-obsolete --disable-werror --enable-secureplt

--enable-multilib --with-multilib-list=m32,m64 --enable-libmudflap

--disable-libssp --enable-libgomp

--with-python-dir=/share/gcc-data/x86_64-pc-linux-gnu/4.8.0-pre/python

--enable-checking=release --disable-libgcj --enable-libstdcxx-time

--enable-languages=c,c++,fortran --enable-shared --enable-threads=posix

--enable-__cxa_atexit --enable-clocale=gnu --enable-targets=all

--with-bugurl=http://bugs.gentoo.org/ --with-pkgversion='Gentoo 4.8.0_pre'

Thread model: posix

gcc version 4.8.0-pre 20130304 (experimental) commit

050bae72218bcca4e1feddf8bde385097df42f72 (Gentoo 4.8.0_pre) 

COLLECT_GCC_OPTIONS='-v' '-s' '-O2' '-flto' '-g' '-mtune=generic'

'-march=x86-64'

 /usr/libexec/gcc/x86_64-pc-linux-gnu/4.8.0-pre/cc1plus -fpreprocessed

ppl.ii -quiet -dumpbase ppl.ii -mtune=generic -march=x86-64 -auxbase ppl -g -O2

-version -flto -o /tmp/cc6I9l3w.s

GNU C++ (Gentoo 4.8.0_pre) version 4.8.0-pre 20130304 (experimental)

commit 050bae72218bcca4e1feddf8bde385097df42f72 (x86_64-pc-linux-gnu)

compiled by GNU C version 4.8.0-pre 20130304 (experimental) commit

050bae72218bcca4e1feddf8bde385097df42f72, GMP version 5.1.0, MPFR version

3.1.1-p2, MPC version 1.0.1

GGC heuristics: --param ggc-min-expand=100 --param ggc-min-heapsize=131072

GNU C++ (Gentoo 4.8.0_pre) version 4.8.0-pre 20130304 (experimental)

commit 050bae72218bcca4e1feddf8bde385097df42f72 (x86_64-pc-linux-gnu)

compiled by GNU C version 4.8.0-pre 20130304 (experimental) commit

050bae72218bcca4e1feddf8bde385097df42f72, GMP version 5.1.0, MPFR version

3.1.1-p2, MPC version 1.0.1

GGC heuristics: --param ggc-min-expand=100 --param ggc-min-heapsize=131072

Compiler executable checksum: 21b18ee7394db7ae76601a5df9e565da

ppl_c_Rational_Box.cc: In function

'Parma_Polyhedra_Library::operator>(Parma_Polyhedra_Library::Linear_Expression

const&, __gmp_expr<__mpz_struct [1], __mpz_struct [1]> const&)':

ppl_c_Rational_Box.cc:1781:8302: internal compiler error: Segmentation fault

Please submit a full bug report,

with preprocessed source if appropriate.

See  for instructions.


[Bug tree-optimization/55459] Firefox 17: internal compiler error: in scan_tree_for_params_right_scev, at graphite-sese-to-poly.c:633

2012-12-24 Thread spammeup2011 at googlemail dot com


http://gcc.gnu.org/bugzilla/show_bug.cgi?id=55459



Florian Meyer  changed:



   What|Removed |Added



 CC||spammeup2011 at googlemail

   ||dot com



--- Comment #2 from Florian Meyer  
2012-12-24 14:35:08 UTC ---

Same error for me. For 4.6.3 -O1 -fgraphite-identity (or any other graphite

flag) is enough to trigger an ICE, for 4.7.2 -O2 and a graphite flag is

required to trigger it. I'm attaching the preprocessed source and a reduced

testcase.


[Bug tree-optimization/55459] Firefox 17: internal compiler error: in scan_tree_for_params_right_scev, at graphite-sese-to-poly.c:633

2012-12-24 Thread spammeup2011 at googlemail dot com


http://gcc.gnu.org/bugzilla/show_bug.cgi?id=55459



--- Comment #3 from Florian Meyer  
2012-12-24 14:36:48 UTC ---

Created attachment 29042

  --> http://gcc.gnu.org/bugzilla/attachment.cgi?id=29042

Reduced testcase for graphite related ICE



Reduced testcase. Crashes with gcc -O2 -fgraphite-identity -c fft.i


[Bug tree-optimization/55459] Firefox 17: internal compiler error: in scan_tree_for_params_right_scev, at graphite-sese-to-poly.c:633

2012-12-24 Thread spammeup2011 at googlemail dot com


http://gcc.gnu.org/bugzilla/show_bug.cgi?id=55459



--- Comment #4 from Florian Meyer  
2012-12-24 14:40:10 UTC ---

Created attachment 29043

  --> http://gcc.gnu.org/bugzilla/attachment.cgi?id=29043

Preprocessed source



Preprocessed source file from Firefox.