bug-binutils
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[Bug gold/22776] New: internal error in dwarf_reader.cc


From: evstupac at gmail dot com
Subject: [Bug gold/22776] New: internal error in dwarf_reader.cc
Date: Fri, 02 Feb 2018 20:39:55 +0000

https://sourceware.org/bugzilla/show_bug.cgi?id=22776

            Bug ID: 22776
           Summary: internal error in dwarf_reader.cc
           Product: binutils
           Version: 2.29
            Status: UNCONFIRMED
          Severity: normal
          Priority: P2
         Component: gold
          Assignee: ccoutant at gmail dot com
          Reporter: evstupac at gmail dot com
                CC: ian at airs dot com
  Target Milestone: ---

Created attachment 10777
  --> https://sourceware.org/bugzilla/attachment.cgi?id=10777&action=edit
bad (causing internal error) object file

To reproduce:
ld.gold test_bad.o /usr/lib64/libc.so.6

ld.gold: internal error in format_file_lineno, at
../../binutils-2.29/gold/dwarf_reader.cc:2249

libc I use: 2.7 compiled by GNU CC version 4.8.5 20150623 (Red Hat 4.8.5-16) on
a Linux 3.10.0 system on 2017-06-16

The error was triggered by switching dwarf version from 2 to 4 in llvm compiler
(svn r319699 or git a61e335ed0ae118bf3ce579c9b33ea277463bff0).

Attached good and bad object files (for Linux) and corresponding readelf.
There is only 2 bytes difference between .debug_line sections there. The one
that triggers linker internal error is:
 0406 instead of 0306
 gold linker reads first symbol (04 in bad case) as elfcpp::DW_LNS_set_file
(dwarf_reader.cc line 1819)
 and as elfcpp::DW_LNS_advance_line in good case (03).
 The debug information is only for 5 files in the test. An attempt to access
6th file causes internal error.

-- 
You are receiving this mail because:
You are on the CC list for the bug.


reply via email to

[Prev in Thread] Current Thread [Next in Thread]