Skip to content

Instantly share code, notes, and snippets.

@drewrobson
Created August 12, 2017 16:04
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save drewrobson/40cf301102213ba9780b95b7b4bbe098 to your computer and use it in GitHub Desktop.
Save drewrobson/40cf301102213ba9780b95b7b4bbe098 to your computer and use it in GitHub Desktop.
Reduced example demonstrating SegFault or ReadOnlyMemoryError()
Display the source blob
Display the rendered blob
Raw
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
# Jupyter notebook cell 1
using Interpolations,PyPlot,Images,HDF5,NMF,Optim,NRRD,Lasso
# Jupyter notebook cell 2
h5open("test.h5", "w") do file
file["test"] = ones(10, 10)
end;
h5read("test.h5", "test");
data = zeros(UInt8, 1000000000)
figure(figsize = (3,3)); imshow(rand(Float32, 10, 10), vmax=10);
imfilter(zeros(10, 10), ones(5, 5));
# Jupyter notebook cell 3
Interpolations.offsetsym(0, 2) # segfault or ReadOnlyMemoryError()
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment