• There is NO official Otland's Discord server and NO official Otland's server list. The Otland's Staff does not manage any Discord server or server list. Moderators or administrator of any Discord server or server lists have NO connection to the Otland's Staff. Do not get scammed!

TFS 1.X+ Tfs Segmentation fault. (GDB LOG) How to read ?

Chriistian.L.B

Active Member
Joined
Apr 17, 2008
Messages
149
Solutions
2
Reaction score
43
Hi guys, i want to learn how to read gdb code, my server has crash and generate to me this log:

C++:
Thread 2 "tfs" received signal SIGSEGV, Segmentation fault.
[Switching to Thread 0x7ffff3cd1700 (LWP 20873)]
0x000055555599f542 in std::__shared_ptr<ProtocolGame, (__gnu_cxx::_Lock_policy)2>::operator bool() const ()

Thread 4 (Thread 0x7ffff2abd700 (LWP 20875)):
#0  0x00007ffff61b59f3 in futex_wait_cancelable (private=<optimized out>, expected=0,
    futex_word=0x555555d97218 <g_databaseTasks+184>)
    at ../sysdeps/unix/sysv/linux/futex-internal.h:88
        __ret = -512
        oldtype = 0
        err = <optimized out>
        oldtype = <optimized out>
        err = <optimized out>
        __ret = <optimized out>
        resultvar = <optimized out>
        __arg4 = <optimized out>
        __arg3 = <optimized out>
        __arg2 = <optimized out>
        __arg1 = <optimized out>
        _a4 = <optimized out>
        _a3 = <optimized out>
        _a2 = <optimized out>
        _a1 = <optimized out>
#1  __pthread_cond_wait_common (abstime=0x0, mutex=0x555555d971c8 <g_databaseTasks+104>,
    cond=0x555555d971f0 <g_databaseTasks+144>) at pthread_cond_wait.c:502
        spin = 0
        buffer = {__routine = 0x7ffff61b5690 <__condvar_cleanup_waiting>, __arg = 0x7ffff2abcc90,
          __canceltype = 0, __prev = 0x0}
        cbuffer = {wseq = 188, cond = 0x555555d971f0 <g_databaseTasks+144>,
          mutex = 0x555555d971c8 <g_databaseTasks+104>, private = 0}
        rt = <optimized out>
        err = <optimized out>
        g = 0
        flags = <optimized out>
        g1_start = <optimized out>
        signals = <optimized out>
        result = 0
        wseq = <optimized out>
        seq = 94
        private = <optimized out>
        maxspin = <optimized out>
        err = <optimized out>
        result = <optimized out>
        wseq = <optimized out>
        g = <optimized out>
        seq = <optimized out>
        flags = <optimized out>
        private = <optimized out>
        signals = <optimized out>
        g1_start = <optimized out>
        spin = <optimized out>
        buffer = <optimized out>
        cbuffer = <optimized out>
        rt = <optimized out>
        s = <optimized out>
#2  __pthread_cond_wait (cond=0x555555d971f0 <g_databaseTasks+144>,
    mutex=0x555555d971c8 <g_databaseTasks+104>) at pthread_cond_wait.c:655
No locals.
#3  0x00007ffff5cb98bc 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.
#4  0x00005555559352d6 in DatabaseTasks::threadMain() ()
No symbol table info available.
#5  0x00005555559368db in void std::__invoke_impl<void, void (DatabaseTasks::*)(), DatabaseTasks*>(std::__invoke_memfun_deref, void (DatabaseTasks::*&&)(), DatabaseTasks*&&) ()
No symbol table info available.
#6  0x0000555555935f71 in std::__invoke_result<void (DatabaseTasks::*)(), DatabaseTasks*>::type std::__invoke<void (DatabaseTasks::*)(), DatabaseTasks*>(void (DatabaseTasks::*&&)(), DatabaseTasks*&&)
    ()
No symbol table info available.
#7  0x0000555555937d23 in decltype (__invoke((_S_declval<0ul>)(), (_S_declval<1ul>)())) std::thread::_Invoker<std::tuple<void (DatabaseTasks::*)(), DatabaseTasks*> >::_M_invoke<0ul, 1ul>(std::_Index_tuple<0ul, 1ul>) ()
No symbol table info available.
#8  0x0000555555937cc6 in std::thread::_Invoker<std::tuple<void (DatabaseTasks::*)(), DatabaseTasks*> >::operator()() ()
No symbol table info available.
#9  0x0000555555937c98 in std::thread::_State_impl<std::thread::_Invoker<std::tuple<void (DatabaseTasks::*)(), DatabaseTasks*> > >::_M_run() ()
No symbol table info available.
#10 0x00007ffff5cbf6df in ?? () from /usr/lib/x86_64-linux-gnu/libstdc++.so.6
No symbol table info available.
#11 0x00007ffff61af6db in start_thread (arg=0x7ffff2abd700) at pthread_create.c:463
        pd = 0x7ffff2abd700
        now = <optimized out>
        unwind_buf = {cancel_jmp_buf = {{jmp_buf = {140737264736000, -3093258462592969403,
                140737264734080, 0, 140737153207072, 140737283688464, 3093247844927984965,
                3093240552354272581}, mask_was_saved = 0}}, priv = {pad = {0x0, 0x0, 0x0, 0x0},
            data = {prev = 0x0, cleanup = 0x0, canceltype = 0}}}
        not_first_call = <optimized out>
#12 0x00007ffff7b05a3f in clone () at ../sysdeps/unix/sysv/linux/x86_64/clone.S:95
No locals.

Thread 3 (Thread 0x7ffff34d0700 (LWP 20874)):
#0  0x00007ffff61b5f85 in futex_abstimed_wait_cancelable (private=<optimized out>,
    abstime=0x7ffff34cfcd0, expected=0, futex_word=0x555555d9732c <g_scheduler+108>)
    at ../sysdeps/unix/sysv/linux/futex-internal.h:205
        __ret = -516
        oldtype = 0
        err = <optimized out>
        oldtype = <optimized out>
        err = <optimized out>
        __ret = <optimized out>
        resultvar = <optimized out>
        __arg6 = <optimized out>
        __arg5 = <optimized out>
        __arg4 = <optimized out>
        __arg3 = <optimized out>
        __arg2 = <optimized out>
        __arg1 = <optimized out>
        _a6 = <optimized out>
        _a5 = <optimized out>
        _a4 = <optimized out>
        _a3 = <optimized out>
        _a2 = <optimized out>
        _a1 = <optimized out>
#1  __pthread_cond_wait_common (abstime=0x7ffff34cfcd0, mutex=0x555555d972d8 <g_scheduler+24>,
    cond=0x555555d97300 <g_scheduler+64>) at pthread_cond_wait.c:539
        spin = 0
        buffer = {__routine = 0x7ffff61b5690 <__condvar_cleanup_waiting>, __arg = 0x7ffff34cfbf0,
          __canceltype = -213058496, __prev = 0x0}
        cbuffer = {wseq = 43019267, cond = 0x555555d97300 <g_scheduler+64>,
          mutex = 0x555555d972d8 <g_scheduler+24>, private = 0}
        err = <optimized out>
        g = 1
        flags = <optimized out>
        g1_start = <optimized out>
        maxspin = 0
        signals = <optimized out>
        result = 0
        wseq = <optimized out>
        seq = 21509633
        private = <optimized out>
        maxspin = <optimized out>
        err = <optimized out>
        result = <optimized out>
        wseq = <optimized out>
        g = <optimized out>
        seq = <optimized out>
        flags = <optimized out>
        private = <optimized out>
        signals = <optimized out>
        g1_start = <optimized out>
        spin = <optimized out>
        buffer = <optimized out>
        cbuffer = <optimized out>
        rt = <optimized out>
        s = <optimized out>
#2  __pthread_cond_timedwait (cond=0x555555d97300 <g_scheduler+64>,
    mutex=0x555555d972d8 <g_scheduler+24>, abstime=0x7ffff34cfcd0) at pthread_cond_wait.c:667
No locals.
#3  0x000055555561dc77 in __gthread_cond_timedwait(pthread_cond_t*, pthread_mutex_t*, timespec const*) ()
No symbol table info available.
#4  0x000055555561ec9a 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&)
    ()
No symbol table info available.
#5  0x000055555561e7c7 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&) ()
No symbol table info available.
#6  0x000055555561e060 in Scheduler::threadMain() ()
No symbol table info available.
#7  0x00005555556e2a81 in void std::__invoke_impl<void, void (Scheduler::*)(), Scheduler*>(std::__invoke_memfun_deref, void (Scheduler::*&&)(), Scheduler*&&) ()
No symbol table info available.
#8  0x00005555556e123c in std::__invoke_result<void (Scheduler::*)(), Scheduler*>::type std::__invoke<void (Scheduler::*)(), Scheduler*>(void (Scheduler::*&&)(), Scheduler*&&) ()
No symbol table info available.
#9  0x00005555556eb46d in decltype (__invoke((_S_declval<0ul>)(), (_S_declval<1ul>)())) std::thread::_Invoker<std::tuple<void (Scheduler::*)(), Scheduler*> >::_M_invoke<0ul, 1ul>(std::_Index_tuple<0ul, 1ul>) ()
No symbol table info available.
#10 0x00005555556eae04 in std::thread::_Invoker<std::tuple<void (Scheduler::*)(), Scheduler*> >::operator()() ()
No symbol table info available.
#11 0x00005555556ea718 in std::thread::_State_impl<std::thread::_Invoker<std::tuple<void (Scheduler::*)(), Scheduler*> > >::_M_run() ()
No symbol table info available.
#12 0x00007ffff5cbf6df in ?? () from /usr/lib/x86_64-linux-gnu/libstdc++.so.6
No symbol table info available.
#13 0x00007ffff61af6db in start_thread (arg=0x7ffff34d0700) at pthread_create.c:463
        pd = 0x7ffff34d0700
        now = <optimized out>
        unwind_buf = {cancel_jmp_buf = {{jmp_buf = {140737275299584, -3093258462592969403,
                140737275297664, 0, 93825001026128, 140737488346320, 3093250877711766853,
                3093240552354272581}, mask_was_saved = 0}}, priv = {pad = {0x0, 0x0, 0x0, 0x0},
            data = {prev = 0x0, cleanup = 0x0, canceltype = 0}}}
        not_first_call = <optimized out>
#14 0x00007ffff7b05a3f in clone () at ../sysdeps/unix/sysv/linux/x86_64/clone.S:95
No locals.

Thread 2 (Thread 0x7ffff3cd1700 (LWP 20873)):
#0  0x000055555599f542 in std::__shared_ptr<ProtocolGame, (__gnu_cxx::_Lock_policy)2>::operator bool() const ()
No symbol table info available.
#1  0x000055555590a2e5 in Player::sendCreatureType(Creature const*, unsigned char) ()
No symbol table info available.
#2  0x00005555558f4a14 in Game::updateCreatureType(Creature*) ()
No symbol table info available.
#3  0x0000555555782ef4 in LuaScriptInterface::luaCreatureSetMaster(lua_State*) ()
No symbol table info available.
#4  0x00007ffff71bbe37 in ?? () from /usr/lib/x86_64-linux-gnu/libluajit-5.1.so.2
No symbol table info available.
#5  0x00007ffff720927c in lua_pcall () from /usr/lib/x86_64-linux-gnu/libluajit-5.1.so.2
No symbol table info available.
#6  0x00005555558266f8 in LuaScriptInterface::protectedCall(lua_State*, int, int) ()
No symbol table info available.
#7  0x00005555558277de in LuaScriptInterface::callFunction(int) ()
No symbol table info available.
#8  0x00005555555ee641 in InstantSpell::executeCastSpell(Creature*, LuaVariant const&) ()
No symbol table info available.
#9  0x00005555555ee549 in InstantSpell::internalCastSpell(Creature*, LuaVariant const&) ()
No symbol table info available.
#10 0x00005555555ee0ff in InstantSpell::playerCastInstant(Player*, std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char> >&) ()
No symbol table info available.
#11 0x00005555555e9a2e in Spells::playerSaySpell(Player*, std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char> >&, bool) ()
No symbol table info available.
#12 0x00005555558ebc3c in Game::playerSaySpell(Player*, SpeakClasses, std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char> > const&) ()
No symbol table info available.
#13 0x00005555558eb5da in Game::playerSay(unsigned int, unsigned short, SpeakClasses, std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char> > const&, std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char> > const&) ()
No symbol table info available.
#14 0x00005555556508fe in void std::__invoke_impl<void, void (Game::*&)(unsigned int, unsigned short, SpeakClasses, std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char> > const&, std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char> > const&), Game*&, unsigned int&, unsigned short&, SpeakClasses&, std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char> >&, std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char> >&>(std::__invoke_memfun_deref, void (Game::*&)(unsigned int, unsigned short, SpeakClasses, std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char> > const&, std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char> > const&), Game*&, unsigned int&, unsigned short&, SpeakClasses&, std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char> >&, std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char> >&) ()
No symbol table info available.
#15 0x000055555564b67e in std::__invoke_result<void (Game::*&)(unsigned int, unsigned short, SpeakClasses, std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char> > const&, std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char> > const&), Game*&, unsigned int&, unsigned short&, SpeakClasses&, std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char> >&, std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char> >&>::type std::__invoke<void (Game::*&)(unsigned int, unsigned short, SpeakClasses, std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char> > const&, std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char> > const&), Game*&, unsigned int&, unsigned short&, SpeakClasses&, std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char> >&, std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char> >&>(void (Game::*&)(unsigned int, unsigned short, SpeakClasses, std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char> > const&, std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char> > const&), Game*&, unsigned int&, unsigned short&, SpeakClasses&, std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char> >&, std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char> >&) ()
No symbol table info available.
#16 0x00005555556454d3 in void std::_Bind<void (Game::*(Game*, unsigned int, unsigned short, SpeakClasses, std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char> >, std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char> >))(unsigned int, unsigned short, SpeakClasses, std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char> > const&, std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char> > const&)>::__call<void, , 0ul, 1ul, 2ul, 3ul, 4ul, 5ul>(std::tuple<>&&, std::_Index_tuple<0ul, 1ul, 2ul, 3ul, 4ul, 5ul>) ()
No symbol table info available.
#17 0x000055555563c5fd in void std::_Bind<void (Game::*(Game*, unsigned int, unsigned short, SpeakClasses, std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char> >, std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char> >))(unsigned int, unsigned short, SpeakClasses, std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char> > const&, std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char> > const&)>::operator()<, void>() ()
No symbol table info available.
#18 0x0000555555631ace in std::_Function_handler<void (), std::_Bind<void (Game::*(Game*, unsigned int, unsigned short, SpeakClasses, std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char> >, std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char> >))(unsigned int, unsigned short, SpeakClasses, std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char> > const&, std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char> > const&)> >::_M_invoke(std::_Any_data const&) ()
No symbol table info available.
#19 0x00005555555b789a in std::function<void ()>::operator()() const ()
No symbol table info available.
#20 0x00005555555b73d0 in Task::operator()() ()
No symbol table info available.
#21 0x00005555555b75fe in Dispatcher::threadMain() ()
No symbol table info available.
#22 0x00005555556e27d9 in void std::__invoke_impl<void, void (Dispatcher::*)(), Dispatcher*>(std::__invoke_memfun_deref, void (Dispatcher::*&&)(), Dispatcher*&&) ()
No symbol table info available.
#23 0x00005555556e10d8 in std::__invoke_result<void (Dispatcher::*)(), Dispatcher*>::type std::__invoke<void (Dispatcher::*)(), Dispatcher*>(void (Dispatcher::*&&)(), Dispatcher*&&) ()
No symbol table info available.
#24 0x00005555556eb4b7 in decltype (__invoke((_S_declval<0ul>)(), (_S_declval<1ul>)())) std::thread::_Invoker<std::tuple<void (Dispatcher::*)(), Dispatcher*> >::_M_invoke<0ul, 1ul>(std::_Index_tuple<0ul, 1ul>) ()
No symbol table info available.
#25 0x00005555556eae4a in std::thread::_Invoker<std::tuple<void (Dispatcher::*)(), Dispatcher*> >::operator()() ()
No symbol table info available.
#26 0x00005555556ea736 in std::thread::_State_impl<std::thread::_Invoker<std::tuple<void (Dispatcher::*)(), Dispatcher*> > >::_M_run() ()
No symbol table info available.
#27 0x00007ffff5cbf6df in ?? () from /usr/lib/x86_64-linux-gnu/libstdc++.so.6
No symbol table info available.
#28 0x00007ffff61af6db in start_thread (arg=0x7ffff3cd1700) at pthread_create.c:463
        pd = 0x7ffff3cd1700
        now = <optimized out>
        unwind_buf = {cancel_jmp_buf = {{jmp_buf = {140737283692288, -3093258462592969403,
                140737283690368, 0, 93825001022000, 140737488346320, 3093249788400686405,
                3093240552354272581}, mask_was_saved = 0}}, priv = {pad = {0x0, 0x0, 0x0, 0x0},
            data = {prev = 0x0, cleanup = 0x0, canceltype = 0}}}
        not_first_call = <optimized out>
#29 0x00007ffff7b05a3f in clone () at ../sysdeps/unix/sysv/linux/x86_64/clone.S:95
No locals.

Thread 1 (Thread 0x7ffff7fe1f40 (LWP 20868)):
#0  0x00007ffff7b05d67 in epoll_wait (epfd=4, events=0x7fffffffd660, maxevents=128, timeout=-1)
    at ../sysdeps/unix/sysv/linux/epoll_wait.c:30
        resultvar = 18446744073709551612
        sc_cancel_oldtype = 0
        sc_ret = <optimized out>
#1  0x0000555555628027 in boost::asio::detail::epoll_reactor::run(bool, boost::asio::detail::op_queue<boost::asio::detail::task_io_service_operation>&) ()
No symbol table info available.
#2  0x0000555555628bbb in boost::asio::detail::task_io_service::do_run_one(boost::asio::detail::scoped_lock<boost::asio::detail::posix_mutex>&, boost::asio::detail::task_io_service_thread_info&, boost::system::error_code const&) ()
No symbol table info available.
#3  0x000055555562894f in boost::asio::detail::task_io_service::run(boost::system::error_code&) ()
No symbol table info available.
#4  0x0000555555628d90 in boost::asio::io_service::run() ()
No symbol table info available.
#5  0x0000555555629f4e in ServiceManager::run() ()
No symbol table info available.
#6  0x00005555556dbd4a in main ()
No symbol table info available.

Someone can help me ?
 
Top