segfault error with mutate (with code to reproduce) #1329
Closed
Milestone
Comments
Thanks. The example can be reduced to this : > d <- data.frame( x = 1:10, y = 1:10 )
> d %>% mutate( x = NULL )
*** caught segfault ***
address 0x0, cause 'memory not mapped'
Traceback:
1: .Call("dplyr_mutate_impl", PACKAGE = "dplyr", df, dots)
2: mutate_impl(.data, dots)
3: mutate_.tbl_df(tbl_df(.data), .dots = dots)
4: mutate_(tbl_df(.data), .dots = dots)
5: as.data.frame(mutate_(tbl_df(.data), .dots = dots))
6: mutate_.data.frame(.data, .dots = lazyeval::lazy_dots(...))
7: mutate_(.data, .dots = lazyeval::lazy_dots(...))
8: mutate(., x = NULL)
9: function_list[[k]](value)
10: withVisible(function_list[[k]](value))
11: freduce(value, `_function_list`)
12: `_fseq`(`_lhs`)
13: eval(expr, envir, enclos)
14: eval(quote(`_fseq`(`_lhs`)), env, env)
15: withVisible(eval(quote(`_fseq`(`_lhs`)), env, env))
16: d %>% mutate(x = NULL)
Possible actions:
1: abort (with core dump, if enabled)
2: normal R exit
3: exit R without saving workspace
4: exit R saving workspace
Selection: 2
Save workspace image? [y/n/c]: n On it. |
Great. Thanks. Works for me. I tried |
Sign up for free
to subscribe to this conversation on GitHub.
Already have an account?
Sign in.
I have a lot of segfault errors ever since version 0.4.1. They are always hard to pin down so I just downgraded to 0.4.0 for a while. Now I am able to reproduce one consistently using the development version of dplyr on my computer (Mac OS X 10.5.5). Here is what I do: start R, copy & paste the code in the console, get segfault error. I am getting similar errors with other code it's just hard to reproduce them. This one happens consistently. The code works without the
mutate
at the end of the pipe or when I change themutate
arguments.code with segfault error
error message
sessionInfo()
The text was updated successfully, but these errors were encountered: