Uploaded image for project: 'Apache Arrow'
  1. Apache Arrow
  2. ARROW-4433

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

    XMLWordPrintableJSON

    Details

    • Type: Bug
    • Status: Closed
    • Priority: Critical
    • Resolution: Cannot Reproduce
    • Affects Version/s: None
    • Fix Version/s: 0.14.0
    • Component/s: R
    • Labels:
      None
    • Environment:
      R version 3.5.2 (2018-12-20)
      Platform: x86_64-suse-linux-gnu (64-bit)

      Description

      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
      5: to_arrow.data.frame
      6: to_arrow
      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)

        Attachments

          Activity

            People

            • Assignee:
              Unassigned
              Reporter:
              Lutz Lutz
            • Votes:
              0 Vote for this issue
              Watchers:
              3 Start watching this issue

              Dates

              • Created:
                Updated:
                Resolved: