llama90 commented on issue #39225:
URL: https://github.com/apache/arrow/issues/39225#issuecomment-1874121962
Yes!
```
DEBUGGER=lldb BUNDLE_GEMFILE=../c_glib/Gemfile bundle exec
../c_glib/test/run-test.sh -n test_cast
ninja: no work to do.
(lldb) target create "/Users/lama/.rbenv/versions/3.3.0/bin/ruby"
Current executable set to '/Users/lama/.rbenv/versions/3.3.0/bin/ruby'
(arm64).
(lldb) settings set -- target.run-args
"/Users/lama/workspace/arrow-latest/c_glib/test/run-test.rb" "-n" "test_cast"
(lldb) env
DYLD_LIBRARY_PATH=/Users/lama/workspace/arrow-latest/c_glib.build/parquet-glib:/Users/lama/workspace/arrow-latest/c_glib.build/gandiva-glib:/Users/lama/workspace/arrow-latest/c_glib.build/arrow-flight-sql-glib:/Users/lama/workspace/arrow-latest/c_glib.build/arrow-flight-glib:/Users/lama/workspace/arrow-latest/c_glib.build/arrow-dataset-glib:/Users/lama/workspace/arrow-latest/c_glib.build/arrow-glib:
(lldb) r
Process 53265 launched: '/Users/lama/.rbenv/versions/3.3.0/bin/ruby' (arm64)
Loaded suite test
Started
libc++abi: terminating due to uncaught exception of type std::bad_cast:
std::bad_cast
Process 53265 stopped
* thread #1, queue = 'com.apple.main-thread', stop reason = signal SIGABRT
frame #0: 0x00000001823ee0dc libsystem_kernel.dylib`__pthread_kill + 8
libsystem_kernel.dylib`:
-> 0x1823ee0dc <+8>: b.lo 0x1823ee0fc ; <+40>
0x1823ee0e0 <+12>: pacibsp
0x1823ee0e4 <+16>: stp x29, x30, [sp, #-0x10]!
0x1823ee0e8 <+20>: mov x29, sp
Target 0: (ruby) stopped.
(lldb) bt
* thread #1, queue = 'com.apple.main-thread', stop reason = signal SIGABRT
* frame #0: 0x00000001823ee0dc libsystem_kernel.dylib`__pthread_kill + 8
frame #1: 0x0000000182425cc0 libsystem_pthread.dylib`pthread_kill + 288
frame #2: 0x0000000182331a40 libsystem_c.dylib`abort + 180
frame #3: 0x00000001823dd070 libc++abi.dylib`abort_message + 132
frame #4: 0x00000001823cd110
libc++abi.dylib`demangling_terminate_handler() + 320
frame #5: 0x000000018207399c libobjc.A.dylib`_objc_terminate() + 160
frame #6: 0x00000001823dc434 libc++abi.dylib`std::__terminate(void
(*)()) + 16
frame #7: 0x00000001823df520
libc++abi.dylib`__cxxabiv1::failed_throw(__cxxabiv1::__cxa_exception*) + 88
frame #8: 0x00000001823df464 libc++abi.dylib`__cxa_throw + 308
frame #9: 0x00000001823ccf68 libc++abi.dylib`__cxa_bad_cast + 52
frame #10: 0x000000017013ab80
libarrow.1500.0.0.dylib`arrow::BaseBinaryScalar const&
arrow::internal::checked_cast<arrow::BaseBinaryScalar const&, arrow::Scalar
const&>(value=0x00006000025fd0a8) at checked_cast.h:38:10
frame #11: 0x0000000170139950
libarrow.1500.0.0.dylib`arrow::ArraySpan::FillFromScalar(this=0x0000600003413960,
value=0x00006000025fd0a8) at data.cc:372:26
frame #12: 0x0000000170a3c300
libarrow.1500.0.0.dylib`arrow::compute::detail::(anonymous
namespace)::PromoteExecSpanScalars(span=0x000000016fdfbe10) at exec.cc:326:20
frame #13: 0x0000000170a3bf1c
libarrow.1500.0.0.dylib`arrow::compute::detail::ExecSpanIterator::Next(this=0x0000600003db5988,
span=0x000000016fdfbe10) at exec.cc:442:7
frame #14: 0x0000000170a468fc
libarrow.1500.0.0.dylib`arrow::compute::detail::(anonymous
namespace)::ScalarExecutor::ExecuteSpans(this=0x0000600003db5930,
listener=0x000000016fdfc240) at exec.cc:856:29
frame #15: 0x0000000170a45490
libarrow.1500.0.0.dylib`arrow::compute::detail::(anonymous
namespace)::ScalarExecutor::Execute(this=0x0000600003db5930,
batch=0x000000016fdfc1f8, listener=0x000000016fdfc240) at exec.cc:808:14
frame #16: 0x0000000170a90e5c
libarrow.1500.0.0.dylib`arrow::compute::detail::FunctionExecutorImpl::Execute(this=0x000060000280a818,
args=size=1, passed_length=-1) at function.cc:277:5
frame #17: 0x0000000170a87040
libarrow.1500.0.0.dylib`arrow::compute::(anonymous
namespace)::ExecuteInternal(func=0x00006000039d5788, args=size=1,
passed_length=-1, options=0x000000016fdfcb28, ctx=0x00000001737ed5e0) at
function.cc:342:21
frame #18: 0x0000000170a86c84
libarrow.1500.0.0.dylib`arrow::compute::Function::Execute(this=0x00006000039d5788,
args=size=1, options=0x000000016fdfcb28, ctx=0x00000001737ed5e0) const at
function.cc:349:10
frame #19: 0x0000000170a325b4
libarrow.1500.0.0.dylib`arrow::compute::internal::(anonymous
namespace)::CastMetaFunction::ExecuteImpl(this=0x000060000339ae98, args=size=1,
options=0x000000016fdfcb28, ctx=0x00000001737ed5e0) const at cast.cc:124:23
frame #20: 0x0000000170a889a8
libarrow.1500.0.0.dylib`arrow::compute::MetaFunction::Execute(this=0x000060000339ae98,
args=size=1, options=0x000000016fdfcb28, ctx=0x00000001737ed5e0) const at
function.cc:482:10
frame #21: 0x0000000170a3d954
libarrow.1500.0.0.dylib`arrow::compute::CallFunction(func_name="cast",
args=size=1, options=0x000000016fdfcb28, ctx=0x00000001737ed5e0) at
exec.cc:1369:16
frame #22: 0x0000000170a27c1c
libarrow.1500.0.0.dylib`arrow::compute::Cast(value=0x000000016fdfcc88,
options=0x000000016fdfcb28, ctx=0x0000000000000000) at cast.cc:239:10
frame #23: 0x0000000170a27dc8
libarrow.1500.0.0.dylib`arrow::compute::Cast(value=0x000000016fdfcc88,
to_type=0x000000016fdfcc70, options=0x000000016fdfcc30, ctx=0x0000000000000000)
at cast.cc:246:10
frame #24: 0x000000011d517348
libarrow-glib.1500.dylib`::garrow_scalar_cast(scalar=0x0000600002668c60,
data_type=0x00006000009831f0, options=0x0000000000000000,
error=0x000000016fdfcf10) at scalar.cpp:390:37
frame #25: 0x0000000192f9a050 libffi.dylib`ffi_call_SYSV + 80
frame #26: 0x0000000192fa2adc libffi.dylib`ffi_call_int + 1208
frame #27: 0x000000011b871744
libgirepository-1.0.1.dylib`g_callable_info_invoke + 860
frame #28: 0x000000011b872a68
libgirepository-1.0.1.dylib`g_function_info_invoke + 252
frame #29: 0x000000011b7c2984
gobject_introspection.bundle`rb_gi_function_info_invoke_raw + 212
frame #30: 0x000000011b7c4244 gobject_introspection.bundle`rg_invoke + 64
frame #31: 0x0000000100b84dfc
libruby.3.3.dylib`vm_call_cfunc_with_frame_ + 240
frame #32: 0x0000000100b6ab64 libruby.3.3.dylib`vm_exec_core + 7688
frame #33: 0x0000000100b67d28 libruby.3.3.dylib`rb_vm_exec + 320
frame #34: 0x0000000100b8c4f4 libruby.3.3.dylib`invoke_block_from_c_bh +
872
frame #35: 0x0000000100b8bc64 libruby.3.3.dylib`catch_i + 108
frame #36: 0x0000000100b77df4 libruby.3.3.dylib`vm_catch_protect + 232
frame #37: 0x0000000100b78678 libruby.3.3.dylib`rb_f_catch + 112
frame #38: 0x0000000100b84dfc
libruby.3.3.dylib`vm_call_cfunc_with_frame_ + 240
frame #39: 0x0000000100b6ab64 libruby.3.3.dylib`vm_exec_core + 7688
frame #40: 0x0000000100b67d28 libruby.3.3.dylib`rb_vm_exec + 320
frame #41: 0x0000000100b8c4f4 libruby.3.3.dylib`invoke_block_from_c_bh +
872
frame #42: 0x0000000100b8bc64 libruby.3.3.dylib`catch_i + 108
frame #43: 0x0000000100b77df4 libruby.3.3.dylib`vm_catch_protect + 232
frame #44: 0x0000000100b78678 libruby.3.3.dylib`rb_f_catch + 112
frame #45: 0x0000000100b84dfc
libruby.3.3.dylib`vm_call_cfunc_with_frame_ + 240
frame #46: 0x0000000100b6ab64 libruby.3.3.dylib`vm_exec_core + 7688
frame #47: 0x0000000100b67dec libruby.3.3.dylib`rb_vm_exec + 516
frame #48: 0x00000001009e0830 libruby.3.3.dylib`rb_ec_exec_node + 160
frame #49: 0x00000001009e0728 libruby.3.3.dylib`ruby_run_node + 96
frame #50: 0x0000000100003f34 ruby`main + 104
frame #51: 0x00000001820a50e0 dyld`start + 2360
```
--
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]