[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[Bug binutils/27836] Illegal memory accessed
From: |
shaohua.li at inf dot ethz.ch |
Subject: |
[Bug binutils/27836] Illegal memory accessed |
Date: |
Sun, 09 May 2021 22:09:05 +0000 |
https://sourceware.org/bugzilla/show_bug.cgi?id=27836
--- Comment #2 from Shaohua Li <shaohua.li at inf dot ethz.ch> ---
Compiler: gcc11 & clang12
Platform: Ubuntu 20.04 LTS, x86_64
Summary:
I compiled Binutils with gcc11 and clang12 separately, then run with `readelf
-w poc`. I found that the last line in two outputs were different.
For gcc11, it was:
"00000044 000000000000004e 100e4500 FDE..."
For clang12, it was:
"00000044 0000000000000000 100e4500 FDE..."
Then I checked the source code and found that the guard in dwarf.c:8802 would
be evaluated differently in two compiled binaries. The root cause is in
dwarf.c:8797, where `look_for` would be a negative value in the
clang12-compiled binary.
--
You are receiving this mail because:
You are on the CC list for the bug.
- [Bug binutils/27836] New: Illegal memory accessed, shaohua.li at inf dot ethz.ch, 2021/05/09
- [Bug binutils/27836] Illegal memory accessed, shaohua.li at inf dot ethz.ch, 2021/05/09
- [Bug binutils/27836] Illegal memory accessed,
shaohua.li at inf dot ethz.ch <=
- [Bug binutils/27836] Illegal memory accessed, amodra at gmail dot com, 2021/05/09
- [Bug binutils/27836] Illegal memory accessed, shaohua.li at inf dot ethz.ch, 2021/05/10
- [Bug binutils/27836] Illegal memory accessed, amodra at gmail dot com, 2021/05/10
- [Bug binutils/27836] Illegal memory accessed, shaohua.li at inf dot ethz.ch, 2021/05/10
- [Bug binutils/27836] Illegal memory accessed, shaohua.li at inf dot ethz.ch, 2021/05/10
- [Bug binutils/27836] Illegal memory accessed, cvs-commit at gcc dot gnu.org, 2021/05/12
- [Bug binutils/27836] Illegal memory accessed, shaohua.li at inf dot ethz.ch, 2021/05/12