Skip to content

解析域名失败, 出core #60

@songJack009

Description

@songJack009

操作系统版本: CentOS Linux 7
内核版本:3.10.0-957.27.2.el7.x86_64
gcc版本:gcc version 8.3.1 20190311
北极星节点连接拓扑: c++ sdk -> vip ->后端北极星服务
问题产生过程:C++ sdk服务启动时,解析域名失败, 出core。
问题堆栈:
Program terminated with signal 11, Segmentation fault.
#0 0x0000000000c6fc47 in TryLookup (address=...) at polaris/network/grpc/http2.cpp:425
425 polaris/network/grpc/http2.cpp: No such file or directory.
Missing separate debuginfos, use: debuginfo-install cyrus-sasl-lib-2.1.26-23.el7.x86_64 glibc-2.17-260.el7_6.6.x86_64 keyutils-libs-1.5.8-3.el7.x86_64 krb5-libs-1.15.1-50.el7.x86_64 libcom_err-1.42.9-19.el7.x86_64 libcurl-7.29.0-59.el7_9.1.x86_64 libgcc-4.8.5-36.el7_6.2.x86_64 libgomp-4.8.5-44.el7.x86_64 libidn-1.28-4.el7.x86_64 libselinux-2.5-14.1.el7.x86_64 libssh2-1.8.0-4.el7.x86_64 libstdc++-4.8.5-36.el7_6.2.x86_64 libuuid-2.23.2-59.el7_6.1.x86_64 nspr-4.25.0-2.el7_9.x86_64 nss-3.53.1-7.el7_9.x86_64 nss-softokn-freebl-3.53.1-6.el7_9.x86_64 nss-util-3.53.1-1.el7_9.x86_64 openldap-2.4.44-23.el7_9.x86_64 openssl-libs-1.0.2k-21.el7_9.x86_64 pcre-8.32-17.el7.x86_64 zlib-1.2.7-18.el7.x86_64
(gdb) bt
#0 0x0000000000c6fc47 in TryLookup (address="..local") at polaris/network/grpc/http2.cpp:425
#1 polaris::grpc::Http2Client::ConnectTo (this=this@entry=0x7fb63c210100, host="
..local", port=80) at polaris/network/grpc/http2.cpp:455
#2 0x0000000000c706b8 in polaris::grpc::Http2Client::Connect(std::string const&, int, unsigned long, std::function<void (polaris::ReturnCode)>&) (this=0x7fb63c210100, host=..., port=, timeout=200, callback=...)
at polaris/network/grpc/http2.cpp:578
#3 0x0000000000c2a35d in polaris::GrpcServerConnector::ServerSwitch (this=0x7fb6fb80bf80) at polaris/plugin/server_connector/grpc_server_connector.cpp:636
#4 0x0000000000c6efbc in polaris::grpc::Http2Client::ResetAllStream (this=0x7fb63c210200, status=status@entry=polaris::grpc::kGrpcStatusCanceled, message="cancel with error http response") at polaris/network/grpc/http2.cpp:934
#5 0x0000000000c6c59e in polaris::grpc::GrpcStream::OnHeaders (this=0x7fb63c200000, headers=0x7fb63c20c2e0, end_stream=) at polaris/network/grpc/client.cpp:94
#6 0x0000000000c6f8f8 in polaris::grpc::Http2Client::OnFrameReceived (this=0x7fb63c210200, frame=0x7fb63c214ba0) at polaris/network/grpc/http2.cpp:834
#7 0x0000000000c7d063 in session_call_on_frame_received ()
#8 0x0000000000c7dd19 in session_after_header_block_received ()
#9 0x0000000000c82187 in nghttp2_session_mem_recv ()
#10 0x0000000000c6f0a4 in polaris::grpc::Http2Client::OnRecvData (this=this@entry=0x7fb63c210200, data=data@entry=0x7fb63cffcbf0) at polaris/network/grpc/http2.cpp:550
#11 0x0000000000c704d0 in polaris::grpc::Http2Client::ReadHandler (this=0x7fb63c210200) at polaris/network/grpc/http2.cpp:664
#12 0x0000000000d177a1 in polaris::Reactor::RunEpollTask (this=this@entry=0x7fb6fb80bfc0, timeout=) at polaris/reactor/reactor.cpp:180
#13 0x0000000000d17bdb in polaris::Reactor::Run (this=this@entry=0x7fb6fb80bfc0) at polaris/reactor/reactor.cpp:207
#14 0x0000000000c2a502 in polaris::GrpcServerConnector::ThreadFunction (arg=0x7fb6fb80bf80) at polaris/plugin/server_connector/grpc_server_connector.cpp:250
#15 0x00007fb702877dd5 in start_thread () from /lib64/libpthread.so.0
#16 0x00007fb6ff91702d in clone () from /lib64/libc.so.6

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type
    No fields configured for issues without a type.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions