[gnutls-devel] GnuTLS | certtool --generate-privkey Program received signal SIGILL, Illegal instruction when needle is built with x86-sha-ni (#1496)
Read-only notification of GnuTLS library development activities
gnutls-devel at lists.gnutls.org
Tue Aug 8 11:42:15 CEST 2023
Giuseppe Foti commented: https://gitlab.com/gnutls/gnutls/-/issues/1496#note_1504227771
1: I don't know
2a: when configuring for x86_64 (amd64)
CC_FOR_BUILD=x86_64-pc-linux-gnu-gcc --disable-arm-neon --disable-arm64-crypto --disable-power-altivec --disable-power-crypto-ext --disable-power9 --enable-x86-aesni --disable-x86-sha-ni --disable-x86-pclmul --disable-s390x-vf --disable-s390x-msa --enable-assembler --disable-documentation --enable-public-key --disable-static --disable-fat --disable-openssl
2b: when configuring for x86_32 (x86)
CC_FOR_BUILD=x86_64-pc-linux-gnu-gcc -m32 -mfpmath=sse --disable-arm-neon --disable-arm64-crypto --disable-power-altivec --disable-power-crypto-ext --disable-power9 --enable-x86-aesni --disable-x86-sha-ni --disable-x86-pclmul --disable-s390x-vf --disable-s390x-msa --enable-assembler --disable-documentation --enable-public-key --disable-static --disable-fat --disable-openssl
3: not sure, but I hope this will help:
```
(gdb) bt
#0 0x00007ffff784a85d in _nettle_sha256_compress_n () from /usr/lib64/libnettle.so.8
#1 0x00007ffff784a57e in ?? () from /usr/lib64/libnettle.so.8
#2 0x00007ffff784a799 in nettle_sha256_digest () from /usr/lib64/libnettle.so.8
#3 0x00007ffff7d3f0f1 in ?? () from /usr/lib64/libgnutls.so.30
#4 0x00007ffff7c5bbd2 in ?? () from /usr/lib64/libgnutls.so.30
#5 0x00007ffff7cf5fb0 in ?? () from /usr/lib64/libgnutls.so.30
#6 0x00007ffff7ce7905 in gnutls_x509_privkey_get_key_id () from /usr/lib64/libgnutls.so.30
#7 0x0000555555569633 in ?? ()
#8 0x000055555556a40e in ?? ()
#9 0x0000555555566607 in ?? ()
#10 0x000055555555f879 in ?? ()
#11 0x00007ffff7a4f68a in ?? () from /lib64/libc.so.6
#12 0x00007ffff7a4f745 in __libc_start_main () from /lib64/libc.so.6
#13 0x000055555555f8b1 in ?? ()
```
--
Reply to this email directly or view it on GitLab: https://gitlab.com/gnutls/gnutls/-/issues/1496#note_1504227771
You're receiving this email because of your account on gitlab.com.
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <https://lists.gnupg.org/pipermail/gnutls-devel/attachments/20230808/83fc1e44/attachment-0001.html>
More information about the Gnutls-devel
mailing list