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

Compiling [Linux] segmentation fault

Joe Rod

Discord: joerod1
Joined
Mar 16, 2011
Messages
499
Solutions
2
Reaction score
172
GitHub
joerod1
Hi, i compiled tfs from here and when i ran it with command "./tfs" i received the following error:
segmentation fault

i used command gdb to see what happens and this is what returned:

Code:
Program received signal SIGSEGV, Segmentation fault.
[Switching to Thread 0x7ffff556a700 (LWP 24862)]
0x00007ffff767bd48 in ?? () from /usr/lib/x86_64-linux-gnu/liblua5.2.so.0
(gdb) bt full
#0  0x00007ffff767bd48 in ?? () from /usr/lib/x86_64-linux-gnu/liblua5.2.so.0
No symbol table info available.
#1  0x00007ffff766f4ec in lua_next () from /usr/lib/x86_64-linux-gnu/liblua5.2.so.0
No symbol table info available.
#2  0x00000000009d3b4e in LuaScriptInterface::getArea(lua_State*, std::list<unsigned int, std::allocator<unsigned int> >&, unsigned int&) ()
No symbol table info available.
#3  0x00000000009d3d75 in LuaScriptInterface::luaCreateCombatArea(lua_State*) ()
No symbol table info available.
#4  0x00007ffff7672c3d in ?? () from /usr/lib/x86_64-linux-gnu/liblua5.2.so.0
No symbol table info available.
#5  0x00007ffff767e59d in ?? () from /usr/lib/x86_64-linux-gnu/liblua5.2.so.0
No symbol table info available.
#6  0x00007ffff7672fa8 in ?? () from /usr/lib/x86_64-linux-gnu/liblua5.2.so.0
No symbol table info available.
#7  0x00007ffff76725bf in ?? () from /usr/lib/x86_64-linux-gnu/liblua5.2.so.0
No symbol table info available.
#8  0x00007ffff7673201 in ?? () from /usr/lib/x86_64-linux-gnu/liblua5.2.so.0
No symbol table info available.
#9  0x00007ffff766f186 in lua_pcallk () from /usr/lib/x86_64-linux-gnu/liblua5.2.so.0
No symbol table info available.
#10 0x00000000009777f8 in LuaScriptInterface::protectedCall(lua_State*, int, int) ()
No symbol table info available.
#11 0x0000000000977939 in LuaScriptInterface::loadFile(std::string const&, Npc*) ()
No symbol table info available.
#12 0x0000000000858400 in Event::checkScript(std::string const&, std::string const&, std::string const&) const ()
No symbol table info available.
#13 0x0000000000857ea6 in BaseEvents::loadFromXml() ()
No symbol table info available.
#14 0x0000000000ade8c4 in ScriptingManager::loadScriptSystems() ()
---Type <return> to continue, or q <return> to quit---
No symbol table info available.
#15 0x0000000000a494df in mainLoader(int, char**, ServiceManager*) ()
No symbol table info available.
#16 0x0000000000a4ff9c in void std::_Bind<void (*(int, char**, ServiceManager*))(int, char**, ServiceManager*)>::__call<void, , 0ul, 1ul, 2ul>(std::tuple<>&&, std::_Index_tuple<0ul, 1ul, 2ul>) ()
No symbol table info available.
#17 0x0000000000a4e932 in void std::_Bind<void (*(int, char**, ServiceManager*))(int, char**, ServiceManager*)>::operator()<, void>() ()
No symbol table info available.
#18 0x0000000000a4d54a in std::_Function_handler<void (), std::_Bind<void (*(int, char**, ServiceManager*))(int, char**, ServiceManager*)> >::_M_invoke(std::_Any_data const&) ()
No symbol table info available.
#19 0x0000000000afa6d2 in std::function<void ()>::operator()() const ()
No symbol table info available.
#20 0x0000000000afa5bc in Task::operator()() ()
No symbol table info available.
#21 0x0000000000af9e14 in Dispatcher::threadMain() ()
No symbol table info available.
#22 0x0000000000a578db in void std::_Mem_fn<void (Dispatcher::*)()>::operator()<, void>(Dispatcher*) const ()
No symbol table info available.
#23 0x0000000000a57239 in void std::_Bind_simple<std::_Mem_fn<void (Dispatcher::*)()> (Dispatcher*)>::_M_invoke<0ul>(std::_Index_tuple<0ul>) ()
No symbol table info available.
#24 0x0000000000a56a31 in std::_Bind_simple<std::_Mem_fn<void (Dispatcher::*)()> (Dispatcher*)>::operator()() ()
No symbol table info available.
#25 0x0000000000a562aa in std::thread::_Impl<std::_Bind_simple<std::_Mem_fn<void (Dispatcher::*)()> (Dispatcher*)> >::_M_run() ()
No symbol table info available.
#26 0x00007ffff6b39970 in ?? () from /usr/lib/x86_64-linux-gnu/libstdc++.so.6
No symbol table info available.
---Type <return> to continue, or q <return> to quit---
#27 0x00007ffff6d960a4 in start_thread (arg=0x7ffff556a700) at pthread_create.c:309
        __res = <optimized out>
        pd = 0x7ffff556a700
        now = <optimized out>
        unwind_buf = {cancel_jmp_buf = {{jmp_buf = {140737309484800, 488243098256428119, 1, 140737354125408,
                140737488347168, 140737309484800, -488222539297043369, -488223638180967337}, 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"
#28 0x00007ffff62a962d in clone () at ../sysdeps/unix/sysv/linux/x86_64/clone.S:111

it would be nice if someone could help me
thanks in advance
 
Back
Top