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

Solved Segmentation fault.. Ooh Crazy!!

Binho®

KooL =D
Joined
May 27, 2008
Messages
344
Reaction score
0
Location
BrZ Style
This server are running normaly... and shutdown.

Code:
>> Loading config (config_0.lua)
> Using MD5 passwords
>> Loading RSA key
>> Starting SQL connection
>> Running Database Manager
> No tables were optimized.
>> Loading vocations
>> Loading items
>> Loading script systems
[B][COLOR=Red]Segmentation fault[/COLOR][/B]
Have solution for it? Using TFS 0.3 B2.
 
Last edited:
aptitude install gdb && ulimit -c unlimited && ./theforgottenserver && gdb TheForgottenServer core.*

Type bt and post the output here.
 
aptitude install gdb && ulimit -c unlimited && ./theforgottenserver && gdb TheForgottenServer core.*

Type bt and post the output here.
Hehehe... I had done this, i have not posted because i had to go home.
It showed something on the map, but did not understand.

Code:
roger@ubuntu-server2:~/stellariumserver$ gdb stellariumserver core.*
Excess command line arguments ignored. (core.4986 ...)
GNU gdb 6.8-debian
Copyright (C) 2008 Free Software Foundation, Inc.
License GPLv3+: GNU GPL version 3 or later <http://gnu.org/licenses/gpl.html>
This is free software: you are free to change and redistribute it.
There is NO WARRANTY, to the extent permitted by law.  Type "show copying"
and "show warranty" for details.
This GDB was configured as "i486-linux-gnu"...

warning: core file may not match specified executable file.

warning: Can't read pathname for load map: Input/output error.
Reading symbols from /usr/lib/liblua5.1.so.0...done.
Loaded symbols for /usr/lib/liblua5.1.so.0
Reading symbols from /usr/lib/libmysqlclient.so.15...done.
Loaded symbols for /usr/lib/libmysqlclient.so.15
Reading symbols from /usr/lib/libboost_date_time-gcc42-mt-1_34_1.so.1.34.1...done.
Loaded symbols for /usr/lib/libboost_date_time-gcc42-mt-1_34_1.so.1.34.1
Reading symbols from /usr/local/lib/libboost_system.so.1...done.
Loaded symbols for /usr/local/lib/libboost_system.so.1
Reading symbols from /usr/lib/libboost_regex-gcc42-mt-1_34_1.so.1.34.1...done.
Loaded symbols for /usr/lib/libboost_regex-gcc42-mt-1_34_1.so.1.34.1
Reading symbols from /usr/lib/libgmp.so.3...done.
Loaded symbols for /usr/lib/libgmp.so.3
Reading symbols from /usr/lib/libxml2.so.2...done.
Loaded symbols for /usr/lib/libxml2.so.2
Reading symbols from /usr/lib/libstdc++.so.6...done.
Loaded symbols for /usr/lib/libstdc++.so.6
Reading symbols from /lib/tls/i686/cmov/libm.so.6...done.
Loaded symbols for /lib/tls/i686/cmov/libm.so.6
Reading symbols from /lib/libgcc_s.so.1...done.
Loaded symbols for /lib/libgcc_s.so.1
Reading symbols from /lib/tls/i686/cmov/libc.so.6...done.
Loaded symbols for /lib/tls/i686/cmov/libc.so.6
Reading symbols from /lib/tls/i686/cmov/libpthread.so.0...done.
Loaded symbols for /lib/tls/i686/cmov/libpthread.so.0
Reading symbols from /lib/tls/i686/cmov/libdl.so.2...done.
Loaded symbols for /lib/tls/i686/cmov/libdl.so.2
Reading symbols from /lib/tls/i686/cmov/libcrypt.so.1...done.
Loaded symbols for /lib/tls/i686/cmov/libcrypt.so.1
Reading symbols from /lib/tls/i686/cmov/libnsl.so.1...done.
Loaded symbols for /lib/tls/i686/cmov/libnsl.so.1
Reading symbols from /usr/lib/libz.so.1...done.
Loaded symbols for /usr/lib/libz.so.1
Reading symbols from /lib/tls/i686/cmov/librt.so.1...done.
Loaded symbols for /lib/tls/i686/cmov/librt.so.1
Reading symbols from /usr/lib/libicui18n.so.38...done.
Loaded symbols for /usr/lib/libicui18n.so.38
Reading symbols from /usr/lib/libicuuc.so.38...done.
Loaded symbols for /usr/lib/libicuuc.so.38
Reading symbols from /lib/ld-linux.so.2...done.
Loaded symbols for /lib/ld-linux.so.2
Reading symbols from /usr/lib/libicudata.so.38...
warning: Lowest section in /usr/lib/libicudata.so.38 is .hash at 000000b4
done.
Loaded symbols for /usr/lib/libicudata.so.38
Reading symbols from /lib/tls/i686/cmov/libnss_files.so.2...done.
Loaded symbols for /lib/tls/i686/cmov/libnss_files.so.2
Core was generated by `./stellariumserver --config=config_0.lua'.
Program terminated with signal 11, Segmentation fault.
[New process 4979]
[New process 4978]
[New process 4977]
#0  0x08153b37 in QTreeNode::getLeafStatic (root=0x44, x=16498, y=15650)
    at map.cpp:1201
1201                    if(!currentNode->isLeaf())
(gdb) bt
#0  0x08153b37 in QTreeNode::getLeafStatic (root=0x44, x=16498, y=15650)
    at map.cpp:1201
#1  0x08153bd4 in Map::getTile (this=0x0, x=16498, y=15650, z=12 '\f')
    at map.cpp:125
#2  0x08153c35 in Map::getTile (this=0x0, pos=@0xb6379d44) at map.cpp:143
#3  0x0814314b in LuaScriptInterface::luaGetThingFromPos (L=0xb015780)
    at luascript.cpp:3785
#4  0xb7faf902 in ?? () from /usr/lib/liblua5.1.so.0
#5  0xb7fb9eb3 in ?? () from /usr/lib/liblua5.1.so.0
#6  0xb7fafda0 in ?? () from /usr/lib/liblua5.1.so.0
#7  0xb7fab511 in ?? () from /usr/lib/liblua5.1.so.0
#8  0xb7faf463 in ?? () from /usr/lib/liblua5.1.so.0
#9  0xb7faf4c8 in ?? () from /usr/lib/liblua5.1.so.0
#10 0xb7fab374 in lua_pcall () from /usr/lib/liblua5.1.so.0
#11 0x0814a5b5 in LuaScriptInterface::loadFile (this=0xb7fc98c4, file=@0x1,
    npc=0x0) at luascript.cpp:579
#12 0x08055369 in Event::loadScript (this=0xb101e90, scriptFile=@0xb637a104)
    at baseevents.cpp:139
#13 0x08055ee7 in BaseEvents::loadFromXml (this=0xb027668) at baseevents.cpp:73
#14 0x081d6395 in ScriptingManager::loadScriptSystems (this=0x8401bc8)
    at scriptmanager.cpp:99
#15 0x081864d1 in otserv (argc=2, argv=0xbfdb1e74) at otserv.cpp:419
#16 0x08188360 in boost::detail::function::void_function_obj_invoker0<boost::_bi---Type <return> to continue, or q <return> to quit---
::bind_t<void, void (*)(int, char**), boost::_bi::list2<boost::_bi::value<int>, boost::_bi::value<char**> > >, void>::invoke (function_obj_ptr=@0x82855c0)
    at /usr/include/boost/bind.hpp:288
#17 0x081fac38 in boost::function0<void, std::allocator<void> >::operator() (
    this=0x44) at /usr/include/boost/function/function_template.hpp:692
#18 0x081faa7c in Dispatcher::dispatcherThread (p=0x0) at tasks.h:35
#19 0xb79204fb in start_thread () from /lib/tls/i686/cmov/libpthread.so.0
#20 0xb7a09e5e in clone () from /lib/tls/i686/cmov/libc.so.6
(gdb) quit

See...

 
Why my post is deleted ? I don't want to increase my post count, I do not have 15 years old haha
I just want to know how to solve this problem. Why create a new thread for the same problem ? I don't care if it occurred in 2009, the problem is exacly the same.
 
Back
Top