-
-
Notifications
You must be signed in to change notification settings - Fork 5.5k
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 when reading CSV from within the R environment #55765
Comments
Do you have any LD_PRELOADS that could be forcing Julia to load incorrect versions of libraries? |
For example the full error message, I don't see it anywhere, or am I totally missing it? |
Not too familiar with LD_PRELOADs, so I am going to say no. The aws machine I used was fresh and used fresh installs of the libraries, so I don't think there are any incorrect versions being loaded, unless the libraries I'm using aren't available for 1.10.5.
I forgot to add it, but it isn't very interesting $ Rscript julia_segfault.R
Segmentation fault (core dumped) |
What if you call a bash script that calls julia in |
CC @quinnj |
I don't see a segfault on 1.10.7 or 1.11.2, and the dataset loads just fine. I'm using mac arm64. I ran it standalone and from R 4.4.2:
|
Let's reopen if we can have a reproducer. |
I can reproduce it for Ubuntu 24.04.01 LTS (on WSL2 on Win11) with r-base 4.3.3 package installed from the Ubuntu package repository. The MWE on Julia 1.10.7 LTS crashes with gdb backtrace gdb.txt R sets the LD_LIBRARY_PATH: $ echo $LD_LIBRARY_PATH
$ R --silent -e "Sys.getenv('LD_LIBRARY_PATH')"
> Sys.getenv('LD_LIBRARY_PATH')
[1] "/usr/lib/R/lib:/usr/lib/x86_64-linux-gnu:/usr/lib/jvm/default-java/lib/server"
>
> Using The MWE doesn't produce a segfault on Julia 1.11.2. |
There seem to be issues running R and Julia together on Ubuntu 24: JuliaInterop/JuliaCall#238. I wonder where the actual issue is. |
Looks like the explanation has been found: JuliaInterop/JuliaCall#238 (comment) |
@Tmonster According to JuliaInterop/JuliaCall#238 (comment), the problem comes from the wrapper Ubuntu uses to run R: it sets It might be enough to call |
I am in the process of setting up a new run the the db-benchmark and Julia keeps segfaulting when reading the CSV for the data. Maybe I'm just holding it wrong, but the presence of a segfault and not an error tells me there is an actual bug.
This is the most minimum working example I could make
files needed
julia_segfault.R
system("julia julia_script.jl")
julia_script.jl
CSV file
small.csv
Command to reproduce and error
Originally I thought this could be an R issue, but since the Julia script never finishes, I think the problem is more on the Julia side.
versioninfo()
R sessioninfo()
Let me know if you need anymore information, this was reproduced on an aws machine with size c6id.8xlarge
Edit: Added error message
The text was updated successfully, but these errors were encountered: