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

Nicola Crane commented on ARROW-15677:
--------------------------------------

Here's the output of running the above code with the debugger attached


{code:cpp}
(gdb) run
Starting program: /usr/lib/R/bin/exec/R 
[Thread debugging using libthread_db enabled]
Using host libthread_db library "/lib/x86_64-linux-gnu/libthread_db.so.1".

R version 4.1.2 (2021-11-01) -- "Bird Hippie"
Copyright (C) 2021 The R Foundation for Statistical Computing
Platform: x86_64-pc-linux-gnu (64-bit)

R is free software and comes with ABSOLUTELY NO WARRANTY.
You are welcome to redistribute it under certain conditions.
Type 'license()' or 'licence()' for distribution details.

  Natural language support but running in an English locale

R is a collaborative project with many contributors.
Type 'contributors()' for more information and
'citation()' on how to cite R or R packages in publications.

Type 'demo()' for some demos, 'help()' for on-line help, or
'help.start()' for an HTML browser interface to help.
Type 'q()' to quit R.

[Detaching after vfork from child process 447650]
[Detaching after vfork from child process 447652]
> library(arrow, warn.conflicts = FALSE)
[New Thread 0x7ffff326c700 (LWP 447696)]

[New Thread 0x7fffeb7ff700 (LWP 447702)]
> my_array <- Array$create(array((1:100000) + 1L, rep(100, 3)))
> my_array$invalidate()
> my_array$length()

Thread 1 "R" received signal SIGSEGV, Segmentation fault.
0x00007ffff2628d4a in std::__shared_ptr<arrow::ArrayData, 
(__gnu_cxx::_Lock_policy)2>::get (this=0xffff01000008)
    at /usr/include/c++/9/bits/shared_ptr_base.h:1310
1310          { return _M_ptr; }

{code}


> [R] Segfault when trying to access invalidated dataset
> ------------------------------------------------------
>
>                 Key: ARROW-15677
>                 URL: https://issues.apache.org/jira/browse/ARROW-15677
>             Project: Apache Arrow
>          Issue Type: Bug
>          Components: R
>    Affects Versions: 7.0.0
>            Reporter: qtmaicw66
>            Priority: Critical
>
> Trying to access invalidated dataset results in segfaults on OSX.
>  
> library(arrow, warn.conflicts = FALSE)
> my_array <- Array$create(array((1:100000) + 1L, rep(100, 3)))
> my_array$invalidate()
> my_array$length()
>  
> Results:
>  *** caught segfault ***
> address 0xffff01000008, cause 'invalid permissions'
> Traceback:
>  1: Array__length(self)
>  2: my_array$length()
> Possible actions:
> 1: abort (with core dump, if enabled)
> 2: normal R exit
> 3: exit R without saving workspace
> 4: exit R saving workspace



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

Reply via email to