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

Fix RPC deadlock on Linux #17

Merged
merged 2 commits into from
Feb 5, 2024
Merged

Fix RPC deadlock on Linux #17

merged 2 commits into from
Feb 5, 2024

Conversation

erwinpan1
Copy link
Owner

  1. The current RPC read & write will be deadlocked due to Stack lock; and ScheduleWork() both will lock the same mutex , and the RPC tread calling Stack lock will also locked by future.get(). So we have to revert fa4662.

  2. However, this caused original issue it tried to fix shown again: "MacOS is panic with thread unsafe when running RPC Read/Write". So we have to implement _Unlock(), _Lock(), _TryLock() on Mac (Darwin)

@erwinpan1 erwinpan1 merged commit b8669be into v1.2.0.1 Feb 5, 2024
65 of 68 checks passed
@erwinpan1 erwinpan1 deleted the fix_rpc_deadlock_on_mac branch April 1, 2024 06:44
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant