-
-
Notifications
You must be signed in to change notification settings - Fork 5.5k
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 with DataFrames #18299
Comments
Probably dup of #17003 |
OK, interesting. Indeed this code involves relatively complex array structures with a lot of inheritance and wrapping. Though let me note it also happens with |
In case it helps: adding the following definition (which is a copy of the one at function Base.insert!(df::DataFrame, col_ind::Int, item::NullableArray, name::Symbol)
0 < col_ind <= ncol(df) + 1 || throw(BoundsError())
size(df, 1) == length(item) || size(df, 1) == 0 || error("number of rows does not match")
insert!(DataFrames.index(df), col_ind, name)
insert!(df.columns, col_ind, item)
df
end |
Likely related to #16883. |
I believe this is dup of #17003 See #17003 (comment) for a repro reduced and modified from the repo in this issue. (I wasn't able to reproduce that issue but it seems to be the same problem). Close as dup for now. |
I consistently get a crash with 0.5.0-rc3 when hacking on DataFrames. Of course this could be due to our Julia code doing something unsafe, but that part of the code doesn't do anything fancy, so it might well be a Julia bug.
To reproduce it, you need to checkout the
nl/crash
branch of DataFrames.jl. Then the following code makes Julia crash:Result:
(Sorry it that's a bug in my code.)
The text was updated successfully, but these errors were encountered: