Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

sendtoClient导致的baseapp 崩溃 #1564

Open
luozhonghai opened this issue Jul 14, 2022 · 2 comments
Open

sendtoClient导致的baseapp 崩溃 #1564

luozhonghai opened this issue Jul 14, 2022 · 2 comments

Comments

@luozhonghai
Copy link

Core was generated by `/www/kbengine-2.4.5/kbe/bin/server//baseapp --cid=6129652375332859700 --gus=7'.
Program terminated with signal 11, Segmentation fault.
#0 0x00000000006fedcb in KBEngine::Proxy::sendToClient (this=, expectData=false) at proxy.cpp:806
806 Network::Channel* pChannel = clientEntityCall()->getChannel();
(gdb) where
#0 0x00000000006fedcb in KBEngine::Proxy::sendToClient (this=, expectData=false) at proxy.cpp:806
#1 0x00000000007a93e6 in triggerTimer (this=0x7fbb94fddb80) at /www/kbengine-2.4.5/kbe/src/lib/common/timer.inl:249
#2 KBEngine::TimersT::process (this=0x7fbb9ce18560, now=201955013290496333)
at /www/kbengine-2.4.5/kbe/src/lib/common/timer.inl:121
#3 0x00000000007a8cfb in KBEngine::Network::EventDispatcher::processTimers (this=this@entry=0x7ffc2c253ca0) at event_dispatcher.cpp:
#4 0x00000000007a8edb in KBEngine::Network::EventDispatcher::processOnce (this=this@entry=0x7ffc2c253ca0, shouldIdle=shouldIdle@entr
at event_dispatcher.cpp:197
#5 0x00000000007a8f2d in KBEngine::Network::EventDispatcher::processUntilBreak (this=0x7ffc2c253ca0) at event_dispatcher.cpp:184
#6 0x000000000071427d in KBEngine::ServerApp::run (this=this@entry=0x7ffc2c253f50) at serverapp.cpp:259
#7 0x0000000000699695 in KBEngine::Baseapp::run (this=this@entry=0x7ffc2c253f50) at baseapp.cpp:533
#8 0x00000000006fc875 in KBEngine::kbeMainTKBEngine::Baseapp (argc=, argv=,
componentType=componentType@entry=KBEngine::BASEAPP_TYPE, extlisteningTcpPort_min=, extlisteningTcpPort_max=20019,
extlisteningUdpPort_min=20005, extlisteningUdpPort_max=20009, extlisteningInterface=0x127607a KBEngine::g_serverConfig+3242 "",
intlisteningPort=intlisteningPort@entry=0, intlisteningInterface=0x1275f7a KBEngine::g_serverConfig+2986 "")
at /www/kbengine-2.4.5/kbe/src/lib/server/kbemain.h:218
#9 0x00000000006dd44a in kbeMain (argc=, argv=) at main.cpp:63
#10 0x00007fbb9d35a555 in __libc_start_main (main=0x66c230 <main(int, char**)>, argc=3, argv=0x7ffc2c2544c8, init=,
fini=, rtld_fini=, stack_end=0x7ffc2c2544b8) at ../csu/libc-start.c:266
#11 0x000000000067a874 in _start ()


image

@luozhonghai
Copy link
Author

image

@luozhonghai
Copy link
Author

luozhonghai commented Jul 14, 2022

感觉baseapp 太容易崩溃了, 看了代码

image

这行为啥会导致崩溃。上一行已经判断了ClientEntityCall是否有效了。

@luozhonghai luozhonghai changed the title baseapp 崩溃 sendtoClient导致的baseapp 崩溃 Jul 14, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant