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

segfault with filter/row_number/named variable #781

Closed
momeara opened this issue Nov 18, 2014 · 1 comment
Closed

segfault with filter/row_number/named variable #781

momeara opened this issue Nov 18, 2014 · 1 comment
Assignees
Labels
Milestone

Comments

@momeara
Copy link

@momeara momeara commented Nov 18, 2014

>library(dplyr)
 Attaching package: ‘dplyr’

 The following object is masked from ‘package:stats’:

     filter

 The following objects are masked from ‘package:base’:

     intersect, setdiff, setequal, union

> sessionInfo()
 R version 3.1.1 (2014-07-10)
 Platform: x86_64-unknown-linux-gnu (64-bit)

 locale:
 [1] LC_CTYPE=en_US.UTF-8       LC_NUMERIC=C
 [3] LC_TIME=en_US.UTF-8        LC_COLLATE=en_US.UTF-8
 [5] LC_MONETARY=en_US.UTF-8    LC_MESSAGES=en_US.UTF-8
 [7] LC_PAPER=en_US.UTF-8       LC_NAME=C
 [9] LC_ADDRESS=C               LC_TELEPHONE=C
 [11] LC_MEASUREMENT=en_US.UTF-8 LC_IDENTIFICATION=C

 attached base packages:
 [1] stats     graphics  grDevices utils     datasets  methods   base

 other attached packages:
[1] dplyr_0.3.0.9000

 loaded via a namespace (and not attached):
 [1] assertthat_0.1 compiler_3.1.1 DBI_0.3.1      magrittr_1.0.1 parallel_3.1.1
 [6] Rcpp_0.11.3    tools_3.1.1


z <- data.frame(a=c(1,2,3))
b <- "a"
z %>% filter(row_number(b) == 2)

  *** caught segfault ***
 address 0x31000010, cause 'memory not mapped'

 Traceback:
  1: .Call("dplyr_filter_impl", PACKAGE = "dplyr", df, dots)
  2: filter_impl(.data, dots)
  3: filter_.tbl_df(tbl_df(.data), .dots = dots)
  4: filter_(tbl_df(.data), .dots = dots)
  5: as.data.frame(filter_(tbl_df(.data), .dots = dots))
  6: filter_.data.frame(.data, .dots = lazyeval::lazy_dots(...))
  7: filter_(.data, .dots = lazyeval::lazy_dots(...))
  8: filter(z, row_number(b) == 2)
  9: eval(expr, envir, enclos)
 10: eval(e, env)
 11: withVisible(eval(e, env))
 12: z %>% filter(row_number(b) == 2)

 Possible actions:
 1: abort (with core dump, if enabled)
 2: normal R exit
 3: exit R without saving workspace
 4: exit R saving workspace
@romainfrancois romainfrancois added this to the 0.3.1 milestone Nov 18, 2014
@romainfrancois romainfrancois self-assigned this Nov 18, 2014
@momeara
Copy link
Author

@momeara momeara commented Nov 18, 2014

super fast. Thanks, Romain.

@lock lock bot locked as resolved and limited conversation to collaborators Jun 10, 2018
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
Projects
None yet
Linked pull requests

Successfully merging a pull request may close this issue.

None yet
2 participants