You are viewing a plain text version of this content. The canonical link for it is here.
Posted to issues@arrow.apache.org by "warnes (via GitHub)" <gi...@apache.org> on 2025/07/05 18:29:53 UTC
[I] contcat_tables segfaults when used on record_batch [arrow]
warnes opened a new issue, #47001:
URL: https://github.com/apache/arrow/issues/47001
### Describe the bug, including details regarding any error messages, version, and platform.
This R script causes a segfault with the current version of the R arrow package:
``` R
library(arrow)
iris_table1 <- arrow_table(iris)
iris_table2 <- arrow_table(iris)
iris_record <- record_batch(iris)
. <- concat_tables(iris_table1, iris_table2)
. <- concat_tables(iris_table1, iris_record)
venv➜ gtrader git:(prod) ✗
```
For example:
```
$ R CMD BATCH /tmp/arrow_concat_tables_segfault.R
/Library/Frameworks/R.framework/Resources/bin/BATCH: line 60: 93251 Segmentation fault: 11 ${R_HOME}/bin/R -f ${in} ${opts} ${R_BATCH_OPTIONS} > ${out} 2>&1
$ cat arrow_concat_tables_segfault.Rout
R version 4.5.1 (2025-06-13) -- "Great Square Root"
Copyright (C) 2025 The R Foundation for Statistical Computing
Platform: x86_64-apple-darwin20
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.
- Project '~/src/mckwco/gtrader' loaded. [renv 1.1.4]
- One or more packages recorded in the lockfile are not installed.
- Use `renv::status()` for more details.
> library(arrow)
Attaching package: ‘arrow’
The following object is masked from ‘package:utils’:
timestamp
> iris_table1 <- arrow_table(iris)
> iris_table2 <- arrow_table(iris)
>
> iris_record <- record_batch(iris)
>
> . <- concat_tables(iris_table1, iris_table2)
> . <- concat_tables(iris_table1, iris_record)
*** caught segfault ***
address 0x0, cause 'unknown'
Traceback:
1: Table__ConcatenateTables(tables, unify_schemas)
2: concat_tables(iris_table1, iris_record)
An irrecoverable exception occurred. R is aborting now ...
```
# Session Info
```
> sessionInfo()
R version 4.5.1 (2025-06-13)
Platform: x86_64-apple-darwin20
Running under: macOS Sequoia 15.5
Matrix products: default
BLAS: /System/Library/Frameworks/Accelerate.framework/Versions/A/Frameworks/vecLib.framework/Versions/A/libBLAS.dylib
LAPACK: /Library/Frameworks/R.framework/Versions/4.5-x86_64/Resources/lib/libRlapack.dylib; LAPACK version 3.12.1
locale:
[1] en_US.UTF-8/en_US.UTF-8/en_US.UTF-8/C/en_US.UTF-8/en_US.UTF-8
time zone: America/New_York
tzcode source: internal
attached base packages:
[1] stats graphics grDevices datasets utils methods base
other attached packages:
[1] arrow_20.0.0.2
loaded via a namespace (and not attached):
[1] tidyselect_1.2.1 bit_4.6.0 compiler_4.5.1 magrittr_2.0.3 assertthat_0.2.1 R6_2.6.1 cli_3.6.5
[8] tools_4.5.1 glue_1.8.0 rstudioapi_0.17.1 bit64_4.6.0-1 vctrs_0.6.5 lifecycle_1.0.4 rlang_1.1.6
[15] renv_1.1.4 purrr_1.0.4
>
```
### Component(s)
R
--
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: issues-unsubscribe@arrow.apache.org.apache.org
For queries about this service, please contact Infrastructure at:
users@infra.apache.org
Re: [I] contcat_tables segfaults when used on record_batch [arrow]
Posted by "kou (via GitHub)" <gi...@apache.org>.
kou closed issue #47001: contcat_tables segfaults when used on record_batch
URL: https://github.com/apache/arrow/issues/47001
--
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: issues-unsubscribe@arrow.apache.org
For queries about this service, please contact Infrastructure at:
users@infra.apache.org