Skip to content

segfaults on R3.4.4 when i is NULL #4060

@shrektan

Description

@shrektan

The following code causes segfauls on R3.4.4.

  1. Current it's reproducible on Windows. I haven't tested it on other platforms yet. UPDATE: I've reproduced this on Linux.
  2. Both the CRAN version and the dev version have this issue.
  3. Note, this happens only for R3.4.4 (or the previous version of R). On R3.5 or R3.6 it works fine So I doubt it relates to the code handles the ALTREP, which is introduced from R3.5. However, I'm not sure since I haven't digged into this.
library(data.table)
tbl <- data.table(A = "a", key = "A")
tbl[J(NULL)]

Update: the segfault is triggered by Cbmerge and I confirm data.table v1.12.3 also has this issue.

Metadata

Metadata

Assignees

Labels

Type

No type

Projects

No projects

Milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions