public inbox for gcc-bugs@sourceware.org
help / color / mirror / Atom feed
* [Bug c++/58273] New: ICE: Segmentation fault with C++11
@ 2013-08-29 18:03 Woebbeking at web dot de
  2013-08-29 18:19 ` [Bug c++/58273] [4.7/4.8/4.9 Regression] " paolo.carlini at oracle dot com
                   ` (8 more replies)
  0 siblings, 9 replies; 10+ messages in thread
From: Woebbeking at web dot de @ 2013-08-29 18:03 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: 3838 bytes --]

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

            Bug ID: 58273
           Summary: ICE: Segmentation fault with C++11
           Product: gcc
           Version: 4.8.1
            Status: UNCONFIRMED
          Severity: normal
          Priority: P3
         Component: c++
          Assignee: unassigned at gcc dot gnu.org
          Reporter: Woebbeking at web dot de

Created attachment 30722
  --> http://gcc.gnu.org/bugzilla/attachment.cgi?id=30722&action=edit
Testcase

Hi,

I get an ICE with the attached test case when I compile with -std=c++11.

I'm using GCC 4.8.1 from Debian experimental (x86_64). The ICE happens with
4.7.3 too.

I don't get the ICE when I change the line to
  int i(B::goo(t));
  int const i = B::goo(t);


Cheers,
André
>From gcc-bugs-return-428649-listarch-gcc-bugs=gcc.gnu.org@gcc.gnu.org Thu Aug 29 18:09:35 2013
Return-Path: <gcc-bugs-return-428649-listarch-gcc-bugs=gcc.gnu.org@gcc.gnu.org>
Delivered-To: listarch-gcc-bugs@gcc.gnu.org
Received: (qmail 27601 invoked by alias); 29 Aug 2013 18:09:35 -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 27538 invoked by uid 48); 29 Aug 2013 18:09:31 -0000
From: "skunk at iskunk dot org" <gcc-bugzilla@gcc.gnu.org>
To: gcc-bugs@gcc.gnu.org
Subject: [Bug sanitizer/57316] [4.8/4.9 regression] build failure in libsanitizer
Date: Thu, 29 Aug 2013 18:09:00 -0000
X-Bugzilla-Reason: CC
X-Bugzilla-Type: changed
X-Bugzilla-Watch-Reason: None
X-Bugzilla-Product: gcc
X-Bugzilla-Component: sanitizer
X-Bugzilla-Version: 4.8.0
X-Bugzilla-Keywords:
X-Bugzilla-Severity: normal
X-Bugzilla-Who: skunk at iskunk dot org
X-Bugzilla-Status: UNCONFIRMED
X-Bugzilla-Priority: P3
X-Bugzilla-Assigned-To: unassigned at gcc dot gnu.org
X-Bugzilla-Target-Milestone: 4.8.2
X-Bugzilla-Flags:
X-Bugzilla-Changed-Fields: attachments.created
Message-ID: <bug-57316-4-HZe959yHP0@http.gcc.gnu.org/bugzilla/>
In-Reply-To: <bug-57316-4@http.gcc.gnu.org/bugzilla/>
References: <bug-57316-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: 2013-08/txt/msg01573.txt.bz2
Content-length: 1228

http://gcc.gnu.org/bugzilla/show_bug.cgi?idW316

--- Comment #7 from Daniel Richard G. <skunk at iskunk dot org> ---
Created attachment 30723
  --> http://gcc.gnu.org/bugzilla/attachment.cgi?id0723&actioníit
Trivial configure-time check

(In reply to Kostya Serebryany from comment #6)
>
> That would be non-trivial. We intercept the pthread_ functions so we can't
> call them directly. We'll at least need to bypass our own interceptors.
> And as I mentioned before, older kernels will likely not work anyway for
> a few other reasons.

Okay, so I guess there's no alternative but to disable libsanitizer for these
systems.

I see that libsanitizer support is inferred automatically by the
libsanitizer/configure.tgt script, which is sourced from the top-level
configure script. This script is not processed by Autoconf, so doing a
test-compile in there would be somewhat awkward. However, on this old Debian
system, the linux/futex.h header doesn't exist at all, so picking up on that
would be enough for me.

See attached patch for a first-draft proposal. (There probably needs to be some
build/host/target-sysroot awareness of where to look for the header; I'm not
familiar enough with building cross-compilers.)


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

end of thread, other threads:[~2013-09-16 17:02 UTC | newest]

Thread overview: 10+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2013-08-29 18:03 [Bug c++/58273] New: ICE: Segmentation fault with C++11 Woebbeking at web dot de
2013-08-29 18:19 ` [Bug c++/58273] [4.7/4.8/4.9 Regression] " paolo.carlini at oracle dot com
2013-08-29 18:46 ` jakub at gcc dot gnu.org
2013-08-29 18:46 ` jakub at gcc dot gnu.org
2013-09-12 22:22 ` jason at gcc dot gnu.org
2013-09-13 19:11 ` jason at gcc dot gnu.org
2013-09-13 22:22 ` jason at gcc dot gnu.org
2013-09-13 22:38 ` jason at gcc dot gnu.org
2013-09-13 22:39 ` jason at gcc dot gnu.org
2013-09-16 17:02 ` Woebbeking at web dot de

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).