-
Notifications
You must be signed in to change notification settings - Fork 404
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
CritSection runaway with windows.wt missing on linux #1249
Comments
@mvf since CriticalSection is now removed and replaced with std::mutex, is this issue still relevant? |
It is. In fact if this happens we will deadlock instead of run so we need to understand why it happened before 18 or change the mutex to recursive which sucks |
Yeah, would love to get to the bottom of this. Spent quite some time already trying to reproduce this with the current version by deleting If we can't figure this out, this old issue alone wouldn't be reason enough for me personally to consider recursive mutex. What was once a bad code path should now be barred, and to the user both an endless loop and a deadlock manifest as a hang. So even if this strikes again it's not really a regression IMHO. |
I agree if we can't repro it we should go ahead |
Here's a thought. Why don't we actually subsume windows.wt into the binary itself? Then it's always gonna be available, no way to deadlock in that case? |
while that would solve the proximate problem |
So I just tried for another half hour to make this happen again |
As reported by @codecollider in #1247 if you run surge on linux with the shared assets missing, you get a runaway in the critical section recursion. That's interesting and we should debug it one day, even though the proximate problem in #1247 was solved with better error reporting.
The text was updated successfully, but these errors were encountered: