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 on file ending with blank line with read_lines(skip_empty_rows = T) #968

Closed
antoine-sachet opened this issue Feb 14, 2019 · 0 comments
Labels
bug an unexpected problem or unintended behavior

Comments

@antoine-sachet
Copy link

antoine-sachet commented Feb 14, 2019

Even with the latest github version, using read_lines(file, skip_empty_rows=T) with a file ending with a a blank line causes a segmentation fault.

Reproduce with a container:

FROM rocker/r-ver:3.5.2
RUN install2.r -s --error remotes
RUN installGithub.r tidyverse/readr

Shell in the container:

printf "test\n\n" > test.txt
r -e "readr::read_lines('test.txt', skip_empty_rows=T)"
# Segmentation fault (core dumped)

More details (running the container with --privileged to allow access to dmesg):

dmesg | tail -1
# [116539.485081] r[19864]: segfault at 7fb7191d3000 ip 00007fb711114aa5 sp 00007ffc8079c0f0 error 4 in readr.so[7fb7110c0000+91000]
@antoine-sachet antoine-sachet changed the title Segfault reading file ending with blank line with skip_empty_rows = T Segfault on file ending with blank line with read_lines(skip_empty_rows = T) Feb 14, 2019
@antoine-sachet antoine-sachet changed the title Segfault on file ending with blank line with read_lines(skip_empty_rows = T) Segfault on file ending with blank line with read_lines(skip_empty_rows = T) Feb 14, 2019
@jimhester jimhester added the bug an unexpected problem or unintended behavior label Apr 3, 2020
@jimhester jimhester reopened this Sep 21, 2020
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug an unexpected problem or unintended behavior
Projects
None yet
Development

No branches or pull requests

2 participants