open-quantum-safe / liboqs

C library for prototyping and experimenting with quantum-resistant cryptography
https://openquantumsafe.org/
Other
1.91k stars 465 forks source link

'ninja run_tests' fails due to memory leak #1941

Closed ashman-p closed 3 weeks ago

ashman-p commented 1 month ago

Describe the bug A clear and concise description of what the bug is. 'ninja run_tests' fails due to memory leak

To Reproduce Steps to reproduce the behavior:

  1. build liboqs with OQS_USE_OPENSSL and OQS_USE_PTHREADS set to ON.
  2. run 'ninja run_tests'
  3. See error Snapshot:- [ 80%] FAILED tests/test_leaks.py::test_kem_leak[ML-KEM-512 [ 88%] FAILED tests/test_leaks.py::test_sig_leak[ML-DSA-87]

Expected behavior A clear and concise description of what you expected to happen. Tests normally pass.

Screenshots If applicable, add screenshots to help explain your problem.

Environment (please complete the following information):

Additional context Add any other context about the problem here. This test runs fine with OQS_USE_OPENSSL ON and OQS_USE_PTHREADS OFF

baentsch commented 1 month ago

@ashman-p FYI/linking to https://github.com/openssl/openssl/issues/21023#issuecomment-2390855564 that may also have a reading on this problem...

aidenfoxivey commented 1 month ago

Was this about 120 bytes?

aidenfoxivey commented 1 month ago

I've been using OpenSSL 3.3.2 3 Sep 2024 (Library: OpenSSL 3.3.2 3 Sep 2024) and had that experience.