public inbox for gcc-bugs@sourceware.org
help / color / mirror / Atom feed
* [Bug middle-end/61573] New: [ICE] Segfault while Linux 3.15 build
@ 2014-06-20  7:55 kirill.yukhin at intel dot com
  2014-06-20  8:01 ` [Bug middle-end/61573] " trippels at gcc dot gnu.org
                   ` (3 more replies)
  0 siblings, 4 replies; 5+ messages in thread
From: kirill.yukhin at intel dot com @ 2014-06-20  7:55 UTC (permalink / raw)
  To: gcc-bugs

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

            Bug ID: 61573
           Summary: [ICE] Segfault while Linux 3.15 build
           Product: gcc
           Version: 4.10.0
            Status: UNCONFIRMED
          Severity: normal
          Priority: P3
         Component: middle-end
          Assignee: unassigned at gcc dot gnu.org
          Reporter: kirill.yukhin at intel dot com

Hello,
While building Linux using recent GCC trunk I've got ICE:
  CC      kernel/locking/spinlock.o
kernel/locking/spinlock.c: In function ‘_raw_read_unlock_bh’:
kernel/locking/spinlock.c:280:1: internal compiler error: Segmentation fault
 }
 ^
0x8b5e25 crash_signal
        /export/users/kyukhin/gcc/git/gcc/gcc/toplev.c:337
0x4eca53 lookup_page_table_entry
        /export/users/kyukhin/gcc/git/gcc/gcc/ggc-page.c:634
0x4eca53 ggc_set_mark(void const*)
        /export/users/kyukhin/gcc/git/gcc/gcc/ggc-page.c:1515
0x711b34 gt_ggc_mx_eh_status(void*)
        /export/users/kyukhin/gcc/build/build-x86_64-linux/gcc/gtype-desc.c:928
0x711cb5 gt_ggc_mx_function(void*)
       
/export/users/kyukhin/gcc/build/build-x86_64-linux/gcc/gtype-desc.c:1409
0x410425 gt_ggc_mx_lang_tree_node(void*)
        ./gt-c-c-decl.h:384
0x410270 gt_ggc_mx_lang_tree_node(void*)
        ./gt-c-c-decl.h:516
0x410270 gt_ggc_mx_lang_tree_node(void*)
        ./gt-c-c-decl.h:516
0x70e30a gt_ggc_mx<constructor_elt>
        /export/users/kyukhin/gcc/git/gcc/gcc/vec.h:1098
0x70e30a gt_ggc_mx_vec_constructor_elt_va_gc_(void*)
       
/export/users/kyukhin/gcc/build/build-x86_64-linux/gcc/gtype-desc.c:1326
0x410169 gt_ggc_mx_lang_tree_node(void*)
        ./gt-c-c-decl.h:568
0x40fd76 gt_ggc_mx_lang_tree_node(void*)
        ./gt-c-c-decl.h:284
0x410ccd gt_ggc_mx_c_binding(void*)
        ./gt-c-c-decl.h:104
0x410cf7 gt_ggc_mx_c_binding(void*)
        ./gt-c-c-decl.h:107
0x40f9dd gt_ggc_mx_lang_tree_node(void*)
        ./gt-c-c-decl.h:626
0x40fd3e gt_ggc_mx_lang_tree_node(void*)
        ./gt-c-c-decl.h:280
0x7111f5 gt_ggc_mx_symtab_node(void*)
       
/export/users/kyukhin/gcc/build/build-x86_64-linux/gcc/gtype-desc.c:1283
0x4103d0 gt_ggc_mx_lang_tree_node(void*)
        ./gt-c-c-decl.h:379
0x410ccd gt_ggc_mx_c_binding(void*)
        ./gt-c-c-decl.h:104
0x40f9dd gt_ggc_mx_lang_tree_node(void*)
        ./gt-c-c-decl.h:626
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.
make[2]: *** [kernel/locking/spinlock.o] Error 1
make[1]: *** [kernel/locking] Error 2
make: *** [kernel] Error 2

Not reduced reproduction:
- Get Linux (https://www.kernel.org/pub/linux/kernel/v3.x/linux-3.15.tar.xz,
MD5 97ca1625bb40368dc41b9a7971549071)
- make menuconfig (no changes, simply exit)
- make -j1

Revision used:
$ git log -1
commit 03e6428d81ac6978330c5f9cffe0e36aeb754f25
Author: jason <jason@138bc75d-0d04-0410-961f-82ee72b054a4>
Date:   Thu Jun 19 09:36:09 2014 +0000

        PR c++/59296
        * call.c (add_function_candidate): Also set LOOKUP_NO_TEMP_BIND.

    git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@211821
138bc75d-0d04-0410-961f-82ee72b054a4
>From gcc-bugs-return-454587-listarch-gcc-bugs=gcc.gnu.org@gcc.gnu.org Fri Jun 20 07:59:17 2014
Return-Path: <gcc-bugs-return-454587-listarch-gcc-bugs=gcc.gnu.org@gcc.gnu.org>
Delivered-To: listarch-gcc-bugs@gcc.gnu.org
Received: (qmail 9709 invoked by alias); 20 Jun 2014 07:59:16 -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 9638 invoked by uid 48); 20 Jun 2014 07:59:13 -0000
From: "trippels at gcc dot gnu.org" <gcc-bugzilla@gcc.gnu.org>
To: gcc-bugs@gcc.gnu.org
Subject: [Bug middle-end/61573] [ICE] Segfault while Linux 3.15 build
Date: Fri, 20 Jun 2014 07:59:00 -0000
X-Bugzilla-Reason: CC
X-Bugzilla-Type: changed
X-Bugzilla-Watch-Reason: None
X-Bugzilla-Product: gcc
X-Bugzilla-Component: middle-end
X-Bugzilla-Version: 4.10.0
X-Bugzilla-Keywords:
X-Bugzilla-Severity: normal
X-Bugzilla-Who: trippels 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: ---
X-Bugzilla-Flags:
X-Bugzilla-Changed-Fields: cc
Message-ID: <bug-61573-4-4HtkaYNZig@http.gcc.gnu.org/bugzilla/>
In-Reply-To: <bug-61573-4@http.gcc.gnu.org/bugzilla/>
References: <bug-61573-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: 2014-06/txt/msg01669.txt.bz2
Content-length: 633

https://gcc.gnu.org/bugzilla/show_bug.cgi?ida573

Markus Trippelsdorf <trippels at gcc dot gnu.org> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
                 CC|                            |trippels at gcc dot gnu.org

--- Comment #1 from Markus Trippelsdorf <trippels at gcc dot gnu.org> ---
Reduced:
markus@x4 linux-3.15 % cat test.i
int __attribute__ ((section (".spinlock.text"))) fn1 () { return 0; }
typeof(fn1) fn1;

markus@x4 linux-3.15 % gcc -c -O2 test.i
gcc: internal compiler error: Segmentation fault (program cc1)


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

* [Bug middle-end/61573] [ICE] Segfault while Linux 3.15 build
  2014-06-20  7:55 [Bug middle-end/61573] New: [ICE] Segfault while Linux 3.15 build kirill.yukhin at intel dot com
@ 2014-06-20  8:01 ` trippels at gcc dot gnu.org
  2014-06-20  8:11 ` [Bug middle-end/61573] [4.10 Regression] ICE: Segmentation fault building Linux kernel trippels at gcc dot gnu.org
                   ` (2 subsequent siblings)
  3 siblings, 0 replies; 5+ messages in thread
From: trippels at gcc dot gnu.org @ 2014-06-20  8:01 UTC (permalink / raw)
  To: gcc-bugs

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

Markus Trippelsdorf <trippels at gcc dot gnu.org> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
   Last reconfirmed|                            |2014-6-20
      Known to work|                            |4.8.3, 4.9.0
   Target Milestone|---                         |4.10.0
      Known to fail|                            |4.10.0


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

* [Bug middle-end/61573] [4.10 Regression] ICE: Segmentation fault building Linux kernel
  2014-06-20  7:55 [Bug middle-end/61573] New: [ICE] Segfault while Linux 3.15 build kirill.yukhin at intel dot com
  2014-06-20  8:01 ` [Bug middle-end/61573] " trippels at gcc dot gnu.org
@ 2014-06-20  8:11 ` trippels at gcc dot gnu.org
  2014-06-20  8:26 ` mliska at suse dot cz
  2014-07-04  6:47 ` trippels at gcc dot gnu.org
  3 siblings, 0 replies; 5+ messages in thread
From: trippels at gcc dot gnu.org @ 2014-06-20  8:11 UTC (permalink / raw)
  To: gcc-bugs

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

Markus Trippelsdorf <trippels at gcc dot gnu.org> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
             Status|UNCONFIRMED                 |NEW
     Ever confirmed|0                           |1

--- Comment #2 from Markus Trippelsdorf <trippels at gcc dot gnu.org> ---
Program received signal SIGSEGV, Segmentation fault.
[Switching to process 20416]
invoke_set_current_function_hook (fndecl=0xa5a5a5a5a5a5a5a5) at
../../gcc/gcc/function.c:4408
4408                       ? DECL_FUNCTION_SPECIFIC_OPTIMIZATION (fndecl)
(gdb) bt
#0  invoke_set_current_function_hook (fndecl=0xa5a5a5a5a5a5a5a5) at
../../gcc/gcc/function.c:4408
#1  0x00000000007d248d in invoke_set_current_function_hook (fndecl=<optimized
out>) at ../../gcc/gcc/function.c:4405
#2  set_cfun (new_cfun=<optimized out>) at ../../gcc/gcc/function.c:4442
#3  0x00000000007d2610 in push_cfun (new_cfun=<optimized out>) at
../../gcc/gcc/function.c:4460
#4  0x00000000006931bb in analyze_function (node=node@entry=0x7ffff739a000) at
../../gcc/gcc/cgraphunit.c:641
#5  0x000000000069462c in analyze_functions () at
../../gcc/gcc/cgraphunit.c:1028
#6  0x0000000000695eb6 in finalize_compilation_unit () at
../../gcc/gcc/cgraphunit.c:2333
#7  0x0000000000551f64 in c_write_global_declarations () at
../../gcc/gcc/c/c-decl.c:10452
#8  0x00000000009cce9d in compile_file () at ../../gcc/gcc/toplev.c:562
#9  0x00000000009ceee5 in do_compile () at ../../gcc/gcc/toplev.c:1918
#10 toplev_main (argc=12, argv=0x7fffffffe338) at ../../gcc/gcc/toplev.c:1994
#11 0x00007ffff75fcfb0 in __libc_start_main () from /lib/libc.so.6
#12 0x0000000000534e41 in _start ()


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

* [Bug middle-end/61573] [4.10 Regression] ICE: Segmentation fault building Linux kernel
  2014-06-20  7:55 [Bug middle-end/61573] New: [ICE] Segfault while Linux 3.15 build kirill.yukhin at intel dot com
  2014-06-20  8:01 ` [Bug middle-end/61573] " trippels at gcc dot gnu.org
  2014-06-20  8:11 ` [Bug middle-end/61573] [4.10 Regression] ICE: Segmentation fault building Linux kernel trippels at gcc dot gnu.org
@ 2014-06-20  8:26 ` mliska at suse dot cz
  2014-07-04  6:47 ` trippels at gcc dot gnu.org
  3 siblings, 0 replies; 5+ messages in thread
From: mliska at suse dot cz @ 2014-06-20  8:26 UTC (permalink / raw)
  To: gcc-bugs

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

Martin Liška <mliska at suse dot cz> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
                 CC|                            |mliska at suse dot cz

--- Comment #3 from Martin Liška <mliska at suse dot cz> ---
Bug introduced in r211363.
>From gcc-bugs-return-454591-listarch-gcc-bugs=gcc.gnu.org@gcc.gnu.org Fri Jun 20 08:45:42 2014
Return-Path: <gcc-bugs-return-454591-listarch-gcc-bugs=gcc.gnu.org@gcc.gnu.org>
Delivered-To: listarch-gcc-bugs@gcc.gnu.org
Received: (qmail 3001 invoked by alias); 20 Jun 2014 08:45:40 -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 2955 invoked by uid 48); 20 Jun 2014 08:45:36 -0000
From: "mliska at suse dot cz" <gcc-bugzilla@gcc.gnu.org>
To: gcc-bugs@gcc.gnu.org
Subject: [Bug middle-end/61573] [4.10 Regression] ICE: Segmentation fault building Linux kernel
Date: Fri, 20 Jun 2014 08:45:00 -0000
X-Bugzilla-Reason: CC
X-Bugzilla-Type: changed
X-Bugzilla-Watch-Reason: None
X-Bugzilla-Product: gcc
X-Bugzilla-Component: middle-end
X-Bugzilla-Version: 4.10.0
X-Bugzilla-Keywords:
X-Bugzilla-Severity: normal
X-Bugzilla-Who: mliska at suse dot cz
X-Bugzilla-Status: NEW
X-Bugzilla-Priority: P3
X-Bugzilla-Assigned-To: unassigned at gcc dot gnu.org
X-Bugzilla-Target-Milestone: 4.10.0
X-Bugzilla-Flags:
X-Bugzilla-Changed-Fields:
Message-ID: <bug-61573-4-yowm0Hy1Mn@http.gcc.gnu.org/bugzilla/>
In-Reply-To: <bug-61573-4@http.gcc.gnu.org/bugzilla/>
References: <bug-61573-4@http.gcc.gnu.org/bugzilla/>
Content-Type: text/plain; charset="UTF-8"
Content-Transfer-Encoding: quoted-printable
X-Bugzilla-URL: http://gcc.gnu.org/bugzilla/
Auto-Submitted: auto-generated
MIME-Version: 1.0
X-SW-Source: 2014-06/txt/msg01673.txt.bz2
Content-length: 2538

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

--- Comment #4 from Martin Liška <mliska at suse dot cz> ---
fndecl deletion place:

Old value = (tree) 0x7ffff6d4a700
New value = (tree) 0xa5a5a5a5a5a5a5a5
memset () at ../sysdeps/x86_64/memset.S:90
90    ../sysdeps/x86_64/memset.S: No such file or directory.
(gdb) bt
#0  memset () at ../sysdeps/x86_64/memset.S:90
#1  0x00000000006478e7 in ggc_free (p=<optimized out>) at
../../gcc/ggc-page.c:1592
#2  0x00000000006bdeac in release_function_body (decl=0x7ffff6d4a800) at
../../gcc/cgraph.c:1704
#3  0x00000000006be030 in cgraph_release_function_body (node=0x7ffff6d69170) at
../../gcc/cgraph.c:1729
#4  0x00000000006be431 in cgraph_remove_node (node=0x7ffff6d69170) at
../../gcc/cgraph.c:1814
#5  0x000000000055f7aa in duplicate_decls (newdecl=0x7ffff6d4a800,
olddecl=0x7ffff6d4a700) at ../../gcc/c/c-decl.c:2584
#6  0x000000000056008e in pushdecl (x=0x7ffff6d4a800) at
../../gcc/c/c-decl.c:2725
#7  0x0000000000564673 in start_decl (declarator=0x1876620,
declspecs=0x1876590, initialized=false, attributes=0x0)
    at ../../gcc/c/c-decl.c:4277
#8  0x00000000005cd865 in c_parser_declaration_or_fndef
(parser=parser@entry=0x7ffff6d67000, fndef_ok=false, fndef_ok@entry=true, 
    static_assert_ok=static_assert_ok@entry=true, empty_ok=empty_ok@entry=true,
nested=nested@entry=false, 
    start_attr_ok=start_attr_ok@entry=true,
objc_foreach_object_declaration=objc_foreach_object_declaration@entry=0x0, 
    omp_declare_simd_clauses=..., omp_declare_simd_clauses@entry=...) at
../../gcc/c/c-parser.c:1798
#9  0x00000000005d26b6 in c_parser_external_declaration (parser=0x7ffff6d67000)
at ../../gcc/c/c-parser.c:1400
#10 0x00000000005d316a in c_parser_translation_unit (parser=0x7ffff6d67000) at
../../gcc/c/c-parser.c:1287
#11 c_parse_file () at ../../gcc/c/c-parser.c:14082
#12 0x00000000006277c5 in c_common_parse_file () at
../../gcc/c-family/c-opts.c:1067
#13 0x0000000000a09f32 in compile_file () at ../../gcc/toplev.c:548
#14 0x0000000000a0bee5 in do_compile () at ../../gcc/toplev.c:1918
#15 toplev_main (argc=14, argv=0x7fffffffd9b8) at ../../gcc/toplev.c:1994
#16 0x00007ffff6e4ebe5 in __libc_start_main (main=0x554f50 <main(int, char**)>,
argc=14, argv=0x7fffffffd9b8, init=<optimized out>, 
    fini=<optimized out>, rtld_fini=<optimized out>, stack_end=0x7fffffffd9a8)
at libc-start.c:269
#17 0x0000000000554fd1 in _start () at ../sysdeps/x86_64/start.S:122
>From gcc-bugs-return-454592-listarch-gcc-bugs=gcc.gnu.org@gcc.gnu.org Fri Jun 20 09:17:40 2014
Return-Path: <gcc-bugs-return-454592-listarch-gcc-bugs=gcc.gnu.org@gcc.gnu.org>
Delivered-To: listarch-gcc-bugs@gcc.gnu.org
Received: (qmail 25267 invoked by alias); 20 Jun 2014 09:17:39 -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 25203 invoked by uid 48); 20 Jun 2014 09:17:34 -0000
From: "mikpelinux at gmail dot com" <gcc-bugzilla@gcc.gnu.org>
To: gcc-bugs@gcc.gnu.org
Subject: [Bug target/61570] -march=native CPU you selected does not support x86-64 instruction under QEMU
Date: Fri, 20 Jun 2014 09:17:00 -0000
X-Bugzilla-Reason: CC
X-Bugzilla-Type: changed
X-Bugzilla-Watch-Reason: None
X-Bugzilla-Product: gcc
X-Bugzilla-Component: target
X-Bugzilla-Version: 4.9.0
X-Bugzilla-Keywords:
X-Bugzilla-Severity: normal
X-Bugzilla-Who: mikpelinux at gmail dot com
X-Bugzilla-Status: UNCONFIRMED
X-Bugzilla-Priority: P3
X-Bugzilla-Assigned-To: unassigned at gcc dot gnu.org
X-Bugzilla-Target-Milestone: ---
X-Bugzilla-Flags:
X-Bugzilla-Changed-Fields:
Message-ID: <bug-61570-4-FsSPvvWGUR@http.gcc.gnu.org/bugzilla/>
In-Reply-To: <bug-61570-4@http.gcc.gnu.org/bugzilla/>
References: <bug-61570-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: 2014-06/txt/msg01674.txt.bz2
Content-length: 472

https://gcc.gnu.org/bugzilla/show_bug.cgi?ida570

--- Comment #1 from Mikael Pettersson <mikpelinux at gmail dot com> ---
Well, qemu seems confused (as usual).  Having "lm" and "lahf_lm"in the CPUID
feature flags and a 48-bit virtual address space implies being 64-bit, but
Intel Family 6 Model 13 implies being the 32-bit only Pentium-M.

Since real HW doesn't get this confused I'd classify it as a qemu bug.  (We've
seen several similar "impossible" cases in LKML.)


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

* [Bug middle-end/61573] [4.10 Regression] ICE: Segmentation fault building Linux kernel
  2014-06-20  7:55 [Bug middle-end/61573] New: [ICE] Segfault while Linux 3.15 build kirill.yukhin at intel dot com
                   ` (2 preceding siblings ...)
  2014-06-20  8:26 ` mliska at suse dot cz
@ 2014-07-04  6:47 ` trippels at gcc dot gnu.org
  3 siblings, 0 replies; 5+ messages in thread
From: trippels at gcc dot gnu.org @ 2014-07-04  6:47 UTC (permalink / raw)
  To: gcc-bugs

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

Markus Trippelsdorf <trippels at gcc dot gnu.org> changed:

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

--- Comment #5 from Markus Trippelsdorf <trippels at gcc dot gnu.org> ---
Fixed by r212234.


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

end of thread, other threads:[~2014-07-04  6:47 UTC | newest]

Thread overview: 5+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2014-06-20  7:55 [Bug middle-end/61573] New: [ICE] Segfault while Linux 3.15 build kirill.yukhin at intel dot com
2014-06-20  8:01 ` [Bug middle-end/61573] " trippels at gcc dot gnu.org
2014-06-20  8:11 ` [Bug middle-end/61573] [4.10 Regression] ICE: Segmentation fault building Linux kernel trippels at gcc dot gnu.org
2014-06-20  8:26 ` mliska at suse dot cz
2014-07-04  6:47 ` trippels 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).