Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[v24.1.x] [CORE-5672] crypto/bench: Only load context once per run #21471

Merged
merged 1 commit into from
Jul 17, 2024

Conversation

BenPope
Copy link
Member

@BenPope BenPope commented Jul 17, 2024

Backport of PR #21326

Fixes #21470

OpenSSL doesn't appear to like being initialized, uninitialized, and
then re-initialized by the same process over and over again.  This
results in some memory being left around and reused even after being
freed which is what was causing the crypto bench test to segfault and
fail.  The solution is to only bring up the OpenSSL context service once
per run and then bring it down when the Seastar engine is finishing up.

Fixes: CORE-4207

Signed-off-by: Michael Boquard <michael@redpanda.com>
(cherry picked from commit 61f9065)

Conflicts:
  src/v/crypto/tests/crypto_bench.cc
@BenPope BenPope added the kind/backport PRs targeting a stable branch label Jul 17, 2024
@BenPope BenPope self-assigned this Jul 17, 2024
@BenPope BenPope changed the title [v24.1.x] crypto/bench: Only load context once per run [v24.1.x] [CORE-5672] crypto/bench: Only load context once per run Jul 17, 2024
@BenPope BenPope merged commit be9a749 into redpanda-data:v24.1.x Jul 17, 2024
19 checks passed
@BenPope BenPope added this to the v24.1.11 milestone Jul 19, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
area/redpanda kind/backport PRs targeting a stable branch
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants