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

[BUG] Return of OpenSSL's libcrypto's deadlock #3455

Open
tcressonKeyyo opened this issue Aug 30, 2024 · 3 comments
Open

[BUG] Return of OpenSSL's libcrypto's deadlock #3455

tcressonKeyyo opened this issue Aug 30, 2024 · 3 comments
Labels

Comments

@tcressonKeyyo
Copy link

tcressonKeyyo commented Aug 30, 2024

OpenSIPS version you are running

version: opensips 3.3.7 (x86_64/linux)
flags: STATS: On, DISABLE_NAGLE, USE_MCAST, SHM_MMAP, PKG_MALLOC, F_MALLOC, DBG_MALLOC, FAST_LOCK-FUTEX-ADAPTIVE_WAIT
ADAPTIVE_WAIT_LOOPS=1024, MAX_RECV_BUFFER_SIZE 262144, MAX_LISTEN 16, MAX_URI_SIZE 1024, BUF_SIZE 65535
poll method support: poll, epoll, sigio_rt, select.
main.c compiled on 10:19:41 Oct 17 2023 with gcc 4.8

Describe the bug
As its name indicates, I happen to have a problem of deadlocks with some OpenSSL's libcrypto's mutex acquisition calls.

To Reproduce
I am not able to reproduce this bug, it heavily depends on the load for the servers and the concurrent calls from multiple processes to functions using libcrypto.

Expected behavior
Not having a deadlock 😅

Relevant System Logs
You will see below a full stack trace (that I got with opensips-cli) that showcases the deadlock. You can also see that there are several calls to "get_static_lock" that seem to be part of the problem but it is not, I was trying to mitigate (or completely suppress) the risk of a deadlock by locking the different parts of my opensips' script that were calling methods using libcrypto (but it would be better to try to fix the root cause of the problem).

I had to anonymize the sensitive data inside the stacktrace but none of these data is relevant for my issue.

gdb_opensips_20240828_094216.txt

OS/environment information

  • Operating System: openSUSE Leap 15.4
  • OpenSIPS installation: recompiled OpenSIPS 3.3.7 (with some custom patches but they don't affect the bug) linked with OpenSSL 3.0.0

Feel free to ask for any additional information.

Copy link

Any updates here? No progress has been made in the last 15 days, marking as stale. Will close this issue if no further updates are made in the next 30 days.

@github-actions github-actions bot added the stale label Sep 15, 2024
@tcressonKeyyo
Copy link
Author

tcressonKeyyo commented Sep 16, 2024

Can anyone try to look at the problem ?

@stale stale bot removed the stale label Sep 16, 2024
Copy link

github-actions bot commented Oct 2, 2024

Any updates here? No progress has been made in the last 15 days, marking as stale. Will close this issue if no further updates are made in the next 30 days.

@github-actions github-actions bot added the stale label Oct 2, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

1 participant