[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[Bug binutils/28176] New: Floating point exception on `nm-new -l`
From: |
shaohua.li at inf dot ethz.ch |
Subject: |
[Bug binutils/28176] New: Floating point exception on `nm-new -l` |
Date: |
Mon, 02 Aug 2021 21:14:35 +0000 |
https://sourceware.org/bugzilla/show_bug.cgi?id=28176
Bug ID: 28176
Summary: Floating point exception on `nm-new -l`
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 13586
--> https://sourceware.org/bugzilla/attachment.cgi?id=13586&action=edit
poc
Hi there,
I found a FPE (floating point exception) on `nm-new -l` with a fuzzer.
- binutils version: 2.38(Head), commit af51804103a08cd1e12edc4f4a30eec2c5c4f9e8
- Compiler: clang12
- Platform: Ubuntu 18.04.5 LTS, x86_64
- Reproduce: run `nm-new -l poc`
AddressSanitizer report:
==652==ERROR: AddressSanitizer: FPE on unknown address 0x000001106c24 (pc
0x000001106c24 bp 0x7ffc482e0680 sp 0x7ffc482e0360 T0)
#0 0x1106c24 in rl78_compute_complex_reloc
/binutils_latest/repo/bfd/elf32-rl78.c:531:12
#1 0x1103d97 in rl78_special_reloc
/binutils_latest/repo/bfd/elf32-rl78.c:578:16
#2 0x154b6b7 in bfd_perform_relocation
/binutils_latest/repo/bfd/reloc.c:711:14
#3 0x154f66f in bfd_generic_get_relocated_section_contents
/binutils_latest/repo/bfd/reloc.c:8463:10
#4 0x4eaa6f in bfd_get_relocated_section_contents
/binutils_latest/repo/bfd/bfd.c:2166:10
#5 0x1551708 in bfd_simple_get_relocated_section_contents
/binutils_latest/repo/bfd/simple.c:298:14
#6 0x6a9f0c in read_section /binutils_latest/repo/bfd/./dwarf2.c:582:7
#7 0x6a6ba7 in _bfd_dwarf2_slurp_debug_info
/binutils_latest/repo/bfd/./dwarf2.c:4737:13
#8 0x6ab131 in _bfd_dwarf2_find_nearest_line
/binutils_latest/repo/bfd/./dwarf2.c:4985:9
#9 0x5d0246 in _bfd_elf_find_line /binutils_latest/repo/bfd/elf.c:9241:10
#10 0x4d1ba0 in print_symbol /binutils_latest/repo/binutils/nm.c:1071:9
#11 0x4ceaeb in print_symbols /binutils_latest/repo/binutils/nm.c:1152:7
#12 0x4cd23c in display_rel_file /binutils_latest/repo/binutils/nm.c:1279:5
#13 0x4c97dd in display_file /binutils_latest/repo/binutils/nm.c:1446:7
#14 0x4c90db in main /binutils_latest/repo/binutils/nm.c:1965:12
#15 0x7f5e6373a0b2 in __libc_start_main
(/lib/x86_64-linux-gnu/libc.so.6+0x270b2)
#16 0x41c55d in _start (/out_bin/nm-new+0x41c55d)
AddressSanitizer can not provide additional info.
SUMMARY: AddressSanitizer: FPE /binutils_latest/repo/bfd/elf32-rl78.c:531:12 in
rl78_compute_complex_reloc
==652==ABORTING
--
You are receiving this mail because:
You are on the CC list for the bug.
- [Bug binutils/28176] New: Floating point exception on `nm-new -l`,
shaohua.li at inf dot ethz.ch <=