I have compiled gRPC for QNX ARM. Using this binaries I am trying to start 
the gRPC server on QNX 7.0.


But the executable is crashed. I tried to take the backtrace using GDB. 
Here is the log-

#0  0x0000001c6c6c7fe4 in grpc_combiner_continue_exec_ctx () at 
/local/mnt/workspace/temp/grpc_for_qnx/src/core/lib/iomgr/combiner.cc:184
#1  0x0000001c6c6702a8 in grpc_core::ExecCtx::Flush 
(this=this@entry=0x3607c0e890) at 
/local/mnt/workspace/temp/grpc_for_qnx/src/core/lib/iomgr/exec_ctx.cc:156
#2  0x0000001f137baf80 in grpc_core::ExecCtx::~ExecCtx (this=0x3607c0e890, 
__in_chrg=<optimized out>) at 
/local/mnt/workspace/temp/grpc_for_qnx/src/core/lib/iomgr/exec_ctx.h:124
#3  grpc_server_add_insecure_http2_port (server=<optimized out>, 
addr=0x178cee0111 "0.0.0.0:62472")
    at 
/local/mnt/workspace/temp/grpc_for_qnx/src/core/ext/transport/chttp2/server/insecure/server_chttp2.cc:31
#4  0x0000001f137a2658 in grpc_impl::Server::AddListeningPort 
(this=0x178cf06bd0, addr=..., creds=0x178ceae6d0)
    at /local/mnt/workspace/temp/grpc_for_qnx/src/cpp/server/server_cc.cc:1199
#5  0x0000001f137a082c in grpc_impl::ServerBuilder::BuildAndStart 
(this=this@entry=0x3607c0ec88) at 
/local/mnt/workspace/temp/grpc_for_qnx/src/cpp/server/server_builder.cc:411
#6  0x0000001f13796874 in qaic::QMonitorTaskStarter::startGRPCServerHelper 
(this=0x3607b8daf0, config=..., readyStatus=..., asyncTestSupport=false)
    at 
/local/mnt/workspace/qnx/runtime/lib/qmonitor/src/QMonitorTaskStarter.cpp:89
#7  0x0000001f1379a9b8 in std::__1::__invoke<void 
(qaic::QMonitorTaskStarter::*)(qaic::QMonitorGRPCTaskConfig const&, 
std::__1::promise<QStatus>, bool), qaic::QMonitorTaskStarter*, 
qaic::QMonitorGRPCTaskConfig, std::__1::promise<QStatus>, bool, void>(void 
(qaic::QMonitorTaskStarter::*&&)(qaic::QMonitorGRPCTaskConfig const&, 
std::__1::promise<QStatus>, bool), qaic::QMonitorTaskStarter*&&, 
qaic::QMonitorGRPCTaskConfig&&, std::__1::promise<QStatus>&&, bool&&) 
(__a0=<optimized out>, __f=<optimized out>)
    at 
/local/mnt/workspace/prebuilt_QNX700/target/qnx7/usr/include/c++/v1/__functional_base:382
#8  std::__1::__thread_execute<void 
(qaic::QMonitorTaskStarter::*)(qaic::QMonitorGRPCTaskConfig const&, 
std::__1::promise<QStatus>, bool), qaic::QMonitorTaskStarter*, 
qaic::QMonitorGRPCTaskConfig, std::__1::promise<QStatus>, bool, 1ul, 2ul, 3ul, 
4ul> (__t=...)
    at 
/local/mnt/workspace/prebuilt_QNX700/target/qnx7/usr/include/c++/v1/thread:337
#9  std::__1::__thread_proxy<std::__1::tuple<void 
(qaic::QMonitorTaskStarter::*)(qaic::QMonitorGRPCTaskConfig const&, 
std::__1::promise<QStatus>, bool), qaic::QMonitorTaskStarter*, 
qaic::QMonitorGRPCTaskConfig, std::__1::promise<QStatus>, bool> > 
(__vp=0x178cee0490)
    at 
/local/mnt/workspace/prebuilt_QNX700/target/qnx7/usr/include/c++/v1/thread:347
#10 0x0000001c6c0334e0 in pthread_attr_setdetachstate ()
   from 
/local/mnt/workspace/prebuilt_QNX700/target/qnx7/aarch64le/usr/lib/ldqnx-64.so.2
Backtrace stopped: previous frame identical to this frame (corrupt stack?)


I tried to get the logs, after enabling the DEBUG, and TRACE=all. Here is 
the logs 
<https://github.com/grpc/grpc/files/5030185/grpc_server_log_github.txt>


Does anyone has any clue, what should be the problem. Since I am newbie to 
gRPC, I dont have any idea on this.

-- 
You received this message because you are subscribed to the Google Groups 
"grpc.io" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to [email protected].
To view this discussion on the web visit 
https://groups.google.com/d/msgid/grpc-io/20bec544-f594-4604-a2e8-ee20df70d7f6o%40googlegroups.com.

Reply via email to