Skip to content

Instantly share code, notes, and snippets.

@quinnj
Created May 21, 2015 03:17
Show Gist options
  • Save quinnj/2dc8bf55517906122b84 to your computer and use it in GitHub Desktop.
Save quinnj/2dc8bf55517906122b84 to your computer and use it in GitHub Desktop.
Reproducible segfault
reload("/Users/jacobquinn/julia/base/mmap2.jl")
function seg(n)
file = tempname()
s = open(file, "w") do f
write(f, "Hello World\n")
end
for i = 1:n
m = Mmap2.Array(file)
m[1]
close(m)
# println(i)
end
rm(file)
end
@time seg(100000)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment