Skip to content

arrange segfaults if data frame contains list as column #282

@joranE

Description

@joranE

In 0.1.2:

> d <- data.frame(a = 1)
> d$b <- list(1)
> arrange(d,a)

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

Traceback:
 1: .Call("dplyr_arrange_impl", PACKAGE = "dplyr", data, args, dots)
 2: arrange_impl(.data, dots(...), environment())
 3: arrange.tbl_df(tbl_df(.data), ...)
 4: arrange(tbl_df(.data), ...)
 5: as.data.frame(arrange(tbl_df(.data), ...))
 6: arrange.data.frame(d, a)
 7: arrange(d, a)

I only checked this because of the note in the news about arrange checking for supported types. Looks like sorting on the "bad" column is handled with an error, but sorting on a "good" column segafults.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions