public inbox for gcc-bugs@sourceware.org
help / color / mirror / Atom feed
* [Bug tree-optimization/54942] New: [4.8 Regression] ICE: OOM with -O3 -fno-cse-follow-jumps -funroll-loops
@ 2012-10-17  4:46 zsojka at seznam dot cz
  2012-10-17  5:00 ` [Bug tree-optimization/54942] " zsojka at seznam dot cz
                   ` (5 more replies)
  0 siblings, 6 replies; 7+ messages in thread
From: zsojka at seznam dot cz @ 2012-10-17  4:46 UTC (permalink / raw)
  To: gcc-bugs


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

             Bug #: 54942
           Summary: [4.8 Regression] ICE: OOM with -O3
                    -fno-cse-follow-jumps -funroll-loops
    Classification: Unclassified
           Product: gcc
           Version: 4.8.0
            Status: UNCONFIRMED
          Severity: normal
          Priority: P3
         Component: tree-optimization
        AssignedTo: unassigned@gcc.gnu.org
        ReportedBy: zsojka@seznam.cz


Created attachment 28459
  --> http://gcc.gnu.org/bugzilla/attachment.cgi?id=28459
reduced testcase

Compiler output:
$ gcc -O3 -fno-cse-follow-jumps -funroll-loops testcase.c

cc1: out of memory allocating 17179869180 bytes after a total of 733184 bytes

The original testcase didn't have uninitialised variables... I can provide it
if needed.

Tested revisions:
r192509 - fail
r191586 - OK
4.7 r191640 - OK


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

* [Bug tree-optimization/54942] [4.8 Regression] ICE: OOM with -O3 -fno-cse-follow-jumps -funroll-loops
  2012-10-17  4:46 [Bug tree-optimization/54942] New: [4.8 Regression] ICE: OOM with -O3 -fno-cse-follow-jumps -funroll-loops zsojka at seznam dot cz
@ 2012-10-17  5:00 ` zsojka at seznam dot cz
  2012-10-17  5:31 ` izamyatin at gmail dot com
                   ` (4 subsequent siblings)
  5 siblings, 0 replies; 7+ messages in thread
From: zsojka at seznam dot cz @ 2012-10-17  5:00 UTC (permalink / raw)
  To: gcc-bugs


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

--- Comment #1 from Zdenek Sojka <zsojka at seznam dot cz> 2012-10-17 05:00:16 UTC ---
==21397== Invalid read of size 8
==21397==    at 0x8C1D76: unroll_and_peel_loops(int) (sbitmap.h:141)
==21397==    by 0x8B25E7: rtl_unroll_and_peel_loops() (loop-init.c:378)
==21397==    by 0x905069: execute_one_pass(opt_pass*) (passes.c:2320)
==21397==    by 0x905494: execute_pass_list(opt_pass*) (passes.c:2381)
==21397==    by 0x9054A6: execute_pass_list(opt_pass*) (passes.c:2382)
==21397==    by 0x9054A6: execute_pass_list(opt_pass*) (passes.c:2382)
==21397==    by 0x6C61C7: expand_function(cgraph_node*) (cgraphunit.c:1601)
==21397==    by 0x6C8079: compile() (cgraphunit.c:1705)
==21397==    by 0x6C8654: finalize_compilation_unit() (cgraphunit.c:2080)
==21397==    by 0x5A25B7: c_write_global_declarations() (c-decl.c:10118)
==21397==    by 0x9EC004: compile_file() (toplev.c:560)
==21397==    by 0x9EDBB7: toplev_main(int, char**) (toplev.c:1866)
==21397==    by 0x5A334BC: (below main) (in /lib64/libc-2.15.so)
==21397==  Address 0x67ec2a0 is 0 bytes after a block of size 16 alloc'd
==21397==    at 0x4C29A80: malloc (in
/usr/lib64/valgrind/vgpreload_memcheck-amd64-linux.so)
==21397==    by 0x117A6D7: xmalloc (xmalloc.c:147)
==21397==    by 0x983061: sbitmap_alloc(unsigned int) (sbitmap.c:85)
==21397==    by 0x8C1D60: unroll_and_peel_loops(int) (loop-unroll.c:467)
==21397==    by 0x8B25E7: rtl_unroll_and_peel_loops() (loop-init.c:378)
==21397==    by 0x905069: execute_one_pass(opt_pass*) (passes.c:2320)
==21397==    by 0x905494: execute_pass_list(opt_pass*) (passes.c:2381)
==21397==    by 0x9054A6: execute_pass_list(opt_pass*) (passes.c:2382)
==21397==    by 0x9054A6: execute_pass_list(opt_pass*) (passes.c:2382)
==21397==    by 0x6C61C7: expand_function(cgraph_node*) (cgraphunit.c:1601)
==21397==    by 0x6C8079: compile() (cgraphunit.c:1705)
==21397==    by 0x6C8654: finalize_compilation_unit() (cgraphunit.c:2080)
==21397==    by 0x5A25B7: c_write_global_declarations() (c-decl.c:10118)
==21397==    by 0x9EC004: compile_file() (toplev.c:560)
==21397==    by 0x9EDBB7: toplev_main(int, char**) (toplev.c:1866)
==21397==    by 0x5A334BC: (below main) (in /lib64/libc-2.15.so)
==21397== 
==21397== Invalid write of size 8
==21397==    at 0x8C1D87: unroll_and_peel_loops(int) (sbitmap.h:141)
==21397==    by 0x8B25E7: rtl_unroll_and_peel_loops() (loop-init.c:378)
==21397==    by 0x905069: execute_one_pass(opt_pass*) (passes.c:2320)
==21397==    by 0x905494: execute_pass_list(opt_pass*) (passes.c:2381)
==21397==    by 0x9054A6: execute_pass_list(opt_pass*) (passes.c:2382)
==21397==    by 0x9054A6: execute_pass_list(opt_pass*) (passes.c:2382)
==21397==    by 0x6C61C7: expand_function(cgraph_node*) (cgraphunit.c:1601)
==21397==    by 0x6C8079: compile() (cgraphunit.c:1705)
==21397==    by 0x6C8654: finalize_compilation_unit() (cgraphunit.c:2080)
==21397==    by 0x5A25B7: c_write_global_declarations() (c-decl.c:10118)
==21397==    by 0x9EC004: compile_file() (toplev.c:560)
==21397==    by 0x9EDBB7: toplev_main(int, char**) (toplev.c:1866)
==21397==    by 0x5A334BC: (below main) (in /lib64/libc-2.15.so)
==21397==  Address 0x67ec2a0 is 0 bytes after a block of size 16 alloc'd
==21397==    at 0x4C29A80: malloc (in
/usr/lib64/valgrind/vgpreload_memcheck-amd64-linux.so)
==21397==    by 0x117A6D7: xmalloc (xmalloc.c:147)
==21397==    by 0x983061: sbitmap_alloc(unsigned int) (sbitmap.c:85)
==21397==    by 0x8C1D60: unroll_and_peel_loops(int) (loop-unroll.c:467)
==21397==    by 0x8B25E7: rtl_unroll_and_peel_loops() (loop-init.c:378)
==21397==    by 0x905069: execute_one_pass(opt_pass*) (passes.c:2320)
==21397==    by 0x905494: execute_pass_list(opt_pass*) (passes.c:2381)
==21397==    by 0x9054A6: execute_pass_list(opt_pass*) (passes.c:2382)
==21397==    by 0x9054A6: execute_pass_list(opt_pass*) (passes.c:2382)
==21397==    by 0x6C61C7: expand_function(cgraph_node*) (cgraphunit.c:1601)
==21397==    by 0x6C8079: compile() (cgraphunit.c:1705)
==21397==    by 0x6C8654: finalize_compilation_unit() (cgraphunit.c:2080)
==21397==    by 0x5A25B7: c_write_global_declarations() (c-decl.c:10118)
==21397==    by 0x9EC004: compile_file() (toplev.c:560)
==21397==    by 0x9EDBB7: toplev_main(int, char**) (toplev.c:1866)
==21397==    by 0x5A334BC: (below main) (in /lib64/libc-2.15.so)
==21397== 

cc1: out of memory allocating 17179869180 bytes after a total of 0 bytes


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

* [Bug tree-optimization/54942] [4.8 Regression] ICE: OOM with -O3 -fno-cse-follow-jumps -funroll-loops
  2012-10-17  4:46 [Bug tree-optimization/54942] New: [4.8 Regression] ICE: OOM with -O3 -fno-cse-follow-jumps -funroll-loops zsojka at seznam dot cz
  2012-10-17  5:00 ` [Bug tree-optimization/54942] " zsojka at seznam dot cz
@ 2012-10-17  5:31 ` izamyatin at gmail dot com
  2012-10-17  9:20 ` [Bug rtl-optimization/54942] " rguenth at gcc dot gnu.org
                   ` (3 subsequent siblings)
  5 siblings, 0 replies; 7+ messages in thread
From: izamyatin at gmail dot com @ 2012-10-17  5:31 UTC (permalink / raw)
  To: gcc-bugs


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

Igor Zamyatin <izamyatin at gmail dot com> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
                 CC|                            |izamyatin at gmail dot com

--- Comment #2 from Igor Zamyatin <izamyatin at gmail dot com> 2012-10-17 05:30:47 UTC ---
I see similar for r192219


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

* [Bug rtl-optimization/54942] [4.8 Regression] ICE: OOM with -O3 -fno-cse-follow-jumps -funroll-loops
  2012-10-17  4:46 [Bug tree-optimization/54942] New: [4.8 Regression] ICE: OOM with -O3 -fno-cse-follow-jumps -funroll-loops zsojka at seznam dot cz
  2012-10-17  5:00 ` [Bug tree-optimization/54942] " zsojka at seznam dot cz
  2012-10-17  5:31 ` izamyatin at gmail dot com
@ 2012-10-17  9:20 ` rguenth at gcc dot gnu.org
  2012-10-23  8:52 ` izamyatin at gmail dot com
                   ` (2 subsequent siblings)
  5 siblings, 0 replies; 7+ messages in thread
From: rguenth at gcc dot gnu.org @ 2012-10-17  9:20 UTC (permalink / raw)
  To: gcc-bugs


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

Richard Biener <rguenth at gcc dot gnu.org> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
                 CC|                            |hubicka at gcc dot gnu.org
          Component|tree-optimization           |rtl-optimization
   Target Milestone|---                         |4.8.0

--- Comment #3 from Richard Biener <rguenth at gcc dot gnu.org> 2012-10-17 09:20:01 UTC ---
Honza, this is most certainly yours.


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

* [Bug rtl-optimization/54942] [4.8 Regression] ICE: OOM with -O3 -fno-cse-follow-jumps -funroll-loops
  2012-10-17  4:46 [Bug tree-optimization/54942] New: [4.8 Regression] ICE: OOM with -O3 -fno-cse-follow-jumps -funroll-loops zsojka at seznam dot cz
                   ` (2 preceding siblings ...)
  2012-10-17  9:20 ` [Bug rtl-optimization/54942] " rguenth at gcc dot gnu.org
@ 2012-10-23  8:52 ` izamyatin at gmail dot com
  2012-10-31 20:03 ` zsojka at seznam dot cz
  2012-11-09 23:43 ` steven at gcc dot gnu.org
  5 siblings, 0 replies; 7+ messages in thread
From: izamyatin at gmail dot com @ 2012-10-23  8:52 UTC (permalink / raw)
  To: gcc-bugs


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

--- Comment #4 from Igor Zamyatin <izamyatin at gmail dot com> 2012-10-23 08:52:30 UTC ---
Does it still happen? I don't see oom now for my test


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

* [Bug rtl-optimization/54942] [4.8 Regression] ICE: OOM with -O3 -fno-cse-follow-jumps -funroll-loops
  2012-10-17  4:46 [Bug tree-optimization/54942] New: [4.8 Regression] ICE: OOM with -O3 -fno-cse-follow-jumps -funroll-loops zsojka at seznam dot cz
                   ` (3 preceding siblings ...)
  2012-10-23  8:52 ` izamyatin at gmail dot com
@ 2012-10-31 20:03 ` zsojka at seznam dot cz
  2012-11-09 23:43 ` steven at gcc dot gnu.org
  5 siblings, 0 replies; 7+ messages in thread
From: zsojka at seznam dot cz @ 2012-10-31 20:03 UTC (permalink / raw)
  To: gcc-bugs


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

--- Comment #5 from Zdenek Sojka <zsojka at seznam dot cz> 2012-10-31 20:02:56 UTC ---
(In reply to comment #4)
> Does it still happen? I don't see oom now for my test

I can't reproduce it anymore.


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

* [Bug rtl-optimization/54942] [4.8 Regression] ICE: OOM with -O3 -fno-cse-follow-jumps -funroll-loops
  2012-10-17  4:46 [Bug tree-optimization/54942] New: [4.8 Regression] ICE: OOM with -O3 -fno-cse-follow-jumps -funroll-loops zsojka at seznam dot cz
                   ` (4 preceding siblings ...)
  2012-10-31 20:03 ` zsojka at seznam dot cz
@ 2012-11-09 23:43 ` steven at gcc dot gnu.org
  5 siblings, 0 replies; 7+ messages in thread
From: steven at gcc dot gnu.org @ 2012-11-09 23:43 UTC (permalink / raw)
  To: gcc-bugs


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

Steven Bosscher <steven at gcc dot gnu.org> changed:

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

--- Comment #6 from Steven Bosscher <steven at gcc dot gnu.org> 2012-11-09 23:42:48 UTC ---
Fixed along the way, probably by one of Honza's many patches in this area.


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

end of thread, other threads:[~2012-11-09 23:43 UTC | newest]

Thread overview: 7+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2012-10-17  4:46 [Bug tree-optimization/54942] New: [4.8 Regression] ICE: OOM with -O3 -fno-cse-follow-jumps -funroll-loops zsojka at seznam dot cz
2012-10-17  5:00 ` [Bug tree-optimization/54942] " zsojka at seznam dot cz
2012-10-17  5:31 ` izamyatin at gmail dot com
2012-10-17  9:20 ` [Bug rtl-optimization/54942] " rguenth at gcc dot gnu.org
2012-10-23  8:52 ` izamyatin at gmail dot com
2012-10-31 20:03 ` zsojka at seznam dot cz
2012-11-09 23:43 ` steven 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).