-
-
Notifications
You must be signed in to change notification settings - Fork 5.5k
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
Segfault-on-exit due to lazy LibGit2 initialization #28306
Comments
Work-around for JuliaLang/julia#28306 This can be reverted once that is fixed.
Work-around for JuliaLang/julia#28306 This can be reverted once that is fixed.
Closes #2; see [here](JuliaLang/julia#28306).
thanks for the hack around @timholy ! |
@StefanKarpinski, since this was caused by #28113, any chance this is on your radar? |
No idea, but is it possible that this uncovers some use case whereby the libgit2 initialization doesn't happen before usage? It's possible I missed something when making the initialization lazy. |
From the symptoms, I'm guessing it's more about the order in which various resources get shut down or something. But I haven't poked at this, so take it for what it's worth::Nothing. |
#28113 reduced loading times (yay!) by lazy-initialization of libgit2, however, now certain Revise tests lead to a segfault when Julia is exited. Here's a small reproducer:
You can avoid the segfault by adding
before
exit()
, so it seems likely to be a resource-cleanup issue.This segfault does not happen if you revert c670f1a.
The text was updated successfully, but these errors were encountered: