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

Crash when calling cut function #289

Closed
tk3369 opened this issue Aug 16, 2020 · 4 comments
Closed

Crash when calling cut function #289

tk3369 opened this issue Aug 16, 2020 · 4 comments

Comments

@tk3369
Copy link

tk3369 commented Aug 16, 2020

The cut function seems to have a problem with SentinelArray? Copying an example from JuliaData/DataFrames.jl#2326 (comment)

julia> using DataFrames, CSV, Statistics

julia> df = DataFrame(g = rand(1:100, 100), v1 = CSV.SentinelArray(Union{Float64, Missing}[rand() for i in 1:100]), v2 = rand(100));

julia> long_df = stack(df, Not(1), variable_name = "state", value_name = "population");

julia> cut(long_df.population, 10)
Unreachable reached at 0x7fe977ab7997

signal (4): Illegal instruction
in expression starting at REPL[9]:1
#cut#91 at /home/admin/.julia/packages/CategoricalArrays/nd8kj/src/extras.jl:226
cut at /home/admin/.julia/packages/CategoricalArrays/nd8kj/src/extras.jl:218
unknown function (ip: 0x7fe977ab7b76)
_jl_invoke at /buildworker/worker/package_linux64/build/src/gf.c:2231 [inlined]
jl_apply_generic at /buildworker/worker/package_linux64/build/src/gf.c:2398
jl_apply at /buildworker/worker/package_linux64/build/src/julia.h:1690 [inlined]
do_call at /buildworker/worker/package_linux64/build/src/interpreter.c:117
eval_value at /buildworker/worker/package_linux64/build/src/interpreter.c:206
eval_stmt_value at /buildworker/worker/package_linux64/build/src/interpreter.c:157 [inlined]
eval_body at /buildworker/worker/package_linux64/build/src/interpreter.c:566

Versions:

julia> versioninfo()
Julia Version 1.5.0
Commit 96786e22cc (2020-08-01 23:44 UTC)
Platform Info:
  OS: Linux (x86_64-pc-linux-gnu)
  CPU: Intel(R) Xeon(R) Platinum 8259CL CPU @ 2.50GHz
  WORD_SIZE: 64
  LIBM: libopenlibm
  LLVM: libLLVM-9.0.1 (ORCJIT, skylake)
Environment:
  JULIA_HOME = /home/admin/Apps/julia-1.4.2

(China) pkg> st
Status `~/juliacon/China/Project.toml`
  [336ed68f] CSV v0.7.7
  [35d6a980] ColorSchemes v3.9.0
  [a93c6f00] DataFrames v0.21.6
  [28b8d3ca] GR v0.51.0
  [c91e804a] Gadfly v1.3.0
  [8314cec4] PGFPlotsX v1.2.8
  [b98c9c47] Pipe v1.3.0
  [91a5bcdd] Plots v1.5.9
  [ce6b1742] RDatasets v0.6.10
  [f3b207a7] StatsPlots v0.14.11
  [3eeacb1d] TabularDisplay v1.1.0
  [b8865327] UnicodePlots v1.2.0
@bkamins
Copy link
Member

bkamins commented Aug 16, 2020

I can reproduce it on Linux, Julia 1.5.0. This is probably a bug in Julia Base.

CC @JeffBezanson

@brenhinkeller
Copy link

Does this still reproduce?

@brenhinkeller
Copy link

Would be good to update JuliaLang/julia#37116 with an MWE if it's still thought to be an issue in Julia base

@bkamins
Copy link
Member

bkamins commented Nov 20, 2022

Can be closed. Does not reproduce on Julia 1.6.7 or newer. Thank you!

@bkamins bkamins closed this as completed Nov 20, 2022
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