nbenn opened a new issue, #323: URL: https://github.com/apache/arrow-nanoarrow/issues/323
I'm currently unsure where to open this issue. I'm doing it here because a change like https://github.com/r-dbi/adbi/commit/6cdfcdfb4a0012c6f85a88ce4483b099989046cc where I disable my own conversion logic makes to issue go away. What this means exactly is still unclear though. I'll add more if I manage to get a better idea of what is happening. So far I have not been able to reproduce using just adbcdrivermanager/nanoarrow calls. (Semi) reproducible example (sometimes this does not trigger the bug in the first go, but has to be run 2-3 times): ```r con <- DBI::dbConnect(adbi::adbi("adbcsqlite"), uri = ":memory:") i <- 0 while (i < 10) { message(i <- i + 1) rs <- DBI::dbSendQuery(con, "SELECT $1 + 1.0 AS a") message("bind") DBI::dbBind(rs, list(c(0.5, 1.5, 2.5))) message("fetch") ret <- DBI::dbFetch(rs) message("clear") DBI::dbClearResult(rs) } #> 1 #> bind #> fetch #> clear #> removing 1 #> 2 #> bind #> fetch #> clear #> removing 1 #> 3 #> bind #> fetch #> clear #> removing 1 #> 4 #> bind #> fetch #> clear #> removing 1 #> 5 #> bind #> #> *** caught bus error *** #> address 0x13a8104e0, cause 'invalid alignment' #> #> Possible actions: #> 1: abort (with core dump, if enabled) #> 2: normal R exit #> 3: exit R without saving workspace #> 4: exit R saving workspace ``` From lldb I get ``` (lldb) bt * thread #1, queue = 'com.apple.main-thread', stop reason = EXC_BAD_ACCESS (code=2, address=0x15580fce0) * frame #0: 0x000000015580fce0 frame #1: 0x00000001035b225c adbcsqlite.so`StatementReaderRelease + 92 frame #2: 0x000000010340de6c nanoarrow.so`finalize_array_stream_xptr + 44 frame #3: 0x0000000100938440 libR.dylib`R_RunWeakRefFinalizer(w=<unavailable>) at memory.c:1498:2 [opt] frame #4: 0x0000000100938980 libR.dylib`RunFinalizers at memory.c:1565:3 [opt] ... ``` Relevant session Info bits: ``` ─ Session info ───────────────────────────────────────────────────────────────────────── setting value version R version 4.2.2 (2022-10-31) os macOS 14.1.1 system aarch64, darwin20 ui X11 language (EN) collate en_US.UTF-8 ctype en_US.UTF-8 tz Europe/Zurich date 2023-11-24 pandoc 3.1 @ /opt/homebrew/bin/ (via rmarkdown) ─ Packages ───────────────────────────────────────────────────────────────────────────── package * version date (UTC) lib source adbcdrivermanager 0.8.0 2023-11-10 [1] CRAN (R 4.2.3) adbcsqlite 0.7.0.9000 2023-11-08 [1] local adbi 0.0.0.9016 2023-11-24 [1] Github (r-dbi/adbi@d45d3fc) ... nanoarrow 0.3.0 2023-09-29 [1] CRAN (R 4.2.0) ... ``` -- 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]
