public inbox for fortran@gcc.gnu.org
 help / color / mirror / Atom feed
From: Mark Wielaard <mark@klomp.org>
To: Thomas Koenig <tkoenig@netcologne.de>,
	Tobias Burnus <tobias@codesourcery.com>,
	Paul Richard Thomas <paul.richard.thomas@gmail.com>
Cc: gcc mailing list <gcc@gcc.gnu.org>, fortran <fortran@gcc.gnu.org>
Subject: Re: Non-dwarf blocks detected by valgrind
Date: Mon, 25 Jan 2021 15:38:08 +0100	[thread overview]
Message-ID: <3052033658e9bd93ece536193efe6fa8276837b7.camel@klomp.org> (raw)
In-Reply-To: <c5627671-2fce-1304-f451-6d8cc08f0c3f@netcologne.de>

Hi,

On Mon, 2021-01-25 at 15:05 +0100, Thomas Koenig via Gcc wrote:
> $ valgrind --version
> valgrind-3.15.0
> $ gfortran -g hello.f90
> $ valgrind ./a.out
> [...]
> --4184-- WARNING: Serious error when reading debug info
> --4184-- When reading debug info from
> /home/ig25/lib64/libgfortran.so.5.0.0:
> --4184-- Ignoring non-Dwarf2/3/4 block in .debug_info
> --4184-- WARNING: Serious error when reading debug info
> --4184-- When reading debug info from
> /home/ig25/lib64/libgfortran.so.5.0.0:
> 
> [...]
> 
> --4184-- WARNING: Serious error when reading debug info
> --4184-- When reading debug info from /home/ig25/lib64/libgcc_s.so.1:
> --4184-- Ignoring non-Dwarf2/3/4 block in .debug_info
> 
> 
> [...]
> 
> --4184-- WARNING: Serious error when reading debug info
> --4184-- When reading debug info from
> /home/ig25/lib64/libquadmath.so.0.0.0:
> --4184-- Ignoring non-Dwarf2/3/4 block in .debug_info
> 
> So, the problem (at least for me) is that libgfortran and
> other libraries are built in a format that valgrind can not
> understand, so it becomes much harder to debug libgfortran :-(

I have a patch for that:
https://code.wildebeest.org/git/user/mjw/valgrind/commit/?h=dwarf5

It needs a little bit more cleanup, but should already work as
expected.

Cheers,

Mark

  reply	other threads:[~2021-01-25 14:38 UTC|newest]

Thread overview: 11+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2021-01-23  8:52 Paul Richard Thomas
2021-01-23 10:51 ` Tobias Burnus
2021-01-23 13:32   ` Paul Richard Thomas
2021-01-24 20:37     ` Thomas Koenig
2021-01-24 21:47       ` Paul Richard Thomas
2021-01-25  7:33     ` Tobias Burnus
2021-01-25 14:05       ` Thomas Koenig
2021-01-25 14:38         ` Mark Wielaard [this message]
2021-01-25 17:08           ` Mark Wielaard
2021-01-25 14:40         ` Tobias Burnus
2021-01-25 14:55           ` Thomas Koenig

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=3052033658e9bd93ece536193efe6fa8276837b7.camel@klomp.org \
    --to=mark@klomp.org \
    --cc=fortran@gcc.gnu.org \
    --cc=gcc@gcc.gnu.org \
    --cc=paul.richard.thomas@gmail.com \
    --cc=tkoenig@netcologne.de \
    --cc=tobias@codesourcery.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).