• 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+ 8.60 Downgrade by Nekiro crashing

Loney

#!
Senator
Premium User
Joined
Jul 23, 2012
Messages
2,044
Solutions
31
Reaction score
243
Location
México
Hi. My server been crashing randomly 1 or 2 times a day. Checked core crash log and found this:

Code:
(gdb) #0  0x00007f8d5548ffff in raise () from /lib/x86_64-linux-gnu/libc.so.6
(gdb) #1  0x00007f8d5549142a in abort () from /lib/x86_64-linux-gnu/libc.so.6
(gdb) #2  0x00007f8d57644f67 in ?? () from /usr/lib/x86_64-linux-gnu/libmariadb.so.2
(gdb) #3  0x00007f8d57652755 in ?? () from /usr/lib/x86_64-linux-gnu/libmariadb.so.2
(gdb) #4  0x00007f8d5765ab11 in ?? () from /usr/lib/x86_64-linux-gnu/libmariadb.so.2
(gdb) #5  0x00007f8d5765adad in ?? () from /usr/lib/x86_64-linux-gnu/libmariadb.so.2
(gdb) #6  0x00007f8d57656149 in mysql_real_query ()
(gdb)    from /usr/lib/x86_64-linux-gnu/libmariadb.so.2
Undefined command: "from".  Try "help".
(gdb) #7  0x0000562f6442df22 in Database::executeQuery(std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char> > const&) ()
(gdb) #8  0x0000562f644330ae in DatabaseTasks::runTask(DatabaseTask const&) ()
(gdb) #9  0x0000562f64432e33 in DatabaseTasks::threadMain() ()
(gdb) #10 0x0000562f64435600 in void std::__invoke_impl<void, void (DatabaseTasks::* const&)(), DatabaseTasks*>(std::__invoke_memfun_deref, void (DatabaseTasks::* const&)(), DatabaseTasks*&&) ()
(gdb) #11 0x0000562f6443558d in std::result_of<void (DatabaseTasks::* const&(DatabaseTasks*&&))()>::type std::__invoke<void (DatabaseTasks::* const&)(), DatabaseTasks*>(void (DatabaseTasks::* const&)(), DatabaseTasks*&&) ()
(gdb) #12 0x0000562f6443553e in decltype (__invoke((*this)._M_pmf, (forward<DatabaseTasks*>)({parm#1}))) std::_Mem_fn_base<void (DatabaseTasks::*)(), true>::operator()<DatabaseTasks*>(DatabaseTasks*&&) const ()
(gdb) #13 0x0000562f64435509 in void std::_Bind_simple<std::_Mem_fn<void (DatabaseTasks::*)()> (DatabaseTasks*)>::_M_invoke<0ul>(std::_Index_tuple<0ul>) ()

Any thoughts?
Thank you!
Loney
 
Solution
Looks like condition problem, it always crashes right after condition has to end. I remember TFS had issue with that and it was fixed some time ago. Not sure if this tfs has these changes as I dont remember. Look up TFS main repo commits and look for conditions fix commit and compare with your code
I was unable to build in debug mode, so I did what @Nekiro said and found an endCondition fix commit. My sources didn't had that fix yet tho, so I recompiled and server is up again. Everything seems fine atm, going to wait to see what happens.

Thank yall very much
Loney
just delete build folder, create again, do what Infernum said and compile again
rm -rf build && mkdir build cd build && cmake -DCMAKE_BUILD_TYPE=Debug .. make -j$(nproc)
 
Thank you all guys for your amazing support, problem is fixed now,
for anyone with the same issue, I marked as best answer the solution.

Loney
 
Back
Top