From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from gnu.wildebeest.org (wildebeest.demon.nl [212.238.236.112]) by sourceware.org (Postfix) with ESMTPS id C7A0A385780C; Mon, 25 Jan 2021 14:38:10 +0000 (GMT) DMARC-Filter: OpenDMARC Filter v1.3.2 sourceware.org C7A0A385780C Authentication-Results: sourceware.org; dmarc=none (p=none dis=none) header.from=klomp.org Authentication-Results: sourceware.org; spf=pass smtp.mailfrom=mark@klomp.org Received: from tarox.wildebeest.org (tarox.wildebeest.org [172.31.17.39]) (using TLSv1.2 with cipher AECDH-AES256-SHA (256/256 bits)) (No client certificate requested) by gnu.wildebeest.org (Postfix) with ESMTPSA id 5750A3000731; Mon, 25 Jan 2021 15:38:09 +0100 (CET) Received: by tarox.wildebeest.org (Postfix, from userid 1000) id 10F2A4000BC8; Mon, 25 Jan 2021 15:38:09 +0100 (CET) Message-ID: <3052033658e9bd93ece536193efe6fa8276837b7.camel@klomp.org> Subject: Re: Non-dwarf blocks detected by valgrind From: Mark Wielaard To: Thomas Koenig , Tobias Burnus , Paul Richard Thomas Cc: gcc mailing list , fortran Date: Mon, 25 Jan 2021 15:38:08 +0100 In-Reply-To: References: <362769a6-4184-e59b-ded1-7cbe972c84ba@codesourcery.com> Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: quoted-printable X-Mailer: Evolution 3.28.5 (3.28.5-10.el7) Mime-Version: 1.0 X-Spam-Status: No, score=-5.8 required=5.0 tests=BAYES_00, KAM_DMARC_STATUS, SPF_HELO_NONE, SPF_PASS, TXREP autolearn=ham autolearn_force=no version=3.4.2 X-Spam-Checker-Version: SpamAssassin 3.4.2 (2018-09-13) on server2.sourceware.org X-BeenThere: fortran@gcc.gnu.org X-Mailman-Version: 2.1.29 Precedence: list List-Id: Fortran mailing list List-Unsubscribe: , List-Archive: List-Help: List-Subscribe: , X-List-Received-Date: Mon, 25 Jan 2021 14:38:12 -0000 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: >=20 > [...] >=20 > --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 >=20 >=20 > [...] >=20 > --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 >=20 > 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=3Ddwarf5 It needs a little bit more cleanup, but should already work as expected. Cheers, Mark