bug-binutils
[Top][All Lists]
Advanced

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

[Bug binutils/28674] New: objdump crashed when compiled with `clang-13 -


From: shaohua.li at inf dot ethz.ch
Subject: [Bug binutils/28674] New: objdump crashed when compiled with `clang-13 -O0`
Date: Wed, 08 Dec 2021 15:26:41 +0000

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

            Bug ID: 28674
           Summary: objdump crashed when compiled with `clang-13 -O0`
           Product: binutils
           Version: 2.38 (HEAD)
            Status: UNCONFIRMED
          Severity: normal
          Priority: P2
         Component: binutils
          Assignee: unassigned at sourceware dot org
          Reporter: shaohua.li at inf dot ethz.ch
  Target Milestone: ---

Created attachment 13831
  --> https://sourceware.org/bugzilla/attachment.cgi?id=13831&action=edit
poc_clang-O0

Hi there,

I crashed `objdump -S -D` when I compile binutils with `clang-13 -O0`. For the
provided poc, if I compile with other opt flags, e.g., `clang-13 -O2`, `objdump
-S -D` would not crash.

- Compiler: clang-13 -O0

- Platform: Ubuntu 20.04.4 LTS, x86_64

- Reproduce: run `objdump -S -D poc_clang-O0`

- Raw output:

../bin/objdump-clang13-O0: Warning: Corrupt unit length (got 0x656c6966
expected at most 0x12) in section .debug_info

bugs/diff_5:     file format elf64-x86-64


Disassembly of section .debug_str:

0000000000000000 <string1>:
../bin/objdump-clang13-O0: BFD (GNU Binutils) 2.37.50.20211202 assertion fail
./dwarf2.c:4296
../bin/objdump-clang13-O0: DWARF error: info pointer extends beyond end of
attributes
../bin/objdump-clang13-O0: DWARF error: info pointer extends beyond end of
attributes
Segmentation fault (core dumped)

-- 
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]