You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
We have noticed intermittent crashes since upgrading from Spglib 0.9.2 to 0.9.3. Looks like the only real difference between these versions is the switch from enums to SumTypes: singularitti/Spglib.jl@819b7f6.
Perhaps there is memory corruption when reading an spglib_jll response into a sum type?
Frequently the result is a segfault, but here is one stacktrace we got that seems interpretable:
This isn't a bug with SumTypes, it's just being used in a completely invalid way by that library. It's asserting to julia that it can interpret the return type from a ccall as a sum type, which encloses a union, so yeah that's almost guaranteed to cause memory corruption.
We have noticed intermittent crashes since upgrading from Spglib 0.9.2 to 0.9.3. Looks like the only real difference between these versions is the switch from enums to SumTypes: singularitti/Spglib.jl@819b7f6.
Perhaps there is memory corruption when reading an spglib_jll response into a sum type?
Frequently the result is a segfault, but here is one stacktrace we got that seems interpretable:
This appeared on our Github actions CI with Julia 1.9.4, Ubuntu, x86. Full trace here: https://github.com/SunnySuite/Sunny.jl/actions/runs/7629267203/job/20782289111?pr=217
I haven't seen the crashes yet on my Mac. On Linux/x86, reproducing might be as simple as
] add Sunny#spglib_crash
and thenusing Sunny
.The text was updated successfully, but these errors were encountered: