https://gcc.gnu.org/bugzilla/show_bug.cgi?id=105870
Bug ID: 105870
Summary: Asan cannot work correctly for RISC-V GCC
Product: gcc
Version: 13.0
Status: UNCONFIRMED
Severity: normal
Priority: P3
Component: sanitizer
Assignee: unassigned at gcc dot gnu.org
Reporter: cooper.joshua at linux dot alibaba.com
CC: dodji at gcc dot gnu.org, dvyukov at gcc dot gnu.org,
jakub at gcc dot gnu.org, kcc at gcc dot gnu.org, marxin at
gcc dot gnu.org
Target Milestone: ---
It seems that Asan cannot work correctly for RISC-V now.
When I use '-fsanitize=address' to compile the programs under
gcc/testsuite/gcc.dg/asan and then run on hardware, I always get
==265==ERROR: AddressSanitizer: SEGV on unknown address 0x00081ffd1560 (pc
0x0000000108a8 bp 0x003fffe8ab70 sp 0x003fffe8aaf0 T0)
==265==The signal is caused by a READ memory access.