public inbox for gcc-bugs@sourceware.org
help / color / mirror / Atom feed
* [Bug lto/59441] New: ICE in bitmap_element_allocate
@ 2013-12-09 23:32 mpolacek at gcc dot gnu.org
  2013-12-09 23:33 ` [Bug lto/59441] " mpolacek at gcc dot gnu.org
                   ` (8 more replies)
  0 siblings, 9 replies; 10+ messages in thread
From: mpolacek at gcc dot gnu.org @ 2013-12-09 23:32 UTC (permalink / raw)
  To: gcc-bugs

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

            Bug ID: 59441
           Summary: ICE in bitmap_element_allocate
           Product: gcc
           Version: 4.9.0
            Status: UNCONFIRMED
          Severity: normal
          Priority: P3
         Component: lto
          Assignee: unassigned at gcc dot gnu.org
          Reporter: mpolacek at gcc dot gnu.org

On

template < typename T > struct A
{
  T foo ();
};
template < typename T > struct C: virtual public A < T >
{
  C & operator<< (C & (C &));
};
template < typename T >
C < T > &endl (C < int > &c)
{
  c.foo ();
  return c;
}
C < int > cout;
void
fn ()
{
  cout << endl;
}

we ICE:

$ ./cc1plus -quiet -fvtable-verify=std w.C -flto -O
w.C: In function ‘_GLOBAL__sub_I.00099_cout’:
w.C:20:1: internal compiler error: Segmentation fault
 }
 ^
0xb6393f crash_signal
    /home/marek/src/gcc/gcc/toplev.c:336
0x7d95c4 bitmap_element_allocate
    /home/marek/src/gcc/gcc/bitmap.c:224
0x7d95c4 bitmap_set_bit(bitmap_head_def*, int)
    /home/marek/src/gcc/gcc/bitmap.c:669
0xd118f3 verify_ssa(bool)
    /home/marek/src/gcc/gcc/tree-ssa.c:1075
0xab73ce execute_function_todo
    /home/marek/src/gcc/gcc/passes.c:1842
0xab7d93 execute_todo
    /home/marek/src/gcc/gcc/passes.c:1875
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.

Target: x86_64-unknown-linux-gnu
Configured with: --disable-bootstrap --enable-languages=c,c++,lto
--enable-checking=yes
gcc version 4.9.0 20131209 (experimental) (GCC)
>From gcc-bugs-return-437138-listarch-gcc-bugs=gcc.gnu.org@gcc.gnu.org Mon Dec 09 23:32:15 2013
Return-Path: <gcc-bugs-return-437138-listarch-gcc-bugs=gcc.gnu.org@gcc.gnu.org>
Delivered-To: listarch-gcc-bugs@gcc.gnu.org
Received: (qmail 3878 invoked by alias); 9 Dec 2013 23:32:15 -0000
Mailing-List: contact gcc-bugs-help@gcc.gnu.org; run by ezmlm
Precedence: bulk
List-Id: <gcc-bugs.gcc.gnu.org>
List-Archive: <http://gcc.gnu.org/ml/gcc-bugs/>
List-Post: <mailto:gcc-bugs@gcc.gnu.org>
List-Help: <mailto:gcc-bugs-help@gcc.gnu.org>
Sender: gcc-bugs-owner@gcc.gnu.org
Delivered-To: mailing list gcc-bugs@gcc.gnu.org
Received: (qmail 3854 invoked by uid 48); 9 Dec 2013 23:32:12 -0000
From: "mpolacek at gcc dot gnu.org" <gcc-bugzilla@gcc.gnu.org>
To: gcc-bugs@gcc.gnu.org
Subject: [Bug lto/59441] ICE in bitmap_element_allocate
Date: Mon, 09 Dec 2013 23:32:00 -0000
X-Bugzilla-Reason: CC
X-Bugzilla-Type: changed
X-Bugzilla-Watch-Reason: None
X-Bugzilla-Product: gcc
X-Bugzilla-Component: lto
X-Bugzilla-Version: 4.9.0
X-Bugzilla-Keywords:
X-Bugzilla-Severity: normal
X-Bugzilla-Who: mpolacek at gcc dot gnu.org
X-Bugzilla-Status: UNCONFIRMED
X-Bugzilla-Priority: P3
X-Bugzilla-Assigned-To: unassigned at gcc dot gnu.org
X-Bugzilla-Target-Milestone: 4.9.0
X-Bugzilla-Flags:
X-Bugzilla-Changed-Fields: target_milestone
Message-ID: <bug-59441-4-AiC448Wwbb@http.gcc.gnu.org/bugzilla/>
In-Reply-To: <bug-59441-4@http.gcc.gnu.org/bugzilla/>
References: <bug-59441-4@http.gcc.gnu.org/bugzilla/>
Content-Type: text/plain; charset="UTF-8"
Content-Transfer-Encoding: 7bit
X-Bugzilla-URL: http://gcc.gnu.org/bugzilla/
Auto-Submitted: auto-generated
MIME-Version: 1.0
X-SW-Source: 2013-12/txt/msg00793.txt.bz2
Content-length: 293

http://gcc.gnu.org/bugzilla/show_bug.cgi?idY441

Marek Polacek <mpolacek at gcc dot gnu.org> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
   Target Milestone|---                         |4.9.0


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

* [Bug lto/59441] ICE in bitmap_element_allocate
  2013-12-09 23:32 [Bug lto/59441] New: ICE in bitmap_element_allocate mpolacek at gcc dot gnu.org
@ 2013-12-09 23:33 ` mpolacek at gcc dot gnu.org
  2013-12-11 14:32 ` rguenth at gcc dot gnu.org
                   ` (7 subsequent siblings)
  8 siblings, 0 replies; 10+ messages in thread
From: mpolacek at gcc dot gnu.org @ 2013-12-09 23:33 UTC (permalink / raw)
  To: gcc-bugs

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

--- Comment #1 from Marek Polacek <mpolacek at gcc dot gnu.org> ---
Reminder: after fixing this one, make pr59437.C run with -flto again.


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

* [Bug lto/59441] ICE in bitmap_element_allocate
  2013-12-09 23:32 [Bug lto/59441] New: ICE in bitmap_element_allocate mpolacek at gcc dot gnu.org
  2013-12-09 23:33 ` [Bug lto/59441] " mpolacek at gcc dot gnu.org
@ 2013-12-11 14:32 ` rguenth at gcc dot gnu.org
  2014-03-17 14:36 ` mpolacek at gcc dot gnu.org
                   ` (6 subsequent siblings)
  8 siblings, 0 replies; 10+ messages in thread
From: rguenth at gcc dot gnu.org @ 2013-12-11 14:32 UTC (permalink / raw)
  To: gcc-bugs

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

--- Comment #2 from Richard Biener <rguenth at gcc dot gnu.org> ---
ICEs for me at

> ./xg++ -B. -shared t.C -fPIC -nostdlib -flto -O -fvtable-verify=std 
t.C: In function '_GLOBAL__sub_I.00099_t.C':
t.C:20:1: internal compiler error: in pool_free, at alloc-pool.c:347
 }
 ^
0x91e6b3 pool_free(alloc_pool_def*, void*)
    /space/rguenther/src/svn/trunk/gcc/alloc-pool.c:343
0xa5bb69 et_free_tree_force
    /space/rguenther/src/svn/trunk/gcc/et-forest.c:508
0x9fa721 free_dominance_info(cdi_direction)
    /space/rguenther/src/svn/trunk/gcc/dominance.c:694
0xfe387b verify_ssa(bool)

instead.  Must be a memory corruption, valgrind is very noisy, first error:

==1198== Invalid write of size 8
==1198==    at 0x91F22C: bitmap_initialize_stat(bitmap_head*, bitmap_obstack*)
(bitmap.h:277)
==1198==    by 0x91FDBC: bitmap_obstack_alloc_stat(bitmap_obstack*)
(bitmap.c:376)
==1198==    by 0xE5AC4A:
mark_def_dom_walker::mark_def_dom_walker(cdi_direction) (tree-into-ssa.c:2234)
==1198==    by 0xE5AF18: rewrite_into_ssa() (tree-into-ssa.c:2331)
==1198==    by 0xE5B208: (anonymous namespace)::pass_build_ssa::execute()
(tree-into-ssa.c:2403)
==1198==    by 0xCE0617: execute_one_pass(opt_pass*) (passes.c:2213)
==1198==    by 0xCE082E: execute_pass_list(opt_pass*) (passes.c:2266)
==1198==    by 0xCD4C56: gcc::pass_manager::execute_early_local_passes()
(passes.c:135)
==1198==    by 0x9B11D1: cgraph_process_new_functions() (cgraphunit.c:338)
==1198==    by 0x88DC53: vtv_generate_init_routine()
(vtable-class-hierarchy.c:1191)
==1198==    by 0x737B06: cp_write_global_declarations() (decl2.c:4440)
==1198==    by 0xDD0D7F: compile_file() (toplev.c:561)


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

* [Bug lto/59441] ICE in bitmap_element_allocate
  2013-12-09 23:32 [Bug lto/59441] New: ICE in bitmap_element_allocate mpolacek at gcc dot gnu.org
  2013-12-09 23:33 ` [Bug lto/59441] " mpolacek at gcc dot gnu.org
  2013-12-11 14:32 ` rguenth at gcc dot gnu.org
@ 2014-03-17 14:36 ` mpolacek at gcc dot gnu.org
  2014-04-22 11:36 ` jakub at gcc dot gnu.org
                   ` (5 subsequent siblings)
  8 siblings, 0 replies; 10+ messages in thread
From: mpolacek at gcc dot gnu.org @ 2014-03-17 14:36 UTC (permalink / raw)
  To: gcc-bugs

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

Marek Polacek <mpolacek at gcc dot gnu.org> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
             Status|UNCONFIRMED                 |NEW
   Last reconfirmed|                            |2014-03-17
     Ever confirmed|0                           |1


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

* [Bug lto/59441] ICE in bitmap_element_allocate
  2013-12-09 23:32 [Bug lto/59441] New: ICE in bitmap_element_allocate mpolacek at gcc dot gnu.org
                   ` (2 preceding siblings ...)
  2014-03-17 14:36 ` mpolacek at gcc dot gnu.org
@ 2014-04-22 11:36 ` jakub at gcc dot gnu.org
  2014-07-16 13:29 ` jakub at gcc dot gnu.org
                   ` (4 subsequent siblings)
  8 siblings, 0 replies; 10+ messages in thread
From: jakub at gcc dot gnu.org @ 2014-04-22 11:36 UTC (permalink / raw)
  To: gcc-bugs

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

Jakub Jelinek <jakub at gcc dot gnu.org> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
   Target Milestone|4.9.0                       |4.9.1

--- Comment #3 from Jakub Jelinek <jakub at gcc dot gnu.org> ---
GCC 4.9.0 has been released


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

* [Bug lto/59441] ICE in bitmap_element_allocate
  2013-12-09 23:32 [Bug lto/59441] New: ICE in bitmap_element_allocate mpolacek at gcc dot gnu.org
                   ` (3 preceding siblings ...)
  2014-04-22 11:36 ` jakub at gcc dot gnu.org
@ 2014-07-16 13:29 ` jakub at gcc dot gnu.org
  2014-10-30 10:38 ` jakub at gcc dot gnu.org
                   ` (3 subsequent siblings)
  8 siblings, 0 replies; 10+ messages in thread
From: jakub at gcc dot gnu.org @ 2014-07-16 13:29 UTC (permalink / raw)
  To: gcc-bugs

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

Jakub Jelinek <jakub at gcc dot gnu.org> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
   Target Milestone|4.9.1                       |4.9.2

--- Comment #4 from Jakub Jelinek <jakub at gcc dot gnu.org> ---
GCC 4.9.1 has been released.


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

* [Bug lto/59441] ICE in bitmap_element_allocate
  2013-12-09 23:32 [Bug lto/59441] New: ICE in bitmap_element_allocate mpolacek at gcc dot gnu.org
                   ` (4 preceding siblings ...)
  2014-07-16 13:29 ` jakub at gcc dot gnu.org
@ 2014-10-30 10:38 ` jakub at gcc dot gnu.org
  2015-06-26 20:16 ` jakub at gcc dot gnu.org
                   ` (2 subsequent siblings)
  8 siblings, 0 replies; 10+ messages in thread
From: jakub at gcc dot gnu.org @ 2014-10-30 10:38 UTC (permalink / raw)
  To: gcc-bugs

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

Jakub Jelinek <jakub at gcc dot gnu.org> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
   Target Milestone|4.9.2                       |4.9.3

--- Comment #6 from Jakub Jelinek <jakub at gcc dot gnu.org> ---
GCC 4.9.2 has been released.


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

* [Bug lto/59441] ICE in bitmap_element_allocate
  2013-12-09 23:32 [Bug lto/59441] New: ICE in bitmap_element_allocate mpolacek at gcc dot gnu.org
                   ` (5 preceding siblings ...)
  2014-10-30 10:38 ` jakub at gcc dot gnu.org
@ 2015-06-26 20:16 ` jakub at gcc dot gnu.org
  2015-06-26 20:37 ` jakub at gcc dot gnu.org
  2015-06-26 21:19 ` pinskia at gcc dot gnu.org
  8 siblings, 0 replies; 10+ messages in thread
From: jakub at gcc dot gnu.org @ 2015-06-26 20:16 UTC (permalink / raw)
  To: gcc-bugs

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

--- Comment #7 from Jakub Jelinek <jakub at gcc dot gnu.org> ---
GCC 4.9.3 has been released.


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

* [Bug lto/59441] ICE in bitmap_element_allocate
  2013-12-09 23:32 [Bug lto/59441] New: ICE in bitmap_element_allocate mpolacek at gcc dot gnu.org
                   ` (6 preceding siblings ...)
  2015-06-26 20:16 ` jakub at gcc dot gnu.org
@ 2015-06-26 20:37 ` jakub at gcc dot gnu.org
  2015-06-26 21:19 ` pinskia at gcc dot gnu.org
  8 siblings, 0 replies; 10+ messages in thread
From: jakub at gcc dot gnu.org @ 2015-06-26 20:37 UTC (permalink / raw)
  To: gcc-bugs

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

Jakub Jelinek <jakub at gcc dot gnu.org> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
   Target Milestone|4.9.3                       |4.9.4


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

* [Bug lto/59441] ICE in bitmap_element_allocate
  2013-12-09 23:32 [Bug lto/59441] New: ICE in bitmap_element_allocate mpolacek at gcc dot gnu.org
                   ` (7 preceding siblings ...)
  2015-06-26 20:37 ` jakub at gcc dot gnu.org
@ 2015-06-26 21:19 ` pinskia at gcc dot gnu.org
  8 siblings, 0 replies; 10+ messages in thread
From: pinskia at gcc dot gnu.org @ 2015-06-26 21:19 UTC (permalink / raw)
  To: gcc-bugs

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

Andrew Pinski <pinskia at gcc dot gnu.org> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
   Target Milestone|4.9.4                       |---

--- Comment #8 from Andrew Pinski <pinskia at gcc dot gnu.org> ---
Has the patch been applied?


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

end of thread, other threads:[~2015-06-26 21:19 UTC | newest]

Thread overview: 10+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2013-12-09 23:32 [Bug lto/59441] New: ICE in bitmap_element_allocate mpolacek at gcc dot gnu.org
2013-12-09 23:33 ` [Bug lto/59441] " mpolacek at gcc dot gnu.org
2013-12-11 14:32 ` rguenth at gcc dot gnu.org
2014-03-17 14:36 ` mpolacek at gcc dot gnu.org
2014-04-22 11:36 ` jakub at gcc dot gnu.org
2014-07-16 13:29 ` jakub at gcc dot gnu.org
2014-10-30 10:38 ` jakub at gcc dot gnu.org
2015-06-26 20:16 ` jakub at gcc dot gnu.org
2015-06-26 20:37 ` jakub at gcc dot gnu.org
2015-06-26 21:19 ` pinskia 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).