I am randomly getting segfault when using write_parquet() with the latest release (the same code works well with v 10.0.1).
*** caught segfault ***
address 0x18, cause 'memory not mapped'
Traceback:
1: Table__from_dots(dots, schema, option_use_threads())
2: Table$create(x, schema = schema)
3: as_arrow_table.data.frame(x)
4: as_arrow_table(x)
5: doTryCatch(return(expr), name, parentenv, handler)
6: tryCatchOne(expr, names, parentenv, handlers[[1L]])
7: tryCatchList(expr, classes, parentenv, handlers)
8: tryCatch(as_arrow_table(x), arrow_no_method_as_arrow_table = function(e) { abort("Object must be coercible to an Arrow Table using `as_arrow_table()`", parent = e, call = caller_env(2))})
9: as_writable_table(x)
10: write_parquet(bioargo_dark_corrected, here("data", "raw", "bioargo", "bioargo_correction_c.parquet"))
11: eval(ei, envir)
12: eval(ei, envir)
13: withVisible(eval(ei, envir))
14: source(here("R", "001c_bioargo_chla_dark_correction.R"))
Possible actions:
1: abort (with core dump, if enabled)
2: normal R exit
3: exit R without saving workspace
4: exit R saving workspace
Thread 1 "R" received signal SIGSEGV, Segmentation fault.
0x00007fffdccb0956 in std::__shared_ptr<arrow::DataType, (__gnu_cxx::_Lock_policy)2>::__shared_ptr (this=0x7ffffffc4d50) at /usr/include/c++/12/bits/shared_ptr_base.h:1522
1522 __shared_ptr(const __shared_ptr&) noexcept = default;
Describe the bug, including details regarding any error messages, version, and platform.
I am randomly getting segfault when using write_parquet() with the latest release (the same code works well with v 10.0.1).
*** caught segfault *** address 0x18, cause 'memory not mapped' Traceback: 1: Table__from_dots(dots, schema, option_use_threads()) 2: Table$create(x, schema = schema) 3: as_arrow_table.data.frame(x) 4: as_arrow_table(x) 5: doTryCatch(return(expr), name, parentenv, handler) 6: tryCatchOne(expr, names, parentenv, handlers[[1L]]) 7: tryCatchList(expr, classes, parentenv, handlers) 8: tryCatch(as_arrow_table(x), arrow_no_method_as_arrow_table = function(e) { abort("Object must be coercible to an Arrow Table using `as_arrow_table()`", parent = e, call = caller_env(2))}) 9: as_writable_table(x) 10: write_parquet(bioargo_dark_corrected, here("data", "raw", "bioargo", "bioargo_correction_c.parquet")) 11: eval(ei, envir) 12: eval(ei, envir) 13: withVisible(eval(ei, envir)) 14: source(here("R", "001c_bioargo_chla_dark_correction.R")) Possible actions: 1: abort (with core dump, if enabled) 2: normal R exit 3: exit R without saving workspace 4: exit R saving workspaceFollowing this (https://arrow.apache.org/docs/7.0/r/articles/developers/debugging.html), here is the exact line when the code crashes.
Component(s)
R