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

moveToPoint的使用导致服务器崩溃(KBEN-142) #2

Closed
imgamer opened this issue Jan 16, 2019 · 1 comment
Closed

moveToPoint的使用导致服务器崩溃(KBEN-142) #2

imgamer opened this issue Jan 16, 2019 · 1 comment

Comments

@imgamer
Copy link
Owner

imgamer commented Jan 16, 2019

master版本:SHA-1: f1d08f9
使用release模式发布,调用moveToPoint参数传入错误导致服务器崩溃

重现方式:
windows下使用模式release发布的kbe cellapp,在moveToPoint的在moveVertically(贴地)参数传入一个python列表,时会崩溃

使用debug发布的cellapp则报出如下错误:
TypeError: KBEngine::Entity::__py_pyMoveToPoint: args(float, float, PyObject_ptr, int32, int32, ���() is error!

@imgamer
Copy link
Owner Author

imgamer commented Jan 16, 2019

@chenweilan
崩溃原因已查出:格式化错误信息时少输入了一个参数,导致最后一个%s没有对应的数据。这种情况下仍然会从数据列表中往后读,如果后续的内存有内容就不会崩溃,只会输出乱码,否则报内存读取冲突,进程崩溃。
之所以debug版本不会崩,猜测是因为debug版本加入了很多调试数据,使得读到的内存一般都有内容。

fixed at da7fa8b

@imgamer imgamer closed this as completed Jan 16, 2019
kebiao added a commit to kbengine/kbengine that referenced this issue Jan 16, 2019
kebiao added a commit to kbengine/kbengine that referenced this issue Jan 16, 2019
imgamer pushed a commit that referenced this issue Jan 24, 2019
imgamer added a commit that referenced this issue Mar 1, 2019
#0  0x00007f5d3681a4f5 in raise () from /lib64/libc.so.6
#1  0x00007f5d3681bcd5 in abort () from /lib64/libc.so.6
#2  0x00007f5d3681366e in __assert_fail_base () from /lib64/libc.so.6
#3  0x00007f5d36813730 in __assert_fail () from /lib64/libc.so.6
#4  0x00000000007c1de1 in decRef (this=0x11010c0) at /home/kbe/kbengine/kbe/src/lib/common/refcountable.h:65
#5  decrementReferenceCount<KBEngine::NavigationHandle> (this=0x11010c0) at /home/kbe/kbengine/kbe/src/lib/common/smartpointer.h:37
#6  ~ConstSmartPointer (this=0x11010c0) at /home/kbe/kbengine/kbe/src/lib/common/smartpointer.h:68
#7  ~SmartPointer (this=0x11010c0) at /home/kbe/kbengine/kbe/src/lib/common/smartpointer.h:214
#8  ~pair (this=0x11010c0) at /usr/lib/gcc/x86_64-redhat-linux/4.4.7/../../../../include/c  /4.4.7/bits/stl_pair.h:68
kbengine#9  destroy (this=0x11010c0) at /usr/lib/gcc/x86_64-redhat-linux/4.4.7/../../../../include/c  /4.4.7/ext/new_allocator.h:115
#10 _M_deallocate_node (this=0x11010c0) at /usr/lib/gcc/x86_64-redhat-linux/4.4.7/../../../../include/c  /4.4.7/tr1_impl/hashtable:509
kbengine#11 _M_deallocate_nodes (this=0x11010c0) at /usr/lib/gcc/x86_64-redhat-linux/4.4.7/../../../../include/c  /4.4.7/tr1_impl/hashtable:530
kbengine#12 clear (this=0x11010c0) at /usr/lib/gcc/x86_64-redhat-linux/4.4.7/../../../../include/c  /4.4.7/tr1_impl/hashtable:1209
kbengine#13 KBEngine::Navigation::finalise (this=0x11010c0) at navigation.cpp:49
kbengine#14 0x0000000000656591 in KBEngine::Cellapp::finalise (this=0x7ffdc0afb260) at cellapp.cpp:327
kbengine#15 0x00000000006d90a5 in KBEngine::kbeMainT<KBEngine::Cellapp> (argc=<value optimized out>, argv=<value optimized out>, componentType=KBEngine::CELLAPP_TYPE, extlisteningPort_min=17174880, extlisteningPort_max=12649664,
    extlisteningInterface=0x7ffdc0afbd01 "\223@6]\177", intlisteningPort=0, intlisteningInterface=0x10fc136 "") at /home/kbe/kbengine/kbe/src/lib/server/kbemain.h:196
kbengine#16 0x00000000006c394f in kbeMain (argc=<value optimized out>, argv=<value optimized out>) at main.cpp:79
kbengine#17 0x00000000006c3ae1 in main (argc=3, argv=0x7ffdc0afbfd8) at main.cpp:76
imgamer pushed a commit that referenced this issue Mar 18, 2019
imgamer pushed a commit that referenced this issue Jun 25, 2019
imgamer added a commit that referenced this issue Jun 25, 2019
#0  0x00007f5d3681a4f5 in raise () from /lib64/libc.so.6
#1  0x00007f5d3681bcd5 in abort () from /lib64/libc.so.6
#2  0x00007f5d3681366e in __assert_fail_base () from /lib64/libc.so.6
#3  0x00007f5d36813730 in __assert_fail () from /lib64/libc.so.6
#4  0x00000000007c1de1 in decRef (this=0x11010c0) at /home/kbe/kbengine/kbe/src/lib/common/refcountable.h:65
#5  decrementReferenceCount<KBEngine::NavigationHandle> (this=0x11010c0) at /home/kbe/kbengine/kbe/src/lib/common/smartpointer.h:37
#6  ~ConstSmartPointer (this=0x11010c0) at /home/kbe/kbengine/kbe/src/lib/common/smartpointer.h:68
#7  ~SmartPointer (this=0x11010c0) at /home/kbe/kbengine/kbe/src/lib/common/smartpointer.h:214
#8  ~pair (this=0x11010c0) at /usr/lib/gcc/x86_64-redhat-linux/4.4.7/../../../../include/c  /4.4.7/bits/stl_pair.h:68
kbengine#9  destroy (this=0x11010c0) at /usr/lib/gcc/x86_64-redhat-linux/4.4.7/../../../../include/c  /4.4.7/ext/new_allocator.h:115
#10 _M_deallocate_node (this=0x11010c0) at /usr/lib/gcc/x86_64-redhat-linux/4.4.7/../../../../include/c  /4.4.7/tr1_impl/hashtable:509
kbengine#11 _M_deallocate_nodes (this=0x11010c0) at /usr/lib/gcc/x86_64-redhat-linux/4.4.7/../../../../include/c  /4.4.7/tr1_impl/hashtable:530
kbengine#12 clear (this=0x11010c0) at /usr/lib/gcc/x86_64-redhat-linux/4.4.7/../../../../include/c  /4.4.7/tr1_impl/hashtable:1209
kbengine#13 KBEngine::Navigation::finalise (this=0x11010c0) at navigation.cpp:49
kbengine#14 0x0000000000656591 in KBEngine::Cellapp::finalise (this=0x7ffdc0afb260) at cellapp.cpp:327
kbengine#15 0x00000000006d90a5 in KBEngine::kbeMainT<KBEngine::Cellapp> (argc=<value optimized out>, argv=<value optimized out>, componentType=KBEngine::CELLAPP_TYPE, extlisteningPort_min=17174880, extlisteningPort_max=12649664,
    extlisteningInterface=0x7ffdc0afbd01 "\223@6]\177", intlisteningPort=0, intlisteningInterface=0x10fc136 "") at /home/kbe/kbengine/kbe/src/lib/server/kbemain.h:196
kbengine#16 0x00000000006c394f in kbeMain (argc=<value optimized out>, argv=<value optimized out>) at main.cpp:79
kbengine#17 0x00000000006c3ae1 in main (argc=3, argv=0x7ffdc0afbfd8) at main.cpp:76
imgamer added a commit that referenced this issue Jul 1, 2019
#0  0x00007f5d3681a4f5 in raise () from /lib64/libc.so.6
#1  0x00007f5d3681bcd5 in abort () from /lib64/libc.so.6
#2  0x00007f5d3681366e in __assert_fail_base () from /lib64/libc.so.6
#3  0x00007f5d36813730 in __assert_fail () from /lib64/libc.so.6
#4  0x00000000007c1de1 in decRef (this=0x11010c0) at /home/kbe/kbengine/kbe/src/lib/common/refcountable.h:65
#5  decrementReferenceCount<KBEngine::NavigationHandle> (this=0x11010c0) at /home/kbe/kbengine/kbe/src/lib/common/smartpointer.h:37
#6  ~ConstSmartPointer (this=0x11010c0) at /home/kbe/kbengine/kbe/src/lib/common/smartpointer.h:68
#7  ~SmartPointer (this=0x11010c0) at /home/kbe/kbengine/kbe/src/lib/common/smartpointer.h:214
#8  ~pair (this=0x11010c0) at /usr/lib/gcc/x86_64-redhat-linux/4.4.7/../../../../include/c  /4.4.7/bits/stl_pair.h:68
kbengine#9  destroy (this=0x11010c0) at /usr/lib/gcc/x86_64-redhat-linux/4.4.7/../../../../include/c  /4.4.7/ext/new_allocator.h:115
#10 _M_deallocate_node (this=0x11010c0) at /usr/lib/gcc/x86_64-redhat-linux/4.4.7/../../../../include/c  /4.4.7/tr1_impl/hashtable:509
kbengine#11 _M_deallocate_nodes (this=0x11010c0) at /usr/lib/gcc/x86_64-redhat-linux/4.4.7/../../../../include/c  /4.4.7/tr1_impl/hashtable:530
kbengine#12 clear (this=0x11010c0) at /usr/lib/gcc/x86_64-redhat-linux/4.4.7/../../../../include/c  /4.4.7/tr1_impl/hashtable:1209
kbengine#13 KBEngine::Navigation::finalise (this=0x11010c0) at navigation.cpp:49
kbengine#14 0x0000000000656591 in KBEngine::Cellapp::finalise (this=0x7ffdc0afb260) at cellapp.cpp:327
kbengine#15 0x00000000006d90a5 in KBEngine::kbeMainT<KBEngine::Cellapp> (argc=<value optimized out>, argv=<value optimized out>, componentType=KBEngine::CELLAPP_TYPE, extlisteningPort_min=17174880, extlisteningPort_max=12649664,
    extlisteningInterface=0x7ffdc0afbd01 "\223@6]\177", intlisteningPort=0, intlisteningInterface=0x10fc136 "") at /home/kbe/kbengine/kbe/src/lib/server/kbemain.h:196
kbengine#16 0x00000000006c394f in kbeMain (argc=<value optimized out>, argv=<value optimized out>) at main.cpp:79
kbengine#17 0x00000000006c3ae1 in main (argc=3, argv=0x7ffdc0afbfd8) at main.cpp:76
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