# Illegal instruction crash with HDF5

**URL:** <https://discourse.julialang.org/t/illegal-instruction-crash-with-hdf5/16637>\
**Category:** General Usage\
**Created:** [October 22, 2018, 4:08pm UTC](https://discourse.julialang.org/t/illegal-instruction-crash-with-hdf5/16637 "2018-10-22T16:08:50Z")\
**Posts on this page:** 4\
**Page:** 1

<div class="post-metadata">

**Author:** ![PetrKryslUCSD](https://sea2.discourse-cdn.com/julialang/user_avatar/discourse.julialang.org/petrkryslucsd/32/215825_2.png) [@PetrKryslUCSD](https://discourse.julialang.org/u/PetrKryslUCSD)\
**Post date:** [October 22, 2018, 4:08pm UTC](https://discourse.julialang.org/t/illegal-instruction-crash-with-hdf5/16637/1 "2018-10-22T16:08:50Z")

</div>

Does this work for anyone on Linux? I get an “illegal instruction” crash on opening the file… An issue has been filed, but I wonder if it is just the specifics of my Linux set up, or if it is anything to do with the HDF5 Julia interface itself.

```julia
using HDF5

A = rand(Complex{Float64}, 5, 5)

h5open("mydata.h5", "w") do file
    write(file, "A", A) # alternatively, say "@write file A"
end

c = h5open("mydata.h5", "r") do file
    read(file, "A")
end

c - A

```

---

<div class="post-metadata">

**Author:** ![kristoffer.carlsson](https://sea2.discourse-cdn.com/julialang/user_avatar/discourse.julialang.org/kristoffer.carlsson/32/22_2.png) [@kristoffer.carlsson](https://discourse.julialang.org/u/kristoffer.carlsson)\
**Post date:** [October 22, 2018, 4:11pm UTC](https://discourse.julialang.org/t/illegal-instruction-crash-with-hdf5/16637/2 "2018-10-22T16:11:12Z")

</div>

Same here.

---

<div class="post-metadata">

**Author:** ![sdanisch](https://sea2.discourse-cdn.com/julialang/user_avatar/discourse.julialang.org/sdanisch/32/1406_2.png) [@sdanisch](https://discourse.julialang.org/u/sdanisch)\
**Post date:** [October 22, 2018, 4:14pm UTC](https://discourse.julialang.org/t/illegal-instruction-crash-with-hdf5/16637/3 "2018-10-22T16:14:07Z")

</div>

There are quite a few pieces of code that can lead to that exception in julia 1.0…  
Have a look at:  
[https://github.com/JuliaLang/julia/issues/29066#issuecomment-427082492](https://github.com/JuliaLang/julia/issues/29066#issuecomment-427082492)  
You could also check out the linked branch and see if it fixes it!

---

<div class="post-metadata">

**Author:** ![PetrKryslUCSD](https://sea2.discourse-cdn.com/julialang/user_avatar/discourse.julialang.org/petrkryslucsd/32/215825_2.png) [@PetrKryslUCSD](https://discourse.julialang.org/u/PetrKryslUCSD)\
**Post date:** [October 22, 2018, 4:45pm UTC](https://discourse.julialang.org/t/illegal-instruction-crash-with-hdf5/16637/4 "2018-10-22T16:45:02Z")

</div>

Thank you all for the confirmation. And thanks for the pointers.
