-
Notifications
You must be signed in to change notification settings - Fork 114
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
Occasional seg faults on 0.7/1.0 #193
Comments
I've had a ridiculous amount of segfaults since I started using Unitful. I don't think there's anything that can be done about it, besides filing reports with minimal code examples to julialang, unfortunately. Eg. JuliaLang/julia#29936 came from Unitful, and sounds very similar. |
Even with precompilation disabled, using Unitful on 0.7/1.0 will occasionally result in seg faults. @cstjean might be right in it being a julialang bug and not Unitful's fault; just seems to come up when using this package. |
using ExtensionPkg
before using Unitful
in another module
I'd like to offer help, but usually segfaults are a Julia problem, unless it turns out I'm doing something unsafe in Unitful. I can audit my use of unsafe macros like |
I'd be curious to know if the segfault situation has improved after merging #243. I don't have evidence to claim the issues are related although there were some unsafe uses of generated functions prior to that PR. |
FWIW I haven't had segfaults in a long time... |
We've still been seeing segfaults on our private CI. I'll set it up to make use of the |
Yesterday we saw a segfault on the CI using the Unitful |
We haven't seen any segfaults with the updated version of PowerSystemsUnits.jl. I think it's safe to close this issue. We can re-open if they appear again. |
Seg fault when
using ExtensionPkg
beforeusing Unitful
in another module:This came up here lanl-ansi/PowerModelsAnnex.jl#29 and was resolved for that package specifically (turning precompilation off for the package that extends Unitful solves the error).
But I noticed that if that package did a
using UnitfulUS
beforeusing Unitful
it would also cause seg faults when loadingusing PowerModelsAnnex
. Not sure the cause exactly but I suspect it might be related to Unitful itself/precompilation in general as this appears not to be specific to that extension of Unitful.The text was updated successfully, but these errors were encountered: