Skip to content

Segfault on call to fread with fill = TRUE #4774

@AndeolEvain

Description

@AndeolEvain

I have a file that systematically makes R process crash when calling the following code :

dn1 <- data.table::fread("minimalEx.csv",
        sep = ",",
        quote = "\"",
        header = TRUE,
        fill = TRUE,
        stringsAsFactors = TRUE,
        integer64 = "numeric"
)

When trying to make a minimal example, I found that :
_ There seem to be a minimal number of lines (around 100+) for this crash to happen. Below this threshold, I simply get an error.
_ It is linked to non-escaped quotes, here in that last line of the file
_ It only happens with argument fill = TRUE

Here is the file reduced to a minimal example :
minimalEx.zip

This seems somwhat linked to the bug reported in # #3509, but the conditions of reproduction are a bit different.

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions