Hello there,
The server crashed, gdb log below
Any tips how to read it?So i can find which item is causing the crash? Numbers looks not correct like attack=5129144
The server crashed, gdb log below
Code:
Program terminated with signal SIGSEGV, Segmentation fault.
#0 0x00000000005436ff in Item::canDecay (this=0x7f46b5a6c580)
at ../../src/item.cpp:1678
1678 if(isRemoved())
(gdb) bt
#0 0x00000000005436ff in Item::canDecay (this=0x7f46b5a6c580)
at ../../src/item.cpp:1678
#1 0x00000000004ca3d2 in Game::checkDecay (this=0x9c9c40 <g_game>)
at ../../src/game.cpp:4795
#2 0x00000000004e8b79 in boost::_mfi::mf0<void, Game>::operator() (
this=0x7f46b63177f8, p=0x9c9c40 <g_game>)
at /usr/include/boost/bind/mem_fn_template.hpp:49
#3 0x00000000004e65e3 in boost::_bi::list1<boost::_bi::value<Game*> >::operator ()<boost::_mfi::mf0<void, Game>, boost::_bi::list0> (this=0x7f46b6317808,
f=..., a=...) at /usr/include/boost/bind/bind.hpp:253
#4 0x00000000004e43b8 in boost::_bi::bind_t<void, boost::_mfi::mf0<void, Game>, boost::_bi::list1<boost::_bi::value<Game*> > >::operator() (
this=0x7f46b63177f8) at /usr/include/boost/bind/bind_template.hpp:20
#5 0x00000000004e0cf9 in boost::detail::function::void_function_obj_invoker0<bo ost::_bi::bind_t<void, boost::_mfi::mf0<void, Game>, boost::_bi::list1<boost::_b i::value<Game*> > >, void>::invoke (function_obj_ptr=...)
at /usr/include/boost/function/function_template.hpp:153
#6 0x00000000004ab6ba in boost::function0<void>::operator() (
this=0x7f46b63177f0)
at /usr/include/boost/function/function_template.hpp:767
#7 0x00000000004aaca8 in Task::operator() (this=0x7f46b63177e0)
at ../../src/dispatcher.h:34
#8 0x00000000004a9bd6 in Dispatcher::dispatcherThread (
---Type <return> to continue, or q <return> to quit---return
this=0x9c7160 <Dispatcher::getInstance()::dispatcher>)
at ../../src/dispatcher.cpp:71
#9 0x00000000004ae161 in boost::_mfi::mf0<void, Dispatcher>::operator() (
this=0x1ad0a28, p=0x9c7160 <Dispatcher::getInstance()::dispatcher>)
at /usr/include/boost/bind/mem_fn_template.hpp:49
#10 0x00000000004ae0c5 in boost::_bi::list1<boost::_bi::value<Dispatcher*> >::op erator()<boost::_mfi::mf0<void, Dispatcher>, boost::_bi::list0> (
this=0x1ad0a38, f=..., a=...) at /usr/include/boost/bind/bind.hpp:253
#11 0x00000000004adf02 in boost::_bi::bind_t<void, boost::_mfi::mf0<void, Dispat cher>, boost::_bi::list1<boost::_bi::value<Dispatcher*> > >::operator() (
this=0x1ad0a28) at /usr/include/boost/bind/bind_template.hpp:20
#12 0x00000000004add22 in boost::detail::thread_data<boost::_bi::bind_t<void, bo ost::_mfi::mf0<void, Dispatcher>, boost::_bi::list1<boost::_bi::value<Dispatcher *> > > >::run (this=0x1ad0870)
at /usr/include/boost/thread/detail/thread.hpp:117
#13 0x00007f46f916ca4a in ?? ()
from /usr/lib/x86_64-linux-gnu/libboost_thread.so.1.54.0
#14 0x00007f46f896b184 in start_thread (arg=0x7f46f51df700)
at pthread_create.c:312
#15 0x00007f46f7b1203d in clone ()
at ../sysdeps/unix/sysv/linux/x86_64/clone.S:111
(gdb) bt full
#0 0x00000000005436ff in Item::canDecay (this=0x7f46b5a6c580)
at ../../src/item.cpp:1678
it = @0x7f46f51deca0: {_vptr.ItemType = 0x7f46b5a6c580, loaded = 198,
stopTime = 162, showCount = 76, stackable = false,
showDuration = false, showCharges = false, showAttributes = false,
dualWield = false, allowDistRead = false, canReadText = false,
canWriteText = false, forceSerialize = false, isVertical = false,
isHorizontal = false, isHangable = false, usable = false,
movable = 64, pickupable = 156, rotable = 156, replacable = false,
lookThrough = false, walkStack = false, hasHeight = false,
blockSolid = false, blockPickupable = 64, blockProjectile = 156,
blockPathFind = 156, allowPickupable = false, alwaysOnTop = false,
floorChange = {false, false, false, 121, 139, 78, false, false,
false}, isAnimation = false, specialDoor = false,
closingDoor = 64, cache = 156,
magicEffect = MAGIC_EFFECT_DRAW_BLOOD, fluidSource = 3056695288,
weaponType = 32582, bedPartnerDir = 3056695288, ammoAction = 32582,
combatType = 5137891, corpseType = RACE_NONE,
shootType = 4112379136, ammoType = AMMO_NONE, transformBed = {60735,
62749}, transformUseTo = 32582, transformEquipTo = 0,
transformDeEquipTo = 30712, id = 46641, clientId = 32582,
maxItems = 0, slotPosition = 30728, wieldPosition = 46641,
speed = 32582, maxTextLength = 0, writeOnceItemId = 29024,
---Type <return> to continue, or q <return> to quit---return
wareId = 156, premiumDays = 0, attack = 5129144, extraAttack = 0,
defense = 2912, extraDefense = 727011, armor = -1238272008,
breakChance = 32582, hitChance = 0, maxHitChance = 0, runeLevel = 0,
runeMagLevel = 0, lightLevel = 10252640, lightColor = 0,
decayTo = 5115129, rotateTo = 0, alwaysOnTopOrder = 28116816,
shootRange = 0, charges = 3056695288, decayTime = 32582,
attackSpeed = 4294967176, wieldInfo = 0, minReqLevel = 3056695288,
minReqMagicLevel = 32582, worth = 3056695280, levelDoor = 32582,
date = 4896442, name = "",
pluralName = "\341,l\000\000\000\000\000ƢL", '\000' <repeats 13 times>, "@\234\234\000\000\000\000\000\260\230\357\001\000\000\000\000E\000\000\000\000\000\000\000\001\000\000\000F\177\000\000\210\000\225\276F\177\000\000\000\000\000\000",
article = <error reading variable: Cannot access memory at address 0x5b135c41>,
description = <error reading variable: Cannot access memory at address 0xff880393>, text = "", writer = "",
runeSpellName = <error reading variable: Cannot access memory at address 0x7fffffffffffffe6>, vocationString = "", condition = 0x1ad0750,
abilities = 0x4a9bd6 <Dispatcher::dispatcherThread()+316>,
group = ITEM_GROUP_NONE, type = ITEM_TYPE_NONE,
weight = 1.43670087e-38}
#1 0x00000000004ca3d2 in Game::checkDecay (this=0x9c9c40 <g_game>)
---Type <return> to continue, or q <return> to quit---return
at ../../src/game.cpp:4795
item = 0x7f46b5a6c580
decreaseTime = 1000
dur = 821000
it =
bucket = 1
#2 0x00000000004e8b79 in boost::_mfi::mf0<void, Game>::operator() (
this=0x7f46b63177f8, p=0x9c9c40 <g_game>)
at /usr/include/boost/bind/mem_fn_template.hpp:49
No locals.
#3 0x00000000004e65e3 in boost::_bi::list1<boost::_bi::value<Game*> >::operator()<boost::_mfi::mf0<void, Game>, boost::_bi::list0> (this=0x7f46b6317808,
f=..., a=...) at /usr/include/boost/bind/bind.hpp:253
No locals.
#4 0x00000000004e43b8 in boost::_bi::bind_t<void, boost::_mfi::mf0<void, Game>, boost::_bi::list1<boost::_bi::value<Game*> > >::operator() (
this=0x7f46b63177f8) at /usr/include/boost/bind/bind_template.hpp:20
a = {<No data fields>}
#5 0x00000000004e0cf9 in boost::detail::function::void_function_obj_invoker0<boost::_bi::bind_t<void, boost::_mfi::mf0<void, Game>, boost::_bi::list1<boost::_bi::value<Game*> > >, void>::invoke (function_obj_ptr=...)
at /usr/include/boost/function/function_template.hpp:153
f = 0x7f46b63177f8
---Type <return> to continue, or q <return> to quit---return
#6 0x00000000004ab6ba in boost::function0<void>::operator() (
this=0x7f46b63177f0)
at /usr/include/boost/function/function_template.hpp:767
No locals.
#7 0x00000000004aaca8 in Task::operator() (this=0x7f46b63177e0)
at ../../src/dispatcher.h:34
No locals.
#8 0x00000000004a9bd6 in Dispatcher::dispatcherThread (
this=0x9c7160 <Dispatcher::getInstance()::dispatcher>)
at ../../src/dispatcher.cpp:71
task = 0x7f46b63177e0
outputPool = 0x9c7300 <OutputMessagePool::getInstance()::instance>
taskLockUnique = {
m = 0x9c7178 <Dispatcher::getInstance()::dispatcher+24>,
is_locked = false}
#9 0x00000000004ae161 in boost::_mfi::mf0<void, Dispatcher>::operator() (
this=0x1ad0a28, p=0x9c7160 <Dispatcher::getInstance()::dispatcher>)
at /usr/include/boost/bind/mem_fn_template.hpp:49
No locals.
#10 0x00000000004ae0c5 in boost::_bi::list1<boost::_bi::value<Dispatcher*> >::operator()<boost::_mfi::mf0<void, Dispatcher>, boost::_bi::list0> (
this=0x1ad0a38, f=..., a=...) at /usr/include/boost/bind/bind.hpp:253
No locals.
---Type <return> to continue, or q <return> to quit---return
#11 0x00000000004adf02 in boost::_bi::bind_t<void, boost::_mfi::mf0<void, Dispatcher>, boost::_bi::list1<boost::_bi::value<Dispatcher*> > >::operator() (
this=0x1ad0a28) at /usr/include/boost/bind/bind_template.hpp:20
a = {<No data fields>}
#12 0x00000000004add22 in boost::detail::thread_data<boost::_bi::bind_t<void, boost::_mfi::mf0<void, Dispatcher>, boost::_bi::list1<boost::_bi::value<Dispatcher*> > > >::run (this=0x1ad0870)
at /usr/include/boost/thread/detail/thread.hpp:117
No locals.
#13 0x00007f46f916ca4a in ?? ()
from /usr/lib/x86_64-linux-gnu/libboost_thread.so.1.54.0
No symbol table info available.
#14 0x00007f46f896b184 in start_thread (arg=0x7f46f51df700)
at pthread_create.c:312
__res = <optimized out>
pd = 0x7f46f51df700
now = <optimized out>
unwind_buf = {cancel_jmp_buf = {{jmp_buf = {139942736819968,
-3650834040798769654, 0, 0, 139942736820672, 139942736819968,
3735819400998620682, 3735824835563163146},
mask_was_saved = 0}}, priv = {pad = {0x0, 0x0, 0x0, 0x0},
data = {prev = 0x0, cleanup = 0x0, canceltype = 0}}}
not_first_call = <optimized out>
---Type <return> to continue, or q <return> to quit---return
pagesize_m1 = <optimized out>
sp = <optimized out>
freesize = <optimized out>
__PRETTY_FUNCTION__ = "start_thread"
#15 0x00007f46f7b1203d in clone ()
at ../sysdeps/unix/sysv/linux/x86_64/clone.S:111
No locals.
Any tips how to read it?So i can find which item is causing the crash? Numbers looks not correct like attack=5129144