egillax commented on issue #34211:
URL: https://github.com/apache/arrow/issues/34211#issuecomment-1452109899

   Just wanted to chime in here since I'm experiencing a very similar error. 
   
   It happens when I'm writing a dataframe to an arrow/feather file. Like for 
OP it works in arrow 10 but not 11. And is originating from the same line.
   
   Here is the top of the stacktrace running R with debugger attached:
   ```
   * thread #1, name = 'R', stop reason = signal SIGSEGV: invalid address 
(fault address: 0x18)
     * frame #0: 0x00007fff89fb0516 arrow.so`arrow::r::InferArrowType(SEXPREC*) 
at shared_ptr_base.h:1522:7
       frame #1: 0x00007fff89fab73e 
arrow.so`arrow::r::InferSchemaFromDots(SEXPREC*, SEXPREC*, int, 
std::shared_ptr<arrow::Schema>&)::'lambda'(int, SEXPREC*, 
std::__cxx11::basic_string<char, std::char_traits<char>, 
std::allocator<char>>)::operator()(int, SEXPREC*, 
std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char>>) 
const at table.cpp:179:62
       frame #2: 0x00007fff89fac6c1 
arrow.so`arrow::r::InferSchemaFromDots(SEXPREC*, SEXPREC*, int, 
std::shared_ptr<arrow::Schema>&) at arrow_types.h:211:15
       frame #3: 0x00007fff89f413aa arrow.so`Table__from_dots(SEXPREC*, 
SEXPREC*, bool) at r_to_arrow.cpp:1461:44
       frame #4: 0x00007fff89e9a690 arrow.so`_arrow_Table__from_dots at 
arrowExports.cpp:4321:40
   ```
   
   It happens during unit testing in my package so I can reproduce it as much 
as I want locally, and happens as well running github actions on ubuntu, 
windows and macOS. But unfortunately have not been able to create a minimum 
reproducible example. Just calling the function separately that gives the issue 
with the same inputs does not give the error. So it seems it is dependent on 
something that happens earlier during my unit testing.  
   
   I've tried turning of thread using ```options(arrow.use_threads = FALSE)``` 
but that doesn't solve the issue.
   
   Attached is my sessionInfo and arrowInfo. If you have any ideas on how to 
debug further please let me know. 
   
   <details>
     <summary>SessionInfo</summary>
     R version 4.2.2 (2022-10-31)
   Platform: x86_64-pc-linux-gnu (64-bit)
   Running under: Ubuntu 22.10
   
   Matrix products: default
   BLAS:   /usr/lib/x86_64-linux-gnu/blas/libblas.so.3.10.1
   LAPACK: /usr/lib/x86_64-linux-gnu/lapack/liblapack.so.3.10.1
   
   locale:
    [1] LC_CTYPE=en_US.UTF-8       LC_NUMERIC=C               
LC_TIME=nl_NL.UTF-8        LC_COLLATE=en_US.UTF-8    
    [5] LC_MONETARY=nl_NL.UTF-8    LC_MESSAGES=en_US.UTF-8    
LC_PAPER=nl_NL.UTF-8       LC_NAME=C                 
    [9] LC_ADDRESS=C               LC_TELEPHONE=C             
LC_MEASUREMENT=nl_NL.UTF-8 LC_IDENTIFICATION=C       
   
   attached base packages:
   [1] stats     graphics  grDevices utils     datasets  methods   base     
   
   other attached packages:
   [1] arrow_11.0.0.2
   
   loaded via a namespace (and not attached):
    [1] tidyselect_1.2.0 bit_4.0.4        compiler_4.2.2   magrittr_2.0.3   
assertthat_0.2.1 R6_2.5.1        
    [7] cli_3.6.0        tools_4.2.2      glue_1.6.2       rstudioapi_0.14  
bit64_4.0.5      vctrs_0.5.1     
   [13] lifecycle_1.0.3  rlang_1.0.6      purrr_1.0.1  
    
   </details>
   
   <details>
    <summary>arrowInfo</summary>
    Arrow package version: 11.0.0.2
   
   Capabilities:
                  
   dataset    TRUE
   substrait FALSE
   parquet    TRUE
   json       TRUE
   s3         TRUE
   gcs        TRUE
   utf8proc   TRUE
   re2        TRUE
   snappy     TRUE
   gzip       TRUE
   brotli     TRUE
   zstd       TRUE
   lz4        TRUE
   lz4_frame  TRUE
   lzo       FALSE
   bz2        TRUE
   jemalloc   TRUE
   mimalloc   TRUE
   
   Memory:
                     
   Allocator jemalloc
   Current    0 bytes
   Max        0 bytes
   
   Runtime:
                           
   SIMD Level          avx2
   Detected SIMD Level avx2
   
   Build:
                              
   C++ Library Version  11.0.0
   C++ Compiler            GNU
   C++ Compiler Version 11.3.0
    </details>


-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: [email protected]

For queries about this service, please contact Infrastructure at:
[email protected]

Reply via email to