Fread Fatal Error on Mac Big Sur

Open
#5,136 3 comments 0 reactions 0 assignees View on GitHub

Nobody has claimed this yet.

Assessment

Difficulty
4/5
Estimated time
3-5 days
Newbie friendliness
25/100
Issue type
Bug
Clarity
Needs clarification
Activity status
Stale
Tech stack
macos, r

Research direction

Start with the reported data.table::fread(file = "~/Desktop/mtcars.csv", nThread = 1) invocation and review the supplied session information and MakeVars settings. Reproduce the fatal abort on macOS Big Sur with R 3.6.3, then determine the relevant fread or build entry point. Done means the example completes without aborting in the affected environment.

Written by the indexing model from the issue text.

Description

fread platform-specific

Hello all,

I am having issues with the fread function in data.table. I am currently using version 1.14.0, though this issue is reproducible on all the versions I have attempted.

The computer in question is a MacBook running Big Sur, and I am using R 3.6.3. There are compiler issues with Big Sur and Clang so I have manually installed GCC, and updated the MakeVars file. I am able to download, and compile the package.

Any attempts to use fread causes the Session to Abort with a fatal error. Find below a copy of my MakeVars file, and an example call that causes the crash.

Start: Example

data.table::fread(file = "~/Desktop/mtcars.csv", nThread = 1)
mtcars.csv

Start: Session Info

R version 3.6.3 (2020-02-29)
Platform: x86_64-apple-darwin15.6.0 (64-bit)
Running under: OS X 11.5.2

Matrix products: default
LAPACK: /Library/Frameworks/R.framework/Versions/3.6/Resources/lib/libRlapack.dylib

locale:
[1] en_US.UTF-8/en_US.UTF-8/en_US.UTF-8/C/en_US.UTF-8/en_US.UTF-8

attached base packages:
[1] stats graphics grDevices utils datasets methods base

other attached packages:
[1] data.table_1.14.0

loaded via a namespace (and not attached):
[1] compiler_3.6.3 tools_3.6.3


Start: MakeVars file

FLIBS = -L/usr/local/gfortran/lib/gcc/x86_64-apple-darwin20/10.2.0 -L/usr/local/gfortran/lib -lgfortran -lquadmath -lm
LOC = /usr/local/gfortran
CXX98 = $(LOC)/bin/g++ -fopenmp
CXX98STD = -std=c++98
CXX14 = $(LOC)/bin/g++ -fopenmp
CXX14STD = -std=c++14
CXX17 = $(LOC)/bin/g++ -fopenmp
CXX20 = $(LOC)/bin/g++ -fopenmp
CXXCPP = $(LOC)/bin/g++ -fopenmp
FC = gfortran
F77 = gfortran
OBJC = gcc
OBJCXX = g++
CC = $(LOC)/bin/gcc -fopenmp
CXX = $(LOC)/bin/g++ -fopenmp
CXXSTD = -std=c++11
CXX11 = $(LOC)/bin/g++ -fopenmp # for fst package
CXX11STD = -std=c++11
CFLAGS = -g -O2 -Wall -pedantic -std=gnu99 -mtune=native -pipe
CXXFLAGS = -g -O2 -Wall -pedantic -std=c++11 -mtune=native -pipe
LDFLAGS=-L$(LOC)/lib -Wl,-rpath,$(LOC)/lib
CPPFLAGS= -fopenmp -I$(LOC)/include -I/Library/Developer/CommandLineTools/SDKs/MacOSX.sdk/usr/include
SHLIB_OPENMP_CFLAGS=-Xpreprocessor -fopenmp
SHLIB_OPENMP_CXXFLAGS=-Xpreprocessor -fopenmp

Screen Shot 2021-09-08 at 6 02 35 PM
Dominant language
R
Stars
3.9k
Forks
1.1k
Avg merge
14h 4m
Merged PRs (30d)
4

Contributor guide

Open the contributing guide

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. Open a pull request that references the issue number.

More from Rdatatable/data.table

All issues in Rdatatable/data.table

Similar issues

More R issues

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.