paleolimbot commented on PR #14250:
URL: https://github.com/apache/arrow/pull/14250#issuecomment-1323898764
> can you tell me how to run the reproducer code exactly? :-)
What I did was:
1. Checkout your branch
2. Build + install the C++ library. The R package needs a folder with
something/include and something/lib where the ARROW_HOME environment variable
is set to "something".
3. You'll need R (`apt-get install r-base` is an old version but works) +
the package deps. The easiest way to get them is to install the version of
arrow from CRAN before installing the one for your branch (`R -e
'install.packages("arrow", repos = "https://cloud.r-project.org")'`. This
Dockerfile might be helpful:
https://gist.github.com/paleolimbot/be77218201bdbd20353c084c74254824
4. `cd path/to/arrow/r && R CMD INSTALL .`
5. Open an interactive terminal, type in `R`, copy/paste this:
<details>
```r
library(arrow, warn.conflicts = FALSE)
tf <- tempfile()
write.csv(mtcars, tf, row.names = FALSE)
read_csv_arrow(tf)
parallel::mclapply(1:2, function(...) {
read_csv_arrow(tf)
})
```
</details>
Here's maybe some more raw output from lldb:
<details>
Console is in 'commands' mode, prefix expressions with '?'.
Attached to process 81057
Stop reason: signal SIGSTOP
t 1
bt
thread #2
frame #0: 0x00000001b114b634 libsystem_kernel.dylib`read + 8
frame #1: 0x00000002807c9be4
libarrow.1100.0.0.dylib`arrow::internal::(anonymous
namespace)::SelfPipeImpl::Wait(this=0x00006000013e15a8) at io_util.cc:1268:24
frame #2: 0x00000002807682f4 libarrow.1100.0.0.dylib`arrow::(anonymous
namespace)::SignalStopState::ReceiveSignals(self_pipe=std::__1::shared_ptr<arrow::internal::SelfPipe>::element_type
@ 0x00006000013e15a8 strong=3 weak=3) at cancel.cc:246:39
frame #3: 0x0000000280769294
libarrow.1100.0.0.dylib`decltype(__f=0x0000000152e82008,
__args=nullptr)(static_cast<std::__1::shared_ptr<arrow::internal::SelfPipe>>(fp0)))
std::__1::__invoke<void (*)(std::__1::shared_ptr<arrow::internal::SelfPipe>),
std::__1::shared_ptr<arrow::internal::SelfPipe>>(void
(*&&)(std::__1::shared_ptr<arrow::internal::SelfPipe>),
std::__1::shared_ptr<arrow::internal::SelfPipe>&&) at type_traits:3918:1
frame #4: 0x000000028076920c libarrow.1100.0.0.dylib`void
std::__1::__thread_execute<std::__1::unique_ptr<std::__1::__thread_struct,
std::__1::default_delete<std::__1::__thread_struct>>, void
(*)(std::__1::shared_ptr<arrow::internal::SelfPipe>),
std::__1::shared_ptr<arrow::internal::SelfPipe>, 2ul>(__t=size=3,
(null)=__tuple_indices<2> @
0x000000016c132f7f)(std::__1::shared_ptr<arrow::internal::SelfPipe>),
std::__1::shared_ptr<arrow::internal::SelfPipe>>&,
std::__1::__tuple_indices<2ul>) at thread:287:5
frame #5: 0x00000002807688ac libarrow.1100.0.0.dylib`void*
std::__1::__thread_proxy<std::__1::tuple<std::__1::unique_ptr<std::__1::__thread_struct,
std::__1::default_delete<std::__1::__thread_struct>>, void
(*)(std::__1::shared_ptr<arrow::internal::SelfPipe>),
std::__1::shared_ptr<arrow::internal::SelfPipe>>>(__vp=0x0000000152e82000) at
thread:298:5
frame #6: 0x00000001b118826c libsystem_pthread.dylib`_pthread_start + 148
t 2
bt
* thread #2
* frame #0: 0x00000001b114b634 libsystem_kernel.dylib`read + 8
frame #1: 0x00000002807c9be4
libarrow.1100.0.0.dylib`arrow::internal::(anonymous
namespace)::SelfPipeImpl::Wait(this=0x00006000013e15a8) at io_util.cc:1268:24
frame #2: 0x00000002807682f4 libarrow.1100.0.0.dylib`arrow::(anonymous
namespace)::SignalStopState::ReceiveSignals(self_pipe=std::__1::shared_ptr<arrow::internal::SelfPipe>::element_type
@ 0x00006000013e15a8 strong=3 weak=3) at cancel.cc:246:39
frame #3: 0x0000000280769294
libarrow.1100.0.0.dylib`decltype(__f=0x0000000152e82008,
__args=nullptr)(static_cast<std::__1::shared_ptr<arrow::internal::SelfPipe>>(fp0)))
std::__1::__invoke<void (*)(std::__1::shared_ptr<arrow::internal::SelfPipe>),
std::__1::shared_ptr<arrow::internal::SelfPipe>>(void
(*&&)(std::__1::shared_ptr<arrow::internal::SelfPipe>),
std::__1::shared_ptr<arrow::internal::SelfPipe>&&) at type_traits:3918:1
frame #4: 0x000000028076920c libarrow.1100.0.0.dylib`void
std::__1::__thread_execute<std::__1::unique_ptr<std::__1::__thread_struct,
std::__1::default_delete<std::__1::__thread_struct>>, void
(*)(std::__1::shared_ptr<arrow::internal::SelfPipe>),
std::__1::shared_ptr<arrow::internal::SelfPipe>, 2ul>(__t=size=3,
(null)=__tuple_indices<2> @
0x000000016c132f7f)(std::__1::shared_ptr<arrow::internal::SelfPipe>),
std::__1::shared_ptr<arrow::internal::SelfPipe>>&,
std::__1::__tuple_indices<2ul>) at thread:287:5
frame #5: 0x00000002807688ac libarrow.1100.0.0.dylib`void*
std::__1::__thread_proxy<std::__1::tuple<std::__1::unique_ptr<std::__1::__thread_struct,
std::__1::default_delete<std::__1::__thread_struct>>, void
(*)(std::__1::shared_ptr<arrow::internal::SelfPipe>),
std::__1::shared_ptr<arrow::internal::SelfPipe>>>(__vp=0x0000000152e82000) at
thread:298:5
frame #6: 0x00000001b118826c libsystem_pthread.dylib`_pthread_start + 148
</details>
--
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]