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

"grsec: Segmentation fault..." - TFS 0.3.6 crash

Status
Not open for further replies.

MeNi

*^#%$%
Joined
Jul 23, 2008
Messages
183
Reaction score
12
Dzien dobry, czesc i czolem,

Na moim OTySy (TFS 0.3.6) na (nazwijmy to) dedyku (kimsufi.pl / 4GB Ram, 4x2.4CPU / 100Mbps / Debian 5.0 x32) co jakiś nieregularny czas mam crashe. To napewno nie żaden crash zrobiony przez jakiegoś gracza, bo online byłem tylko ja i drugi GM. Gdy zrobił się crash, wywaliło takie błędy:

W dmesg: (ip 83.24.119.89 to ip mojego PC, byłem online na serwerze gdy był crash)

Code:
(...)
grsec: Segmentation fault occurred at 0000c6d5 in /usr/bin/netkit-ftp[ftp:9721] uid/euid:0/0 gid/egid:0/0, parent /bin/bash[bash:4051] uid/euid:0/0 gid/egid:0/0
theforgottenser[16625]: segfault at 4 ip 08072a06 sp b5d3e0e0 error 6 in theforgottenserver[8048000+2af000]

grsec: From 83.24.119.89: Segmentation fault occurred at 00000004 in /home/ots/server/theforgottenserver[theforgottenser:16625] uid/euid:0/0 gid/egid:0/0, parent /sbin/init[init:1] uid/euid:0/0 gid/egid:0/0
theforgottenser[16940]: segfault at 8 ip b770d97a sp b5caa040 error 4 in liblua5.1.so.0.0.0[b76fd000+23000]

grsec: From 83.24.119.89: Segmentation fault occurred at 00000008 in /home/ots/server/theforgottenserver[theforgottenser:16940] uid/euid:1000/1000 gid/egid:1000/1000, parent /sbin/init[init:1] uid/euid:0/0 gid/egid:0/0
theforgottenser[22678]: segfault at 8 ip b770c97a sp b5ca9040 error 4 in liblua5.1.so.0.0.0[b76fc000+23000]

grsec: From 83.24.119.89: Segmentation fault occurred at 00000008 in /home/ots/server/theforgottenserver[theforgottenser:22678] uid/euid:1000/1000 gid/egid:1000/1000, parent /sbin/init[init:1] uid/euid:0/0 gid/egid:0/0
theforgottenser[31611]: segfault at 0 ip (null) sp b5c7610c error 14 in theforgottenserver[8048000+2af000]

grsec: From 83.24.119.89: Segmentation fault occurred at (null) in /home/ots/server/theforgottenserver[theforgottenser:31611] uid/euid:1000/1000 gid/egid:1000/1000, parent /bin/bash[bash:31607] uid/euid:1000/1000 gid/egid:1000/1000


W /var/log/messages:

Code:
Apr 11 13:17:30 ks307570 kernel: theforgottenser[22678]: segfault at 8 ip b770c97a sp b5ca9040 error 4 in liblua5.1.so.0.0.0[b76fc000+23000]
Apr 11 15:26:24 ks307570 kernel: theforgottenser[31611]: segfault at 0 ip (null) sp b5c7610c error 14 in theforgottenserver[8048000+2af000]

Dlaczego silnik crashuje, jak to naprawić?
 
sprawdz czy ram nie przekracza 2.0 gb na aplikacje podczas crasha.
 
Mam ten sam problem
Code:
Reading symbols from /home/diablo/engine/koxownia...done.
[New Thread 4827]
[New Thread 4832]

warning: Can't read pathname for load map: Błąd wejścia/wyjścia.
Reading symbols from /usr/lib/liblua5.1.so.0...(no debugging symbols found)...do                                              ne.
Loaded symbols for /usr/lib/liblua5.1.so.0
Reading symbols from /usr/lib/libmysqlclient.so.16...(no debugging symbols found                                              )...done.
Loaded symbols for /usr/lib/libmysqlclient.so.16
Reading symbols from /usr/lib/libboost_filesystem.so.1.42.0...(no debugging symb                                              ols found)...done.
Loaded symbols for /usr/lib/libboost_filesystem.so.1.42.0
Reading symbols from /usr/lib/libboost_date_time.so.1.42.0...(no debugging symbo                                              ls found)...done.
Loaded symbols for /usr/lib/libboost_date_time.so.1.42.0
Reading symbols from /usr/lib/libboost_system.so.1.42.0...(no debugging symbols                                               found)...done.
Loaded symbols for /usr/lib/libboost_system.so.1.42.0
Reading symbols from /usr/lib/libboost_regex.so.1.42.0...(no debugging symbols f                                              ound)...done.
Loaded symbols for /usr/lib/libboost_regex.so.1.42.0
Reading symbols from /usr/lib/libboost_thread.so.1.42.0...(no debugging symbols                                               found)...done.
Loaded symbols for /usr/lib/libboost_thread.so.1.42.0
Reading symbols from /usr/lib/libgmp.so.3...(no debugging symbols found)...done.
Loaded symbols for /usr/lib/libgmp.so.3
Reading symbols from /usr/lib/libxml2.so.2...(no debugging symbols found)...done                                              .
Loaded symbols for /usr/lib/libxml2.so.2
Reading symbols from /usr/lib/libstdc++.so.6...(no debugging symbols found)...do                                              ne.
Loaded symbols for /usr/lib/libstdc++.so.6
Reading symbols from /lib/libm.so.6...(no debugging symbols found)...done.
Loaded symbols for /lib/libm.so.6
Reading symbols from /lib/libgcc_s.so.1...(no debugging symbols found)...done.
Loaded symbols for /lib/libgcc_s.so.1
Reading symbols from /lib/libc.so.6...(no debugging symbols found)...done.
Loaded symbols for /lib/libc.so.6
Reading symbols from /lib/libpthread.so.0...(no debugging symbols found)...done.
Loaded symbols for /lib/libpthread.so.0
Reading symbols from /lib/libdl.so.2...(no debugging symbols found)...done.
Loaded symbols for /lib/libdl.so.2
Reading symbols from /lib/libcrypt.so.1...(no debugging symbols found)...done.
Loaded symbols for /lib/libcrypt.so.1
Reading symbols from /lib/libnsl.so.1...(no debugging symbols found)...done.
Loaded symbols for /lib/libnsl.so.1
Reading symbols from /usr/lib/libz.so.1...(no debugging symbols found)...done.
Loaded symbols for /usr/lib/libz.so.1
Reading symbols from /lib/librt.so.1...(no debugging symbols found)...done.
Loaded symbols for /lib/librt.so.1
Reading symbols from /usr/lib/libicudata.so.42...(no debugging symbols found)...                                              done.
Loaded symbols for /usr/lib/libicudata.so.42
Reading symbols from /usr/lib/libicui18n.so.42...(no debugging symbols found)...                                              done.
Loaded symbols for /usr/lib/libicui18n.so.42
Reading symbols from /usr/lib/libicuuc.so.42...(no debugging symbols found)...do                                              ne.
Loaded symbols for /usr/lib/libicuuc.so.42
Reading symbols from /lib64/ld-linux-x86-64.so.2...(no debugging symbols found).                                              ..done.
Loaded symbols for /lib64/ld-linux-x86-64.so.2
Reading symbols from /lib/libnss_files.so.2...(no debugging symbols found)...don                                              e.
Loaded symbols for /lib/libnss_files.so.2
Reading symbols from /lib/libnss_dns.so.2...(no debugging symbols found)...done.
Loaded symbols for /lib/libnss_dns.so.2
Reading symbols from /lib/libresolv.so.2...(no debugging symbols found)...done.
Loaded symbols for /lib/libresolv.so.2
Core was generated by `./koxownia'.
Program terminated with signal 11, Segmentation fault.
#0  0x0000000000000041 in ?? ()
(gdb) bt
#0  0x0000000000000041 in ?? ()
#1  0x00000000004161ff in Actions::clearMap (this=0xa1973e0) at actions.cpp:61
#2  Actions::clear (this=0xa1973e0) at actions.cpp:68
#3  0x000000000041d3c2 in BaseEvents::reload (this=0x9634de0)
    at baseevents.cpp:143
#4  0x0000000000494e75 in Game::reloadInfo (this=0x892580,
    reload=RELOAD_FIRST, playerId=0) at game.cpp:5763
#5  0x0000000000495407 in Game::reloadInfo (this=0x892580,
    reload=<value optimized out>, playerId=0) at game.cpp:5984
#6  0x0000000000554127 in signalHandler (sig=<value optimized out>)
    at otserv.cpp:202
#7  <signal handler called>
#8  0x00007f207cffe4f1 in ?? () from /usr/lib/liblua5.1.so.0
#9  0x00007f207cffe8b2 in ?? () from /usr/lib/liblua5.1.so.0
#10 0x00007f207cffed68 in ?? () from /usr/lib/liblua5.1.so.0
#11 0x00007f207cff7e34 in lua_pushlstring () from /usr/lib/liblua5.1.so.0
#12 0x00000000004f2a4c in LuaScriptInterface::setFieldBool (L=0x7f2068000020,
    index=0x0, val=208) at luascript.cpp:1184
#13 0x00000000004ff636 in LuaScriptInterface::luaGetVocationInfo (L=0x950c540)
    at luascript.cpp:8438
#14 0x00007f207cffca56 in ?? () from /usr/lib/liblua5.1.so.0
#15 0x00007f207d007811 in ?? () from /usr/lib/liblua5.1.so.0
#16 0x00007f207cffcfc5 in ?? () from /usr/lib/liblua5.1.so.0
---Type <return> to continue, or q <return> to quit---
#17 0x00007f207cffc647 in ?? () from /usr/lib/liblua5.1.so.0
#18 0x00007f207cffc6c5 in ?? () from /usr/lib/liblua5.1.so.0
#19 0x00007f207cff8114 in lua_pcall () from /usr/lib/liblua5.1.so.0
#20 0x000000000051323a in LuaScriptInterface::callFunction (this=0x950c470,
    params=<value optimized out>) at luascript.cpp:931
#21 0x000000000046a112 in CreatureEvent::executeAdvance (this=0xa0040e0,
    player=0xa036de0, skill=SKILL__MAGLEVEL, oldLevel=34645580,
    newLevel=34645581) at creatureevent.cpp:633
#22 0x000000000056ccaa in Player::addManaSpent (this=0xa036de0,
    amount=6766000, useMultiplier=<value optimized out>) at player.cpp:1830
#23 0x00000000005b9b78 in Spell::postCastSpell (this=<value optimized out>,
    player=0xa036de0, manaCost=0, soulCost=0) at spells.cpp:956
#24 0x00000000005ba3aa in Spell::postCastSpell (this=0xa1945a8,
    player=0xa036de0, finishedCast=<value optimized out>,
    payCost=<value optimized out>) at spells.cpp:946
#25 0x00000000005c0958 in InstantSpell::playerCastInstant (this=0xa194550,
    player=0xa036de0, param=...) at spells.cpp:1177
#26 0x00000000005bec51 in Spells::onPlayerSay (this=<value optimized out>,
    player=0xa036de0, words=<value optimized out>) at spells.cpp:72
#27 0x00000000004943f1 in Game::playerSay (this=0x892580, playerId=268448770,
    channelId=<value optimized out>, type=SPEAK_CLASS_FIRST,
    receiver=<value optimized out>, text=...) at game.cpp:3601
#28 0x0000000000590cd2 in boost::_mfi::mf5<bool, Game, unsigned int, unsigned sh---Type <return> to continue, or q <return> to quit---
ort, SpeakClasses, std::string const&, std::string const&>::operator() (
    function_obj_ptr=<value optimized out>)
    at /usr/include/boost/bind/mem_fn_template.hpp:619
#29 operator()<bool, boost::_mfi::mf5<bool, Game, unsigned int, short unsigned int, SpeakClasses, const std::string&, const std::string&>, boost::_bi::list0> (
    function_obj_ptr=<value optimized out>)
    at /usr/include/boost/bind/bind.hpp:586
#30 boost::_bi::bind_t<bool, boost::_mfi::mf5<bool, Game, unsigned int, unsigned short, SpeakClasses, std::string const&, std::string const&>, boost::_bi::list6<boost::_bi::value<Game*>, boost::_bi::value<unsigned int>, boost::_bi::value<unsigned short>, boost::_bi::value<SpeakClasses>, boost::_bi::value<std::string>, boost::_bi::value<std::string> > >::operator() (
    function_obj_ptr=<value optimized out>)
    at /usr/include/boost/bind/bind_template.hpp:20
#31 boost::detail::function::void_function_obj_invoker0<boost::_bi::bind_t<bool, boost::_mfi::mf5<bool, Game, unsigned int, unsigned short, SpeakClasses, std::string const&, std::string const&>, boost::_bi::list6<boost::_bi::value<Game*>, boost::_bi::value<unsigned int>, boost::_bi::value<unsigned short>, boost::_bi::value<SpeakClasses>, boost::_bi::value<std::string>, boost::_bi::value<std::string> > >, void>::invoke (function_obj_ptr=<value optimized out>)
    at /usr/include/boost/function/function_template.hpp:153
#32 0x00000000005d32e7 in Task::operator()() ()
#33 0x00000000005d27ef in Dispatcher::dispatcherThread (
---Type <return> to continue, or q <return> to quit---
    p=<value optimized out>) at tasks.cpp:73
#34 0x00000000005a8c82 in operator()<void (*)(void*), boost::_bi::list0> (
    this=0x0) at /usr/include/boost/bind/bind.hpp:253
#35 boost::_bi::bind_t<void, void (*)(void*), boost::_bi::list1<boost::_bi::value<void*> > >::operator() (this=0x0)
    at /usr/include/boost/bind/bind_template.hpp:20
#36 boost::detail::thread_data<boost::_bi::bind_t<void, void (*)(void*), boost::_bi::list1<boost::_bi::value<void*> > > >::run (this=0x0)
    at /usr/include/boost/thread/detail/thread.hpp:56
#37 0x00007f207c094200 in thread_proxy ()
   from /usr/lib/libboost_thread.so.1.42.0
#38 0x00007f207adc973a in start_thread () from /lib/libpthread.so.0
#39 0x00007f207b0aa69d in clone () from /lib/libc.so.6
#40 0x0000000000000000 in ?? ()
(gdb)
Coś w squeeze po ostatnim upgrade... jak rozwiąże to pomogę :p Podczas "crasha" występuje coś takiego, że silnik bierze 100% z jednego rdzenia i wszyscy gracze dostają freeze

@edit /var/log/messages | grep segfault
Code:
Apr 11 16:55:32 dulin kernel: szmatex[9282]: segfault at 158 ip 00007fb550b164ed sp 00007fffffffc760 error 4 in liblua5.1.so.0.0.0[7fb550b08000+2a000]
Apr 11 16:55:32 dulin kernel: szmatex[9284]: segfault at 617d ip 00007fb550b164ed sp 00007fb54c60fee0 error 4 in liblua5.1.so.0.0.0[7fb550b08000+2a000]
Apr 11 17:10:04 dulin kernel: szmatex[4829]: segfault at 41 ip 0000000000000041 sp 00007f2078af7e48 error 14 in szmatex[400000+281000]

@edit po downgrade systemu widzę, że to chce aktualizować:
Code:
[email protected] : /var/log # apt-get dist-upgrade
Czytanie list pakietów... Gotowe
Budowanie drzewa zależności
Odczyt informacji o stanie... Gotowe
Obliczanie aktualizacji...Gotowe
Następujące pakiety zostaną zaktualizowane:
  bind9 bind9utils binutils cpp-4.3 cron gcc-4.3 gcc-4.3-base libncurses5 libncurses5-dev libncursesw5 libssl-dev libssl0.9.8 ncurses-base ncurses-bin openssl
15 aktualizowanych, 0 nowo instalowanych, 0 usuwanych i 0 nieaktualizowanych.
Konieczne pobranie 461kB/17,1MB archiwów.
Po tej operacji zostanie dodatkowo użyte 676kB miejsca na dysku.
Kontynuować [T/n]?
Więc coś może być z binutils gcc-4.3 gcc-4.3-base się wytestuje! ;d

@edit nie pomogło
ffab.jpg
Tak to wygląda aplikacja zawiesza i żre coraz więcej pamięci...
 
Last edited:
bump, co moze byc przyczyna tego bledu?
 
Status
Not open for further replies.
Back
Top