• 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!

Linux Crash, Mysql

Vecay

New Member
Joined
Aug 29, 2014
Messages
30
Reaction score
3
Hello,

I have problem with Frags/Deaths and query to mysql.

TFS: 0.3.6 by MartyX
Compiled params: ./configure --enable-mysql --enable-server-diag --enable-luajit

This is amazing crash. Login server work, u can log to char list but game server is crashed and on website i have (when 50 ppl was online) 250 ONLINE and -200AFK

Here is it crash log:
Code:
warning: Can't read pathname for load map: Błąd wejścia/wyjścia.
[Thread debugging using libthread_db enabled]
Using host libthread_db library "/lib/x86_64-linux-gnu/libthread_db.so.1".
Core was generated by `./tfs --log-file output.txt error.txt'.
Program terminated with signal 6, Aborted.
#0  0x00007fcae4d98165 in raise () from /lib/x86_64-linux-gnu/libc.so.6
(gdb) bt
#0  0x00007fcae4d98165 in raise () from /lib/x86_64-linux-gnu/libc.so.6
#1  0x00007fcae4d9b3e0 in abort () from /lib/x86_64-linux-gnu/libc.so.6
#2  0x00007fcae4d91311 in __assert_fail () from /lib/x86_64-linux-gnu/libc.so.6
#3  0x00000000004bc5ee in DatabaseMySQL::DatabaseMySQL (this=0x2d3f270)
    at databasemysql.cpp:39
#4  0x00000000004aa407 in _Database::getInstance () at database.cpp:61
#5  0x000000000061d397 in otserv (services=0x7fff42491530) at otserv.cpp:612
#6  0x000000000062840d in boost::_bi::list2<boost::_bi::value<std::vector<std::string, std::allocator<std::string> > >, boost::_bi::value<ServiceManager*> >::operator()<void (*)(std::vector<std::string, std::allocator<std::string> >, ServiceManager*), boost::_bi::list0> (this=0x2a1a1b8,
    f=@0x2a1a1b0: 0x61c6e2 <otserv(std::vector<std::string, std::allocator<std::string> >, ServiceManager*)>, a=...) at /usr/include/boost/bind/bind.hpp:313
#7  0x00000000006276b4 in boost::_bi::bind_t<void, void (*)(std::vector<std::string, std::allocator<std::string> >, ServiceManager*), boost::_bi::list2<boost::_bi::value<std::vector<std::string, std::allocator<std::string> > >, boost::_bi::value<ServiceManager*> > >::operator() (this=0x2a1a1b0)
    at /usr/include/boost/bind/bind_template.hpp:20
#8  0x0000000000626470 in boost::detail::function::void_function_obj_invoker0<boost::_bi::bind_t<void, void (*)(std::vector<std::string, std::allocator<std::string> >, ServiceManager*), boost::_bi::list2<boost::_bi::value<std::vector<std::string, std::allocator<std::string> > >, boost::_bi::value<ServiceManager*> > >, void>::invoke (function_obj_ptr=...)
---Type <return> to continue, or q <return> to quit---bt
    at /usr/include/boost/function/function_template.hpp:153
#9  0x00000000004c1ee8 in boost::function0<void>::operator() (this=0x2a1a520)
    at /usr/include/boost/function/function_template.hpp:760
#10 0x00000000004c17ae in Task::operator() (this=0x2a1a510) at dispatcher.h:34
#11 0x00000000004c074d in Dispatcher::dispatcherThread (this=0xa5dac0)
    at dispatcher.cpp:71
#12 0x00000000004c38bd in boost::_mfi::mf0<void, Dispatcher>::operator() (
    this=0x2a1a6d8, p=0xa5dac0)
    at /usr/include/boost/bind/mem_fn_template.hpp:49
#13 0x00000000004c3821 in boost::_bi::list1<boost::_bi::value<Dispatcher*> >::operator()<boost::_mfi::mf0<void, Dispatcher>, boost::_bi::list0> (
    this=0x2a1a6e8, f=..., a=...) at /usr/include/boost/bind/bind.hpp:253
#14 0x00000000004c37c4 in boost::_bi::bind_t<void, boost::_mfi::mf0<void, Dispatcher>, boost::_bi::list1<boost::_bi::value<Dispatcher*> > >::operator() (
    this=0x2a1a6d8) at /usr/include/boost/bind/bind_template.hpp:20
#15 0x00000000004c3618 in boost::detail::thread_data<boost::_bi::bind_t<void, boost::_mfi::mf0<void, Dispatcher>, boost::_bi::list1<boost::_bi::value<Dispatcher*> > > >::run (this=0x2a1a550)
    at /usr/include/boost/thread/detail/thread.hpp:62
#16 0x00007fcae6c73629 in ?? () from /usr/lib/libboost_thread.so.1.49.0
#17 0x00007fcae5e0eb50 in start_thread ()
   from /lib/x86_64-linux-gnu/libpthread.so.0
#18 0x00007fcae4e427bd in clone () from /lib/x86_64-linux-gnu/libc.so.6
---Type <return> to continue, or q <return> to quit---
#19 0x0000000000000000 in ?? ()

Can any one help me?

Best Regards,
Vecay
 
Last edited:
Ok, i will try it.

Are many difference between lua and luajit??

Lolz. With compiling with luajit no problems but with lua:

luascript.cpp: In static member function ‘static int32_t LuaInterface::handleFunction(lua_State*)’:
luascript.cpp:963:18: error: ‘LUA_GLOBALSINDEX’ was not declared in this scope
luascript.cpp: In static member function ‘static std::string LuaInterface::getGlobalString(lua_State*, const string&, const string&)’:
luascript.cpp:1370:41: error: ‘lua_strlen’ was not declared in this scope
luascript.cpp: In member function ‘virtual void LuaInterface::registerFunctions()’:
luascript.cpp:2578:62: error: ‘luaL_register’ was not declared in this scope

@EDIT:

After compiled, server after load config.lua crashing.
Crash log:

Code:
#0  0x00007f5f859c1f96 in ?? () from /usr/lib/x86_64-linux-gnu/liblua5.1.so.0
(gdb) bt
#0  0x00007f5f859c1f96 in ?? () from /usr/lib/x86_64-linux-gnu/liblua5.1.so.0
#1  0x00007f5f859ba011 in ?? () from /usr/lib/x86_64-linux-gnu/liblua5.1.so.0
#2  0x00007f5f859ba316 in ?? () from /usr/lib/x86_64-linux-gnu/liblua5.1.so.0
#3  0x00007f5f859baea2 in ?? () from /usr/lib/x86_64-linux-gnu/liblua5.1.so.0
#4  0x00007f5f859b6aa6 in lua_call ()
   from /usr/lib/x86_64-linux-gnu/liblua5.1.so.0
#5  0x00007f5f859cfff8 in luaL_openlibs ()
   from /usr/lib/x86_64-linux-gnu/liblua5.1.so.0
#6  0x0000000000457f40 in ConfigManager::load (this=0xa7e240)
    at configmanager.cpp:48
#7  0x000000000061dbdc in otserv (services=0x7fff12c99090) at otserv.cpp:405
#8  0x00000000006296ed in boost::_bi::list2<boost::_bi::value<std::vector<std::string, std::allocator<std::string> > >, boost::_bi::value<ServiceManager*> >::operator()<void (*)(std::vector<std::string, std::allocator<std::string> >, ServiceManager*), boost::_bi::list0> (this=0x1b801b8,
    f=@0x1b801b0: 0x61d892 <otserv(std::vector<std::string, std::allocator<std::string> >, ServiceManager*)>, a=...) at /usr/include/boost/bind/bind.hpp:313
#9  0x0000000000628994 in boost::_bi::bind_t<void, void (*)(std::vector<std::string, std::allocator<std::string> >, ServiceManager*), boost::_bi::list2<boost::_bi::value<std::vector<std::string, std::allocator<std::string> > >, boost::_bi::value<ServiceManager*> > >::operator() (this=0x1b801b0)
    at /usr/include/boost/bind/bind_template.hpp:20
#10 0x0000000000627750 in boost::detail::function::void_function_obj_invoker0<bo---Type <return> to continue, or q <return> to quit---
ost::_bi::bind_t<void, void (*)(std::vector<std::string, std::allocator<std::string> >, ServiceManager*), boost::_bi::list2<boost::_bi::value<std::vector<std::string, std::allocator<std::string> > >, boost::_bi::value<ServiceManager*> > >, void>::invoke (function_obj_ptr=...)
    at /usr/include/boost/function/function_template.hpp:153
#11 0x00000000004c3100 in boost::function0<void>::operator() (this=0x1b80520)
    at /usr/include/boost/function/function_template.hpp:760
#12 0x00000000004c29c6 in Task::operator() (this=0x1b80510) at dispatcher.h:34
#13 0x00000000004c1965 in Dispatcher::dispatcherThread (this=0xa7be80)
    at dispatcher.cpp:71
#14 0x00000000004c4ad5 in boost::_mfi::mf0<void, Dispatcher>::operator() (
    this=0x1b806d8, p=0xa7be80)
    at /usr/include/boost/bind/mem_fn_template.hpp:49
#15 0x00000000004c4a39 in boost::_bi::list1<boost::_bi::value<Dispatcher*> >::operator()<boost::_mfi::mf0<void, Dispatcher>, boost::_bi::list0> (
    this=0x1b806e8, f=..., a=...) at /usr/include/boost/bind/bind.hpp:253
#16 0x00000000004c49dc in boost::_bi::bind_t<void, boost::_mfi::mf0<void, Dispatcher>, boost::_bi::list1<boost::_bi::value<Dispatcher*> > >::operator() (
    this=0x1b806d8) at /usr/include/boost/bind/bind_template.hpp:20
#17 0x00000000004c4830 in boost::detail::thread_data<boost::_bi::bind_t<void, boost::_mfi::mf0<void, Dispatcher>, boost::_bi::list1<boost::_bi::value<Dispatcher*> > > >::run (this=0x1b80550)
    at /usr/include/boost/thread/detail/thread.hpp:62
---Type <return> to continue, or q <return> to quit---
#18 0x00007f5f861c3629 in ?? () from /usr/lib/libboost_thread.so.1.49.0
#19 0x00007f5f853a0b50 in start_thread ()
   from /lib/x86_64-linux-gnu/libpthread.so.0
#20 0x00007f5f843d470d in clone () from /lib/x86_64-linux-gnu/libc.so.6
#21 0x0000000000000000 in ?? ()
(gdb)
 
Last edited:
install lua libs
apt-get install git subversion autoconf build-essential pkg-config libboost-dev libgmp3-dev libxml2-dev liblua5.1-0-dev libmysqlclient-dev ccache libboost-filesystem-dev libboost-regex-dev libboost-system-dev libboost-thread-dev screen libssl-dev

build

sh ./autogen.sh && ./configure --enable-server-diag --enable-mysql --enable-root-permission && make -j 2
 
builded and no crashes but... I have lags when players fighting. when u attack anyone he gain lags.

Crashes again :/
 
Last edited:
Back
Top