You are viewing a plain text version of this content. The canonical link for it is here.
Posted to jira@arrow.apache.org by "Nicola Crane (Jira)" <ji...@apache.org> on 2021/11/11 12:09:00 UTC

[jira] [Commented] (ARROW-14667) [R] segfault on calls to arrow::S3FileSystem$create

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

Nicola Crane commented on ARROW-14667:
--------------------------------------

Thanks for reporting this Bryce.  Here's the segfault with a little extra from the C++ debugger; I'll ask one of the C++ devs to take a look.

{code: cpp}
> S3FileSystem$create()

Thread 1 "R" received signal SIGSEGV, Segmentation fault.
0x00007ffff0128369 in std::__atomic_base<long>::operator++ (this=0x178) at /usr/include/c++/9/bits/atomic_base.h:318
318	      operator++() noexcept
{code}

> [R] segfault on calls to arrow::S3FileSystem$create
> ---------------------------------------------------
>
>                 Key: ARROW-14667
>                 URL: https://issues.apache.org/jira/browse/ARROW-14667
>             Project: Apache Arrow
>          Issue Type: Bug
>            Reporter: Bryce Mecum
>            Priority: Critical
>         Attachments: R-2021-11-10-124053.txt, session_info.txt
>
>
> I was trying out a colleague's example code today and ended up with a segfault. Their code was:
> {code:r}
> library(arrow)
> minio <- S3FileSystem$create(
>   access_key = "",
>   secret_key = "",
>   scheme = "http",
>   endpoint_override = "data.ecoforecast.org"
> )
> {code}
> Though I'm able to reproduce the segfault with a more minimal example like:
> {code:r}
> library(arrow)
> S3FileSystem$create()
> {code}
> The output I get immediately in the R console is:
> {code:r}
> > S3FileSystem$create()
>  *** caught segfault ***
> address 0x1a0, cause 'memory not mapped'
> Traceback:
>  1: (function (anonymous, access_key, secret_key, session_token,     role_arn, session_name, external_id, load_frequency, region,     endpoint_override, scheme, background_writes) {    .Call(`_arrow_fs___S3FileSystem__create`, anonymous, access_key,         secret_key, session_token, role_arn, session_name, external_id,         load_frequency, region, endpoint_override, scheme, background_writes)})(access_key = "", secret_key = "", session_token = "", role_arn = "",     session_name = "", external_id = "", load_frequency = 900L,     region = "", endpoint_override = "", scheme = "", background_writes = TRUE,     anonymous = FALSE)
>  2: exec(fs___S3FileSystem__create, !!!args)
>  3: S3FileSystem$create()
> {code}
> I've attached detailed info about my environment and a full core dump to the issue but the high level stuff is:
> - OS: macOS 12.0.1
> - R: 4.1.2
> - R arrow version: 6.0.0.2
>  



--
This message was sent by Atlassian Jira
(v8.20.1#820001)