donatobarone commented on issue #38565:
URL: https://github.com/apache/arrow/issues/38565#issuecomment-1794606137

   Hi @kou this is related to this ticket in a way, I was trying to debug the 
issue myself, but @jdanap took over the investigation now. Considering I am not 
able to go any deeper, I can just say that the backtrace looks like this:
   
   ```bash
   libc++abi: terminating due to uncaught exception of type 
std::__1::bad_function_call: std::exception
   Process 95253 stopped
   * thread #36, stop reason = signal SIGABRT
       frame #0: 0x00000001a7b60744 libsystem_kernel.dylib`__pthread_kill + 8
   libsystem_kernel.dylib`:
   ->  0x1a7b60744 <+8>:  b.lo   0x1a7b60764               ; <+40>
       0x1a7b60748 <+12>: pacibsp 
       0x1a7b6074c <+16>: stp    x29, x30, [sp, #-0x10]!
       0x1a7b60750 <+20>: mov    x29, sp
   Target 0: (Python) stopped.
   (lldb) bt
   * thread #36, stop reason = signal SIGABRT
     * frame #0: 0x00000001a7b60744 libsystem_kernel.dylib`__pthread_kill + 8
       frame #1: 0x00000001a7b97c28 libsystem_pthread.dylib`pthread_kill + 288
       frame #2: 0x00000001a7aa5ae8 libsystem_c.dylib`abort + 180
       frame #3: 0x00000001a7b50b84 libc++abi.dylib`abort_message + 132
       frame #4: 0x00000001a7b403b4 
libc++abi.dylib`demangling_terminate_handler() + 320
       frame #5: 0x00000001a7816e68 libobjc.A.dylib`_objc_terminate() + 160
       frame #6: 0x00000001a7b4ff48 libc++abi.dylib`std::__terminate(void 
(*)()) + 16
       frame #7: 0x00000001a7b52d34 
libc++abi.dylib`__cxxabiv1::failed_throw(__cxxabiv1::__cxa_exception*) + 36
       frame #8: 0x00000001a7b52ce0 libc++abi.dylib`__cxa_throw + 140
       frame #9: 0x000000010570e9d8 
libarrow_python_flight.dylib`std::__1::__throw_bad_function_call[abi:v15006]() 
+ 56
       frame #10: 0x000000010570eee8 
libarrow_python_flight.dylib`std::__1::__function::__value_func<arrow::Status 
(_object*, arrow::flight::ClientAuthSender*, 
arrow::flight::ClientAuthReader*)>::operator()[abi:v15006](_object*&&, 
arrow::flight::ClientAuthSender*&&, arrow::flight::ClientAuthReader*&&) const + 
68
       frame #11: 0x000000010570ee98 
libarrow_python_flight.dylib`std::__1::function<arrow::Status (_object*, 
arrow::flight::ClientAuthSender*, 
arrow::flight::ClientAuthReader*)>::operator()(_object*, 
arrow::flight::ClientAuthSender*, arrow::flight::ClientAuthReader*) const + 68
       frame #12: 0x000000010570ed54 
libarrow_python_flight.dylib`arrow::py::flight::PyClientAuthHandler::Authenticate(arrow::flight::ClientAuthSender*,
 arrow::flight::ClientAuthReader*)::$_2::operator()() const + 80
       frame #13: 0x0000000105703c24 
libarrow_python_flight.dylib`decltype(fp()) 
arrow::py::SafeCallIntoPython<arrow::py::flight::PyClientAuthHandler::Authenticate(arrow::flight::ClientAuthSender*,
 
arrow::flight::ClientAuthReader*)::$_2>(arrow::py::flight::PyClientAuthHandler::Authenticate(arrow::flight::ClientAuthSender*,
 arrow::flight::ClientAuthReader*)::$_2&&) + 80
       frame #14: 0x0000000105703bc8 
libarrow_python_flight.dylib`arrow::py::flight::PyClientAuthHandler::Authenticate(arrow::flight::ClientAuthSender*,
 arrow::flight::ClientAuthReader*) + 64
       frame #15: 0x000000013d346fc8 
libarrow_flight.1400.dylib`arrow::flight::transport::grpc::(anonymous 
namespace)::GrpcClientImpl::AuthenticateInternal(this=0x0000000103534be0, 
rpc=0x0000000179c9e398)::ClientRpc&) at grpc_client.cc:1058:7
       frame #16: 0x000000013d332b60 
libarrow_flight.1400.dylib`arrow::flight::transport::grpc::(anonymous 
namespace)::GrpcClientImpl::Authenticate(this=0x0000000103534be0, 
options=0x0000000123ed3f00, auth_handler=<unavailable>) at grpc_client.cc:864:12
       frame #17: 0x000000013d2d9540 
libarrow_flight.1400.dylib`arrow::flight::FlightClient::Authenticate(this=0x0000000103542e30,
 options=0x0000000123ed3f00, auth_handler=nullptr) at client.cc:567:22
       frame #18: 0x0000000123e0c130 
_flight.cpython-311-darwin.so`__pyx_pf_7pyarrow_7_flight_12FlightClient_8authenticate(__pyx_obj_7pyarrow_7_flight_FlightClient*,
 _object*, __pyx_obj_7pyarrow_7_flight_FlightCallOptions*) + 1112
       frame #19: 0x0000000123e068bc 
_flight.cpython-311-darwin.so`__pyx_pw_7pyarrow_7_flight_12FlightClient_9authenticate(_object*,
 _object* const*, long, _object*) + 1152
       frame #20: 0x0000000123e7f488 
_flight.cpython-311-darwin.so`__Pyx_CyFunction_Vectorcall_FASTCALL_KEYWORDS(_object*,
 _object* const*, unsigned long, _object*) + 208
       frame #21: 0x000000010063fde0 Python`_PyEval_EvalFrameDefault + 40368
       frame #22: 0x0000000100644564 Python`_PyEval_Vector + 116
       frame #23: 0x0000000100641cdc Python`_PyEval_EvalFrameDefault + 48300
       frame #24: 0x0000000100644564 Python`_PyEval_Vector + 116
       frame #25: 0x0000000100641cdc Python`_PyEval_EvalFrameDefault + 48300
       frame #26: 0x0000000100644564 Python`_PyEval_Vector + 116
       frame #27: 0x000000010056a198 Python`method_vectorcall + 380
       frame #28: 0x00000001006f6ad4 Python`thread_run + 168
       frame #29: 0x00000001006981cc Python`pythread_wrapper + 48
       frame #30: 0x00000001a7b97fa8 libsystem_pthread.dylib`_pthread_start + 
148
   
   ```
   
   The issue is happening exactly as @jdanap mentioned, which should be here 
https://github.com/apache/arrow/blob/5d6192c7db5e13d72d79bc9ca470c544344ec52b/python/pyarrow/src/arrow/python/flight.cc#L68
   
   Let me know if there is anything else you need


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