Niels,

That seems to have fixed the memory leak, thanks. Making it through
further in the compilation process, though, we start to hit more
undefined references with the sanitizers turned on with clang16:

```
clang -fsanitize=address -fsanitize=leak -g -O2 -ggdb3 -Wall -W
-Wno-sign-compare   -Wmissing-prototypes -Wmissing-declarations
-Wstrict-prototypes   -Wpointer-arith -Wbad-function-cast
-Wnested-externs -L.. -fsanitize=address -fsanitize=leak sexp-conv.o
input.o output.o parse.o misc.o ../getopt.o ../getopt1.o -lnettle
-lgmp  -o sexp-conv
/usr/bin/ld: ../libnettle.so: undefined reference to
`_nettle_aes192_encrypt_aesni'
/usr/bin/ld: ../libnettle.so: undefined reference to `_nettle_poly1305_set_key'
/usr/bin/ld: ../libnettle.so: undefined reference to `_nettle_salsa20_2core'
/usr/bin/ld: ../libnettle.so: undefined reference to `_nettle_poly1305_blocks'
/usr/bin/ld: ../libnettle.so: undefined reference to `nettle_serpent_decrypt'
/usr/bin/ld: ../libnettle.so: undefined reference to `_nettle_memxor_sse2'
/usr/bin/ld: ../libnettle.so: undefined reference to `_nettle_umac_nh_n'
/usr/bin/ld: ../libnettle.so: undefined reference to `_nettle_camellia_crypt'
/usr/bin/ld: ../libnettle.so: undefined reference to
`_nettle_aes128_encrypt_aesni'
/usr/bin/ld: ../libnettle.so: undefined reference to
`_nettle_ghash_update_pclmul'
/usr/bin/ld: ../libnettle.so: undefined reference to `nettle_memxor3'
/usr/bin/ld: ../libnettle.so: undefined reference to `nettle_md5_compress'
/usr/bin/ld: ../libnettle.so: undefined reference to
`_nettle_sha256_compress_n_x86_64'
/usr/bin/ld: ../libnettle.so: undefined reference to `_nettle_chacha_core'
/usr/bin/ld: ../libnettle.so: undefined reference to
`_nettle_aes256_encrypt_aesni'
/usr/bin/ld: ../libnettle.so: undefined reference to `nettle_serpent_encrypt'
/usr/bin/ld: ../libnettle.so: undefined reference to
`_nettle_sha256_compress_n_sha_ni'
/usr/bin/ld: ../libnettle.so: undefined reference to `nettle_sha3_permute'
/usr/bin/ld: ../libnettle.so: undefined reference to `_nettle_poly1305_block'
/usr/bin/ld: ../libnettle.so: undefined reference to
`_nettle_sha1_compress_sha_ni'
/usr/bin/ld: ../libnettle.so: undefined reference to
`_nettle_cbc_aes192_encrypt_aesni'
/usr/bin/ld: ../libnettle.so: undefined reference to
`_nettle_aes192_decrypt_aesni'
/usr/bin/ld: ../libnettle.so: undefined reference to
`_nettle_sha1_compress_x86_64'
/usr/bin/ld: ../libnettle.so: undefined reference to `_nettle_poly1305_digest'
/usr/bin/ld: ../libnettle.so: undefined reference to
`_nettle_ghash_set_key_pclmul'
/usr/bin/ld: ../libnettle.so: undefined reference to
`_nettle_aes128_decrypt_aesni'
/usr/bin/ld: ../libnettle.so: undefined reference to `_nettle_aes_encrypt'
/usr/bin/ld: ../libnettle.so: undefined reference to
`_nettle_aes256_decrypt_aesni'
/usr/bin/ld: ../libnettle.so: undefined reference to `_nettle_aes_decrypt'
/usr/bin/ld: ../libnettle.so: undefined reference to `_nettle_umac_nh'
/usr/bin/ld: ../libnettle.so: undefined reference to
`_nettle_cbc_aes256_encrypt_aesni'
/usr/bin/ld: ../libnettle.so: undefined reference to
`_nettle_cbc_aes128_encrypt_aesni'
/usr/bin/ld: ../libnettle.so: undefined reference to `_nettle_cpuid'
/usr/bin/ld: ../libnettle.so: undefined reference to `_nettle_memxor_x86_64'
/usr/bin/ld: ../libnettle.so: undefined reference to `_nettle_sha512_compress'
/usr/bin/ld: ../libnettle.so: undefined reference to
`_nettle_ghash_update_table'
/usr/bin/ld: ../libnettle.so: undefined reference to `_nettle_salsa20_core'
```

I'm happy to provide a docker container to reproduce this if that
would be helpful. Clang16 is now standard on Fedora 38.

- Noah

On Mon, May 15, 2023 at 11:05 AM Niels Möller <ni...@lysator.liu.se> wrote:
>
> Noah Watkins <n...@redpanda.com> writes:
>
> > Any thoughts on this? Since this runs as part of the build process, it
> > is blocking one of our pipelines.
>
> Looks like a missing mpz_clear. I think it should be fixed with
> https://git.lysator.liu.se/nettle/nettle/-/commit/966da449232766ad41b9be4f263fcccd4500bd22
>
> Thanks for the report,
> /Niels
>
> --
> Niels Möller. PGP key CB4962D070D77D7FCB8BA36271D8F1FF368C6677.
> Internet email is subject to wholesale government surveillance.
_______________________________________________
nettle-bugs mailing list -- nettle-bugs@lists.lysator.liu.se
To unsubscribe send an email to nettle-bugs-le...@lists.lysator.liu.se

Reply via email to