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

Crash in addEvent of the datapack #58

Closed
1 task done
Bipbop69 opened this issue Oct 2, 2021 · 4 comments
Closed
1 task done

Crash in addEvent of the datapack #58

Bipbop69 opened this issue Oct 2, 2021 · 4 comments
Labels
Area: Datapack Global Area: Source Priority: Critical Represents a risk to live servers Type: Bug Inconsistencies or issues which will cause an issue or problem for users or implementors.

Comments

@Bipbop69
Copy link

Bipbop69 commented Oct 2, 2021

What happened?

occurs sometimes I couldn't figure out what makes the error occur.

related to some addEvent from datapack: https://github.com/opentibiabr/otservbr-global-datapack

How to Reproduce?

occurs sometimes I couldn't figure out what makes the error occur.

using clean base

Relevant log output

-  Thread 2 "tfs" received signal SIGSEGV, Segmentation fault.
 -  [Switching to Thread 0x7fffede16700 (LWP 29817)]
 -  0x00007fffe8000728 in ?? ()
 -  
 -  Thread 4 (Thread 0x7fffecc02700 (LWP 29819)):
 -  #0  pthread_cond_wait@@GLIBC_2.3.2 () at ../sysdeps/unix/sysv/linux/x86_64/pthread_cond_wait.S:185
 -  No locals.
 -  opentibiabr/otservbr-global#1  0x00007ffff7b0b50c in std::condition_variable::wait(std::unique_lock<std::mutex>&) () from /usr/lib/x86_64-linux-gnu/libstdc++.so.6
 -  No symbol table info available.
 -  opentibiabr/otservbr-global#2  0x00005555555b78be in DatabaseTasks::threadMain (this=0x555555ad3f20 <g_databaseTasks>) at /home/src/databasetasks.cpp:60
 -          taskLockUnique = {_M_device = 0x555555ad3f58 <g_databaseTasks+56>, _M_owns = true}
 -  opentibiabr/otservbr-global#3  0x00007ffff7b10e6f in ?? () from /usr/lib/x86_64-linux-gnu/libstdc++.so.6
 -  No symbol table info available.
 -  opentibiabr/otservbr-global#4  0x00007ffff78414a4 in start_thread (arg=0x7fffecc02700) at pthread_create.c:456
 -          __res = <optimized out>
 -          pd = 0x7fffecc02700
 -          now = <optimized out>
 -          unwind_buf = {cancel_jmp_buf = {{jmp_buf = {140737165403904, -2119741786007616744, 140737184355438, 140737184355439, 140737157013504, 3, 2119774390147531544, 2119723297568244504}, mask_was_saved = 0}}, priv = {pad = {0x0, 0x0, 0x0, 0x0}, data = {prev = 0x0, cleanup = 0x0, canceltype = 0}}}
 -          not_first_call = <optimized out>
 -          pagesize_m1 = <optimized out>
 -          sp = <optimized out>
 -          freesize = <optimized out>
 -          __PRETTY_FUNCTION__ = "start_thread"
 -  opentibiabr/otservbr-global#5  0x00007ffff51bed0f in clone () at ../sysdeps/unix/sysv/linux/x86_64/clone.S:97
 -  No locals.
 -  
 -  Thread 3 (Thread 0x7fffed615700 (LWP 29818)):
 -  #0  pthread_cond_timedwait@@GLIBC_2.3.2 () at ../sysdeps/unix/sysv/linux/x86_64/pthread_cond_timedwait.S:225
 -  No locals.
 -  opentibiabr/otservbr-global#1  0x000055555578b282 in __gthread_cond_timedwait (__abs_timeout=0x7fffed614e60, __mutex=<optimized out>, __cond=0x555555ad3da0 <g_scheduler+64>) at /usr/include/x86_64-linux-gnu/c++/6/bits/gthr-default.h:871
 -  No locals.
 -  opentibiabr/otservbr-global#2  std::condition_variable::__wait_until_impl<std::chrono::duration<long, std::ratio<1l, 1000000000l> > > (__atime=..., __lock=..., this=0x555555ad3da0 <g_scheduler+64>) at /usr/include/c++/6/condition_variable:166
 -          __ts = {tv_sec = 1633132713, tv_nsec = 960176494}
 -  opentibiabr/otservbr-global#3  std::condition_variable::wait_until<std::chrono::duration<long, std::ratio<1l, 1000000000l> > > (__atime=..., __lock=..., this=0x555555ad3da0 <g_scheduler+64>) at /usr/include/c++/6/condition_variable:106
 -  No locals.
 -  opentibiabr/otservbr-global#4  Scheduler::threadMain (this=0x555555ad3d60 <g_scheduler>) at /home/src/scheduler.cpp:34
 -          ret = std::cv_status::no_timeout
 -          eventLockUnique = {_M_device = 0x555555ad3d78 <g_scheduler+24>, _M_owns = true}
 -  opentibiabr/otservbr-global#5  0x00007ffff7b10e6f in ?? () from /usr/lib/x86_64-linux-gnu/libstdc++.so.6
 -  No symbol table info available.
 -  opentibiabr/otservbr-global#6  0x00007ffff78414a4 in start_thread (arg=0x7fffed615700) at pthread_create.c:456
 -          __res = <optimized out>
 -          pd = 0x7fffed615700
 -          now = <optimized out>
 -          unwind_buf = {cancel_jmp_buf = {{jmp_buf = {140737175967488, -2119741786007616744, 140737488347934, 140737488347935, 140737167577088, 3, 2119771355216266008, 2119723297568244504}, mask_was_saved = 0}}, priv = {pad = {0x0, 0x0, 0x0, 0x0}, data = {prev = 0x0, cleanup = 0x0, canceltype = 0}}}
 -          not_first_call = <optimized out>
 -          pagesize_m1 = <optimized out>
 -          sp = <optimized out>
 -          freesize = <optimized out>
 -          __PRETTY_FUNCTION__ = "start_thread"
 -  opentibiabr/otservbr-global#7  0x00007ffff51bed0f in clone () at ../sysdeps/unix/sysv/linux/x86_64/clone.S:97
 -  No locals.
 -  
 -  Thread 2 (Thread 0x7fffede16700 (LWP 29817)):
 -  #0  0x00007fffe8000728 in ?? ()
 -  No symbol table info available.
 -  opentibiabr/otservbr-global#1  0x0000555555650154 in LuaScriptInterface::luaCreatureGetName (L=0x40040378) at /home/src/luascript.cpp:8243
 -          creature = <optimized out>
 -  opentibiabr/otservbr-global#2  0x00007ffff716d106 in ?? () from /usr/lib/x86_64-linux-gnu/libluajit-5.1.so.2
 -  No symbol table info available.
 -  opentibiabr/otservbr-global#3  0x00007ffff71b2a10 in lua_pcall () from /usr/lib/x86_64-linux-gnu/libluajit-5.1.so.2
 -  No symbol table info available.
 -  opentibiabr/otservbr-global#4  0x0000555555663a98 in LuaScriptInterface::protectedCall (L=0x40040378, nargs=nargs@entry=0, nresults=nresults@entry=1) at /home/src/luascript.cpp:302
 -          error_index = 4
 -          ret = <optimized out>
 -  opentibiabr/otservbr-global#5  0x00005555556ea58f in LuaScriptInterface::callFunction (this=this@entry=0x555555ad4da0 <g_luaEnvironment>, params=0) at /home/src/luascript.cpp:549
 -          result = false
 -          size = 4
 -  opentibiabr/otservbr-global#6  0x00005555556f0a2f in LuaEnvironment::executeTimerEvent (this=0x555555ad4da0 <g_luaEnvironment>, eventIndex=<optimized out>) at /home/src/luascript.cpp:20173
 -          it = <optimized out>
 -          timerEventDesc = {scriptId = 1035, function = 1833, parameters = empty std::__cxx11::list, eventId = 114402434}
 -  opentibiabr/otservbr-global#7  0x00005555557a737a in std::function<void ()>::operator()() const (this=0x7ffe8f049c60) at /usr/include/c++/6/functional:2127
 -  No locals.
 -  opentibiabr/otservbr-global#8  Task::operator() (this=0x7ffe8f049c50) at /home/src/tasks.h:40
 -  No locals.
 -  opentibiabr/otservbr-global#9  Dispatcher::threadMain (this=0x555555ad3e80 <g_dispatcher>) at /home/src/tasks.cpp:60
 -          task = 0x7ffe8f049c50
 -          taskLockUnique = {_M_device = 0x555555ad3e90 <g_dispatcher+16>, _M_owns = false}
 -  opentibiabr/otservbr-global#10 0x00007ffff7b10e6f in ?? () from /usr/lib/x86_64-linux-gnu/libstdc++.so.6
 -  No symbol table info available.
 -  opentibiabr/otservbr-global#11 0x00007ffff78414a4 in start_thread (arg=0x7fffede16700) at pthread_create.c:456
 -          __res = <optimized out>
 -          pd = 0x7fffede16700
 -          now = <optimized out>
 -          unwind_buf = {cancel_jmp_buf = {{jmp_buf = {140737184360192, -2119741786007616744, 140737488347934, 140737488347935, 140737175969792, 3, 2119772455264764696, 2119723297568244504}, mask_was_saved = 0}}, priv = {pad = {0x0, 0x0, 0x0, 0x0}, data = {prev = 0x0, cleanup = 0x0, canceltype = 0}}}
 -          not_first_call = <optimized out>
 -          pagesize_m1 = <optimized out>
 -          sp = <optimized out>
 -          freesize = <optimized out>
 -          __PRETTY_FUNCTION__ = "start_thread"
 -  opentibiabr/otservbr-global#12 0x00007ffff51bed0f in clone () at ../sysdeps/unix/sysv/linux/x86_64/clone.S:97
 -  No locals.
 -  
 -  Thread 1 (Thread 0x7ffff7fd1780 (LWP 29813)):
 -  #0  0x00007ffff51bf303 in epoll_wait () at ../sysdeps/unix/syscall-template.S:84
 -  No locals.
 -  opentibiabr/otservbr-global#1  0x000055555579593c in boost::asio::detail::epoll_reactor::run (this=0x555555b0f8f0, block=block@entry=true, ops=...) at /usr/include/boost/asio/detail/impl/epoll_reactor.ipp:392
 -          timeout = <optimized out>
 -          events = {{events = 0, data = {ptr = 0x0, fd = 0, u32 = 0, u64 = 0}} <repeats 40 times>, {events = 0, data = {ptr = 0xf784ae2500000000, fd = 0, u32 = 0, u64 = 17835571898231029760}}, {events = 32767, data = {ptr = 0x0, fd = 0, u32 = 0, u64 = 0}}, {events = 4294967295, data = {ptr = 0x5731fb90ffffffff, fd = -1, u32 = 4294967295, u64 = 6283079555347382271}}, {events = 21845, data = {ptr = 0x7fffffffdf00, fd = -8448, u32 = 4294958848, u64 = 140737488346880}}, {events = 1439115944, data = {ptr = 0x557f6cd100005555, fd = 21845, u32 = 21845, u64 = 6160762460170114389}}, {events = 21845, data = {ptr = 0xa1, fd = 161, u32 = 161, u64 = 161}}, {events = 0, data = {ptr = 0xffffdee000000000, fd = 0, u32 = 0, u64 = 18446707652386881536}}, {events = 32767, data = {ptr = 0x100000000000088, fd = 136, u32 = 136, u64 = 72057594037928072}}, {events = 1438910870, data = {ptr = 0x200005555, fd = 21845, u32 = 21845, u64 = 8589956437}}, {events = 0, data = {ptr = 0x2, fd = 2, u32 = 2, u64 = 2}}, {events = 4294958932, data = {ptr = 0x7fff, fd = 32767, u32 = 32767, u64 = 32767}}, {events = 0, data = {ptr = 0x0, fd = 0, u32 = 0, u64 = 0}}, {events = 4294958816, data = {ptr = 0x100007fff, fd = 32767, u32 = 32767, u64 = 4295000063}}, {events = 0, data = {ptr = 0x0, fd = 0, u32 = 0, u64 = 0}}, {events = 0, data = {ptr = 0x0, fd = 0, u32 = 0, u64 = 0}}, {events = 0, data = {ptr = 0x7fffffffe0f0, fd = -7952, u32 = 4294959344, u64 = 140737488347376}}, {events = 1438935688, data = {ptr = 0x5731fb9000005555, fd = 21845, u32 = 21845, u64 = 6283079551052436821}}, {events = 21845, data = {ptr = 0x555555c46a88, fd = 1438935688, u32 = 1438935688, u64 = 93824999516808}}, {events = 1439115944, data = {ptr = 0x55b0f8f000005555, fd = 21845, u32 = 21845, u64 = 6174708798800811349}}, {events = 21845, data = {ptr = 0x88, fd = 136, u32 = 136, u64 = 136}}, {events = 0, data = {ptr = 0x557f815b00000000, fd = 0, u32 = 0, u64 = 6160785043108134912}}, {events = 21845, data = {ptr = 0x555555c40996, fd = 1438910870, u32 = 1438910870, u64 = 93824999491990}}, {events = 1432010747, data = {ptr = 0x5555, fd = 21845, u32 = 21845, u64 = 21845}}, {events = 1, data = {ptr = 0x7fffffffe100, fd = -7936, u32 = 4294959360, u64 = 140737488347392}}, {events = 4294959040, data = {ptr = 0x5731fb9000007fff, fd = 32767, u32 = 32767, u64 = 6283079551052447743}}, {events = 21845, data = {ptr = 0x55555731fb90, fd = 1462893456, u32 = 1462893456, u64 = 93825023474576}}, {events = 1431998471, data = {ptr = 0x55c46a8800005555, fd = 21845, u32 = 21845, u64 = 6180181721007281493}}, {events = 21845, data = {ptr = 0x555555c40996, fd = 1438910870, u32 = 1438910870, u64 = 93824999491990}}, {events = 2, data = {ptr = 0x100000000, fd = 0, u32 = 0, u64 = 4294967296}}, {events = 0, data = {ptr = 0x0, fd = 0, u32 = 0, u64 = 0}}, {events = 1434411872, data = {ptr = 0x5555, fd = 21845, u32 = 21845, u64 = 21845}}, {events = 0, data = {ptr = 0x0, fd = 0, u32 = 0, u64 = 0}}, {events = 0, data = {ptr = 0x55797e0b00000000, fd = 0, u32 = 0, u64 = 6159092551115603968}}, {events = 21845, data = {ptr = 0x3a00000021, fd = 33, u32 = 33, u64 = 249108103201}}, {events = 1438910832, data = {ptr = 0x55c4098000005555, fd = 21845, u32 = 21845, u64 = 6180075034019648853}}, {events = 21845, data = {ptr = 0x0, fd = 0, u32 = 0, u64 = 0}}, {events = 1434411872, data = {ptr = 0xffffe0f000005555, fd = 21845, u32 = 21845, u64 = 18446709920129635669}}, {events = 32767, data = {ptr = 0x555555c46a88, fd = 1438935688, u32 = 1438935688, u64 = 93824999516808}}, {events = 1434420403, data = {ptr = 0x5555, fd = 21845, u32 = 21845, u64 = 21845}}, {events = 1431655886, data = {ptr = 0x7ffff71630c8, fd = -149540664, u32 = 4145426632, u64 = 140737338814664}}, {events = 1438935688, data = {ptr = 0x55c4099600005555, fd = 21845, u32 = 21845, u64 = 6180075128508929365}}, {events = 21845, data = {ptr = 0x2, fd = 2, u32 = 2, u64 = 2}}, {events = 1, data = {ptr = 0x7fff, fd = 32767, u32 = 32767, u64 = 32767}}, {events = 0, data = {ptr = 0x5555557f6360 <Connection::parseHeader(boost::system::error_code const&)>, fd = 1434411872, u32 = 1434411872, u64 = 93824994992992}}, {events = 0, data = {ptr = 0x0, fd = 0, u32 = 0, u64 = 0}}, {events = 0, data = {ptr = 0x0, fd = 0, u32 = 0, u64 = 0}}, {events = 1438910864, data = {ptr = 0x557f4e5000005555, fd = 21845, u32 = 21845, u64 = 6160728920770499925}}, {events = 21845, data = {ptr = 0x555555c40980, fd = 1438910848, u32 = 1438910848, u64 = 93824999491968}}, {events = 4152655936, data = {ptr = 0x55c46a2800007fff, fd = 32767, u32 = 32767, u64 = 6180181308690431999}}, {events = 21845, data = {ptr = 0x555555c40970, fd = 1438910832, u32 = 1438910832, u64 = 93824999491952}}, {events = 4294959360, data = {ptr = 0x55b0f60800007fff, fd = 32767, u32 = 32767, u64 = 6174705603345154047}}, {events = 21845, data = {ptr = 0x5555557f5417 <Connection::parsePacket(boost::system::error_code const&)+103>, fd = 1434407959, u32 = 1434407959, u64 = 93824994989079}}, {events = 1438910870, data = {ptr = 0x200005555, fd = 21845, u32 = 21845, u64 = 8589956437}}, {events = 0, data = {ptr = 0x5555557f6360 <Connection::parseHeader(boost::system::error_code const&)>, fd = 1434411872, u32 = 1434411872, u64 = 93824994992992}}, {events = 0, data = {ptr = 0x0, fd = 0, u32 = 0, u64 = 0}}, {events = 0, data = {ptr = 0x0, fd = 0, u32 = 0, u64 = 0}}, {events = 0, data = {ptr = 0xffffe25000000000, fd = 0, u32 = 0, u64 = 18446711431958102016}}, {events = 32767, data = {ptr = 0x555555b0f5b0, fd = 1437660592, u32 = 1437660592, u64 = 93824998241712}}, {events = 12, data = {ptr = 0xffffe37800000000, fd = 0, u32 = 0, u64 = 18446712703268421632}}, {events = 32767, data = {ptr = 0x0, fd = 0, u32 = 0, u64 = 0}}, {events = 1437660680, data = {ptr = 0x557f80b600005555, fd = 21845, u32 = 21845, u64 = 6160784334438552917}}, {events = 21845, data = {ptr = 0x7fff00000001, fd = 1, u32 = 1, u64 = 140733193388033}}, {events = 2, data = {ptr = 0x5731fb9000000000, fd = 0, u32 = 0, u64 = 6283079551052414976}}, {events = 21845, data = {ptr = 0x7fffffffe1d0, fd = -7728, u32 = 4294959568, u64 = 140737488347600}}, {events = 1437660592, data = {ptr = 0x55c72a8000005555, fd = 21845, u32 = 21845, u64 = 6180955742833497429}}, {events = 21845, data = {ptr = 0x1, fd = 1, u32 = 1, u64 = 1}}, {events = 1439115944, data = {ptr = 0x5583e4e000005555, fd = 21845, u32 = 21845, u64 = 6162020365896799573}}, {events = 21845, data = {ptr = 0x5555557f8645 <boost::asio::detail::reactive_socket_recv_op<boost::asio::mutable_buffers_1, boost::asio::detail::read_op<boost::asio::basic_stream_socket<boost::asio::ip::tcp, boost::asio::stream_socket_service<boost::asio::ip::tcp> >, boost::asio::mutable_buffers_1, boost::asio::detail::transfer_all_t, std::_Bind<std::_Mem_fn<void (Connection::*)(boost::system::error_code const&)> (std::shared_ptr<Connection>, std::_Placeholder<1>)> > >::do_complete(boost::asio::detail::task_io_service*, boost::asio::detail::task_io_service_operation*, boost::system::error_code const&, unsigned long)+245>, fd = 1434420805, u32 = 1434420805, u64 = 93824995001925}}, {events = 4294959568, data = {ptr = 0x7fff, fd = 32767, u32 = 32767, u64 = 32767}}, {events = 0, data = {ptr = 0x0, fd = 0, u32 = 0, u64 = 0}}, {events = 1465860240, data = {ptr = 0x100005555, fd = 21845, u32 = 21845, u64 = 4294989141}}, {events = 21845, data = {ptr = 0x555555c40996, fd = 1438910870, u32 = 1438910870, u64 = 93824999491990}}, {events = 2, data = {ptr = 0x0, fd = 0, u32 = 0, u64 = 0}}, {events = 0, data = {ptr = 0x2, fd = 2, u32 = 2, u64 = 2}}, {events = 4294959696, data = {ptr = 0x55b0f5b000007fff, fd = 32767, u32 = 32767, u64 = 6174705225388031999}}, {events = 21845, data = {ptr = 0x0, fd = 0, u32 = 0, u64 = 0}}, {events = 4294959992, data = {ptr = 0x557f4e6100007fff, fd = 32767, u32 = 32767, u64 = 6160728993784954879}}, {events = 21845, data = {ptr = 0x555555b0f608, fd = 1437660680, u32 = 1437660680, u64 = 93824998241800}}, {events = 1434420805, data = {ptr = 0xffffe25000005555, fd = 21845, u32 = 21845, u64 = 18446711431958123861}}, {events = 32767, data = {ptr = 0x7fffffffe280, fd = -7552, u32 = 4294959744, u64 = 140737488347776}}, {events = 1437660592, data = {ptr = 0x557f7a9d00005555, fd = 21845, u32 = 21845, u64 = 6160777629994603861}}, {events = 21845, data = {ptr = 0x555555c40980, fd = 1438910848, u32 = 1438910848, u64 = 93824999491968}}, {events = 1438910832, data = {ptr = 0xffffe28000005555, fd = 21845, u32 = 21845, u64 = 18446711638116554069}}, {events = 32767, data = {ptr = 0x0, fd = 0, u32 = 0, u64 = 0}}, {events = 0, data = {ptr = 0x557f53b000000000, fd = 0, u32 = 0, u64 = 6160734830645477376}}, {events = 21845, data = {ptr = 0x5555557f4e50 <Connection::handleTimeout(std::weak_ptr<Connection>, boost::system::error_code const&)>, fd = 1434406480, u32 = 1434406480, u64 = 93824994987600}}, {events = 1438910848, data = {ptr = 0x55c4097000005555, fd = 21845, u32 = 21845, u64 = 6180074965300172117}}, {events = 21845, data = {ptr = 0x656c61650000007d, fd = 125, u32 = 125, u64 = 7308323381735063677}}}
 -          num_events = <optimized out>
 -          check_timers = <optimized out>
 -  opentibiabr/otservbr-global#2  0x00005555557927c4 in boost::asio::detail::task_io_service::do_run_one (ec=..., this_thread=..., lock=..., this=0x555555b0f5b0) at /usr/include/boost/asio/detail/impl/task_io_service.ipp:356
 -          more_handlers = <optimized out>
 -  opentibiabr/otservbr-global#3  boost::asio::detail::task_io_service::run (ec=..., this=0x555555b0f5b0) at /usr/include/boost/asio/detail/impl/task_io_service.ipp:149
 -          this_thread = {<boost::asio::detail::thread_info_base> = {<boost::asio::detail::noncopyable> = {<No data fields>}, reusable_memory_ = 0x7ffe4c8a7440}, private_op_queue = {<boost::asio::detail::noncopyable> = {<No data fields>}, front_ = 0x0, back_ = 0x0}, private_outstanding_work = 0}
 -          ctx = {<boost::asio::detail::noncopyable> = {<No data fields>}, key_ = 0x555555b0f5b0, value_ = 0x7fffffffe370, next_ = 0x0}
 -          lock = {<boost::asio::detail::noncopyable> = {<No data fields>}, mutex_ = @0x555555b0f5e0, locked_ = false}
 -          n = <optimized out>
 -  opentibiabr/otservbr-global#4  boost::asio::io_service::run (this=<optimized out>) at /usr/include/boost/asio/impl/io_service.ipp:59
 -          ec = {m_val = 0, m_cat = 0x7ffff71630c8}
 -  opentibiabr/otservbr-global#5  ServiceManager::run (this=<optimized out>) at /home/src/server.cpp:45
 -  No locals.
 -  opentibiabr/otservbr-global#6  0x0000555555590c6b in main (argc=<optimized out>, argv=<optimized out>) at /home/src/otserv.cpp:97
 -          serviceManager = {acceptors = std::unordered_map with 2 elements = {[7171] = std::shared_ptr (count 3, weak 1) 0x7fffa461c740, [7172] = std::shared_ptr (count 216, weak 1) 0x7fffcfcf7910}, io_service = {<boost::asio::detail::noncopyable> = {<No data fields>}, service_registry_ = 0x555555b0f560, impl_ = @0x555555b0f5b0}, signals = {set = {<boost::asio::basic_io_object<boost::asio::signal_set_service, false>> = {service = @0x555555b0f690, implementation = {queue_ = {<boost::asio::detail::noncopyable> = {<No data fields>}, front_ = 0x555555b0fb90, back_ = 0x555555b0fb90}, signals_ = 0x555555b0fb50}}, <No data fields>}}, death_timer = {<boost::asio::basic_io_object<boost::asio::deadline_timer_service<boost::posix_time::ptime, boost::asio::time_traits<boost::posix_time::ptime> >, false>> = {service = @0x555555b0fbe0, implementation = {<boost::asio::detail::noncopyable> = {<No data fields>}, expiry = {<boost::date_time::base_time<boost::posix_time::ptime, boost::date_time::counted_time_system<boost::date_time::counted_time_rep<boost::posix_time::millisec_posix_time_system_config> > >> = {<boost::operators_impl::less_than_comparable<boost::posix_time::ptime, boost::operators_impl::equality_comparable<boost::posix_time::ptime, boost::posix_time::ptime, boost::operators_impl::operators_detail::empty_base<boost::posix_time::ptime>, boost::operators_impl::operators_detail::false_t>, boost::operators_impl::operators_detail::empty_base<boost::posix_time::ptime>, boost::operators_impl::operators_detail::true_t>> = {<boost::operators_impl::less_than_comparable1<boost::posix_time::ptime, boost::operators_impl::equality_comparable<boost::posix_time::ptime, boost::posix_time::ptime, boost::operators_impl::operators_detail::empty_base<boost::posix_time::ptime>, boost::operators_impl::operators_detail::false_t> >> = {<boost::operators_impl::equality_comparable<boost::posix_time::ptime, boost::posix_time::ptime, boost::operators_impl::operators_detail::empty_base<boost::posix_time::ptime>, boost::operators_impl::operators_detail::false_t>> = {<boost::operators_impl::equality_comparable1<boost::posix_time::ptime, boost::operators_impl::operators_detail::empty_base<boost::posix_time::ptime> >> = {<boost::operators_impl::operators_detail::empty_base<boost::posix_time::ptime>> = {<No data fields>}, <No data fields>}, <No data fields>}, <No data fields>}, <No data fields>}, time_ = {time_count_ = {value_ = 9223372036854775806}}}, <No data fields>}, might_have_pending_waits = false, timer_data = {op_queue_ = {<boost::asio::detail::noncopyable> = {<No data fields>}, front_ = 0x0, back_ = 0x0}, heap_index_ = 1, next_ = 0x0, prev_ = 0x0}}}, <No data fields>}, running = true}
 -  Saving server...
 -  > Saved house items in: 0.535 seconds

Attach any relevant file

No response

Version

12.x (Default)

What OS are you seeing the problem on?

Ubuntu 20.04

Code of Conduct

  • I agree to follow this project's Code of Conduct
@dudantas dudantas transferred this issue from opentibiabr/otservbr-global-archived Oct 6, 2021
@Schiffers
Copy link
Contributor

Tentou colocar no config.lua
WarnUnsafeScripts = true?
Aí daria pra talvez encontrar esse addEvent()

@github-actions
Copy link
Contributor

This issue is stale because it has been open 120 days with no activity.

@github-actions github-actions bot added the Stale No activity label Jan 17, 2022
@andersonfaaria andersonfaaria changed the title [Bug]: Crash Crash in addEvent of the datapack Apr 5, 2022
@andersonfaaria andersonfaaria added Type: Bug Inconsistencies or issues which will cause an issue or problem for users or implementors. Priority: Critical Represents a risk to live servers Area: Source Area: Datapack Global and removed Stale No activity labels Apr 5, 2022
@andersonfaaria
Copy link
Contributor

@Bipbop69 did you found out which addEvent is it? How often does it happens? Can you reproduce the issue?

@andersonfaaria
Copy link
Contributor

I actually found the addEvent myself using your log, thanks for that!

it's a duplicate of opentibiabr/otservbr-global#476
the fix can be found here: opentibiabr/otservbr-global#477

I had to check every single addEvent from the base, and also found another possible crash in the gamestore logic:
opentibiabr/otservbr-global#536

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Area: Datapack Global Area: Source Priority: Critical Represents a risk to live servers Type: Bug Inconsistencies or issues which will cause an issue or problem for users or implementors.
Projects
None yet
Development

No branches or pull requests

3 participants