public inbox for gcc-patches@gcc.gnu.org
 help / color / mirror / Atom feed
From: "Martin Liška" <mliska@suse.cz>
To: Bernd Schmidt <bschmidt@redhat.com>,
	Hans-Peter Nilsson <hp@bitrange.com>
Cc: GCC Patches <gcc-patches@gcc.gnu.org>
Subject: Re: [PATCH,RFC] Introduce RUN_UNDER_VALGRIND in test-suite
Date: Tue, 08 Dec 2015 15:28:00 -0000	[thread overview]
Message-ID: <5666F723.1030603@suse.cz> (raw)
In-Reply-To: <56604E93.5050805@redhat.com>

On 12/03/2015 03:15 PM, Bernd Schmidt wrote:
> On 11/23/2015 10:34 AM, Martin Liška wrote:
>> On 11/21/2015 05:26 AM, Hans-Peter Nilsson wrote:
>>> IIRC you can replace the actual dg-runtest proc with your own
>>> (implementing a wrapper).  Grep aroung, I think we do that
>>> already.  That's certainly preferable instead of touching all
>>> callers.
>>
>> You are right, the suggested patch was over-kill, wrapper should be fine for that.
>> Currently I've been playing with a bit different approach (suggested by Markus),
>> where I would like to enable valgrind in gcc.c using an environmental variable.
>>
>> Question is if it should replace existing ENABLE_VALGRIND_CHECKING and how to
>> integrate it with a valgrind suppressions file?
> 
> This patch still seems to be in the queue. I've been looking at it every now and then, without really forming an opinion. In any case, I think we'll need to postpone this to stage1 at this point.
> 
> Wouldn't it be better to fix issues first and only then enable running the testsuite with valgrind, rather than make a suppression file?
> 
> Your latest patch seems to add the option of running the compiler without ENABLE_CHECKING_VALGRIND being defined. Doesn't this run into problems when the support in ggc isn't compiled in?
> 
> 
> Bernd

Hi.

Right, the patch is in queue and can wait for next stage1. I must agree with Hans-Peter Nilsson that we should
mainly focus on removal of memory leaks (and other invalid operations) rather that maintaining a list of suppressions.
After that, integration with existing configure machine should be easily doable, I guess.

I've just run the test-suite (with default languages) and report file was post-processed with my script [1] that
groups same back-traces together.

Currently we have ~200000 errors, in ~4000 different back-traces.

Majority of them (~2600 BTs) are in fortran FE (BT contains 'gfc_'): [2].
The rest contains some issues in CP FE, many GGC invalid read/write operations ([4]) and many
memory leaks in gcc.c (for instance option handling).

My question is if a bug should be created for all fortran issues and whether it's realistic that
they can be eventually fixed in next stage1?

Thanks,
Martin

[1] https://github.com/marxin/script-misc/blob/master/valgrind-grep.py
[2] https://drive.google.com/file/d/0B0pisUJ80pO1ZjdCVlZoeGZQNjg/view?usp=sharing
[3] https://drive.google.com/file/d/0B0pisUJ80pO1aFZTWk5sVTBlcHc/view?usp=sharing
[4] https://gcc.gnu.org/bugzilla/show_bug.cgi?id=68758

  reply	other threads:[~2015-12-08 15:28 UTC|newest]

Thread overview: 10+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2015-11-19 14:38 Martin Liška
2015-11-19 15:07 ` Markus Trippelsdorf
2015-11-21  4:44 ` Hans-Peter Nilsson
2015-11-23  9:36   ` Martin Liška
2015-11-24  9:17     ` Hans-Peter Nilsson
2015-12-03 14:15     ` Bernd Schmidt
2015-12-08 15:28       ` Martin Liška [this message]
2015-12-08 15:33         ` Bernd Schmidt
2015-12-08 16:04           ` Jeff Law
2016-05-13 13:04             ` RUN_UNDER_VALGRIND statistics for GCC 7 Martin Liška

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=5666F723.1030603@suse.cz \
    --to=mliska@suse.cz \
    --cc=bschmidt@redhat.com \
    --cc=gcc-patches@gcc.gnu.org \
    --cc=hp@bitrange.com \
    /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).