You are viewing a plain text version of this content. The canonical link for it is here.
Posted to jira@arrow.apache.org by "Matt Pollock (Jira)" <ji...@apache.org> on 2020/12/01 17:21:00 UTC

[jira] [Comment Edited] (ARROW-10780) [R] segfault on CentOS 7

    [ https://issues.apache.org/jira/browse/ARROW-10780?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=17241717#comment-17241717 ] 

Matt Pollock edited comment on ARROW-10780 at 12/1/20, 5:20 PM:
----------------------------------------------------------------

Your guess is right. Thanks for pointing to the known issues (and from there to ARROW-8586). I'm using devtoolset-8, and though I had modified my Makeconf file for CXX, CXX11, and CXX14, I had not updated CC to point to the devtoolset-8 gcc.

I just tested and things appear to be working, so FWIW you might update the known issues to suggest that they need to be set consistently. For my use case I can't revert CXX back to the system compiler because then other packages (e.g., rstan) fail to compile.

Thanks much for your help!


was (Author: mpollock):
Your guess is right. Thanks for pointing to the known issues (and from there to ARROW-8586). I'm using devtoolset-8, and though I had modified my Makeconf file for CXX, CXX11, and CXX14, I had not updated CC to point to the devtoolset-8 gcc.

I just tested and things appear to be working, so FWIW you might update the known issues to suggest that they need to be set consistently. For my use case I can't revert CXX back to the system compiler because then other packages (e.g., rstan) fail to compile.

> [R] segfault on CentOS 7
> ------------------------
>
>                 Key: ARROW-10780
>                 URL: https://issues.apache.org/jira/browse/ARROW-10780
>             Project: Apache Arrow
>          Issue Type: Bug
>          Components: R
>    Affects Versions: 2.0.0
>            Reporter: Matt Pollock
>            Priority: Major
>
> Hello, I installed arrow using
> {code:java}
>   Sys.setenv(ARROW_R_DEV=TRUE)
>   source("https://raw.githubusercontent.com/apache/arrow/master/r/R/install-arrow.R")
>   install_arrow(binary = FALSE, use_system = FALSE)
> {code}
> It shouldn't matter, but I also checked that the system parquet-devel/arrow-devel are both on version 2.0.0 (I'm on CentOS 7). I'm using R 4.0.3. However using any arrow function causes a segfault, for example:
> {code:java}
> > library(arrow)
> Attaching package: ‘arrow’
> The following object is masked from ‘package:utils’:
>     timestamp
> > arrow_available()
> [1] TRUE
> > write_parquet(iris, "~/iris4")
>  *** caught segfault ***
> address (nil), cause 'memory not mapped'
> Traceback:
>  1: Table__from_dots(dots, schema)
>  2: shared_ptr_is_null(xp)
>  3: shared_ptr(Table, Table__from_dots(dots, schema))
>  4: Table$create(x)
>  5: write_parquet(iris, "~/iris4")
> {code}
> I have tried various installation methods (source/binary, system packages or not, even the nightly build). The only thing I've gotten to work is to revert to the 1.0.1 version of arrow. Any advice is appreciated.
> Thanks in advance.



--
This message was sent by Atlassian Jira
(v8.3.4#803005)