Skip to content
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

Loading step ranges from Julia < 1.7 causes segmentation fault in Julia >= 1.7 #113

Open
rpgowers opened this issue Aug 12, 2022 · 0 comments

Comments

@rpgowers
Copy link

When I save range in a BSON (BSON.jl version 0.3.5) file Julia 1.6.2 with:

a = 0.0:0.1:1.0
@save test.bson a

and attempt to load this file with BSON (also 0.3.5) in Julia 1.7.3 with

BSON.load("test.bson")

I encounter a segmentation fault. I presume this is because typeof(a) gives StepRangeLen{Float64, Base.TwicePrecision{Float64}, Base.TwicePrecision{Float64}} in 1.6 and StepRangeLen{Float64, Base.TwicePrecision{Float64}, Base.TwicePrecision{Float64}, Int64} in 1.7.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant