Bug 2064052

Summary: debugedit error with clang DWARF5: Unknown DWARF DW_FORM_0x25 (DW_FORM_strx1)
Product: [Fedora] Fedora Reporter: Tom Stellard <tstellar>
Component: debugeditAssignee: Mark Wielaard <mjw>
Status: NEW --- QA Contact:
Severity: unspecified Docs Contact:
Priority: unspecified    
Version: 37CC: mjw, tuliom
Target Milestone: ---   
Target Release: ---   
Hardware: Unspecified   
OS: Unspecified   
Whiteboard:
Fixed In Version: Doc Type: If docs needed, set a value
Doc Text:
Story Points: ---
Clone Of:
: 2064056 2064057 2064058 (view as bug list) Environment:
Last Closed: Type: Bug
Regression: --- Mount Type: ---
Documentation: --- CRM:
Verified Versions: Category: ---
oVirt Team: --- RHEL 7.3 requirements from Atomic Host:
Cloudforms Team: --- Target Upstream Version:
Embargoed:
Bug Depends On:    
Bug Blocks: 2064056, 2064057, 2064058    

Description Tom Stellard 2022-03-14 23:24:23 UTC
Description of problem:
Debug info emits an error when processing a binary compiled by clang with DWARF5: "Unknown DWARF DW_FORM_0x25"

Version-Release number of selected component (if applicable):
debugedit-5.0-3.fc36.x86_64.rpm                                                                                                     

How reproducible:
Always

Steps to Reproduce:

On rawhide or Fedora 36:

1. dnf copr enable @fedora-llvm-team/llvm14
2. dnf install clang debugedit
3. echo 'int main(){}' | clang -x c - -g
4. debugedit a.out

Actual results:
Program exits with error:
debugedit: a.out: Unknown DWARF DW_FORM_0x25

Expected results:
Program exits successfully.

Additional info:
clang14 is not yet in rawhide, but once it is, this bug causes koji build failures for packages built with clang.

Comment 1 Mark Wielaard 2022-03-15 10:15:42 UTC
(In reply to Tom Stellard from comment #0)
> clang14 is not yet in rawhide, but once it is, this bug causes koji build
> failures for packages built with clang.

Given this isn't the only tools issue with clang produced DWARF5 (at least dwz and valgrind don't support it either) I'll suggest that clang defaults to DWARF4 for now till all tools are updated to handle the new DWARF forms.

Comment 2 Ben Cotton 2022-08-09 13:13:52 UTC
This bug appears to have been reported against 'rawhide' during the Fedora Linux 37 development cycle.
Changing version to 37.