-
Notifications
You must be signed in to change notification settings - Fork 116
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
join() crash #43
Comments
I have this same exact issue. I've had join in plyr crash R 2.13.1 and 2.12.0 (as well as RStudio). |
Here's a reproducible example from @imark:
|
I've been getting this too. There's something funny going on with factors vs character join columns, and the presence of NA's. Factor vs. CharacterWorks:
Works, even though the factors have different levels:
Works, though gets the wrong answer:
Crashes:
Specifically, it's a segfault in NA's in factorsWhen the right join column (under a left join) is a factor and has an NA in it, it wants to crash. Works:
Works:
Crashes:
Again, the segfault is in NA's in numerics are fineThese both work. The problem seems constricted to factor vectors.
Non-determinismSometimes, instead of a segfault I get a benign error message in
I only get the error
(which, by the way, seems strange since the columns are factors, not characters.) But if I do it a few more times, I get the segfault, same as all the above crashes:
|
Thank you for the tremendously good work on this essential package.
My current script that causes the crash is too bulky for upload. I am working on an example script that will cause the same crash.
join() crashes my R session with:
*** caught segfault ***
address 0x0, cause 'memory not mapped'
Traceback:
1: .Call("split_indices", index, group, as.integer(n))
2: split_indices(seq_along(keys$y), keys$y, keys$n)
3: join_ids(x, y, by, all = TRUE)
4: join_all(x, y, by, type)
5: join(counts.transplant, counts.clamy, by = "Water.plot")
Possible actions:
1: abort (with core dump, if enabled)
2: normal R exit
3: exit R without saving workspace
4: exit R saving workspace
within RStudio, this causes the whole app to crash.
Thank you and have an excellent day,
Etienne
The text was updated successfully, but these errors were encountered: