public inbox for gcc-bugs@sourceware.org
help / color / mirror / Atom feed
From: "manu at gcc dot gnu.org" <gcc-bugzilla@gcc.gnu.org>
To: gcc-bugs@gcc.gnu.org
Subject: [Bug c/59850] Support sparse-style pointer address spaces (type attributes)
Date: Fri, 27 Jun 2014 14:24:00 -0000	[thread overview]
Message-ID: <bug-59850-4-bCfGFUIDuD@http.gcc.gnu.org/bugzilla/> (raw)
In-Reply-To: <bug-59850-4@http.gcc.gnu.org/bugzilla/>

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

--- Comment #24 from Manuel López-Ibáñez <manu at gcc dot gnu.org> ---
(In reply to PaX Team from comment #23)
> 3. designated_init is a tricky problem because by the time a plugin can
> examine variable initializers, gcc will have lost the information. however
> with a trick such unwanted initializers can instead be turned into a compile
> error (that existing gcc infrastructure can detect). you can find it in
> spender's randomize_layout plugin that's distributed in grsecurity.

There is a patch for GCC that was basically approved in January:
https://gcc.gnu.org/ml/gcc-patches/2014-01/msg01284.html

I am not sure why it hasn't been committed yet.
>From gcc-bugs-return-455142-listarch-gcc-bugs=gcc.gnu.org@gcc.gnu.org Fri Jun 27 14:30:43 2014
Return-Path: <gcc-bugs-return-455142-listarch-gcc-bugs=gcc.gnu.org@gcc.gnu.org>
Delivered-To: listarch-gcc-bugs@gcc.gnu.org
Received: (qmail 31277 invoked by alias); 27 Jun 2014 14:30:43 -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 31235 invoked by uid 48); 27 Jun 2014 14:30:39 -0000
From: "dimhen at gmail dot com" <gcc-bugzilla@gcc.gnu.org>
To: gcc-bugs@gcc.gnu.org
Subject: [Bug bootstrap/61631] New: [4.10 regression] ICE unwind-dw2.c:1639:5: internal compiler error: Segmentation fault
Date: Fri, 27 Jun 2014 14:30:00 -0000
X-Bugzilla-Reason: CC
X-Bugzilla-Type: new
X-Bugzilla-Watch-Reason: None
X-Bugzilla-Product: gcc
X-Bugzilla-Component: bootstrap
X-Bugzilla-Version: 4.10.0
X-Bugzilla-Keywords:
X-Bugzilla-Severity: normal
X-Bugzilla-Who: dimhen 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: bug_id short_desc product version bug_status bug_severity priority component assigned_to reporter
Message-ID: <bug-61631-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/msg02224.txt.bz2
Content-length: 4791

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

            Bug ID: 61631
           Summary: [4.10 regression] ICE unwind-dw2.c:1639:5: internal
                    compiler error: Segmentation fault
           Product: gcc
           Version: 4.10.0
            Status: UNCONFIRMED
          Severity: normal
          Priority: P3
         Component: bootstrap
          Assignee: unassigned at gcc dot gnu.org
          Reporter: dimhen at gmail dot com

r212073 FAIL
r211865 PASS

Fedora 20, x86_64

configure --enable-checking=fold --disable-multilib
make
[stage1 pass]
[...]
/home/dimhen/build/gcc_current/./gcc/xgcc
-B/home/dimhen/build/gcc_current/./gcc/
-B/usr/local/x86_64-unknown-linux-gnu/bin/
-B/usr/local/x86_64-unknown-linux-gnu/lib/ -isystem
/usr/local/x86_64-unknown-linux-gnu/include -isystem
/usr/local/x86_64-unknown-linux-gnu/sys-include    -g -O2 -O2  -g -O2 -DIN_GCC
  -W -Wall -Wno-narrowing -Wwrite-strings -Wcast-qual -Wno-format
-Wstrict-prototypes -Wmissing-prototypes -Wold-style-definition  -isystem
./include   -fpic -mlong-double-80 -g -DIN_LIBGCC2 -fbuilding-libgcc
-fno-stack-protector   -fpic -mlong-double-80 -I. -I. -I../.././gcc
-I/home/dimhen/src/gcc_current/libgcc -I/home/dimhen/src/gcc_current/libgcc/.
-I/home/dimhen/src/gcc_current/libgcc/../gcc
-I/home/dimhen/src/gcc_current/libgcc/../include
-I/home/dimhen/src/gcc_current/libgcc/config/libbid -DENABLE_DECIMAL_BID_FORMAT
-DHAVE_CC_TLS  -DUSE_TLS -o unwind-dw2.o -MT unwind-dw2.o -MD -MP -MF
unwind-dw2.dep -fexceptions -c /home/dimhen/src/gcc_current/libgcc/unwind-dw2.c
-fvisibility=hidden -DHIDE_EXPORTS
/home/dimhen/src/gcc_current/libgcc/unwind-dw2.c: In function
'uw_install_context_1':
/home/dimhen/src/gcc_current/libgcc/unwind-dw2.c:1639:5: internal compiler
error: Segmentation fault
     _Unwind_SetSpColumn (target, target->cfa, &sp_slot);
     ^
0xae996b crash_signal
    /home/dimhen/src/gcc_current/gcc/toplev.c:337
0x86e62f fold_checksum_tree
    /home/dimhen/src/gcc_current/gcc/fold-const.c:14759
0x86ec3e fold_checksum_tree
    /home/dimhen/src/gcc_current/gcc/fold-const.c:14861
0x86ed58 fold_checksum_tree
    /home/dimhen/src/gcc_current/gcc/fold-const.c:14872
0x86e832 fold_checksum_tree
    /home/dimhen/src/gcc_current/gcc/fold-const.c:14791
0x86e832 fold_checksum_tree
    /home/dimhen/src/gcc_current/gcc/fold-const.c:14791
0x86e400 fold(tree_node*)
    /home/dimhen/src/gcc_current/gcc/fold-const.c:14706
0x66bab7 c_fully_fold_internal
    /home/dimhen/src/gcc_current/gcc/c-family/c-common.c:1365
0x66af75 c_fully_fold(tree_node*, bool, bool*)
    /home/dimhen/src/gcc_current/gcc/c-family/c-common.c:1097
0x62bcdf convert_arguments
    /home/dimhen/src/gcc_current/gcc/c/c-typeck.c:3112
0x62b569 build_function_call_vec(unsigned int, vec<unsigned int, va_heap,
vl_ptr>, tree_node*, vec<tree_node*, va_gc, vl_embed>*, vec<tree_node*, va_gc,
vl_embed>*)
    /home/dimhen/src/gcc_current/gcc/c/c-typeck.c:2903
0x62b9e2 c_build_function_call_vec(unsigned int, vec<unsigned int, va_heap,
vl_ptr>, tree_node*, vec<tree_node*, va_gc, vl_embed>*, vec<tree_node*, va_gc,
vl_embed>*)
    /home/dimhen/src/gcc_current/gcc/c/c-typeck.c:2988
0x655b4b c_parser_postfix_expression_after_primary
    /home/dimhen/src/gcc_current/gcc/c/c-parser.c:7729
0x655598 c_parser_postfix_expression
    /home/dimhen/src/gcc_current/gcc/c/c-parser.c:7563
0x652814 c_parser_unary_expression
    /home/dimhen/src/gcc_current/gcc/c/c-parser.c:6502
0x651d88 c_parser_cast_expression
    /home/dimhen/src/gcc_current/gcc/c/c-parser.c:6340
0x650b7d c_parser_binary_expression
    /home/dimhen/src/gcc_current/gcc/c/c-parser.c:6155
0x6505c2 c_parser_conditional_expression
    /home/dimhen/src/gcc_current/gcc/c/c-parser.c:5931
0x65034a c_parser_expr_no_commas
    /home/dimhen/src/gcc_current/gcc/c/c-parser.c:5849
0x65612e c_parser_expression
    /home/dimhen/src/gcc_current/gcc/c/c-parser.c:7856
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[3]: *** [unwind-dw2.o] Error 1
make[3]: Leaving directory
`/home/dimhen/build/gcc_current/x86_64-unknown-linux-gnu/libgcc'
make[2]: *** [all-stage1-target-libgcc] Error 2
make[2]: Leaving directory `/home/dimhen/build/gcc_current'
make[1]: *** [stage1-bubble] Error 2
make[1]: Leaving directory `/home/dimhen/build/gcc_current'
make: *** [all] Error 2


$ /home/dimhen/build/gcc_current/./gcc/xgcc -v
Using built-in specs.
COLLECT_GCC=/home/dimhen/build/gcc_current/./gcc/xgcc
Target: x86_64-unknown-linux-gnu
Configured with: /home/dimhen/src/gcc_current/configure --enable-checking=fold
--disable-multilib
Thread model: posix
gcc version 4.10.0 20140627 (experimental) [trunk revision 212073] (GCC)


  parent reply	other threads:[~2014-06-27 14:24 UTC|newest]

Thread overview: 34+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2014-01-17  5:05 [Bug c/59850] New: " hpa at zytor dot com
2014-01-17  8:03 ` [Bug c/59850] " josh at joshtriplett dot org
2014-02-01  5:26 ` tromey at gcc dot gnu.org
2014-02-01 18:39 ` josh at joshtriplett dot org
2014-02-03  8:20 ` tromey at gcc dot gnu.org
2014-02-05 14:45 ` tromey at gcc dot gnu.org
2014-02-05 15:55 ` josh at joshtriplett dot org
2014-02-05 16:50 ` hpa at zytor dot com
2014-02-05 17:51 ` tromey at gcc dot gnu.org
2014-02-05 18:11 ` tromey at gcc dot gnu.org
2014-02-05 20:06 ` josh at joshtriplett dot org
2014-02-05 20:07 ` josh at joshtriplett dot org
2014-02-05 20:08 ` josh at joshtriplett dot org
2014-02-05 20:12 ` tromey at gcc dot gnu.org
2014-02-06  0:08 ` josh at joshtriplett dot org
2014-02-06  4:44 ` hpa at zytor dot com
2014-02-21  3:09 ` tromey at gcc dot gnu.org
2014-02-21  3:37 ` tromey at gcc dot gnu.org
2014-02-21  4:19 ` josh at joshtriplett dot org
2014-02-21 14:58 ` tromey at gcc dot gnu.org
2014-06-27  4:33 ` tromey at gcc dot gnu.org
2014-06-27 11:24 ` manu at gcc dot gnu.org
2014-06-27 14:24 ` manu at gcc dot gnu.org [this message]
2014-06-29  2:26 ` tromey at gcc dot gnu.org
2014-07-03 20:36 ` tromey at gcc dot gnu.org
2014-07-03 20:48 ` josh at joshtriplett dot org
2014-07-03 21:03 ` tromey at gcc dot gnu.org
2014-07-09 14:10 ` tromey at gcc dot gnu.org
2014-07-09 14:31 ` tromey at gcc dot gnu.org
2014-07-30 23:24 ` tromey at gcc dot gnu.org
2014-08-08 16:10 ` tromey at gcc dot gnu.org
2022-09-26 22:47 ` dmalcolm at gcc dot gnu.org
2022-10-03 15:02 ` mpolacek at gcc dot gnu.org
2022-10-03 16:16 ` hpa at zytor dot com

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=bug-59850-4-bCfGFUIDuD@http.gcc.gnu.org/bugzilla/ \
    --to=gcc-bugzilla@gcc.gnu.org \
    --cc=gcc-bugs@gcc.gnu.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
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).