Skip to content

better deadlock detection support #10327

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

Open
hardfist opened this issue May 12, 2025 · 0 comments
Open

better deadlock detection support #10327

hardfist opened this issue May 12, 2025 · 0 comments
Labels
team The issue/pr is created by the member of Rspack.

Comments

@hardfist
Copy link
Contributor

hardfist commented May 12, 2025

It's really hard to debug deadlock problems without accessing user's codebase, trace can only help spot the nearest code but would not be enough for spot specific code.
there're some ways to improve it

  • use parking_lot's deadlock detect feature which requires we replace all lock with parking_lot(it seems possible cause most lock we're using are tokio's lock and it supports parking_lot feature)
  • compiler instruments: which is more flexible but needs to instrument every lock operation and hard to be shipped in production release
@github-actions github-actions bot added the team The issue/pr is created by the member of Rspack. label May 12, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
team The issue/pr is created by the member of Rspack.
Projects
None yet
Development

No branches or pull requests

1 participant