-
Notifications
You must be signed in to change notification settings - Fork 7
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
Recent changes seem to cause a deadlock when thread spawns #30
Comments
Ok, pinning the older hash passed CI again, so I think that's pretty strong evidence it wasn't from something else unrelated: https://github.com/rust3ds/ctru-rs/actions/runs/9010075712/job/24755466567?pr=187 |
A deadlock it seems indeed. It's very weird though, the code pushed in #19 should only have effect once a thread is detached (which may still be the case for when a test ends its run). I want to note two things:
|
Hmm, initial thoughts from looking at the changes:
|
I noticed this while trying to make some other changes to
ctru-rs
— I think because we are pulling in the newpthread-3ds
changes, something in the test runner isn't working anymore and the tests hang forever, e.g. https://github.com/rust3ds/ctru-rs/actions/runs/9009948051/job/24755098299?pr=187Comparing to the most recent successful run, this is the diff of compiler output:
Most of the other changes, as far as I can tell, are just build dependencies and I wouldn't expect them to affect the unit tests, so
pthread
having recent changes is my prime suspect.Maybe #19 had some side effect on spawning new threads somehow? Otherwise, I'm not sure what might have changed, but this seems like somewhere to start.
Meanwhile, I'm going to try checking in
Cargo.lock
with the old hash (c885d8c) and see if that helps at all. If not, we can close this issue / move it toctru-rs
to try and track it down there.The text was updated successfully, but these errors were encountered: