https://gcc.gnu.org/bugzilla/show_bug.cgi?id=110027
Christoph Erhardt <gcc at sicherha dot de> changed: What |Removed |Added ---------------------------------------------------------------------------- CC| |gcc at sicherha dot de --- Comment #4 from Christoph Erhardt <gcc at sicherha dot de> --- Created attachment 56169 --> https://gcc.gnu.org/bugzilla/attachment.cgi?id=56169&action=edit Reproducer program Here's a program that can reproduce this issue more reliably - tested on Fedora 38, Ubuntu 23.04 and Ubuntu 23.10. I have stripped down the code as far as possible. This is how far I could get without losing reproducibility. Sources are in a GitHub repo: https://github.com/sicherha/gcc-asan-stack-misalign $ gcc -Wall -Wextra -g -Og -fsanitize=address -fno-stack-protector -mavx512f a-repro.i $ ./a.out AddressSanitizer:DEADLYSIGNAL ================================================================= ==3618==ERROR: AddressSanitizer: SEGV on unknown address (pc 0x000000401789 bp 0x7ffeabbcda00 sp 0x7ffeabbcd580 T0) ==3618==The signal is caused by a READ memory access. ==3618==Hint: this fault was caused by a dereference of a high value address (see register values below). Disassemble the provided pc to learn which register was used. #0 0x401789 in blake3_compress_subtree_wide /home/ul26967/Projects/gcc-asan-stack-misalign/a-repro.i:481 #1 0x40189b in main /home/ul26967/Projects/gcc-asan-stack-misalign/a-repro.i:488 #2 0x7f77a0210b89 in __libc_start_call_main (/lib64/libc.so.6+0x27b89) (BuildId: 3ebe8d97a0ed3e1f13476a02665c5a9442adcd78) #3 0x7f77a0210c4a in __libc_start_main_alias_2 (/lib64/libc.so.6+0x27c4a) (BuildId: 3ebe8d97a0ed3e1f13476a02665c5a9442adcd78) #4 0x4010f4 in _start (/home/ul26967/Projects/gcc-asan-stack-misalign/a.out+0x4010f4) (BuildId: e25b3ac48fa6dd8cff5d228e201834fa1b0cd18a) AddressSanitizer can not provide additional info. SUMMARY: AddressSanitizer: SEGV /home/ul26967/Projects/gcc-asan-stack-misalign/a-repro.i:481 in blake3_compress_subtree_wide ==3618==ABORTING