[GHC] #14834: Executable have problems with DWARF debug information

GHC ghc-devs at haskell.org
Wed Feb 21 15:00:37 UTC 2018


#14834: Executable have problems with DWARF debug information
-------------------------------------+-------------------------------------
           Reporter:  varosi         |             Owner:  (none)
               Type:  bug            |            Status:  new
           Priority:  normal         |         Milestone:
          Component:  Compiler       |           Version:  8.2.2
  (Debugging)                        |
           Keywords:                 |  Operating System:  Windows
       Architecture:  x86_64         |   Type of failure:  Debugging
  (amd64)                            |  information is incorrect
          Test Case:                 |        Blocked By:
           Blocking:                 |   Related Tickets:
Differential Rev(s):                 |         Wiki Page:
-------------------------------------+-------------------------------------
 We're compiling production code with GHC 8.2.2 under Windows 10 (i.e.
 Mingw64).
 A crash occured during one of our FFI bindings and we wanted to use latest
 GHC debugging functionallity to find the problem faster.
 We used a tool cv2pdb to convert DWARF information into PDB, but we hit a
 crash with the tool - [https://github.com/rainers/cv2pdb/issues/23]
 In response, the tool author brought us back a output of a problem in
 objdump tool over our executable:

 {{{
 c:\tmp\cv\crash>C:\l\d\GDC-2.068\bin\x86_64-unknown-linux-gnu-objdump.exe
 -W crash.exe >objdump
 C:\l\d\GDC-2.068\bin\x86_64-unknown-linux-gnu-objdump.exe: Warning:
 Encoded value extends past end of section
 C:\l\d\GDC-2.068\bin\x86_64-unknown-linux-gnu-objdump.exe: Warning:
 Encoded value extends past end of section
 C:\l\d\GDC-2.068\bin\x86_64-unknown-linux-gnu-objdump.exe: Warning:
 Encoded value extends past end of section
 C:\l\d\GDC-2.068\bin\x86_64-unknown-linux-gnu-objdump.exe: Warning:
 Encoded value extends past end of section
 C:\l\d\GDC-2.068\bin\x86_64-unknown-linux-gnu-objdump.exe: Warning:
 Encoded value extends past end of section
 C:\l\d\GDC-2.068\bin\x86_64-unknown-linux-gnu-objdump.exe: Warning:
 Encoded value extends past end of section
 C:\l\d\GDC-2.068\bin\x86_64-unknown-linux-gnu-objdump.exe: Warning:
 Encoded value extends past end of section
 C:\l\d\GDC-2.068\bin\x86_64-unknown-linux-gnu-objdump.exe: Warning:
 Encoded value extends past end of section
 C:\l\d\GDC-2.068\bin\x86_64-unknown-linux-gnu-objdump.exe: Warning:
 Encoded value extends past end of section
 C:\l\d\GDC-2.068\bin\x86_64-unknown-linux-gnu-objdump.exe: Warning:
 Encoded value extends past end of section
 C:\l\d\GDC-2.068\bin\x86_64-unknown-linux-gnu-objdump.exe: Warning:
 Encoded value extends past end of section
 C:\l\d\GDC-2.068\bin\x86_64-unknown-linux-gnu-objdump.exe: Warning:
 Encoded value extends past end of section
 C:\l\d\GDC-2.068\bin\x86_64-unknown-linux-gnu-objdump.exe: Warning:
 Encoded value extends past end of section
 C:\l\d\GDC-2.068\bin\x86_64-unknown-linux-gnu-objdump.exe: Warning:
 Encoded value extends past end of section
 C:\l\d\GDC-2.068\bin\x86_64-unknown-linux-gnu-objdump.exe: Warning:
 Encoded value extends past end of section
 C:\l\d\GDC-2.068\bin\x86_64-unknown-linux-gnu-objdump.exe: Warning:
 Encoded value extends past end of section
 C:\l\d\GDC-2.068\bin\x86_64-unknown-linux-gnu-objdump.exe: Warning:
 Encoded value extends past end of section
 C:\l\d\GDC-2.068\bin\x86_64-unknown-linux-gnu-objdump.exe: Warning:
 Encoded value extends past end of section
 C:\l\d\GDC-2.068\bin\x86_64-unknown-linux-gnu-objdump.exe: Warning:
 Encoded value extends past end of section
 C:\l\d\GDC-2.068\bin\x86_64-unknown-linux-gnu-objdump.exe: Warning:
 Encoded value extends past end of section
 C:\l\d\GDC-2.068\bin\x86_64-unknown-linux-gnu-objdump.exe: Warning:
 Encoded value extends past end of section
 C:\l\d\GDC-2.068\bin\x86_64-unknown-linux-gnu-objdump.exe: Warning:
 Encoded value extends past end of section
 C:\l\d\GDC-2.068\bin\x86_64-unknown-linux-gnu-objdump.exe: Warning:
 Encoded value extends past end of section
 C:\l\d\GDC-2.068\bin\x86_64-unknown-linux-gnu-objdump.exe: Warning:
 Encoded value extends past end of section
 C:\l\d\GDC-2.068\bin\x86_64-unknown-linux-gnu-objdump.exe: Warning:
 Encoded value extends past end of section
 C:\l\d\GDC-2.068\bin\x86_64-unknown-linux-gnu-objdump.exe: Warning:
 Encoded value extends past end of section
 C:\l\d\GDC-2.068\bin\x86_64-unknown-linux-gnu-objdump.exe: Warning:
 Encoded value extends past end of section
 C:\l\d\GDC-2.068\bin\x86_64-unknown-linux-gnu-objdump.exe: Warning:
 Encoded value extends past end of section
 C:\l\d\GDC-2.068\bin\x86_64-unknown-linux-gnu-objdump.exe: Warning:
 Encoded value extends past end of section
 C:\l\d\GDC-2.068\bin\x86_64-unknown-linux-gnu-objdump.exe: Warning:
 Encoded value extends past end of section
 C:\l\d\GDC-2.068\bin\x86_64-unknown-linux-gnu-objdump.exe: Warning:
 Encoded value extends past end of section
 C:\l\d\GDC-2.068\bin\x86_64-unknown-linux-gnu-objdump.exe: Warning:
 Encoded value extends past end of section
 C:\l\d\GDC-2.068\bin\x86_64-unknown-linux-gnu-objdump.exe: Warning:
 Encoded value extends past end of section
 C:\l\d\GDC-2.068\bin\x86_64-unknown-linux-gnu-objdump.exe: Warning: There
 is a hole [0x682a - 0x6867] in .debug_loc section.
 }}}

-- 
Ticket URL: <http://ghc.haskell.org/trac/ghc/ticket/14834>
GHC <http://www.haskell.org/ghc/>
The Glasgow Haskell Compiler


More information about the ghc-tickets mailing list