public inbox for gcc-bugs@sourceware.org
help / color / mirror / Atom feed
* [Bug tree-optimization/58311] New: [4.9 Regression] ICE: SIGSEGV in hash_table::find_slot_with_hash() with -fdevirtualize
@ 2013-09-03 19:38 zsojka at seznam dot cz
  2013-09-04  8:42 ` [Bug tree-optimization/58311] " rguenth at gcc dot gnu.org
                   ` (3 more replies)
  0 siblings, 4 replies; 5+ messages in thread
From: zsojka at seznam dot cz @ 2013-09-03 19:38 UTC (permalink / raw)
  To: gcc-bugs

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

            Bug ID: 58311
           Summary: [4.9 Regression] ICE: SIGSEGV in
                    hash_table::find_slot_with_hash() with -fdevirtualize
           Product: gcc
           Version: 4.9.0
            Status: UNCONFIRMED
          Severity: normal
          Priority: P3
         Component: tree-optimization
          Assignee: unassigned at gcc dot gnu.org
          Reporter: zsojka at seznam dot cz

Created attachment 30745
  --> http://gcc.gnu.org/bugzilla/attachment.cgi?id=30745&action=edit
reduced testcase

Compiler output:
$ gcc -fdevirtualize testcase.C 
testcase.C:14:1: internal compiler error: Segmentation fault
 }
 ^
0xc1423f crash_signal
        /mnt/svn/gcc-trunk/gcc/toplev.c:335
0xa47b91 hash_table<odr_hasher, xcallocator>::find_slot_with_hash(tree_node
const*, unsigned int, insert_option)
        /mnt/svn/gcc-trunk/gcc/hash-table.h:774
0xa463ad get_odr_type(tree_node*, bool)
        /mnt/svn/gcc-trunk/gcc/ipa-devirt.c:251
0xa46cb4 possible_polymorphic_call_targets(tree_node*, long, bool*, void**)
        /mnt/svn/gcc-trunk/gcc/ipa-devirt.c:596
0xa47263 possible_polymorphic_call_targets
        /mnt/svn/gcc-trunk/gcc/ipa-utils.h:87
0xa47263 ipa_devirt
        /mnt/svn/gcc-trunk/gcc/ipa-devirt.c:790
0xa47263 execute
        /mnt/svn/gcc-trunk/gcc/ipa-devirt.c:985
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.


==7675== Invalid read of size 8
==7675==    at 0xA47B91: hash_table<odr_hasher,
xcallocator>::find_slot_with_hash(tree_node const*, unsigned int,
insert_option) (hash-table.h:774)
==7675==    by 0xA463AD: get_odr_type(tree_node*, bool) (ipa-devirt.c:251)
==7675==    by 0xA46CB4: possible_polymorphic_call_targets(tree_node*, long,
bool*, void**) (ipa-devirt.c:596)
==7675==    by 0xA47263: (anonymous namespace)::pass_ipa_devirt::execute()
(ipa-utils.h:87)
==7675==    by 0xB22AA9: execute_one_pass(opt_pass*) (passes.c:2201)
==7675==    by 0xB2327A: execute_ipa_pass_list(opt_pass*) (passes.c:2565)
==7675==    by 0x88F575: compile() (cgraphunit.c:1965)
==7675==    by 0x88FD09: finalize_compilation_unit() (cgraphunit.c:2209)
==7675==    by 0x693630: cp_write_global_declarations() (decl2.c:4364)
==7675==    by 0xC142AC: compile_file() (toplev.c:560)
==7675==    by 0xC160C9: toplev_main(int, char**) (toplev.c:1878)
==7675==    by 0x5A3C60C: (below main) (in /lib64/libc-2.15.so)
==7675==  Address 0x8 is not stack'd, malloc'd or (recently) free'd
==7675== 
testcase.C:14:1: internal compiler error: Segmentation fault


$ gcc -v                                             
Using built-in specs.
COLLECT_GCC=/mnt/svn/gcc-trunk/binary-latest/bin/gcc
COLLECT_LTO_WRAPPER=/mnt/svn/gcc-trunk/binary-202196-lto-fortran-checking-yes-rtl-df/libexec/gcc/x86_64-unknown-linux-gnu/4.9.0/lto-wrapper
Target: x86_64-unknown-linux-gnu
Configured with: /mnt/svn/gcc-trunk//configure --enable-checking=yes,rtl,df
--enable-languages=c,c++,lto,fortran
--prefix=/mnt/svn/gcc-trunk/binary-202196-lto-fortran-checking-yes-rtl-df/
--without-cloog --without-ppl
Thread model: posix
gcc version 4.9.0 20130903 (experimental) (GCC)


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

* [Bug tree-optimization/58311] [4.9 Regression] ICE: SIGSEGV in hash_table::find_slot_with_hash() with -fdevirtualize
  2013-09-03 19:38 [Bug tree-optimization/58311] New: [4.9 Regression] ICE: SIGSEGV in hash_table::find_slot_with_hash() with -fdevirtualize zsojka at seznam dot cz
@ 2013-09-04  8:42 ` rguenth at gcc dot gnu.org
  2013-09-05  9:20 ` hubicka at gcc dot gnu.org
                   ` (2 subsequent siblings)
  3 siblings, 0 replies; 5+ messages in thread
From: rguenth at gcc dot gnu.org @ 2013-09-04  8:42 UTC (permalink / raw)
  To: gcc-bugs

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

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

           What    |Removed                     |Added
----------------------------------------------------------------------------
           Priority|P3                          |P1
                 CC|                            |hubicka at gcc dot gnu.org
   Target Milestone|---                         |4.9.0


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

* [Bug tree-optimization/58311] [4.9 Regression] ICE: SIGSEGV in hash_table::find_slot_with_hash() with -fdevirtualize
  2013-09-03 19:38 [Bug tree-optimization/58311] New: [4.9 Regression] ICE: SIGSEGV in hash_table::find_slot_with_hash() with -fdevirtualize zsojka at seznam dot cz
  2013-09-04  8:42 ` [Bug tree-optimization/58311] " rguenth at gcc dot gnu.org
@ 2013-09-05  9:20 ` hubicka at gcc dot gnu.org
  2013-09-06 10:33 ` hubicka at gcc dot gnu.org
  2013-09-06 10:38 ` hubicka at gcc dot gnu.org
  3 siblings, 0 replies; 5+ messages in thread
From: hubicka at gcc dot gnu.org @ 2013-09-05  9:20 UTC (permalink / raw)
  To: gcc-bugs

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

Jan Hubicka <hubicka at gcc dot gnu.org> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
             Status|UNCONFIRMED                 |ASSIGNED
   Last reconfirmed|                            |2013-09-05
     Ever confirmed|0                           |1

--- Comment #1 from Jan Hubicka <hubicka at gcc dot gnu.org> ---
mine. Obviously without -O we should not try to look for the targets.  Will fix
it shortly.


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

* [Bug tree-optimization/58311] [4.9 Regression] ICE: SIGSEGV in hash_table::find_slot_with_hash() with -fdevirtualize
  2013-09-03 19:38 [Bug tree-optimization/58311] New: [4.9 Regression] ICE: SIGSEGV in hash_table::find_slot_with_hash() with -fdevirtualize zsojka at seznam dot cz
  2013-09-04  8:42 ` [Bug tree-optimization/58311] " rguenth at gcc dot gnu.org
  2013-09-05  9:20 ` hubicka at gcc dot gnu.org
@ 2013-09-06 10:33 ` hubicka at gcc dot gnu.org
  2013-09-06 10:38 ` hubicka at gcc dot gnu.org
  3 siblings, 0 replies; 5+ messages in thread
From: hubicka at gcc dot gnu.org @ 2013-09-06 10:33 UTC (permalink / raw)
  To: gcc-bugs

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

--- Comment #2 from Jan Hubicka <hubicka at gcc dot gnu.org> ---
Author: hubicka
Date: Fri Sep  6 10:33:48 2013
New Revision: 202317

URL: http://gcc.gnu.org/viewcvs?rev=202317&root=gcc&view=rev
Log:
    PR tree-optimization/58311
    * ipa-devirt.c (gate_ipa_devirt): Only execute when optimizing.

Modified:
    trunk/gcc/ChangeLog
    trunk/gcc/ipa-devirt.c


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

* [Bug tree-optimization/58311] [4.9 Regression] ICE: SIGSEGV in hash_table::find_slot_with_hash() with -fdevirtualize
  2013-09-03 19:38 [Bug tree-optimization/58311] New: [4.9 Regression] ICE: SIGSEGV in hash_table::find_slot_with_hash() with -fdevirtualize zsojka at seznam dot cz
                   ` (2 preceding siblings ...)
  2013-09-06 10:33 ` hubicka at gcc dot gnu.org
@ 2013-09-06 10:38 ` hubicka at gcc dot gnu.org
  3 siblings, 0 replies; 5+ messages in thread
From: hubicka at gcc dot gnu.org @ 2013-09-06 10:38 UTC (permalink / raw)
  To: gcc-bugs

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

Jan Hubicka <hubicka at gcc dot gnu.org> changed:

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

--- Comment #3 from Jan Hubicka <hubicka at gcc dot gnu.org> ---
Fixed.


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

end of thread, other threads:[~2013-09-06 10:38 UTC | newest]

Thread overview: 5+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2013-09-03 19:38 [Bug tree-optimization/58311] New: [4.9 Regression] ICE: SIGSEGV in hash_table::find_slot_with_hash() with -fdevirtualize zsojka at seznam dot cz
2013-09-04  8:42 ` [Bug tree-optimization/58311] " rguenth at gcc dot gnu.org
2013-09-05  9:20 ` hubicka at gcc dot gnu.org
2013-09-06 10:33 ` hubicka at gcc dot gnu.org
2013-09-06 10:38 ` hubicka 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).