From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: by sourceware.org (Postfix, from userid 48) id 6EAAE3861C6A; Wed, 30 Jun 2021 16:25:42 +0000 (GMT) DKIM-Filter: OpenDKIM Filter v2.11.0 sourceware.org 6EAAE3861C6A From: "vifoxa2454 at advew dot com" To: elfutils-devel@sourceware.org Subject: [Bug tools/28032] New: eu-readelf --debug-dump=line stops after finding a table without line number statements. Date: Wed, 30 Jun 2021 16:25:42 +0000 X-Bugzilla-Reason: CC X-Bugzilla-Type: new X-Bugzilla-Watch-Reason: None X-Bugzilla-Product: elfutils X-Bugzilla-Component: tools X-Bugzilla-Version: unspecified X-Bugzilla-Keywords: X-Bugzilla-Severity: normal X-Bugzilla-Who: vifoxa2454 at advew dot com X-Bugzilla-Status: UNCONFIRMED X-Bugzilla-Resolution: X-Bugzilla-Priority: P2 X-Bugzilla-Assigned-To: unassigned at sourceware dot org X-Bugzilla-Target-Milestone: --- X-Bugzilla-Flags: X-Bugzilla-Changed-Fields: bug_id short_desc product version bug_status bug_severity priority component assigned_to reporter cc target_milestone Message-ID: Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: quoted-printable X-Bugzilla-URL: http://sourceware.org/bugzilla/ Auto-Submitted: auto-generated MIME-Version: 1.0 X-BeenThere: elfutils-devel@sourceware.org X-Mailman-Version: 2.1.29 Precedence: list List-Id: Elfutils-devel mailing list List-Unsubscribe: , List-Archive: List-Help: List-Subscribe: , X-List-Received-Date: Wed, 30 Jun 2021 16:25:42 -0000 https://sourceware.org/bugzilla/show_bug.cgi?id=3D28032 Bug ID: 28032 Summary: eu-readelf --debug-dump=3Dline stops after finding a table without line number statements. Product: elfutils Version: unspecified Status: UNCONFIRMED Severity: normal Priority: P2 Component: tools Assignee: unassigned at sourceware dot org Reporter: vifoxa2454 at advew dot com CC: elfutils-devel at sourceware dot org Target Milestone: --- We use an ABI dumper (https://github.com/lvc/abi-dumper) to make sure we do= n't accidentally release binary incompatible changes by mistake. This tool uses "eu-readelf --debug-dump=3Dline" to get some of the information it needs. In version 0.180 this worked fine, but when we upgraded to 0.182 it stopped working. After some digging I found that a change in 0.181 caused the issue. I found this link describing the change: https://www.mail-archive.com/search?l=3Delfutils-devel@sourceware.org&q=3Ds= ubject:%22%5C%5BPATCH%5C%5D+readelf%5C%3A+It+is+not+an+error+if+there+are+n= o+line+number+statements%22&o=3Dnewest&f=3D1 Running "eu-readelf --debug-dump=3Dline" on one of our shared libraries I g= et 92 tables on version 0.180, but only 6 tables on version 0.182. The last line = in the output of the 0.182 version is "No line number statements". The corresponding table in version 0.180 says only "Line number statements:" and then nothing. That table is very small (length 317, prologue length 311). I believe that the bug is that the tool stops at this point instead of continuing with the next table. The problematic code (in src/readelf.c taken from version 0.185): if (linep =3D=3D lineendp) { puts (_("\nNo line number statements.")); return; } If I comment out that block the tool work again for our use case. Maybe some sort if if/else would be better? I am not sure what would fit that code best as I have not done any deep div= ing into it. --=20 You are receiving this mail because: You are on the CC list for the bug.=