Created
May 21, 2015 03:17
-
-
Save quinnj/2dc8bf55517906122b84 to your computer and use it in GitHub Desktop.
Reproducible segfault
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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