From: Alan Lawrence <alan.lawrence@arm.com>
To: Richard Biener <rguenther@suse.de>
Cc: "gcc-patches@gcc.gnu.org" <gcc-patches@gcc.gnu.org>
Subject: Re: [PATCH] Fix PR68067
Date: Fri, 20 Nov 2015 17:28:00 -0000 [thread overview]
Message-ID: <CAOckXuMnh77Y2unSToB=wiY5vfMBMueaZ4SyG4Yj=RBrfeK0dA@mail.gmail.com> (raw)
In-Reply-To: <alpine.LSU.2.11.1511061136580.10078@zhemvz.fhfr.qr>
On 6 November 2015 at 10:39, Richard Biener <rguenther@suse.de> wrote:
>> ../spec2000/benchspec/CINT2000/254.gap/src/polynom.c:358:11: error: location
>> references block not in block tree
>> l1_279 = PHI <1(28), l1_299(33)>
>
> ^^^
>
> this is the error to look at! It means that the GC heap will be corrupted
> quite easily.
>
This looked very similar to PR68117 - the invalid phi arg, and block
not in block-tree, even if not the invalid tree code - and as the
posters there were having success with valgrind, whereas I wasn't, I
watched and waited. First observation is that it triggers the asserts
you suggested in comment 27
(https://gcc.gnu.org/bugzilla/show_bug.cgi?id=3D68117#c27). Indeed, it
fails those asserts, even after the patch in comment 25 (committed as
r230594) to tree-ssa.c (delete_tree_ssa), and the patch in comment#35
to function.c (set_cfun), and the patch in comment#30 (committed as
r230424) to cfgexpand.c (pass_expand::execute).
The patch in comment#29 (which replaces the asserts in comment#27 with
empties), however, fixes the problem - although I can't rule out, that
that's just by changing the memory allocation pattern.
Moreover, if I take those patches and rebase onto a recent trunk (onto
which the delete_tree_ssa and pass_expand::execute patches have
already been committed), i.e. just adding the assertions from
comment#27 and the call in function.c (set_cfun) - the assertions are
still failing on my testcase, whereas the original (assertionless)
failure was very erratic, and had since disappeared/been hidden on
trunk. Indeed those same assertions break in a few other places (even
in a --disable-bootstrap build after gcc/xgcc is built), so I feel I
have a good chance of producing a reasonable assertion-breaking
testcase.
So I have to ask, how sure are you that those assertions are(/should
be!) "correct"? :)
--Alan
next prev parent reply other threads:[~2015-11-20 17:28 UTC|newest]
Thread overview: 14+ messages / expand[flat|nested] mbox.gz Atom feed top
2015-10-27 12:50 Richard Biener
2015-10-27 14:31 ` Richard Biener
2015-10-28 13:43 ` Richard Biener
2015-11-06 10:31 ` Alan Lawrence
2015-11-06 10:39 ` Richard Biener
2015-11-06 12:24 ` Alan Lawrence
2015-11-06 12:26 ` Richard Biener
2015-11-06 16:11 ` Jeff Law
2015-11-20 17:28 ` Alan Lawrence [this message]
2015-11-23 9:44 ` Richard Biener
2015-11-27 16:24 ` Alan Lawrence
2015-11-27 18:26 ` Alan Lawrence
2015-11-30 8:52 ` Richard Biener
2015-11-30 17:01 ` Jeff Law
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='CAOckXuMnh77Y2unSToB=wiY5vfMBMueaZ4SyG4Yj=RBrfeK0dA@mail.gmail.com' \
--to=alan.lawrence@arm.com \
--cc=gcc-patches@gcc.gnu.org \
--cc=rguenther@suse.de \
/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).