From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 16956 invoked by alias); 26 Nov 2013 12:22:00 -0000 Mailing-List: contact gcc-bugs-help@gcc.gnu.org; run by ezmlm Precedence: bulk List-Id: List-Archive: List-Post: List-Help: Sender: gcc-bugs-owner@gcc.gnu.org Received: (qmail 16924 invoked by uid 48); 26 Nov 2013 12:21:56 -0000 From: "ubizjak at gmail dot com" To: gcc-bugs@gcc.gnu.org Subject: [Bug middle-end/59273] [4.9 Regression] ICE in expand_expr_real_2, at expr.c:9188 on alpha Date: Tue, 26 Nov 2013 12:22: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.9.0 X-Bugzilla-Keywords: X-Bugzilla-Severity: normal X-Bugzilla-Who: ubizjak at gmail dot com X-Bugzilla-Status: ASSIGNED X-Bugzilla-Priority: P1 X-Bugzilla-Assigned-To: jakub at gcc dot gnu.org X-Bugzilla-Target-Milestone: 4.9.0 X-Bugzilla-Flags: X-Bugzilla-Changed-Fields: Message-ID: In-Reply-To: References: 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: 2013-11/txt/msg02668.txt.bz2 http://gcc.gnu.org/bugzilla/show_bug.cgi?id=3D59273 --- Comment #4 from Uro=C5=A1 Bizjak --- (In reply to Jakub Jelinek from comment #3) > Created attachment 31293 [details] > gcc49-pr59273.patch >=20 > Untested fix. I have started a native bootstrap + regtest on alpha. >>From gcc-bugs-return-435892-listarch-gcc-bugs=gcc.gnu.org@gcc.gnu.org Tue Nov 26 12:52:41 2013 Return-Path: Delivered-To: listarch-gcc-bugs@gcc.gnu.org Received: (qmail 10385 invoked by alias); 26 Nov 2013 12:52:41 -0000 Mailing-List: contact gcc-bugs-help@gcc.gnu.org; run by ezmlm Precedence: bulk List-Id: List-Archive: List-Post: List-Help: Sender: gcc-bugs-owner@gcc.gnu.org Delivered-To: mailing list gcc-bugs@gcc.gnu.org Received: (qmail 10319 invoked by uid 48); 26 Nov 2013 12:52:36 -0000 From: "Joost.VandeVondele at mat dot ethz.ch" To: gcc-bugs@gcc.gnu.org Subject: [Bug sanitizer/59286] segfault in __sanitizer::StackDepotGet Date: Tue, 26 Nov 2013 12:52: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.9.0 X-Bugzilla-Keywords: X-Bugzilla-Severity: normal X-Bugzilla-Who: Joost.VandeVondele at mat dot ethz.ch 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: In-Reply-To: References: 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-11/txt/msg02669.txt.bz2 Content-length: 1046 http://gcc.gnu.org/bugzilla/show_bug.cgi?id=59286 --- Comment #7 from Joost VandeVondele --- (In reply to Kostya Serebryany from comment #5) > Maybe let's do some remote debugging then :) For the current setup, the crash is always in StackDepotGet The following printfs: StackDesc *s = (StackDesc*)(v & ~1); printf("Getting %p\n",s); for (; s; s = s->link) { if (s->id == id) { *size = s->size; return s->stack; } printf("Following %p\n",s->link); } Always crash at an output like: Getting (nil) Getting 0x7ffff0305eb0 Following 0xc004832c00002 Program received signal SIGSEGV, Segmentation fault. [Switching to Thread 0x7ffff0461100 (LWP 24991)] 0x00007ffff35ae4e0 in __sanitizer::StackDepotGet (id=4030474480, size=0x0) at ../../../../gcc/libsanitizer/sanitizer_common/sanitizer_stackdepot.cc:196 196 if (s->id == id) { (gdb) print s $2 = (__sanitizer::StackDesc *) 0xc004832c00002 so the s->link field containing something unexpected.