Tmonster commented on issue #36907:
URL: https://github.com/apache/arrow/issues/36907#issuecomment-1655613659

   Doesn't seem like attaching a debugger helps in this case.
   
   ```
   ➜  ~ R -d lldb
   (lldb) target create "/Library/Frameworks/R.framework/Resources/bin/exec/R"
   Current executable set to 
'/Library/Frameworks/R.framework/Resources/bin/exec/R' (arm64).
   (lldb) run
   Process 88679 launched: 
'/Library/Frameworks/R.framework/Resources/bin/exec/R' (arm64)
   
   R version 4.3.0 (2023-04-21) -- "Already Tomorrow"
   Copyright (C) 2023 The R Foundation for Statistical Computing
   Platform: aarch64-apple-darwin20 (64-bit)
   
   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.
   
   [Previously saved workspace restored]
   
   p> pak::pkg_install("duckdb")
   ✔ Loading metadata database ... done
   ℹ No downloads are needed
   ✔ 1 pkg + 1 dep: kept 2 [3.5s]
   > library(duckdb)
   Loading required package: DBI
   > drv <- duckdb::duckdb()
   > con <- DBI::dbConnect(drv)
   > requireNamespace("arrow")
   Loading required namespace: arrow
   > quit()
   Save workspace image? [y/n/c]: n
   Warning messages:
   1: Connection is garbage-collected, use dbDisconnect() to avoid this.
   2: Database is garbage-collected, use dbDisconnect(con, shutdown=TRUE) or 
duckdb::duckdb_shutdown(drv) to avoid this.
   Error in .Internal(quit(save, status, runLast)) : bad value
   > quit()
   Save workspace image? [y/n/c]: n
   Process 88679 exited with status = 0 (0x00000000)
   (lldb) q
   ➜  ~
   ```
   
   I spent some time two weeks ago trying to figure out where the error message 
came from. After building R from source I pinpointed it down to this line 
   
https://github.com/wch/r-source/blob/e598dcaacf92ec8160ccb6d59b1f4cb7cb1f18fa/src/main/memory.c#L4280
   
   


-- 
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