opentibiabr / otservbr-global-archived

Archived, read-only repository. New repository: https://github.com/opentibiabr/otservbr-global
GNU General Public License v2.0
332 stars 335 forks source link

[Bug]: Server Crash Player Login #2750

Closed Sorairei closed 2 years ago

Sorairei commented 3 years ago

What happened?

Today I found this crash in the server, once a specific player log in a second later bum! crash, server closes only with his player.

I succefully log in in his account and taked this screenshoot:

1

How to Reproduce?

Player log in, i can't reproduce other way

Relevant log output

2021-09-20 00:12:19 -  Thread 2 "otbr" received signal SIGSEGV, Segmentation fault.
2021-09-20 00:12:19 -  [Switching to Thread 0x7ffff79d8700 (LWP 32218)]
2021-09-20 00:12:19 -  0x000055555573a2fe in Player::getItemTypeCount(unsigned short, int) const ()
2021-09-20 00:12:19 -  
2021-09-20 00:12:19 -  Thread 4 (Thread 0x7ffff69c2700 (LWP 32220)):
2021-09-20 00:12:19 -  #0  futex_wait_cancelable (private=<optimized out>, expected=0, futex_word=0x555556357a4c <g_databaseTasks+140>) at ../sysdeps/nptl/futex-internal.h:183
2021-09-20 00:12:19 -          __ret = -512
2021-09-20 00:12:19 -          oldtype = 0
2021-09-20 00:12:19 -          err = <optimized out>
2021-09-20 00:12:19 -          oldtype = <optimized out>
2021-09-20 00:12:19 -          err = <optimized out>
2021-09-20 00:12:19 -          __ret = <optimized out>
2021-09-20 00:12:19 -          resultvar = <optimized out>
2021-09-20 00:12:19 -          __arg4 = <optimized out>
2021-09-20 00:12:19 -          __arg3 = <optimized out>
2021-09-20 00:12:19 -          __arg2 = <optimized out>
2021-09-20 00:12:19 -          __arg1 = <optimized out>
2021-09-20 00:12:19 -          _a4 = <optimized out>
2021-09-20 00:12:19 -          _a3 = <optimized out>
2021-09-20 00:12:19 -          _a2 = <optimized out>
2021-09-20 00:12:19 -          _a1 = <optimized out>
2021-09-20 00:12:19 -  #1  __pthread_cond_wait_common (abstime=0x0, clockid=0, mutex=0x5555563579f8 <g_databaseTasks+56>, cond=0x555556357a20 <g_databaseTasks+96>) at pthread_cond_wait.c:508
2021-09-20 00:12:19 -          spin = 0
2021-09-20 00:12:19 -          buffer = {_routine = 0x7ffff7fae050 <_condvar_cleanup_waiting>, __arg = 0x7ffff69c1cd0, __canceltype = 0, __prev = 0x0}
2021-09-20 00:12:19 -          cbuffer = {wseq = 7, cond = 0x555556357a20 <g_databaseTasks+96>, mutex = 0x5555563579f8 <g_databaseTasks+56>, private = 0}
2021-09-20 00:12:19 -          err = <optimized out>
2021-09-20 00:12:19 -          g = 1
2021-09-20 00:12:19 -          flags = <optimized out>
2021-09-20 00:12:19 -          g1_start = <optimized out>
2021-09-20 00:12:19 -          signals = <optimized out>
2021-09-20 00:12:19 -          result = 0
2021-09-20 00:12:19 -          wseq = 7
2021-09-20 00:12:19 -          seq = 3
2021-09-20 00:12:19 -          private = <optimized out>
2021-09-20 00:12:19 -          maxspin = <optimized out>
2021-09-20 00:12:19 -          err = <optimized out>
2021-09-20 00:12:19 -          result = <optimized out>
2021-09-20 00:12:19 -          wseq = <optimized out>
2021-09-20 00:12:19 -          g = <optimized out>
2021-09-20 00:12:19 -          seq = <optimized out>
2021-09-20 00:12:19 -          flags = <optimized out>
2021-09-20 00:12:19 -          private = <optimized out>
2021-09-20 00:12:19 -          signals = <optimized out>
2021-09-20 00:12:19 -          g1_start = <optimized out>
2021-09-20 00:12:19 -          spin = <optimized out>
2021-09-20 00:12:19 -          buffer = <optimized out>
2021-09-20 00:12:19 -          cbuffer = <optimized out>
2021-09-20 00:12:19 -          s = <optimized out>
2021-09-20 00:12:19 -  #2  __pthread_cond_wait (cond=0x555556357a20 <g_databaseTasks+96>, mutex=0x5555563579f8 <g_databaseTasks+56>) at pthread_cond_wait.c:638
2021-09-20 00:12:19 -  No locals.
2021-09-20 00:12:19 -  #3  0x00007ffff7d37e30 in std::condition_variable::wait(std::unique_lock<std::mutex>&) () from /lib/x86_64-linux-gnu/libstdc++.so.6
2021-09-20 00:12:19 -  No symbol table info available.
2021-09-20 00:12:19 -  #4  0x000055555577dd1e in DatabaseTasks::threadMain() ()
2021-09-20 00:12:19 -  No symbol table info available.
2021-09-20 00:12:19 -  #5  0x00005555557809e0 in void std::_invoke_impl<void, void (DatabaseTasks::)(), DatabaseTasks>(std::_invoke_memfun_deref, void (DatabaseTasks::&&)(), DatabaseTasks&&) ()
2021-09-20 00:12:19 -  No symbol table info available.
2021-09-20 00:12:19 -  #6  0x0000555555780923 in std::_invoke_result<void (DatabaseTasks::)(), DatabaseTasks>::type std::_invoke<void (DatabaseTasks::)(), DatabaseTasks>(void (DatabaseTasks::&&)(), DatabaseTasks&&) ()
2021-09-20 00:12:19 -  No symbol table info available.
2021-09-20 00:12:19 -  #7  0x0000555555780893 in void std::thread::_Invoker<std::tuple<void (DatabaseTasks::)(), DatabaseTasks> >::_M_invoke<0ul, 1ul>(std::_Index_tuple<0ul, 1ul>) ()
2021-09-20 00:12:19 -  No symbol table info available.
2021-09-20 00:12:19 -  #8  0x000055555578084e in std::thread::_Invoker<std::tuple<void (DatabaseTasks::)(), DatabaseTasks> >::operator()() ()
2021-09-20 00:12:19 -  No symbol table info available.
2021-09-20 00:12:19 -  #9  0x0000555555780834 in std::thread::_State_impl<std::thread::_Invoker<std::tuple<void (DatabaseTasks::)(), DatabaseTasks> > >::_M_run() ()
2021-09-20 00:12:19 -  No symbol table info available.
2021-09-20 00:12:19 -  #10 0x00007ffff7d3dde4 in ?? () from /lib/x86_64-linux-gnu/libstdc++.so.6
2021-09-20 00:12:19 -  No symbol table info available.
2021-09-20 00:12:19 -  #11 0x00007ffff7fa7609 in start_thread (arg=<optimized out>) at pthread_create.c:477
2021-09-20 00:12:19 -          ret = <optimized out>
2021-09-20 00:12:19 -          pd = <optimized out>
2021-09-20 00:12:19 -          unwind_buf = {cancel_jmp_buf = {{jmp_buf = {140737330816768, -586828770807614615, 140737347678990, 140737347678991, 140737347678992, 140737330814848, 586813133864596329, 586811157473031017}, mask_was_saved = 0}}, priv = {pad = {0x0, 0x0, 0x0, 0x0}, data = {prev = 0x0, cleanup = 0x0, canceltype = 0}}}
2021-09-20 00:12:19 -          not_first_call = 0
2021-09-20 00:12:19 -  #12 0x00007ffff7b7c293 in clone () at ../sysdeps/unix/sysv/linux/x86_64/clone.S:95
2021-09-20 00:12:19 -  No locals.
2021-09-20 00:12:19 -  
2021-09-20 00:12:19 -  Thread 3 (Thread 0x7ffff71d7700 (LWP 32219)):
2021-09-20 00:12:19 -  #0  futex_abstimed_wait_cancelable (private=<optimized out>, abstime=0x7ffff71d6d10, clockid=<optimized out>, expected=0, futex_word=0x555556357b68 <g_scheduler+104>) at ../sysdeps/nptl/futex-internal.h:320
2021-09-20 00:12:19 -          __ret = -516
2021-09-20 00:12:19 -          clockbit = <optimized out>
2021-09-20 00:12:19 -          op = <optimized out>
2021-09-20 00:12:19 -          __ret = <optimized out>
2021-09-20 00:12:19 -          oldtype = 0
2021-09-20 00:12:19 -          err = <optimized out>
2021-09-20 00:12:19 -          oldtype = <optimized out>
2021-09-20 00:12:19 -          err = <optimized out>
2021-09-20 00:12:19 -          __ret = <optimized out>
2021-09-20 00:12:19 -          clockbit = <optimized out>
2021-09-20 00:12:19 -          op = <optimized out>
2021-09-20 00:12:19 -          __ret = <optimized out>
2021-09-20 00:12:19 -          resultvar = <optimized out>
2021-09-20 00:12:19 -          __arg6 = <optimized out>
2021-09-20 00:12:19 -          __arg5 = <optimized out>
2021-09-20 00:12:19 -          __arg4 = <optimized out>
2021-09-20 00:12:19 -          __arg3 = <optimized out>
2021-09-20 00:12:19 -          __arg2 = <optimized out>
2021-09-20 00:12:19 -          __arg1 = <optimized out>
2021-09-20 00:12:19 -          _a6 = <optimized out>
2021-09-20 00:12:19 -          _a5 = <optimized out>
2021-09-20 00:12:19 -          _a4 = <optimized out>
2021-09-20 00:12:19 -          _a3 = <optimized out>
2021-09-20 00:12:19 -          _a2 = <optimized out>
2021-09-20 00:12:19 -          _a1 = <optimized out>
2021-09-20 00:12:19 -  #1  __pthread_cond_wait_common (abstime=0x7ffff71d6d10, clockid=<optimized out>, mutex=0x555556357b18 <g_scheduler+24>, cond=0x555556357b40 <g_scheduler+64>) at pthread_cond_wait.c:520
2021-09-20 00:12:19 -          spin = 0
2021-09-20 00:12:19 -          buffer = {_routine = 0x7ffff7fae050 <_condvar_cleanup_waiting>, __arg = 0x7ffff71d6c30, __canceltype = -149066624, __prev = 0x0}
2021-09-20 00:12:19 -          cbuffer = {wseq = 18312, cond = 0x555556357b40 <g_scheduler+64>, mutex = 0x555556357b18 <g_scheduler+24>, private = 0}
2021-09-20 00:12:19 -          err = <optimized out>
2021-09-20 00:12:19 -          g = 0
2021-09-20 00:12:19 -          flags = <optimized out>
2021-09-20 00:12:19 -          g1_start = <optimized out>
2021-09-20 00:12:19 -          maxspin = 0
2021-09-20 00:12:19 -          signals = <optimized out>
2021-09-20 00:12:19 -          result = 0
2021-09-20 00:12:19 -          wseq = 18312
2021-09-20 00:12:19 -          seq = 9156
2021-09-20 00:12:19 -          private = <optimized out>
2021-09-20 00:12:19 -          maxspin = <optimized out>
2021-09-20 00:12:19 -          err = <optimized out>
2021-09-20 00:12:19 -          result = <optimized out>
2021-09-20 00:12:19 -          wseq = <optimized out>
2021-09-20 00:12:19 -          g = <optimized out>
2021-09-20 00:12:19 -          seq = <optimized out>
2021-09-20 00:12:19 -          flags = <optimized out>
2021-09-20 00:12:19 -          private = <optimized out>
2021-09-20 00:12:19 -          signals = <optimized out>
2021-09-20 00:12:19 -          g1_start = <optimized out>
2021-09-20 00:12:19 -          spin = <optimized out>
2021-09-20 00:12:19 -          buffer = <optimized out>
2021-09-20 00:12:19 -          cbuffer = <optimized out>
2021-09-20 00:12:19 -          s = <optimized out>
2021-09-20 00:12:19 -  #2  __pthread_cond_timedwait (cond=0x555556357b40 <g_scheduler+64>, mutex=0x555556357b18 <g_scheduler+24>, abstime=0x7ffff71d6d10) at pthread_cond_wait.c:656
2021-09-20 00:12:19 -          flags = <optimized out>
2021-09-20 00:12:19 -          clockid = <optimized out>
2021-09-20 00:12:19 -  #3  0x00005555557f9147 in __gthread_cond_timedwait(pthread_cond_t*, pthread_mutex_t*, timespec const*) ()
2021-09-20 00:12:19 -  No symbol table info available.
2021-09-20 00:12:19 -  #4  0x00005555557fa234 in std::cv_status std::condition_variable::__wait_until_impl<std::chrono::duration<long, std::ratio<1l, 1000000000l> > >(std::unique_lock<std::mutex>&, std::chrono::time_point<std::chrono::_V2::system_clock, std::chrono::duration<long, std::ratio<1l, 1000000000l> > > const&) ()
2021-09-20 00:12:19 -  No symbol table info available.
2021-09-20 00:12:19 -  #5  0x00005555557f9cbb in std::cv_status std::condition_variable::wait_until<std::chrono::duration<long, std::ratio<1l, 1000000000l> > >(std::unique_lock<std::mutex>&, std::chrono::time_point<std::chrono::_V2::system_clock, std::chrono::duration<long, std::ratio<1l, 1000000000l> > > const&) ()
2021-09-20 00:12:19 -  No symbol table info available.
2021-09-20 00:12:19 -  #6  0x00005555557f9547 in Scheduler::threadMain() ()
2021-09-20 00:12:19 -  No symbol table info available.
2021-09-20 00:12:19 -  #7  0x00005555559ee8b2 in void std::_invoke_impl<void, void (Scheduler::)(), Scheduler>(std::_invoke_memfun_deref, void (Scheduler::&&)(), Scheduler&&) ()
2021-09-20 00:12:19 -  No symbol table info available.
2021-09-20 00:12:19 -  #8  0x00005555559ee66f in std::_invoke_result<void (Scheduler::)(), Scheduler>::type std::_invoke<void (Scheduler::)(), Scheduler>(void (Scheduler::&&)(), Scheduler&&) ()
2021-09-20 00:12:19 -  No symbol table info available.
2021-09-20 00:12:19 -  #9  0x00005555559ee30f in void std::thread::_Invoker<std::tuple<void (Scheduler::)(), Scheduler> >::_M_invoke<0ul, 1ul>(std::_Index_tuple<0ul, 1ul>) ()
2021-09-20 00:12:19 -  No symbol table info available.
2021-09-20 00:12:19 -  #10 0x00005555559ede0a in std::thread::_Invoker<std::tuple<void (Scheduler::)(), Scheduler> >::operator()() ()
2021-09-20 00:12:19 -  No symbol table info available.
2021-09-20 00:12:19 -  #11 0x00005555559ecc82 in std::thread::_State_impl<std::thread::_Invoker<std::tuple<void (Scheduler::)(), Scheduler> > >::_M_run() ()
2021-09-20 00:12:19 -  No symbol table info available.
2021-09-20 00:12:19 -  #12 0x00007ffff7d3dde4 in ?? () from /lib/x86_64-linux-gnu/libstdc++.so.6
2021-09-20 00:12:19 -  No symbol table info available.
2021-09-20 00:12:19 -  #13 0x00007ffff7fa7609 in start_thread (arg=<optimized out>) at pthread_create.c:477
2021-09-20 00:12:19 -          ret = <optimized out>
2021-09-20 00:12:19 -          pd = <optimized out>
2021-09-20 00:12:19 -          unwind_buf = {cancel_jmp_buf = {{jmp_buf = {140737339291392, -586828770807614615, 140737488346446, 140737488346447, 140737488346448, 140737339289472, 586809825129165673, 586811157473031017}, mask_was_saved = 0}}, priv = {pad = {0x0, 0x0, 0x0, 0x0}, data = {prev = 0x0, cleanup = 0x0, canceltype = 0}}}
2021-09-20 00:12:19 -          not_first_call = 0
2021-09-20 00:12:19 -  #14 0x00007ffff7b7c293 in clone () at ../sysdeps/unix/sysv/linux/x86_64/clone.S:95
2021-09-20 00:12:19 -  No locals.
2021-09-20 00:12:19 -  
2021-09-20 00:12:19 -  Thread 2 (Thread 0x7ffff79d8700 (LWP 32218)):
2021-09-20 00:12:19 -  #0  0x000055555573a2fe in Player::getItemTypeCount(unsigned short, int) const ()
2021-09-20 00:12:19 -  No symbol table info available.
2021-09-20 00:12:19 -  #1  0x0000555555973bff in LuaScriptInterface::luaPlayerGetItemCount(lua_State*) ()
2021-09-20 00:12:19 -  No symbol table info available.
2021-09-20 00:12:19 -  #2  0x00007ffff79e5fb7 in ?? () from /lib/x86_64-linux-gnu/libluajit-5.1.so.2
2021-09-20 00:12:19 -  No symbol table info available.
2021-09-20 00:12:19 -  #3  0x00007ffff7a344a4 in lua_pcall () from /lib/x86_64-linux-gnu/libluajit-5.1.so.2
2021-09-20 00:12:19 -  No symbol table info available.
2021-09-20 00:12:19 -  #4  0x00005555558de8ce in LuaScriptInterface::protectedCall(lua_State*, int, int) ()
2021-09-20 00:12:19 -  No symbol table info available.
2021-09-20 00:12:19 -  #5  0x00005555558dfa7e in LuaScriptInterface::callFunction(int) ()
2021-09-20 00:12:19 -  No symbol table info available.
2021-09-20 00:12:19 -  #6  0x0000555555995a6c in LuaEnvironment::executeTimerEvent(unsigned int) ()
2021-09-20 00:12:19 -  No symbol table info available.
2021-09-20 00:12:19 -  #7  0x00005555559b07cf in void std::_invoke_impl<void, void (LuaEnvironment::&)(unsigned int), LuaEnvironment&, unsigned int&>(std::_invoke_memfun_deref, void (LuaEnvironment::&)(unsigned int), LuaEnvironment&, unsigned int&) ()
2021-09-20 00:12:19 -  No symbol table info available.
2021-09-20 00:12:19 -  #8  0x00005555559ae18f in std::_invoke_result<void (LuaEnvironment::&)(unsigned int), LuaEnvironment&, unsigned int&>::type std::_invoke<void (LuaEnvironment::&)(unsigned int), LuaEnvironment&, unsigned int&>(void (LuaEnvironment::&)(unsigned int), LuaEnvironment&, unsigned int&) ()
2021-09-20 00:12:19 -  No symbol table info available.
2021-09-20 00:12:19 -  #9  0x00005555559aab68 in void std::Bind<void (LuaEnvironment::(LuaEnvironment, unsigned int))(unsigned int)>::_call<void, , 0ul, 1ul>(std::tuple<>&&, std::_Index_tuple<0ul, 1ul>) ()
2021-09-20 00:12:19 -  No symbol table info available.
2021-09-20 00:12:19 -  #10 0x00005555559a6d1f in void std::_Bind<void (LuaEnvironment::(LuaEnvironment, unsigned int))(unsigned int)>::operator()<, void>() ()
2021-09-20 00:12:19 -  No symbol table info available.
2021-09-20 00:12:19 -  #11 0x000055555599d587 in std::_Function_handler<void (), std::_Bind<void (LuaEnvironment::(LuaEnvironment, unsigned int))(unsigned int)> >::_M_invoke(std::_Any_data const&) ()
2021-09-20 00:12:19 -  No symbol table info available.
2021-09-20 00:12:19 -  #12 0x00005555557fc71c in std::function<void ()>::operator()() const ()
2021-09-20 00:12:19 -  No symbol table info available.
2021-09-20 00:12:19 -  #13 0x00005555557fc23e in Task::operator()() ()
2021-09-20 00:12:19 -  No symbol table info available.
2021-09-20 00:12:19 -  #14 0x00005555557fc477 in Dispatcher::threadMain() ()
2021-09-20 00:12:19 -  No symbol table info available.
2021-09-20 00:12:19 -  #15 0x00005555559ee96a in void std::_invoke_impl<void, void (Dispatcher::)(), Dispatcher>(std::_invoke_memfun_deref, void (Dispatcher::&&)(), Dispatcher&&) ()
2021-09-20 00:12:19 -  No symbol table info available.
2021-09-20 00:12:19 -  #16 0x00005555559ee6ff in std::_invoke_result<void (Dispatcher::)(), Dispatcher>::type std::_invoke<void (Dispatcher::)(), Dispatcher>(void (Dispatcher::&&)(), Dispatcher&&) ()
2021-09-20 00:12:19 -  No symbol table info available.
2021-09-20 00:12:19 -  #17 0x00005555559ee359 in void std::thread::_Invoker<std::tuple<void (Dispatcher::)(), Dispatcher> >::_M_invoke<0ul, 1ul>(std::_Index_tuple<0ul, 1ul>) ()
2021-09-20 00:12:19 -  No symbol table info available.
2021-09-20 00:12:19 -  #18 0x00005555559ede24 in std::thread::_Invoker<std::tuple<void (Dispatcher::)(), Dispatcher> >::operator()() ()
2021-09-20 00:12:19 -  No symbol table info available.
2021-09-20 00:12:19 -  #19 0x00005555559ecca4 in std::thread::_State_impl<std::thread::_Invoker<std::tuple<void (Dispatcher::)(), Dispatcher> > >::_M_run() ()
2021-09-20 00:12:19 -  No symbol table info available.
2021-09-20 00:12:19 -  #20 0x00007ffff7d3dde4 in ?? () from /lib/x86_64-linux-gnu/libstdc++.so.6
2021-09-20 00:12:19 -  No symbol table info available.
2021-09-20 00:12:19 -  #21 0x00007ffff7fa7609 in start_thread (arg=<optimized out>) at pthread_create.c:477
2021-09-20 00:12:19 -          ret = <optimized out>
2021-09-20 00:12:19 -          pd = <optimized out>
2021-09-20 00:12:19 -          unwind_buf = {cancel_jmp_buf = {{jmp_buf = {140737347684096, -586828770807614615, 140737488346446, 140737488346447, 140737488346448, 140737347682176, 586810925177664361, 586811157473031017}, mask_was_saved = 0}}, priv = {pad = {0x0, 0x0, 0x0, 0x0}, data = {prev = 0x0, cleanup = 0x0, canceltype = 0}}}
2021-09-20 00:12:19 -          not_first_call = 0
2021-09-20 00:12:19 -  #22 0x00007ffff7b7c293 in clone () at ../sysdeps/unix/sysv/linux/x86_64/clone.S:95
2021-09-20 00:12:19 -  No locals.
2021-09-20 00:12:19 -  
2021-09-20 00:12:19 -  Thread 1 (Thread 0x7ffff79dbbc0 (LWP 32214)):
2021-09-20 00:12:19 -  #0  0x00007ffff7b7c5ce in epoll_wait (epfd=4, events=0x7fffffffd6c0, maxevents=128, timeout=-1) at ../sysdeps/unix/sysv/linux/epoll_wait.c:30
2021-09-20 00:12:19 -          resultvar = 18446744073709551612
2021-09-20 00:12:19 -          sc_cancel_oldtype = 0
2021-09-20 00:12:19 -          sc_ret = <optimized out>
2021-09-20 00:12:19 -  #1  0x00005555559cd426 in boost::asio::detail::epoll_reactor::run(long, boost::asio::detail::op_queue<boost::asio::detail::scheduler_operation>&) ()
2021-09-20 00:12:19 -  No symbol table info available.
2021-09-20 00:12:19 -  #2  0x00005555559ceb4e in boost::asio::detail::scheduler::do_run_one(boost::asio::detail::conditionally_enabled_mutex::scoped_lock&, boost::asio::detail::scheduler_thread_info&, boost::system::error_code const&) ()
2021-09-20 00:12:19 -  No symbol table info available.
2021-09-20 00:12:19 -  #3  0x00005555559ce5d0 in boost::asio::detail::scheduler::run(boost::system::error_code&) ()
2021-09-20 00:12:19 -  No symbol table info available.
2021-09-20 00:12:19 -  #4  0x0000555555a73114 in boost::asio::io_context::run() ()
2021-09-20 00:12:19 -  No symbol table info available.
2021-09-20 00:12:19 -  #5  0x0000555555a74306 in ServiceManager::run() ()
2021-09-20 00:12:19 -  No symbol table info available.
2021-09-20 00:12:19 -  #6  0x00005555559d3e55 in main ()
2021-09-20 00:12:19 -  No symbol table info available.
2021-09-20 00:12:19 -  [2021-20-09 00:12:19.184] [info] Saving server... 
2021-09-20 00:12:19 -  
2021-09-20 00:12:19 -  Thread 2 "otbr" received signal SIGSEGV, Segmentation fault.
2021-09-20 00:12:19 -  0x0000555555814054 in IOLoginData::saveItems(Player const*, std::__cxx11::list<std::pair<int, Item*>, std::allocator<std::pair<int, Item*> > > const&, DBInsert&, PropWriteStream&) ()
2021-09-20 00:12:19 -  antirollback_config:8: Error in sourced command file:
2021-09-20 00:12:19 -  The program being debugged was signaled while in a function called from GDB.
2021-09-20 00:12:19 -  GDB remains in the frame where the signal was received.
2021-09-20 00:12:19 -  To change this behavior use "set unwindonsignal on".
2021-09-20 00:12:19 -  Evaluation of the expression containing the function
2021-09-20 00:12:19 -  (saveServer()) will be abandoned.
2021-09-20 00:12:19 -  When the function is done executing, GDB will silently stop.

Attach any relevant file

No response

Version

10/12.x (10/12.x branch)

What OS are you seeing the problem on?

Ubuntu 20.04

Code of Conduct

Schiffers commented 3 years ago

Custom script ?

Sorairei commented 3 years ago

Custom script ?

Nop

Schiffers commented 3 years ago

Check the depot and inbox of this player If It has alot of items ... Or backpacks inside of anothers etc ... It can be an exploit of the fragility of handle much items....

Sorairei commented 2 years ago

I have discovered what causes the crash server, is in the character's conditions, opened the character in the database and changed the players-conditions.bin file from a new character to that character, that allowed me to connect to the player without causing any damage or crash the server, I have the theory that the character bugged itself in roshamuul, when other players caused a crash server with the monster "many faces" spells in dark thais, and when the server returned and the player "kaiser" tried to enter in his character and have a lot of conditions this started causing countless crash server unintentionally, now the only problem is the following: when the character goes to the training monks and he attacks or is attacked, the server crash.

is there a way to prevent and fix this? Thank you for your time :)

Schiffers commented 2 years ago

@Sorairei what is the problem with many faces ? I didnt see any prove that have some problema with this monster, i log in my server and leave the Monsters attacking the player and dont get any crash in 30 mins hunting there...

dudantas commented 2 years ago

Fixed in the commit: https://github.com/opentibiabr/otservbr-global/commit/f129592bd0d8c7253277d592c9e9ed604571b4c2