[Bug target/115891] [15 regression] libgcrypt tests segfault in crc32_less_than_16 with LTO
sjames at gcc dot gnu.org
gcc-bugzilla@gcc.gnu.org
Fri Jul 12 09:37:00 GMT 2024
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=115891
--- Comment #1 from Sam James <sjames at gcc dot gnu.org> ---
with 15:
```
=================================================================
==4188849==ERROR: AddressSanitizer: SEGV on unknown address 0x003a35ba (pc
0xf7dd006f bp 0x00000004 sp 0xffd15d54 T0)
==4188849==The signal is caused by a WRITE memory access.
#0 0xf7dd006f in crc32_less_than_16 ../cipher/crc-intel-pclmul.c:781
#1 0xf7dd006f in _gcry_crc24rfc2440_intel_pclmul
../cipher/crc-intel-pclmul.c:923
#2 0xf7dd006f in _gcry_crc24rfc2440_intel_pclmul ../cipher/crc-intel-pcl
mul.c:901
#3 0xf7dd006f in crc24rfc2440_write ../cipher/crc.c:870
#4 0xf7d7cc3d in md_write ../cipher/md.c:778
#5 0xf7d7f1d2 in _gcry_md_hash_buffers_extract ../cipher/md.c:1368
#6 0xf7d60782 in _gcry_md_hash_buffers_extract ../cipher/md.c:1316
#7 0xf7d60782 in _gcry_md_hash_buffers ../cipher/md.c:1399
#8 0xf7d60782 in gcry_md_hash_buffers
/home/sam/bugs/libgcrypt/libgcrypt-1.11.0/src/visibility.c:1296
#9 0x566906f1 in check_one_md_multi
/home/sam/bugs/libgcrypt/libgcrypt-1.11.0/tests/basic.c:14023
#10 0x5669227b in check_digests
/home/sam/bugs/libgcrypt/libgcrypt-1.11.0/tests/basic.c:15524
#11 0x5664e703 in main
/home/sam/bugs/libgcrypt/libgcrypt-1.11.0/tests/basic.c:18315
#12 0xf6c211d0 (/usr/lib/libc.so.6+0x211d0)
#13 0xf6c21297 in __libc_start_main (/usr/lib/libc.so.6+0x21297)
#14 0x5664fba6 in _start
(/home/sam/bugs/libgcrypt/libgcrypt-1.11.0/tests/basic+0x42ba6)
AddressSanitizer can not provide additional info.
SUMMARY: AddressSanitizer: SEGV ../cipher/crc-intel-pclmul.c:781 in
crc32_less_than_16
==4188849==ABORTING
```
More information about the Gcc-bugs
mailing list