Skip to content

group_by with a grouping variable with missing data causes R to crash #183

@jeromyanglim

Description

@jeromyanglim

It seems that group_by with missing data on the grouping variable causes R to crash

library(dplyr)
library(MASS)

names(survey) <- tolower(names(survey))
group_by(na.omit(survey), m.i) #works fine
group_by(survey), m.i) # causes r to crash
 *** caught segfault ***
address 0xfffffffd0214f288, cause 'memory not mapped'

Traceback:
 1: .Call("dplyr_grouped_df_impl", PACKAGE = "dplyr", data, symbols,     drop)
 2: grouped_df_impl(data, unname(vars), drop)
 3: grouped_df(x, value)
 4: regroup.data.frame(x, new_groups)
 5: regroup(x, new_groups)
 6: group_by(survey, m.i)

Possible actions:
1: abort (with core dump, if enabled)
2: normal R exit
3: exit R without saving workspace
4: exit R saving workspace

Metadata

Metadata

Labels

bugan unexpected problem or unintended behavior

Type

No type

Projects

No projects

Milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions