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

Deadlock #718

Open
xia-chu opened this issue Oct 16, 2024 · 0 comments
Open

Deadlock #718

xia-chu opened this issue Oct 16, 2024 · 0 comments

Comments

@xia-chu
Copy link

xia-chu commented Oct 16, 2024

Thank you very much for your work. I am using usrsctp to implement the WebRTC DataChannel functionality.
Currently, I am developing on Ubuntu 20.04 and using your library by installing libusrsctp-dev via apt-get. However, I have encountered a deadlock issue in my program. Below is the thread backtrace information:

  • Many threads deadlock here:
Thread 4 (LWP 7531):
#0  0x00007fd474a25170 in __lll_lock_wait () from target:/lib/x86_64-linux-gnu/libpthread.so.0
#1  0x00007fd474a1d0a3 in pthread_mutex_lock () from target:/lib/x86_64-linux-gnu/libpthread.so.0
#2  0x00007fd4749bc5e1 in sctp_inpcb_alloc () from target:/lib/x86_64-linux-gnu/libusrsctp.so.1
#3  0x00007fd4749d2843 in sctpconn_attach () from target:/lib/x86_64-linux-gnu/libusrsctp.so.1
#4  0x00007fd47495b349 in socreate () from target:/lib/x86_64-linux-gnu/libusrsctp.so.1
#5  0x00007fd47495b4e5 in usrsctp_socket () from target:/lib/x86_64-linux-gnu/libusrsctp.so.1
  • One thread deadlock here:
Thread 12 (LWP 7539):
#0  0x00007fd474a21376 in pthread_cond_wait@@GLIBC_2.3.2 () from target:/lib/x86_64-linux-gnu/libpthread.so.0
#1  0x00007fd47496ca0d in sctp_os_timer_stop () from target:/lib/x86_64-linux-gnu/libusrsctp.so.1
#2  0x00007fd4749ed8c9 in sctp_timer_stop () from target:/lib/x86_64-linux-gnu/libusrsctp.so.1
#3  0x00007fd4749be95b in sctp_inpcb_free () from target:/lib/x86_64-linux-gnu/libusrsctp.so.1
#4  0x00007fd4749d2a01 in sctp_close () from target:/lib/x86_64-linux-gnu/libusrsctp.so.1
#5  0x00007fd474959184 in sofree () from target:/lib/x86_64-linux-gnu/libusrsctp.so.1
#6  0x00007fd47495c810 in usrsctp_close () from target:/lib/x86_64-linux-gnu/libusrsctp.so.1
  • Another thread deadlock here:
Thread 137 (LWP 48072):
#0  0x00007fd474a25170 in __lll_lock_wait () from target:/lib/x86_64-linux-gnu/libpthread.so.0
#1  0x00007fd474a1d0a3 in pthread_mutex_lock () from target:/lib/x86_64-linux-gnu/libpthread.so.0
#2  0x00007fd4749ebea0 in sctp_timeout_handler () from target:/lib/x86_64-linux-gnu/libusrsctp.so.1
#3  0x00007fd47496cbe3 in sctp_handle_tick () from target:/lib/x86_64-linux-gnu/libusrsctp.so.1
#4  0x00007fd47496cd9c in user_sctp_timer_iterate () from target:/lib/x86_64-linux-gnu/libusrsctp.so.1
#5  0x00007fd474a1a609 in start_thread () from target:/lib/x86_64-linux-gnu/libpthread.so.0
#6  0x00007fd4741bd353 in clone () from target:/lib/x86_64-linux-gnu/libc.so.6

Could you please provide some advice and guidance? Thank you. @tuexen

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant