[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[Bug binutils/28163] New: Segment fault on `objdump -S`due to function r
From: |
shaohua.li at inf dot ethz.ch |
Subject: |
[Bug binutils/28163] New: Segment fault on `objdump -S`due to function rl78_special_reloc in elf32-rl78.c |
Date: |
Mon, 02 Aug 2021 10:09:09 +0000 |
https://sourceware.org/bugzilla/show_bug.cgi?id=28163
Bug ID: 28163
Summary: Segment fault on `objdump -S`due to function
rl78_special_reloc in elf32-rl78.c
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 13574
--> https://sourceware.org/bugzilla/attachment.cgi?id=13574&action=edit
poc
Hi there,
I crashed `objdump -S` with a fuzzer.
- binutils version: 2.38(Head), commit af51804103a08cd1e12edc4f4a30eec2c5c4f9e8
- Compiler: clang12
- Platform: Ubuntu 18.04.5 LTS, x86_64
- Reproduce: run `objdump -S poc`
AddressSanitizer report:
=================================================================
==160==ERROR: AddressSanitizer: SEGV on unknown address 0x60e0007478b4 (pc
0x000001705f55 bp 0x7ffda549d5d0 sp 0x7ffda549d2d0 T0)
==160==The signal is caused by a WRITE memory access.
#0 0x1705f55 in rl78_special_reloc
/binutils_latest/repo/bfd/elf32-rl78.c:630:14
#1 0x1b49a57 in bfd_perform_relocation
/binutils_latest/repo/bfd/reloc.c:711:14
#2 0x1b4da0f in bfd_generic_get_relocated_section_contents
/binutils_latest/repo/bfd/reloc.c:8463:10
#3 0xae653f in bfd_get_relocated_section_contents
/binutils_latest/repo/bfd/bfd.c:2166:10
#4 0xb0fe68 in bfd_simple_get_relocated_section_contents
/binutils_latest/repo/bfd/simple.c:298:14
#5 0xcab59c in read_section /binutils_latest/repo/bfd/./dwarf2.c:582:7
#6 0xca8237 in _bfd_dwarf2_slurp_debug_info
/binutils_latest/repo/bfd/./dwarf2.c:4737:13
#7 0xcac7c1 in _bfd_dwarf2_find_nearest_line
/binutils_latest/repo/bfd/./dwarf2.c:4985:9
#8 0xbd1379 in _bfd_elf_find_nearest_line
/binutils_latest/repo/bfd/elf.c:9199:7
#9 0x4e496a in show_line /binutils_latest/repo/binutils/./objdump.c:1784:9
#10 0x4e0b1f in disassemble_bytes
/binutils_latest/repo/binutils/./objdump.c:2770:6
#11 0x4dae9a in disassemble_section
/binutils_latest/repo/binutils/./objdump.c:3455:4
#12 0xb0e04a in bfd_map_over_sections
/binutils_latest/repo/bfd/section.c:1383:5
#13 0x4d1ae0 in disassemble_data
/binutils_latest/repo/binutils/./objdump.c:3599:3
#14 0x4cda84 in dump_bfd /binutils_latest/repo/binutils/./objdump.c:5006:5
#15 0x4ccb9f in display_object_bfd
/binutils_latest/repo/binutils/./objdump.c:5068:7
#16 0x4ccaa9 in display_any_bfd
/binutils_latest/repo/binutils/./objdump.c:5158:5
#17 0x4cc65c in display_file
/binutils_latest/repo/binutils/./objdump.c:5179:3
#18 0x4cb063 in main /binutils_latest/repo/binutils/./objdump.c:5529:6
#19 0x7f00a5cc70b2 in __libc_start_main
(/lib/x86_64-linux-gnu/libc.so.6+0x270b2)
#20 0x41c61d in _start (/out_bin/objdump+0x41c61d)
AddressSanitizer can not provide additional info.
SUMMARY: AddressSanitizer: SEGV /binutils_latest/repo/bfd/elf32-rl78.c:630:14
in rl78_special_reloc
==160==ABORTING
--
You are receiving this mail because:
You are on the CC list for the bug.
- [Bug binutils/28163] New: Segment fault on `objdump -S`due to function rl78_special_reloc in elf32-rl78.c,
shaohua.li at inf dot ethz.ch <=