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

reproducible segfault with describe #1758

Closed
ssfrr opened this issue Mar 29, 2019 · 4 comments
Closed

reproducible segfault with describe #1758

ssfrr opened this issue Mar 29, 2019 · 4 comments

Comments

@ssfrr
Copy link
Contributor

ssfrr commented Mar 29, 2019

julia> using DataFrames

julia> classes = ["one", "two", "three"]
3-element Array{String,1}:
 "one"  
 "two"  
 "three"

julia> df = DataFrame(foo=String[], bar=Int[], baz=Int[])
0×3 DataFrame


julia> for class in classes
         df[Symbol(class)] = Bool[]
       end

julia> describe(df)
Unreachable reached at 0x7fb0b48521de

signal (4): Illegal instruction
in expression starting at no file:0
getindex at ./array.jl:729 [inlined]
get_stats at /home/sfr/.julia/packages/DataFrames/IKMvt/src/abstractdataframe/abstractdataframe.jl:448
jl_fptr_trampoline at /buildworker/worker/package_linux64/build/src/gf.c:1864
jl_apply_generic at /buildworker/worker/package_linux64/build/src/gf.c:2219
#26 at /home/sfr/.julia/packages/DataFrames/IKMvt/src/abstractdataframe/abstractdataframe.jl:412
jl_fptr_trampoline at /buildworker/worker/package_linux64/build/src/gf.c:1864
jl_apply_generic at /buildworker/worker/package_linux64/build/src/gf.c:2219
iterate at ./generator.jl:47 [inlined]
collect_to! at ./array.jl:651
collect_to_with_first! at ./array.jl:630 [inlined]
_collect at ./array.jl:624
map at ./array.jl:548 [inlined]
#describe#25 at /home/sfr/.julia/packages/DataFrames/IKMvt/src/abstractdataframe/abstractdataframe.jl:408
jl_fptr_trampoline at /buildworker/worker/package_linux64/build/src/gf.c:1864
jl_apply_generic at /buildworker/worker/package_linux64/build/src/gf.c:2219
describe at /home/sfr/.julia/packages/DataFrames/IKMvt/src/abstractdataframe/abstractdataframe.jl:381
jl_fptr_trampoline at /buildworker/worker/package_linux64/build/src/gf.c:1864
jl_apply_generic at /buildworker/worker/package_linux64/build/src/gf.c:2219
do_call at /buildworker/worker/package_linux64/build/src/interpreter.c:323
eval_value at /buildworker/worker/package_linux64/build/src/interpreter.c:411
eval_stmt_value at /buildworker/worker/package_linux64/build/src/interpreter.c:362 [inlined]
eval_body at /buildworker/worker/package_linux64/build/src/interpreter.c:773
jl_interpret_toplevel_thunk_callback at /buildworker/worker/package_linux64/build/src/interpreter.c:885
unknown function (ip: 0xfffffffffffffffe)
unknown function (ip: 0x7fb0ad662adf)
unknown function (ip: 0xffffffffffffffff)
jl_interpret_toplevel_thunk at /buildworker/worker/package_linux64/build/src/interpreter.c:894
jl_toplevel_eval_flex at /buildworker/worker/package_linux64/build/src/toplevel.c:764
jl_toplevel_eval_in at /buildworker/worker/package_linux64/build/src/toplevel.c:793
eval at ./boot.jl:328
jl_apply_generic at /buildworker/worker/package_linux64/build/src/gf.c:2219
eval_user_input at /buildworker/worker/package_linux64/build/usr/share/julia/stdlib/v1.1/REPL/src/REPL.jl:85
macro expansion at /buildworker/worker/package_linux64/build/usr/share/julia/stdlib/v1.1/REPL/src/REPL.jl:117 [inlined]
#26 at ./task.jl:259
jl_apply_generic at /buildworker/worker/package_linux64/build/src/gf.c:2219
jl_apply at /buildworker/worker/package_linux64/build/src/julia.h:1571 [inlined]
start_task at /buildworker/worker/package_linux64/build/src/task.c:572
unknown function (ip: 0xffffffffffffffff)
Allocations: 21211745 (Pool: 21208033; Big: 3712); GC: 43
[1]    28227 illegal hardware instruction (core dumped)  julia --color=yes --startup-file=no
(v1.1) pkg> st
    Status `~/.julia/environments/v1.1/Project.toml`
  [c52e3926] Atom v0.8.3
  [717857b8] DSP v0.5.2
  [a93c6f00] DataFrames v0.17.1
  [cd0f133c] Hooks v0.1.0 [`~/Dropbox/juliadev/Hooks`]
  [e5e0dc1b] Juno v0.7.0
  [f57c4921] MIDI v1.1.3
  [5fb14364] OhMyREPL v0.5.1
  [14b8a8f1] PkgTemplates v0.5.0
  [295af30f] Revise v2.0.4
  [64b0f0d9] ToyAD v0.0.0 [`../../../Dropbox/juliadev/ToyAD`]
@ssfrr
Copy link
Contributor Author

ssfrr commented Mar 29, 2019

oh, actually, much simpler MWE:

julia> using DataFrames

julia> df = DataFrame(bar=Int[])
0×1 DataFrame


julia> describe(df)
Unreachable reached at 0x7f3301dbe68e
...

@ararslan
Copy link
Member

I can reproduce on the current release of DataFrames, but not on DataFrames master, so this should be fixed on the next tag.

@bkamins
Copy link
Member

bkamins commented Mar 29, 2019

Yes this is fixed in #1664 and the problem is JuliaLang/julia#31133.
I think we can close this issue.

@ssfrr
Copy link
Contributor Author

ssfrr commented Mar 30, 2019

sounds good. thanks!

@ssfrr ssfrr closed this as completed Mar 30, 2019
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

3 participants