public inbox for gcc-bugs@sourceware.org
help / color / mirror / Atom feed
* [Bug lto/48952] New: ICE in inline_merge_summary during linux kernel LTO build
@ 2011-05-10 16:30 andi-gcc at firstfloor dot org
  2011-05-10 16:53 ` [Bug lto/48952] " andi-gcc at firstfloor dot org
                   ` (3 more replies)
  0 siblings, 4 replies; 5+ messages in thread
From: andi-gcc at firstfloor dot org @ 2011-05-10 16:30 UTC (permalink / raw)
  To: gcc-bugs

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

           Summary: ICE in inline_merge_summary during linux kernel LTO
                    build
           Product: gcc
           Version: unknown
            Status: UNCONFIRMED
          Severity: normal
          Priority: P3
         Component: lto
        AssignedTo: unassigned@gcc.gnu.org
        ReportedBy: andi-gcc@firstfloor.org


When running a Linux kernel LTO build with recent mainline
(gcc version 4.7.0 20110510 (experimental) (GCC))
I get a segfault during the final lto-wpa phase

In gdb I get

Program received signal SIGSEGV, Segmentation fault.
inline_merge_summary (edge=0x7f1ce05d90d0)
    at ../../gcc/gcc/ipa-inline-analysis.c:2025
2025          && ipa_get_cs_argument_count (IPA_EDGE_REF (edge
(gdb) bt
#0  inline_merge_summary (edge=0x7f1ce05d90d0)
    at ../../gcc/gcc/ipa-inline-analysis.c:2025
#1  0x000000000085b079 in inline_call (e=0x7f1ce05d90d0,
update_original=Unhandled dwarf expression opcode 0xf3
)
    at ../../gcc/gcc/ipa-inline-transform.c:185
#2  0x0000000000854561 in inline_small_functions ()
    at ../../gcc/gcc/ipa-inline.c:1451
#3  ipa_inline () at ../../gcc/gcc/ipa-inline.c:1643
#4  0x000000000063c509 in execute_one_pass (pass=0xfff720)
    at ../../gcc/gcc/passes.c:1556
#5  0x000000000063cbca in execute_ipa_pass_list (pass=0xfff720)
    at ../../gcc/gcc/passes.c:1922
#6  0x000000000049ffe5 in do_whole_program_analysis ()
    at ../../gcc/gcc/lto/lto.c:2517
#7  lto_main () at ../../gcc/gcc/lto/lto.c:2629
#8  0x00000000006ccc4a in compile_file (argc=76, argv=0x12c8470)
    at ../../gcc/gcc/toplev.c:570
#9  do_compile (argc=76, argv=0x12c8470) at ../../gcc/gcc/toplev.c:1928
#10 toplev_main (argc=76, argv=0x12c8470) at ../../gcc/gcc/toplev.c:2000
#11 0x0000003bc6e1ee5d in __libc_start_main (main=0x4a29e0 <main>, argc=16, 
    ubp_av=0x7fff62bc8e28, init=<value optimized out>, 
    fini=<value optimized out>, rtld_fini=<value optimized out>, 
    stack_end=0x7fff62bc8e18) at libc-start.c:226
#12 0x0000000000486f99 in _start ()
(gdb) 


The input files are very large. I can supply them on demand.
They also require special binutils currently (HJ's latest version)


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

* [Bug lto/48952] ICE in inline_merge_summary during linux kernel LTO build
  2011-05-10 16:30 [Bug lto/48952] New: ICE in inline_merge_summary during linux kernel LTO build andi-gcc at firstfloor dot org
@ 2011-05-10 16:53 ` andi-gcc at firstfloor dot org
  2011-05-10 21:14 ` andi-gcc at firstfloor dot org
                   ` (2 subsequent siblings)
  3 siblings, 0 replies; 5+ messages in thread
From: andi-gcc at firstfloor dot org @ 2011-05-10 16:53 UTC (permalink / raw)
  To: gcc-bugs

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

--- Comment #1 from Andi Kleen <andi-gcc at firstfloor dot org> 2011-05-10 16:37:17 UTC ---
Some more information from gdb. So it follows some pointer in the VEC
that is NULL

(gdb) p edge
$1 = (struct cgraph_edge *) 0x7f1ce05d90d0
(gdb) p edge->uid
$2 = 38701
(gdb) disp/3i $pc
1: x/3i $pc
=> 0x859bdc <inline_merge_summary+188>: mov    0x8(%rbx,%rdx,1),%ecx
   0x859be0 <inline_merge_summary+192>: test   %ecx,%ecx
   0x859be2 <inline_merge_summary+194>:
    je     0x859cdb <inline_merge_summary+443>
(gdb) p $rbx
$3 = 0
(gdb) p $rdx
$4 = 619216
(gdb)


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

* [Bug lto/48952] ICE in inline_merge_summary during linux kernel LTO build
  2011-05-10 16:30 [Bug lto/48952] New: ICE in inline_merge_summary during linux kernel LTO build andi-gcc at firstfloor dot org
  2011-05-10 16:53 ` [Bug lto/48952] " andi-gcc at firstfloor dot org
@ 2011-05-10 21:14 ` andi-gcc at firstfloor dot org
  2011-05-12 12:10 ` hubicka at gcc dot gnu.org
  2011-06-04 17:15 ` hubicka at gcc dot gnu.org
  3 siblings, 0 replies; 5+ messages in thread
From: andi-gcc at firstfloor dot org @ 2011-05-10 21:14 UTC (permalink / raw)
  To: gcc-bugs

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

--- Comment #2 from Andi Kleen <andi-gcc at firstfloor dot org> 2011-05-10 20:49:28 UTC ---
I uploaded a (large) test case to 
http://firstfloor.org/~andi/lto-kernel.tar.bz2

Run R2 in the directory after pointing the script to the right gcc binary.


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

* [Bug lto/48952] ICE in inline_merge_summary during linux kernel LTO build
  2011-05-10 16:30 [Bug lto/48952] New: ICE in inline_merge_summary during linux kernel LTO build andi-gcc at firstfloor dot org
  2011-05-10 16:53 ` [Bug lto/48952] " andi-gcc at firstfloor dot org
  2011-05-10 21:14 ` andi-gcc at firstfloor dot org
@ 2011-05-12 12:10 ` hubicka at gcc dot gnu.org
  2011-06-04 17:15 ` hubicka at gcc dot gnu.org
  3 siblings, 0 replies; 5+ messages in thread
From: hubicka at gcc dot gnu.org @ 2011-05-12 12:10 UTC (permalink / raw)
  To: gcc-bugs

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

--- Comment #3 from Jan Hubicka <hubicka at gcc dot gnu.org> 2011-05-12 11:30:48 UTC ---
Author: hubicka
Date: Thu May 12 11:30:42 2011
New Revision: 173700

URL: http://gcc.gnu.org/viewcvs?root=gcc&view=rev&rev=173700
Log:
    PR lto/48952
    * lto.c (do_whole_program_analysis): Do not register cgraph hooks.

Modified:
    trunk/gcc/lto/ChangeLog
    trunk/gcc/lto/lto.c


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

* [Bug lto/48952] ICE in inline_merge_summary during linux kernel LTO build
  2011-05-10 16:30 [Bug lto/48952] New: ICE in inline_merge_summary during linux kernel LTO build andi-gcc at firstfloor dot org
                   ` (2 preceding siblings ...)
  2011-05-12 12:10 ` hubicka at gcc dot gnu.org
@ 2011-06-04 17:15 ` hubicka at gcc dot gnu.org
  3 siblings, 0 replies; 5+ messages in thread
From: hubicka at gcc dot gnu.org @ 2011-06-04 17:15 UTC (permalink / raw)
  To: gcc-bugs

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

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

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

--- Comment #4 from Jan Hubicka <hubicka at gcc dot gnu.org> 2011-06-04 17:14:27 UTC ---
Fixed.


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

end of thread, other threads:[~2011-06-04 17:15 UTC | newest]

Thread overview: 5+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2011-05-10 16:30 [Bug lto/48952] New: ICE in inline_merge_summary during linux kernel LTO build andi-gcc at firstfloor dot org
2011-05-10 16:53 ` [Bug lto/48952] " andi-gcc at firstfloor dot org
2011-05-10 21:14 ` andi-gcc at firstfloor dot org
2011-05-12 12:10 ` hubicka at gcc dot gnu.org
2011-06-04 17:15 ` 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).