-
Notifications
You must be signed in to change notification settings - Fork 770
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 in v2.6.2 #2961
Comments
@MiguelCompany @eProsima/team this is deadlock issue, just friendly ping. |
@Barry-Xu-2018 @fujitatomoya There's a proposed fix in #2976, could you check with it? |
@MiguelCompany thanks! we will try that out and get back to you. |
@Barry-Xu-2018 @fujitatomoya Did you have time to check whether #2976 fixes this? |
@MiguelCompany i will check the evaluation status, will get back to you soon. |
@MiguelCompany According to changed code, I think it can fix this problem. Fujita-san will provide final evaluation result in the real environment. |
that is me 😄 family name! |
@fujitatomoya hello,how is the final evaluation about #2976 going? |
sorry we confirmed that no deadlock observed after this PR. |
@fujitatomoya thx~ |
Closing based on #2961 (comment) |
Is there an already existing issue for this?
Expected behavior
No deadlock occurs at startup
Current behavior
A high deadlock rate occurs at startup.
Steps to reproduce
The scenario while deadlock occurs.
##1 Get a lock on
mp_mutex
in Thread3##2 Get shared lock of
endpoints_list_mutex
in Thread2##3 Trying to get
mp_mutex
in Thread2, but it is blocked because it is already locked in Thread3##4 Trying to get write lock of
endpoints_list_mutex
in Thread1, but it is blocked because there is a reader in ##2.Fast-DDS/include/fastrtps/utils/shared_mutex.hpp
Lines 69 to 72 in 5076ebc
write_entered
flag is set, and followingendpoints_list_mutex
reads are blocked.Fast-DDS/include/fastrtps/utils/shared_mutex.hpp
Lines 98 to 101 in 5076ebc
##5 Trying to get shared lock of
endpoints_list_mutex
in Thread3, but it is blocked because of thewrite_entered
flagFast DDS version/commit
v2.6.2
Platform/Architecture
Ubuntu Focal 20.04 amd64
Transport layer
Default configuration, UDPv4 & SHM
Additional context
For same codes, there is no deadlock with v2.6.0
XML configuration file
No response
Relevant log output
No response
Network traffic capture
No response
The text was updated successfully, but these errors were encountered: