- 论坛徽章:
- 0
|
对于spserver-0.9.5的testecho进行压力测试时(测试的client端不断的进行connect, send,recv操作,但不会进行close socket, 即模拟长连接)遇到了如下1个问题。
问题一: sp_session.cpp中的allocKey 返回0, 导致assert直接将程序exit.
testecho: speventcb.cpp:116: static void SP_EventCallback:nAccept(int, short int, void*): Assertion `sid.mKey > 0' failed.
已放弃
在基于spserver的HA-HS架构,进行上层应用(接口实际就是类似testecho.cpp), 遇到如下2问题
问题1: evbuffer_free () 引起程序core, (应该是double free, 但上层也没创建msg类型,仅是起了个spserver)
#0 0xb7fe2430 in __kernel_vsyscall ()
#1 0xb7b29651 in raise () from /lib/tls/i686/cmov/libc.so.6
#2 0xb7b2ca82 in abort () from /lib/tls/i686/cmov/libc.so.6
#3 0xb7b6049d in ?? () from /lib/tls/i686/cmov/libc.so.6
#4 0xb7b6a591 in ?? () from /lib/tls/i686/cmov/libc.so.6
#5 0xb7b6bde8 in ?? () from /lib/tls/i686/cmov/libc.so.6
#6 0xb7b6eecd in free () from /lib/tls/i686/cmov/libc.so.6
#7 0xb7f94111 in evbuffer_free () from /usr/lib/libevent-1.4.so.2
#8 0xb7fb7ed9 in ~SP_Buffer (this=0xb5c006f0, __in_chrg=<value optimized out> at spbuffer.cpp:41
#9 0xb7fb7635 in ~SP_Message (this=0xb5c006b0, __in_chrg=<value optimized out> at spresponse.cpp:95
#10 0xb7fb2666 in SP_DefaultCompletionHandler::completionMessage (this=0x8067c30, msg=0xb5c006b0) at sphandler.cpp:37
#11 0xb7fb6b78 in SP_Server:utputCompleted (arg=0x806a84 at spserver.cpp:145
#12 0xb7fb29c3 in SP_SimpleTask::run (this=0x806a700) at spexecutor.cpp:37
#13 0xb7fb30c8 in SP_Executor::worker (arg=0x806a700) at spexecutor.cpp:132
#14 0xb7fb3053 in SP_Executor::eventLoop (arg=0xbffff5a4) at spexecutor.cpp:116
#15 0xb7fc796e in start_thread () from /lib/tls/i686/cmov/libpthread.so.0
#16 0xb7bcca4e in clone () from /lib/tls/i686/cmov/libc.so.6
问题2: 报错,不知道什么原因
session(1027.0) busy, process session error later
有遇到此问题的大侠吗?请求指点迷冿,小弟在此十分感激! |
|