JLD.jl icon indicating copy to clipboard operation
JLD.jl copied to clipboard

Malloc error after `workspace()`

Open ranjanan opened this issue 8 years ago • 0 comments

using JLD
a = rand(10)
save("a.jld", "a", a)
workspace()
using JLD
using Base.Test
a = rand(10)
b = rand(10)
c = rand(10)
@save "thing.jld"
@test contains(readall(`ls`), "thing.jld")

running julia test.jl gives the following error at the end:

julia(68545,0x7fff7dc61300) malloc: *** error for object 0x7fdea3c18000: pointer being freed was not allocated
*** set a breakpoint in malloc_error_break to debug

signal (6): Abort trap: 6
__pthread_kill at /usr/lib/system/libsystem_kernel.dylib (unknown line)
Abort trap: 6

Actually the file works over the REPL and otherwise, but once you exit Julia, that error is returned.

ranjanan avatar Jan 21 '16 09:01 ranjanan