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
The following code leads to a segfault when trying to slice a string array
using HDF5
# create file
f = h5open("testjl.hdf5", "w")
f["MyStrings"] = ["1231","asdasdad","ffsfd"]
f["MyNumbers"] = [1,2,3]
close(f)
# try to read back
f = h5open("testjl.hdf5", "r")
# seems we can read whole data set
println(read(f["MyStrings"]))
println(read(f["MyNumbers"]))
# but slicing
# works for numbers
println(f["MyNumbers"][1:2])
# but not for strings - segfault
println(f["MyStrings"][1:2])
close(f)
The text was updated successfully, but these errors were encountered:
Thanks for the bug report. Fixed in master; now it gives an error when you try this. I'm hesitant to release a new version because of some recent important but disruptive changes, but you can switch to master if this matters to you.
The following code leads to a segfault when trying to slice a string array
The text was updated successfully, but these errors were encountered: