Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

error saving large table with String column #318

Open
zgornel opened this issue Jan 19, 2020 · 0 comments
Open

error saving large table with String column #318

zgornel opened this issue Jan 19, 2020 · 0 comments

Comments

@zgornel
Copy link

zgornel commented Jan 19, 2020

The following code segfaults. Details:

  • tested on Julia v1.3.0 and 1.0.3
  • the crash is related to the string column zz: no crash occurs in its absence
  • saving works for small table sizes i.e. n=1_000
using JuliaDB
using Random
n = 1_000_000  # works for 1_000
tbl = table((x=rand(n), y=rand(n), z=collect(1:n), zz=[randstring(2) for _ in 1:n]), pkey=:z);
save(tbl, "__tmp.tbl")

Stacktrace:

signal (11): Segmentation fault
in expression starting at REPL[1]:5
__memmove_sse2_unaligned_erms at /usr/bin/../lib/libc.so.6 (unknown line)
jl_pchar_to_string at /usr/bin/../lib/libjulia.so.1 (unknown line)
unsafe_string at ./strings/string.jl:53
unknown function (ip: 0x7fb0e406a8b8)
mmread at /home/zgornel/.julia/packages/MemPool/tlPqB/src/io.jl:135
deserialize at /home/zgornel/.julia/packages/MemPool/tlPqB/src/io.jl:27
handle_deserialize at /build/julia/src/julia-1.3.0/usr/share/julia/stdlib/v1.3/Serialization/src/Serialization.jl:786
deserialize at /build/julia/src/julia-1.3.0/usr/share/julia/stdlib/v1.3/Serialization/src/Serialization.jl:722
#30 at ./none:0 [inlined]
iterate at ./generator.jl:47 [inlined]
collect_to! at ./array.jl:667
unknown function (ip: 0x7fb0e4068d65)
collect_to! at ./array.jl:675
collect_to_with_first! at ./array.jl:646
unknown function (ip: 0x7fb0e4067762)
collect at ./array.jl:627
mmread at /home/zgornel/.julia/packages/JuliaDB/7cG1k/src/serialize.jl:53
deserialize at /home/zgornel/.julia/packages/MemPool/tlPqB/src/io.jl:27
handle_deserialize at /build/julia/src/julia-1.3.0/usr/share/julia/stdlib/v1.3/Serialization/src/Serialization.jl:786
deserialize at /build/julia/src/julia-1.3.0/usr/share/julia/stdlib/v1.3/Serialization/src/Serialization.jl:722
mmread at /home/zgornel/.julia/packages/JuliaDB/7cG1k/src/serialize.jl:84
deserialize at /home/zgornel/.julia/packages/MemPool/tlPqB/src/io.jl:27
handle_deserialize at /build/julia/src/julia-1.3.0/usr/share/julia/stdlib/v1.3/Serialization/src/Serialization.jl:786
deserialize at /build/julia/src/julia-1.3.0/usr/share/julia/stdlib/v1.3/Serialization/src/Serialization.jl:722
handle_deserialize at /build/julia/src/julia-1.3.0/usr/share/julia/stdlib/v1.3/Serialization/src/Serialization.jl:825
deserialize at /build/julia/src/julia-1.3.0/usr/share/julia/stdlib/v1.3/Serialization/src/Serialization.jl:722
deserialize at /build/julia/src/julia-1.3.0/usr/share/julia/stdlib/v1.3/Serialization/src/Serialization.jl:709 [inlined]
#open#271 at ./io.jl:298
open at ./io.jl:296 [inlined]
#load#197 at /home/zgornel/.julia/packages/JuliaDB/7cG1k/src/io.jl:182
load at /home/zgornel/.julia/packages/JuliaDB/7cG1k/src/io.jl:174 [inlined]
save at /home/zgornel/.julia/packages/JuliaDB/7cG1k/src/io.jl:215
unknown function (ip: 0x7fb0ffb3db4d)
unknown function (ip: 0x7fb0ffb3d7fa)
unknown function (ip: 0x7fb0ffb3e534)
unknown function (ip: 0x7fb0ffb3ec59)
unknown function (ip: 0xfffffffffffffffe)
unknown function (ip: 0x7fb0ae48f40f)
unknown function (ip: 0xffffffffffffffff)
unknown function (ip: 0x7fb0ffb3f079)
unknown function (ip: 0x7fb0ffa0351d)
unknown function (ip: 0x7fb0ffa03ba8)
jl_toplevel_eval_in at /usr/bin/../lib/libjulia.so.1 (unknown line)
unknown function (ip: 0x7fb0f2eb8171)
unknown function (ip: 0x7fb0f308eba6)
unknown function (ip: 0x7fb0f308eea4)
unknown function (ip: 0x7fb0ff9e9c94)
unknown function (ip: 0xffffffffffffffff)
Allocations: 27191659 (Pool: 27187400; Big: 4259); GC: 28
zsh: segmentation fault (core dumped)  julia --banner=no
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant