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

Fix most issues on julia 0.7 (a few still remain) #215

Merged
merged 4 commits into from
Oct 18, 2018
Merged

Fix most issues on julia 0.7 (a few still remain) #215

merged 4 commits into from
Oct 18, 2018

Conversation

carlobaldassi
Copy link
Contributor

This fixes most of the issues on julia 0.7, provided that this PR for LegacyStrings is used. Also, this PR for HDF5 is needed to avoid a few additional warnings, as well as the master version of FileIO (which is about to be tagged perhaps).

With all that, tests pass without errors. However, I had to disable a few of them and couldn't figure out how to fix them. The details are below. At least this is considerable progress, I think. Maybe if the code here looks good it can be merged and the remaining issues could be fixed subsequently by someone more skilled. This PR supersedes (actually includes) #214.

Now for the remaining issues. There are 3 of them. They are all marked by "FIXME" comments in the test files.

  1. There is a problem with reading out data with mmap, due to possible misalignments. This is a consequence of Fix and enforce reinterpret/unsafe_wrap alignment JuliaLang/julia#21831. A minimal script that reproduces the issue 100% of the times on my laptop is here. The error comes from unsafe_wrap complaining that the data is not 8-bytes aligned.

  2. There is also a problem with an immutable type with a Union{Int64,Float64} field. In this case, when Julia tries to read back the object, it gives a LoadError with the message "reference encountered in pointerfree immutable; this is a bug". Minimal script to reproduce the issue here.

  3. I had to disable the DataFrames tests entirely: it segfaults when reading back the DataFrame. I don't know whether this is an issue in JLD or DataFrames.

Tests pass on both 0.6 and 0.7; some tests however
are disabled since they are still failing.
They are no longer singletons in Julia 0.7.
Re-enable related tests.
Also improve annotations for some other issues.
triggered by JLDArchives tests
@carlobaldassi
Copy link
Contributor Author

Update: after testing with JLDArchives as well, I fixed a few additional problems, and found a couple of new issues when reading from old archives due to changes in the internal representations of Exprs and Chars, see JuliaIO/JLDArchives.jl#17.

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

Successfully merging this pull request may close these issues.

2 participants