public inbox for gcc-bugs@sourceware.org
help / color / mirror / Atom feed
* [Bug libitm/61594] New: ICE (assertion failure) in trans-mem.c
@ 2014-06-24 16:08 hammacher at cs dot uni-saarland.de
  2014-07-03  9:19 ` [Bug libitm/61594] " patrick.marlier at gmail dot com
                   ` (8 more replies)
  0 siblings, 9 replies; 10+ messages in thread
From: hammacher at cs dot uni-saarland.de @ 2014-06-24 16:08 UTC (permalink / raw)
  To: gcc-bugs

[-- Warning: decoded text below may be mangled, UTF-8 assumed --]
[-- Attachment #1: Type: text/plain; charset="UTF-8", Size: 6162 bytes --]

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

            Bug ID: 61594
           Summary: ICE (assertion failure) in trans-mem.c
           Product: gcc
           Version: 4.10.0
            Status: UNCONFIRMED
          Severity: normal
          Priority: P3
         Component: libitm
          Assignee: unassigned at gcc dot gnu.org
          Reporter: hammacher at cs dot uni-saarland.de

Created attachment 32998
  --> https://gcc.gnu.org/bugzilla/attachment.cgi?id=32998&action=edit
preprocessed code triggering the bug

I am triggering a bug in the transactional memory instrumentation.

In trans-mem.c:1518 (originally line 1515, I added three lines to hack around
this bug), the following check fails:
> gcc_assert (TREE_CODE (x) == VAR_DECL);

because TREE_CODE(x) is STRING_CST.

$ g++-git -v -save-temps -O3 -std=c++11 -fgnu-tm -c indexer.cpp
Using built-in specs.
COLLECT_GCC=g++-git
Target: x86_64-unknown-linux-gnu
Configured with: /usr/src/gcc/configure --prefix=/opt/gcc-git
--program-suffix=git --disable-multilib : (reconfigured) /usr/src/gcc/configure
--prefix=/opt/gcc-git --program-suffix=-git --disable-multilib
Thread model: posix
gcc version 4.10.0 20140622 (experimental) (GCC)
COLLECT_GCC_OPTIONS='-v' '-save-temps' '-O3' '-std=c++11' '-fgnu-tm' '-c'
'-shared-libgcc' '-mtune=generic' '-march=x86-64' '-pthread'
 /opt/gcc-git/libexec/gcc/x86_64-unknown-linux-gnu/4.10.0/cc1plus -E -quiet -v
-D_GNU_SOURCE -D_REENTRANT indexer.cpp -mtune=generic -march=x86-64 -std=c++11
-fgnu-tm -O3 -fpch-preprocess -o indexer.ii
ignoring nonexistent directory "/usr/local/include"
ignoring nonexistent directory
"/opt/gcc-git/lib/gcc/x86_64-unknown-linux-gnu/4.10.0/../../../../x86_64-unknown-linux-gnu/include"
#include "..." search starts here:
#include <...> search starts here:

/opt/gcc-git/lib/gcc/x86_64-unknown-linux-gnu/4.10.0/../../../../include/c++/4.10.0

/opt/gcc-git/lib/gcc/x86_64-unknown-linux-gnu/4.10.0/../../../../include/c++/4.10.0/x86_64-unknown-linux-gnu

/opt/gcc-git/lib/gcc/x86_64-unknown-linux-gnu/4.10.0/../../../../include/c++/4.10.0/backward
 /opt/gcc-git/lib/gcc/x86_64-unknown-linux-gnu/4.10.0/include
 /opt/gcc-git/include
 /opt/gcc-git/lib/gcc/x86_64-unknown-linux-gnu/4.10.0/include-fixed
 /usr/include
End of search list.
COLLECT_GCC_OPTIONS='-v' '-save-temps' '-O3' '-std=c++11' '-fgnu-tm' '-c'
'-shared-libgcc' '-mtune=generic' '-march=x86-64' '-pthread'
 /opt/gcc-git/libexec/gcc/x86_64-unknown-linux-gnu/4.10.0/cc1plus
-fpreprocessed indexer.ii -quiet -dumpbase indexer.cpp -mtune=generic
-march=x86-64 -auxbase indexer -O3 -std=c++11 -version -fgnu-tm -o indexer.s
GNU C++ (GCC) version 4.10.0 20140622 (experimental) (x86_64-unknown-linux-gnu)
        compiled by GNU C version 4.10.0 20140622 (experimental), GMP version
5.1.2, MPFR version 3.1.2, MPC version 1.0.1
GGC heuristics: --param ggc-min-expand=30 --param ggc-min-heapsize=4096
GNU C++ (GCC) version 4.10.0 20140622 (experimental) (x86_64-unknown-linux-gnu)
        compiled by GNU C version 4.10.0 20140622 (experimental), GMP version
5.1.2, MPFR version 3.1.2, MPC version 1.0.1
GGC heuristics: --param ggc-min-expand=30 --param ggc-min-heapsize=4096
Compiler executable checksum: 3ed828d89bc21f38ee29be835239ca4b
indexer.cpp: In member function ‘bool {anonymous}::Parser::parseDeclaration()’:
indexer.cpp:231:10: internal compiler error: in requires_barrier, at
trans-mem.c:1518
     bool parseDeclaration() {
          ^
0xba851f requires_barrier
        /usr/src/gcc/gcc/trans-mem.c:1518
0xba87e0 expand_assign_tm
        /usr/src/gcc/gcc/trans-mem.c:2254
0xba9a3e expand_block_tm
        /usr/src/gcc/gcc/trans-mem.c:2485
0xba9a3e execute_tm_mark
        /usr/src/gcc/gcc/trans-mem.c:2983
0xba9a3e execute
        /usr/src/gcc/gcc/trans-mem.c:3029
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.
>From gcc-bugs-return-454801-listarch-gcc-bugs=gcc.gnu.org@gcc.gnu.org Tue Jun 24 16:14:55 2014
Return-Path: <gcc-bugs-return-454801-listarch-gcc-bugs=gcc.gnu.org@gcc.gnu.org>
Delivered-To: listarch-gcc-bugs@gcc.gnu.org
Received: (qmail 30494 invoked by alias); 24 Jun 2014 16:14:55 -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 30470 invoked by uid 48); 24 Jun 2014 16:14:52 -0000
From: "gcc-bugzilla at mailhell dot seb7.de" <gcc-bugzilla@gcc.gnu.org>
To: gcc-bugs@gcc.gnu.org
Subject: [Bug debug/61595] Inconsistent DWARF information for arrays of vector types
Date: Tue, 24 Jun 2014 16:14:00 -0000
X-Bugzilla-Reason: CC
X-Bugzilla-Type: changed
X-Bugzilla-Watch-Reason: None
X-Bugzilla-Product: gcc
X-Bugzilla-Component: debug
X-Bugzilla-Version: 4.7.2
X-Bugzilla-Keywords:
X-Bugzilla-Severity: normal
X-Bugzilla-Who: gcc-bugzilla at mailhell dot seb7.de
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: attachments.created
Message-ID: <bug-61595-4-siYKz3rQF4@http.gcc.gnu.org/bugzilla/>
In-Reply-To: <bug-61595-4@http.gcc.gnu.org/bugzilla/>
References: <bug-61595-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/msg01883.txt.bz2
Content-length: 287

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

--- Comment #1 from Sebastian Meyer <gcc-bugzilla at mailhell dot seb7.de> ---
Created attachment 32999
  --> https://gcc.gnu.org/bugzilla/attachment.cgi?id2999&actioníit
Example source, produced DWARF information and memory dump


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

end of thread, other threads:[~2022-01-31 16:10 UTC | newest]

Thread overview: 10+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2014-06-24 16:08 [Bug libitm/61594] New: ICE (assertion failure) in trans-mem.c hammacher at cs dot uni-saarland.de
2014-07-03  9:19 ` [Bug libitm/61594] " patrick.marlier at gmail dot com
2014-07-03 12:11 ` patrick.marlier at gmail dot com
2015-01-23 14:58 ` torvald at gcc dot gnu.org
2015-01-23 15:11 ` patrick.marlier at gmail dot com
2015-01-26 10:29 ` hammacher at cs dot uni-saarland.de
2015-01-26 13:05 ` torvald at gcc dot gnu.org
2015-01-26 13:06 ` torvald at gcc dot gnu.org
2022-01-07  5:13 ` pinskia at gcc dot gnu.org
2022-01-31 16:10 ` marxin 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).