Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[R] Segmentation fault when instantiating arrow::table from data frame #15959

Closed
asfimport opened this issue Jan 30, 2019 · 4 comments
Closed

Comments

@asfimport
Copy link

The sample code from https://github.com/apache/arrow/tree/master/r leads to a segmentation fault

 

library(arrow, warn.conflicts = FALSE)
library(tibble)
library(reticulate)
tf <- tempfile()
(tib <- tibble(x = 1:10, y = rnorm(10)))
arrow::write_arrow(tib, tf)

*** caught segfault ***
address (nil), cause 'memory not mapped'

Traceback:
1: Table__from_dataframe(.data)
2: shared_ptr_is_null(xp)
3: shared_ptr(arrow::Table, Table__from_dataframe(.data))
4: table(x)
5: to_arrow.data.frame(x)
6: to_arrow(x)
7: write_arrow.fs_path(x, fs::path_abs(stream), ...)
8: write_arrow(x, fs::path_abs(stream), ...)
9: write_arrow.character(tib, tf)
10: arrow::write_arrow(tib, tf)
 

The same problem appears also when just calling arrow::table(tib):

arrow::table(tib)

*** caught segfault ***
address (nil), cause 'memory not mapped'

Traceback:
1: Table__from_dataframe(.data)
2: shared_ptr_is_null(xp)
3: shared_ptr(arrow::Table, Table__from_dataframe(.data))
4: arrow::table(tib)

Environment: R version 3.5.2 (2018-12-20)
Platform: x86_64-suse-linux-gnu (64-bit)
Reporter: Lutz

Note: This issue was originally created as ARROW-4433. Please see the migration documentation for further details.

@asfimport
Copy link
Author

Romain Francois / @romainfrancois:
I can't reproduce this problem

@asfimport
Copy link
Author

Neal Richardson / @nealrichardson:
[~Lutz] is this still an issue for you? If so, can you please provide more details on your setup (sessionInfo() for one, as well as how you installed Arrow)?

@asfimport
Copy link
Author

Romain Francois / @romainfrancois:
Can you still reproduce this problem [~Lutz] ?

@asfimport
Copy link
Author

Neal Richardson / @nealrichardson:
Closing; can reopen if we get feedback about reproducing.

@asfimport asfimport added this to the 0.14.0 milestone Jan 11, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

1 participant