Jump to content
  • Logic AI crash...


    Xenithar
    • Status: Completed
      Main Category: Core / Mangos Daemon
      Sub-Category: Core Crash
      Version: 0.20(currentmasterbranch) Milestone: 20 Priority: High
      Implemented Version: 0.20(currentmasterbranch)

    Core crash for unknown reason

    Got this while playing.
    [code]
    terminate called after throwing an instance of 'std::logic_error'
    what(): invalid node overlap

    Program received signal SIGABRT, Aborted.
    [Switching to Thread 0xb20f3b70 (LWP 2972)]
    0xb7fe1424 in __kernel_vsyscall ()
    #0 0xb7fe1424 in __kernel_vsyscall ()
    #1 0xb7697681 in raise () from /lib/i386-linux-gnu/i686/cmov/libc.so.6
    #2 0xb769aab2 in abort () from /lib/i386-linux-gnu/i686/cmov/libc.so.6
    #3 0xb787e28d in __gnu_cxx::__verbose_terminate_handler() ()
    from /usr/lib/i386-linux-gnu/libstdc++.so.6
    #4 0xb787bef3 in ?? () from /usr/lib/i386-linux-gnu/libstdc++.so.6
    #5 0xb787bf2f in std::terminate() ()
    from /usr/lib/i386-linux-gnu/libstdc++.so.6
    #6 0xb787c1ce in __cxa_throw () from /usr/lib/i386-linux-gnu/libstdc++.so.6
    #7 0x0892d4c3 in BIH::subdivide (this=0xd3393a0, left=43, right=79,
    tempTree=..., dat=..., gridBox=..., nodeBox=..., nodeIndex=168, depth=3,
    stats=...) at /home/---/zero/src/server/src/game/vmap/BIH.cpp:68
    #8 0x0892dfc9 in BIH::subdivide (this=0xd3393a0, left=43, right=79,
    tempTree=..., dat=..., gridBox=..., nodeBox=..., nodeIndex=6, depth=2,
    stats=...) at /home/---/zero/src/server/src/game/vmap/BIH.cpp:248
    #9 0x0892e047 in BIH::subdivide (this=0xd3393a0, left=0, right=42,
    tempTree=..., dat=..., gridBox=..., nodeBox=..., nodeIndex=0, depth=1,
    stats=...) at /home/---/zero/src/server/src/game/vmap/BIH.cpp:252
    #10 0x0892d20d in BIH::buildHierarchy (this=0xd3393a0, tempTree=..., dat=...,
    stats=...) at /home/---/zero/src/server/src/game/vmap/BIH.cpp:38
    #11 0x08930be7 in BIH::build >(G3D::Array const&, void (&)(GameObjectModel const*, G3D::AABox&), unsigned int, bool) (
    this=0xd3393a0, primitives=..., getBounds=
    @0x892f0b9: {void (const GameObjectModel *, G3D::AABox &)} 0x892f0b9 ::getBounds2(GameObjectModel const*, G3D::AABox&)>,
    leafSize=3, printStats=false)
    at /home/---/zero/src/server/src/game/vmap/BIH.h:156
    #12 0x0892fd0f in BIHWrap >::balance (this=0xd3393a0) at /home/---/zero/src/server/src/game/vmap/BIHWrap.h:147
    #13 0x0892f4d7 in RegularGrid2D >, NodeCreator > >, PositionTrait >::balance (this=0xb2fdb40)
    at /home/---/zero/src/server/src/game/vmap/RegularGrid.h:148
    #14 0x0892f187 in DynTreeImpl::balance (this=0xb2fdb40)
    at /home/---/zero/src/server/src/game/vmap/DynamicTree.cpp:86
    #15 0x0892f20e in DynTreeImpl::update (this=0xb2fdb40, difftime=100)
    at /home/---/zero/src/server/src/game/vmap/DynamicTree.cpp:100
    #16 0x0892e984 in DynamicMapTree::update (this=0xb99f3b4, t_diff=100)
    at /home/---/zero/src/server/src/game/vmap/DynamicTree.cpp:144
    #17 0x0883cd04 in Map::Update (this=0xb97a218, t_diff=@0xb20f323c: 100)
    at /home/---/zero/src/server/src/game/Map.cpp:460
    #18 0x08852616 in MapManager::Update (this=0xb2f1130, diff=50)
    at /home/---/zero/src/server/src/game/MapManager.cpp:184
    #19 0x088e2a8d in World::Update (this=0x8cdb2b0, diff=50)
    at /home/---/zero/src/server/src/game/World.cpp:1496
    #20 0x0854dc0f in WorldRunnable::run (this=0xa4e4910)
    at /home/---/zero/src/server/src/mangosd/WorldRunnable.cpp:66
    #21 0x08972c39 in ACE_Based::Thread::ThreadTask (param=0xa4e4910)
    at /home/---/zero/src/server/src/shared/Threading.cpp:197
    #22 0xb7f50171 in ACE_OS_Thread_Adapter::invoke() ()
    from /usr/lib/libACE-6.0.3.so
    #23 0xb7f121cf in ace_thread_adapter () from /usr/lib/libACE-6.0.3.so
    #24 0xb77d6c39 in start_thread ()
    from /lib/i386-linux-gnu/i686/cmov/libpthread.so.0
    #25 0xb7743a6e in clone () from /lib/i386-linux-gnu/i686/cmov/libc.so.6
    [/code]
    No clue what caused this. Just happened. Fiance was in Needles questing as a hunter, mother was in Undercity doing stuff as a priest.


    User Feedback

    Recommended Comments



    Go figure, it happened while I was out today. Not sure the time here or what was going on.
    [code]
    terminate called after throwing an instance of 'std::logic_error'
    what(): invalid node overlap

    Program received signal SIGABRT, Aborted.
    [Switching to Thread 0xb203cb70 (LWP 18603)]
    0xb7fe1424 in __kernel_vsyscall ()
    (gdb) backtrace
    #0 0xb7fe1424 in __kernel_vsyscall ()
    #1 0xb75d7661 in raise () from /lib/i386-linux-gnu/i686/cmov/libc.so.6
    #2 0xb75daa92 in abort () from /lib/i386-linux-gnu/i686/cmov/libc.so.6
    #3 0xb77c028d in __gnu_cxx::__verbose_terminate_handler() ()
    from /usr/lib/i386-linux-gnu/libstdc++.so.6
    #4 0xb77bdef3 in ?? () from /usr/lib/i386-linux-gnu/libstdc++.so.6
    #5 0xb77bdf2f in std::terminate() ()
    from /usr/lib/i386-linux-gnu/libstdc++.so.6
    #6 0xb77be1ce in __cxa_throw () from /usr/lib/i386-linux-gnu/libstdc++.so.6
    #7 0x087ccfd7 in BIH::subdivide (this=0xce46690, left=5, right=8,
    tempTree=..., dat=..., gridBox=..., nodeBox=..., nodeIndex=24, depth=3,
    stats=...) at /home/---/zero/src/server/src/game/vmap/BIH.cpp:68
    #8 0x087cdadd in BIH::subdivide (this=0xce46690, left=5, right=8,
    tempTree=..., dat=..., gridBox=..., nodeBox=..., nodeIndex=6, depth=2,
    stats=...) at /home/---/zero/src/server/src/game/vmap/BIH.cpp:248
    #9 0x087cdb5b in BIH::subdivide (this=0xce46690, left=0, right=4,
    tempTree=..., dat=..., gridBox=..., nodeBox=..., nodeIndex=0, depth=1,
    stats=...) at /home/---/zero/src/server/src/game/vmap/BIH.cpp:252
    #10 0x087ccd21 in BIH::buildHierarchy (this=0xce46690, tempTree=..., dat=...,
    stats=...) at /home/---/zero/src/server/src/game/vmap/BIH.cpp:38
    #11 0x0896c46f in BIH::build >(G3D::Array const&, void (&)(GameObjectModel const*, G3D::AABox&), unsigned int, bool) (
    this=0xce46690, primitives=..., getBounds=
    @0x896ae87: {void (const GameObjectModel *, G3D::AABox &)} 0x896ae87 ::getBounds2(GameObjectModel const*, G3D::AABox&)>,
    leafSize=3, printStats=false)
    at /home/---/zero/src/server/src/game/vmap/BIH.h:156
    #12 0x0896badb in BIHWrap >::balance (this=0xce46690) at /home/---/zero/src/server/src/game/vmap/BIHWrap.h:154
    #13 0x0896bc72 in BIHWrap >::intersectRay (this=0xce46690, r=...,
    intersectCallback=..., maxDist=@0xb2038620: 3.00705647)
    at /home/---/zero/src/server/src/game/vmap/BIHWrap.h:167
    #14 0x0896b620 in RegularGrid2D >, NodeCreator > >, PositionTrait >::intersectZAllignedRay (this=0xb474660, ray=..., intersectCallback=...,
    max_dist=@0xb2038620: 3.00705647)
    at /home/---/zero/src/server/src/game/vmap/RegularGrid.h:357
    #15 0x0896ad57 in DynamicMapTree::getHeight (this=0xa664774, x=-1348.43018,
    y=-897.940186, z=-0.963959932, maxSearchDist=3.00705647)
    at /home/---/zero/src/server/src/game/vmap/DynamicTree.cpp:278
    #16 0x087dad0a in Map::GetHeight (this=0xa63f5d8, x=-1348.43018,
    y=-897.940186, z=-2.96395993)
    at /home/---/zero/src/server/src/game/WorldHandlers/Map.cpp:2022
    #17 0x0866c260 in WorldObject::UpdateAllowedPositionZ (this=0xcb5e660,
    x=-1348.43018, y=-897.940186, z=@0xb2038748: -2.96395993)
    at /home/---/zero/src/server/src/game/Object/Object.cpp:1318
    #18 0x089345f1 in RandomMovementGenerator::_setRandomLocation (
    this=0xcc67080, creature=...)
    at /home/---/zero/src/server/src/game/MotionGenerators/RandomMovementGenerator.cpp:58
    #19 0x08934774 in RandomMovementGenerator::Initialize (
    this=0xcc67080, creature=...)
    at /home/---/zero/src/server/src/game/MotionGenerators/RandomMovementGenerator.cpp:86
    #20 0x085f2dca in MovementGeneratorMedium >::Initialize (this=0xcc67080, u=...)
    at /home/---/zero/src/server/src/game/MotionGenerators/MovementGenerator.h:79
    #21 0x085eba77 in MotionMaster::Initialize (this=0xcb5f090)
    at /home/---/zero/src/server/src/game/MotionGenerators/MotionMaster.cpp:63
    #22 0x0871c927 in Creature::AIM_Initialize (this=0xcb5e660)
    at /home/---/zero/src/server/src/game/Object/Creature.cpp:780
    #23 0x0871ec38 in Creature::LoadFromDB (this=0xcb5e660, guidlow=25635,
    map=0xa63f5d8)
    at /home/---/zero/src/server/src/game/Object/Creature.cpp:1444
    #24 0x08878c43 in LoadHelper (guid_set=..., cell=...,
    count=@0xb2039b84: 47, map=0xa63f5d8, grid=...)
    at /home/---/zero/src/server/src/game/WorldHandlers/ObjectGridLoader.cpp:126
    #25 0x08878319 in ObjectGridLoader::Visit (this=0xb2039b74, m=...)
    at /home/---/zero/src/server/src/game/WorldHandlers/ObjectGridLoader.cpp:203
    #26 0x08879478 in VisitorHelper (v=..., c=...)
    at /home/---/zero/src/server/src/framework/GameSystem/TypeContainerVisitor.h:72
    #27 0x08879320 in VisitorHelper > > (v=..., c=...)
    at /home/---/zero/src/server/src/framework/GameSystem/TypeContainerVisitor.h:85
    #28 0x08879216 in VisitorHelper > > > (v=..., c=...)
    at /home/---/zero/src/server/src/framework/GameSystem/TypeContainerVisitor.h:86
    #29 0x08879152 in VisitorHelper > > > > (v=...,
    c=...)
    at /home/---/zero/src/server/src/framework/GameSystem/TypeContainerVisitor.h:98
    #30 0x088790ba in TypeContainerVisitor > > > > >::Visit (this=0xb2038abc, c=...)
    at /home/---/zero/src/server/src/framework/GameSystem/TypeContainerVisitor.h:127
    #31 0x08878d96 in Grid > > >, TypeList > > > >::Visit (this=0xd248cbc, visitor=...)
    at /home/---/zero/src/server/src/framework/GameSystem/Grid.h:99
    #32 0x088784e6 in ObjectGridLoader::Load (this=0xb2039b74, grid=...)
    at /home/---/zero/src/server/src/game/WorldHandlers/ObjectGridLoader.cpp:226
    #33 0x08878ddc in GridLoader > > >, TypeList > > > >::Load (this=0xb2038b27, grid=..., loader=...)
    at /home/---/zero/src/server/src/framework/GameSystem/GridLoader.h:63
    #34 0x088785f5 in ObjectGridLoader::LoadN (this=0xb2039b74)
    at /home/---/zero/src/server/src/game/WorldHandlers/ObjectGridLoader.cpp:248
    #35 0x087d4022 in Map::EnsureGridLoaded (this=0xa63f5d8, cell=...)
    at /home/---/zero/src/server/src/game/WorldHandlers/Map.cpp:284
    #36 0x0860449c in Map::Visit<:visiblenotifier typemapcontainer typelist typenull> > > > > > (this=0xa63f5d8, cell=..., visitor=...)
    at /home/---/zero/src/server/src/game/WorldHandlers/Map.h:445
    #37 0x086045d0 in Cell::VisitCircle<:visiblenotifier typemapcontainer typelist typenull> > > > > > (this=0xb2039d54, visitor=..., m=..., begin_cell=...,
    end_cell=...)
    at /home/---/zero/src/server/src/game/WorldHandlers/CellImpl.h:145
    #38 0x08603c6b in Cell::Visit<:visiblenotifier typemapcontainer typelist typenull> > > > > > (this=0xb2039d54, standing_cell=..., visitor=..., m=...,
    x=-1216.37231, y=-452.171692, radius=91.3158417)
    at /home/---/zero/src/server/src/game/WorldHandlers/CellImpl.h:102
    #39 0x08603287 in Cell::Visit<:visiblenotifier typemapcontainer typelist typenull> > > > > > (this=0xb2039d54, standing_cell=..., visitor=..., m=..., obj=...,
    radius=90)
    at /home/---/zero/src/server/src/game/WorldHandlers/CellImpl.h:62
    #40 0x08602b2d in Cell::VisitAllObjects<:visiblenotifier> (
    center_obj=0xcd56db0, visitor=..., radius=90, dont_load=false)
    at /home/---/zero/src/server/src/game/WorldHandlers/CellImpl.h:211
    #41 0x08601b23 in Camera::UpdateVisibilityForOwner (this=0xcd58038)
    at /home/---/zero/src/server/src/game/Object/Camera.cpp:155
    #42 0x0866ea1c in ViewPoint::CameraCall (this=0xcd56e24, handler=
    (void (Camera::*)(Camera * const)) 0x8601ad0 <:updatevisibilityforowner>) at /home/---/zero/src/server/src/game/Object/Camera.h:105
    #43 0x0866eabf in ViewPoint::Call_UpdateVisibilityForOwner (this=0xcd56e24)
    at /home/---/zero/src/server/src/game/Object/Camera.h:143
    #44 0x0869f3db in Unit::OnRelocated (this=0xcd56db0)
    at /home/---/zero/src/server/src/game/Object/Unit.cpp:9292
    #45 0x087d5ad6 in Map::PlayerRelocation (this=0xa63f5d8, player=0xcd56db0,
    x=-1216.37231, y=-452.171692, z=95.4614182, orientation=-1.26908457)
    at /home/---/zero/src/server/src/game/WorldHandlers/Map.cpp:722
    #46 0x086d1c33 in Player::SetPosition (this=0xcd56db0, x=-1216.37231,
    y=-452.171692, z=95.4614182, orientation=-1.26908457, teleport=false)
    at /home/---/zero/src/server/src/game/Object/Player.cpp:5468
    #47 0x0869f517 in Unit::UpdateSplineMovement (this=0xcd56db0, t_diff=100)
    at /home/---/zero/src/server/src/game/Object/Unit.cpp:9321
    #48 0x086830bf in Unit::Update (this=0xcd56db0, update_diff=100, p_time=100)
    at /home/---/zero/src/server/src/game/Object/Unit.cpp:371
    #49 0x086c3967 in Player::Update (this=0xcd56db0, update_diff=100, p_time=100)
    at /home/---/zero/src/server/src/game/Object/Player.cpp:1115
    #50 0x087db270 in WorldObject::UpdateHelper::Update (this=0xb203c18c,
    time_diff=100) at /home/---/zero/src/server/src/game/Object/Object.h:473
    #51 0x087d4bb0 in Map::Update (this=0xa63f5d8, t_diff=@0xb203c23c: 100)
    at /home/---/zero/src/server/src/game/WorldHandlers/Map.cpp:482
    #52 0x088e44fa in MapManager::Update (this=0xb467da8, diff=49)
    at /home/---/zero/src/server/src/game/WorldHandlers/MapManager.cpp:184
    #53 0x087f1ae5 in World::Update (this=0x8e52528, diff=49)
    at /home/---/zero/src/server/src/game/WorldHandlers/World.cpp:1498
    #54 0x085b8523 in WorldRunnable::run (this=0xbb3e4f8)
    at /home/---/zero/src/server/src/mangosd/WorldRunnable.cpp:66
    #55 0x0898e2f1 in ACE_Based::Thread::ThreadTask (param=0xbb3e4f8)
    at /home/---/zero/src/server/src/shared/Threading.cpp:197
    #56 0xb7f08980 in ACE_OS_Thread_Adapter::invoke (this=0xbb3f7b8)
    at /home/---/zero/src/server/dep/acelite/ace/OS_Thread_Adapter.cpp:103
    #57 0xb7eadca3 in ace_thread_adapter (args=0xbb3f7b8)
    at /home/---/zero/src/server/dep/acelite/ace/Base_Thread_Adapter.cpp:126
    #58 0xb7717c39 in start_thread ()
    from /lib/i386-linux-gnu/i686/cmov/libpthread.so.0
    #59 0xb76849fe in clone () from /lib/i386-linux-gnu/i686/cmov/libc.so.6
    [/code]
    Whoa! That is a new logic_error crash! Big one too! However, I had to compile using internal ACE and I see ACE listed there. I always use external because I remember large backtraces like this from ages back when I used internal ACE. Foereaper said there was a new internal ACE, but I still see ACE in this dump. I would REALLY like to be able to use my OS ACE libraries again. That fixed loads of crashes in the past.

    Link to comment
    Share on other sites

    I fixed the ACE issue on my end by hand-editing the "link.txt" files for realmd and mangosd and changing "-lace" to "-lACE". This was mentioned in the other ticket.

    Now I am running with my distro's official ACE libraries. If this crashes again it should tell us whether or not it is ACE, just internal ACE, or something else.

    Link to comment
    Share on other sites

    It crashed again.
    [code]
    LoadPath: loading waypoint path for Creature (Entry: 3296 Guid: 8527)
    Creature 6418 used AI is EventAI.
    Creature 7885 used AI is EventAI.
    Creature 6419 used AI is EventAI.
    terminate called after throwing an instance of 'std::logic_error'
    what(): invalid node overlap

    Program received signal SIGABRT, Aborted.
    [Switching to Thread 0xb20f1b70 (LWP 24451)]
    0xb7fe1424 in __kernel_vsyscall ()
    (gdb) backtrace
    #0 0xb7fe1424 in __kernel_vsyscall ()
    #1 0xb768c661 in raise () from /lib/i386-linux-gnu/i686/cmov/libc.so.6
    #2 0xb768fa92 in abort () from /lib/i386-linux-gnu/i686/cmov/libc.so.6
    #3 0xb787528d in __gnu_cxx::__verbose_terminate_handler() ()
    from /usr/lib/i386-linux-gnu/libstdc++.so.6
    #4 0xb7872ef3 in ?? () from /usr/lib/i386-linux-gnu/libstdc++.so.6
    #5 0xb7872f2f in std::terminate() ()
    from /usr/lib/i386-linux-gnu/libstdc++.so.6
    #6 0xb78731ce in __cxa_throw () from /usr/lib/i386-linux-gnu/libstdc++.so.6
    #7 0x087cbf33 in BIH::subdivide (this=0xde44230, left=31, right=36,
    tempTree=..., dat=..., gridBox=..., nodeBox=..., nodeIndex=120, depth=4,
    stats=...) at /home/---/zero/src/server/src/game/vmap/BIH.cpp:68
    #8 0x087cc3a4 in BIH::subdivide (this=0xde44230, left=31, right=36,
    tempTree=..., dat=..., gridBox=..., nodeBox=..., nodeIndex=117, depth=3,
    stats=...) at /home/---/zero/src/server/src/game/vmap/BIH.cpp:128
    #9 0x087cc3a4 in BIH::subdivide (this=0xde44230, left=31, right=36,
    tempTree=..., dat=..., gridBox=..., nodeBox=..., nodeIndex=6, depth=2,
    stats=...) at /home/---/zero/src/server/src/game/vmap/BIH.cpp:128
    #10 0x087ccab7 in BIH::subdivide (this=0xde44230, left=0, right=30,
    tempTree=..., dat=..., gridBox=..., nodeBox=..., nodeIndex=0, depth=1,
    stats=...) at /home/---/zero/src/server/src/game/vmap/BIH.cpp:252
    #11 0x087cbc7d in BIH::buildHierarchy (this=0xde44230, tempTree=..., dat=...,
    stats=...) at /home/---/zero/src/server/src/game/vmap/BIH.cpp:38
    #12 0x0896b3b7 in BIH::build >(G3D::Array const&, void (&)(GameObjectModel const*, G3D::AABox&), unsigned int, bool) (
    this=0xde44230, primitives=..., getBounds=
    @0x8969dcf: {void (const GameObjectModel *, G3D::AABox &)} 0x8969dcf ::getBounds2(GameObjectModel const*, G3D::AABox&)>,
    leafSize=3, printStats=false)
    at /home/---/zero/src/server/src/game/vmap/BIH.h:156
    #13 0x0896aa23 in BIHWrap >::balance (this=0xde44230) at /home/---/zero/src/server/src/game/vmap/BIHWrap.h:154
    #14 0x0896abba in BIHWrap >::intersectRay (this=0xde44230, r=...,
    intersectCallback=..., maxDist=@0xb20ed5b0: 16.0606842)
    at /home/---/zero/src/server/src/game/vmap/BIHWrap.h:167
    #15 0x0896a568 in RegularGrid2D >, NodeCreator > >, PositionTrait >::intersectZAllignedRay (this=0xb4726a8, ray=..., intersectCallback=...,
    max_dist=@0xb20ed5b0: 16.0606842)
    at /home/---/zero/src/server/src/game/vmap/RegularGrid.h:357
    #16 0x08969c9f in DynamicMapTree::getHeight (this=0xa662764, x=1435.33093,
    y=-4717.79883, z=34.3669014, maxSearchDist=16.0606842)
    at /home/---/zero/src/server/src/game/vmap/DynamicTree.cpp:278
    #17 0x087d9c66 in Map::GetHeight (this=0xa63d5c8, x=1435.33093, y=-4717.79883,
    z=32.3669014)
    at /home/---/zero/src/server/src/game/WorldHandlers/Map.cpp:2022
    #18 0x0866b2dc in WorldObject::UpdateAllowedPositionZ (this=0xc286da0,
    x=1435.33093, y=-4717.79883, z=@0xb20ed6d8: 32.3669014)
    at /home/---/zero/src/server/src/game/Object/Object.cpp:1318
    #19 0x08933539 in RandomMovementGenerator::_setRandomLocation (
    this=0xce0d398, creature=...)
    at /home/---/zero/src/server/src/game/MotionGenerators/RandomMovementGenerator.cpp:58
    #20 0x089336bc in RandomMovementGenerator::Initialize (
    this=0xce0d398, creature=...)
    at /home/---/zero/src/server/src/game/MotionGenerators/RandomMovementGenerator.cpp:86
    #21 0x085f1e46 in MovementGeneratorMedium >::Initialize (this=0xce0d398, u=...)
    at /home/---/zero/src/server/src/game/MotionGenerators/MovementGenerator.h:79
    #22 0x085eaaf3 in MotionMaster::Initialize (this=0xc2877d0)
    at /home/---/zero/src/server/src/game/MotionGenerators/MotionMaster.cpp:63
    #23 0x0871b9a3 in Creature::AIM_Initialize (this=0xc286da0)
    at /home/---/zero/src/server/src/game/Object/Creature.cpp:780
    #24 0x0871dcb4 in Creature::LoadFromDB (this=0xc286da0, guidlow=6686,
    map=0xa63d5c8)
    at /home/---/zero/src/server/src/game/Object/Creature.cpp:1444
    #25 0x08877b9f in LoadHelper (guid_set=..., cell=...,
    count=@0xb20eeb14: 101, map=0xa63d5c8, grid=...)
    at /home/---/zero/src/server/src/game/WorldHandlers/ObjectGridLoader.cpp:126
    #26 0x08877275 in ObjectGridLoader::Visit (this=0xb20eeb04, m=...)
    at /home/---/zero/src/server/src/game/WorldHandlers/ObjectGridLoader.cpp:203
    #27 0x088783d4 in VisitorHelper (v=..., c=...)
    at /home/---/zero/src/server/src/framework/GameSystem/TypeContainerVisitor.h:72
    #28 0x0887827c in VisitorHelper > > (v=..., c=...)
    at /home/---/zero/src/server/src/framework/GameSystem/TypeContainerVisitor.h:85
    #29 0x08878172 in VisitorHelper > > > (v=..., c=...)
    at /home/---/zero/src/server/src/framework/GameSystem/TypeContainerVisitor.h:86
    #30 0x088780ae in VisitorHelper > > > > (v=...,
    c=...)
    at /home/---/zero/src/server/src/framework/GameSystem/TypeContainerVisitor.h:98
    #31 0x08878016 in TypeContainerVisitor > > > > >::Visit (this=0xb20eda4c, c=...)
    at /home/---/zero/src/server/src/framework/GameSystem/TypeContainerVisitor.h:127
    #32 0x08877cf2 in Grid > > >, TypeList > > > >::Visit (this=0xdcf221c, visitor=...)
    at /home/---/zero/src/server/src/framework/GameSystem/Grid.h:99
    #33 0x08877442 in ObjectGridLoader::Load (this=0xb20eeb04, grid=...)
    at /home/---/zero/src/server/src/game/WorldHandlers/ObjectGridLoader.cpp:226
    #34 0x08877d38 in GridLoader > > >, TypeList > > > >::Load (this=0xb20edab7, grid=..., loader=...)
    at /home/---/zero/src/server/src/framework/GameSystem/GridLoader.h:63
    #35 0x08877551 in ObjectGridLoader::LoadN (this=0xb20eeb04)
    at /home/---/zero/src/server/src/game/WorldHandlers/ObjectGridLoader.cpp:2
    48
    #36 0x087d2f7e in Map::EnsureGridLoaded (this=0xa63d5c8, cell=...)
    at /home/---/zero/src/server/src/game/WorldHandlers/Map.cpp:284
    #37 0x08603518 in Map::Visit<:visiblenotifier typemapcontainer typelist typenull> > > > > > (this=0xa63d5c8, cell=..., visitor=...)
    at /home/---/zero/src/server/src/game/WorldHandlers/Map.h:445
    #38 0x08603714 in Cell::VisitCircle<:visiblenotifier typemapcontainer typelist typenull> > > > > > (this=0xb20eece4, visitor=..., m=..., begin_cell=...,
    end_cell=...)
    at /home/---/zero/src/server/src/game/WorldHandlers/CellImpl.h:169
    #39 0x08602ce7 in Cell::Visit<:visiblenotifier typemapcontainer typelist typenull> > > > > > (this=0xb20eece4, standing_cell=..., visitor=..., m=...,
    x=1685.84998, y=-4400.78955, radius=91.3158417)
    at /home/---/zero/src/server/src/game/WorldHandlers/CellImpl.h:102
    #40 0x08602303 in Cell::Visit<:visiblenotifier typemapcontainer typelist typenull> > > > > > (this=0xb20eece4, standing_cell=..., visitor=..., m=..., obj=...,
    radius=90)
    at /home/---/zero/src/server/src/game/WorldHandlers/CellImpl.h:62
    #41 0x08601ba9 in Cell::VisitAllObjects<:visiblenotifier> (
    center_obj=0xd08f380, visitor=..., radius=90, dont_load=false)
    at /home/---/zero/src/server/src/game/WorldHandlers/CellImpl.h:211
    #42 0x08600b9f in Camera::UpdateVisibilityForOwner (this=0xd090608)
    at /home/---/zero/src/server/src/game/Object/Camera.cpp:155
    #43 0x0866da98 in ViewPoint::CameraCall (this=0xd08f3f4, handler=
    (void (Camera::*)(Camera * const)) 0x8600b4c <:updatevisibilityforowner>) at /home/---/zero/src/server/src/game/Object/Camera.h:105
    #44 0x0866db3b in ViewPoint::Call_UpdateVisibilityForOwner (this=0xd08f3f4)
    at /home/---/zero/src/server/src/game/Object/Camera.h:143
    #45 0x0869e457 in Unit::OnRelocated (this=0xd08f380)
    at /home/---/zero/src/server/src/game/Object/Unit.cpp:9292
    #46 0x087d4a32 in Map::PlayerRelocation (this=0xa63d5c8, player=0xd08f380,
    x=1685.84998, y=-4400.78955, z=39.4894028, orientation=3.32587123)
    at /home/---/zero/src/server/src/game/WorldHandlers/Map.cpp:722
    #47 0x086d0caf in Player::SetPosition (this=0xd08f380, x=1685.84998,
    y=-4400.78955, z=39.4894028, orientation=3.32587123, teleport=false)
    at /home/---/zero/src/server/src/game/Object/Player.cpp:5468
    #48 0x088f1c49 in WorldSession::HandleMoverRelocation (this=0xb31006c8,
    movementInfo=...)
    at /home/---/zero/src/server/src/game/WorldHandlers/MovementHandler.cpp:649
    #49 0x088f09ae in WorldSession::HandleMovementOpcodes (this=0xb31006c8,
    recv_data=...)
    at /home/---/zero/src/server/src/game/WorldHandlers/MovementHandler.cpp:345
    #50 0x087696ab in WorldSession::ExecuteOpcode (this=0xb31006c8, opHandle=...,
    packet=0xb3100ce0)
    at /home/---/zero/src/server/src/game/Server/WorldSession.cpp:722
    #51 0x08767d8e in WorldSession::Update (this=0xb31006c8, updater=...)
    at /home/---/zero/src/server/src/game/Server/WorldSession.cpp:235
    #52 0x087d3a25 in Map::Update (this=0xa63d5c8, t_diff=@0xb20f123c: 100)
    at /home/---/zero/src/server/src/game/WorldHandlers/Map.cpp:471
    #53 0x088e3456 in MapManager::Update (this=0xb465df0, diff=48)
    at /home/---/zero/src/server/src/game/WorldHandlers/MapManager.cpp:184
    #54 0x087f0a41 in World::Update (this=0x8e50310, diff=48)
    at /home/---/zero/src/server/src/game/WorldHandlers/World.cpp:1498
    #55 0x085b759f in WorldRunnable::run (this=0xbb3bcd8)
    at /home/---/zero/src/server/src/mangosd/WorldRunnable.cpp:66
    #56 0x0898d1c5 in ACE_Based::Thread::ThreadTask (param=0xbb3bcd8)
    at /home/---/zero/src/server/src/shared/Threading.cpp:197
    #57 0xb7f43171 in ACE_OS_Thread_Adapter::invoke() ()
    from /usr/lib/libACE-6.0.3.so
    #58 0xb7f051cf in ace_thread_adapter () from /usr/lib/libACE-6.0.3.so
    #59 0xb77ccc39 in start_thread ()
    from /lib/i386-linux-gnu/i686/cmov/libpthread.so.0
    #60 0xb77399fe in clone () from /lib/i386-linux-gnu/i686/cmov/libc.so.6
    [/code]
    I see movement generator files there as well as movement handlers. I also see visibility checks. Didn't Antz mention redoing the random movement code in a forum thread? Maybe it has some bugs of its own. I do see my ACE library listed however, so this proves the internal ACE library was NOT to blame.

    Link to comment
    Share on other sites

    The last stable version as far as my testing has gone is up until this commit:

    [url]https://github.com/mangoszero/server/commit/1cd1b9614dec8a519af47bd30a65064d46ad1d2d[/url]

    I have not yet had the time to venture past that commit, though I suspect it is either the timed event handler rewrite or the new ore system. I somewhat lean towards the latter as the stack trace contains information related to game object models.

    Link to comment
    Share on other sites

    I was told it would not run with both disabled. In fact Antz was the one who told me something along those lines. To aid new people I set my script to not allow such a configuration. I can do it by hand, but will it even start? I am currently compiling your last fix and will be testing it soon. The fix for "-lace" versus "-lACE".

    Link to comment
    Share on other sites

    It will, you can disable one, the other, or both if you choose to do so. Least it does on Windows, haven't tested Linux build :) Anyway, some interesting information about the crash. See:

    [URL]https://github.com/TrinityCore/TrinityCore/issues/5218[/URL]

    The fix for this was pushed already not too long ago, however it is most likely something along the same lines as what Trinity faced. Also, note that this is a *NIX only issue.

    Link to comment
    Share on other sites

    I am reading the thread now, but why is it only a *nix issue? That indicates bad code. Why? Because *nix, BSD, Solaris, Apple, etc are all very much the same and Windows is the odd-ball here. Not trying to talk bad about Windows, just making note of that point. What this tells me is that this is some code that runs on Windows and nothing else (correctly), so what code is it and how can we modify it to run properly on everything?

    Link to comment
    Share on other sites

    The fix that worked for TC was pushed here:

    [URL]https://github.com/mangoszero/server/commit/426c697a73839b89a117b8f1fc61eee696b6bc7c[/URL]

    Something else is obviously playing up, though at this point I have no idea what. Like Trinity did, we should recreate the crash in Valgrind for some proper information. For reference sake I would still like for you to try this with both SD2 and Eluna disabled. The more we can rule out the better.

    Link to comment
    Share on other sites

    I have spent the better half of the evening trying to reproduce this crash. With a Warrior character I have not yet been able to do so. I do have a couple of questions though:

    - Are either of your characters a character that has any pets?
    - Are you doing any gathering related professions like mining, herbalism etc?

    Link to comment
    Share on other sites

    Please try this and let me know how it works out:


    git clone [URL]https://github.com/mangoszero/server.git[/URL] -b Rel20
    git checkout b79a091
    git submodule init
    git submodule update


    I have tested this for a couple hours so far and it seems to be stable. This includes both the changes to the event system, AND the ore system. If this is stable, then I will seriously have to reconsider what is wrong..

    [COLOR=#ff0000][SIZE=3]IGNORE THE ABOVE PART OF THIS POST[/COLOR][/SIZE]

    It would seem that the above listed commit, b79a091, does NOT contain the new Ore spawn system. This is due to Git being a... Git. b79a091 is STABLE. Will now continue testing on 5b5d667.

    Link to comment
    Share on other sites

    It is dead! As soon as I logged into the server and selected a character, it crashed with "invalid node overlap". So somehow SD2 and/or Eluna are keeping it up for a while.

    Wait, I restarted it and got in this time. We will see what happens.

    Link to comment
    Share on other sites

    If you manage to keep crashing it around Orgrimmar, that would be great :P I have yet to be able to reproduce the crash with the version mentioned above, but not necessarily sure if it's stable just yet.

    Also, if you have time, please compile with the below:

    [COLOR=#3E3E3E]git clone [/COLOR][URL]https://github.com/mangoszero/server.git[/URL][COLOR=#3E3E3E] -b Rel20[/COLOR]
    [COLOR=#3E3E3E]git checkout [/COLOR]5b5d667
    [COLOR=#3E3E3E]git submodule init[/COLOR]
    [COLOR=#3E3E3E]git submodule update

    This is what I have been testing for the past couple hours, no crashes so far. If you have no crashes with this, then [/COLOR]5b5d667 is a stable revision and helps narrow down what's causing this.

    Link to comment
    Share on other sites

    I will clone and build that if this crashes. Still running without SD2 and Eluna which I am sure cripples many quests, so we're basically grinding right now.

    *EDIT*

    Called mom so she can crash it for me. She manages to crash it every dang time. We will see if the core crashes without SD2 and Eluna shortly.

    Link to comment
    Share on other sites

    It took a while but it died.
    [code]
    Holder of spell 22766 now is in use
    MMAP:loadMap: Could not load 0014235.mmtile into navmesh
    Creature 21054 used AI is EventAI.
    LoadPath: loading waypoint path for Creature (Entry: 4111 Guid: 21156)
    Creature 21156 used AI is EventAI.
    Creature 21166 used AI is EventAI.
    Creature 21179 used AI is EventAI.
    Creature 21186 used AI is EventAI.
    Sending SMSG_SPELL_START id=10022
    Creature 21601 used AI is AggressorAI.
    LoadPath: loading waypoint path for Creature (Entry: 4100 Guid: 21040)
    Creature 21040 used AI is EventAI.
    Creature 21052 used AI is EventAI.
    Creature 21188 used AI is EventAI.
    Sending SMSG_SPELL_START id=10022
    Creature 21192 used AI is EventAI.
    Sending SMSG_SPELL_START id=10022
    terminate called after throwing an instance of 'std::logic_error'
    what(): invalid node overlap

    Program received signal SIGABRT, Aborted.
    [Switching to Thread 0xb20f2b70 (LWP 1771)]
    0xb7fe1424 in __kernel_vsyscall ()
    (gdb) backtrace
    #0 0xb7fe1424 in __kernel_vsyscall ()
    #1 0xb768c661 in raise () from /lib/i386-linux-gnu/i686/cmov/libc.so.6
    #2 0xb768fa92 in abort () from /lib/i386-linux-gnu/i686/cmov/libc.so.6
    #3 0xb787528d in __gnu_cxx::__verbose_terminate_handler() ()
    from /usr/lib/i386-linux-gnu/libstdc++.so.6
    #4 0xb7872ef3 in ?? () from /usr/lib/i386-linux-gnu/libstdc++.so.6
    #5 0xb7872f2f in std::terminate() ()
    from /usr/lib/i386-linux-gnu/libstdc++.so.6
    #6 0xb78731ce in __cxa_throw () from /usr/lib/i386-linux-gnu/libstdc++.so.6
    #7 0x08727467 in BIH::subdivide (this=0xc04abe0, left=16, right=19,
    tempTree=..., dat=..., gridBox=..., nodeBox=..., nodeIndex=69, depth=7,
    stats=...) at /home/---/zero/src/server/src/game/vmap/BIH.cpp:68
    #8 0x087278d8 in BIH::subdivide (this=0xc04abe0, left=16, right=15,
    tempTree=..., dat=..., gridBox=..., nodeBox=..., nodeIndex=66, depth=6,
    stats=...) at /home/---/zero/src/server/src/game/vmap/BIH.cpp:128
    #9 0x08727feb in BIH::subdivide (this=0xc04abe0, left=13, right=15,
    tempTree=..., dat=..., gridBox=..., nodeBox=..., nodeIndex=60, depth=5,
    stats=...) at /home/---/zero/src/server/src/game/vmap/BIH.cpp:252
    #10 0x08727feb in BIH::subdivide (this=0xc04abe0, left=11, right=12,
    tempTree=..., dat=..., gridBox=..., nodeBox=..., nodeIndex=54, depth=4,
    stats=...) at /home/---/zero/src/server/src/game/vmap/BIH.cpp:252
    #11 0x087278d8 in BIH::subdivide (this=0xc04abe0, left=11, right=10,
    tempTree=..., dat=..., gridBox=..., nodeBox=..., nodeIndex=6, depth=2,
    stats=...) at /home/---/zero/src/server/src/game/vmap/BIH.cpp:128
    #12 0x08727feb in BIH::subdivide (this=0xc04abe0, left=0, right=10,
    tempTree=..., dat=..., gridBox=..., nodeBox=..., nodeIndex=0, depth=1,
    stats=...) at /home/---/zero/src/server/src/game/vmap/BIH.cpp:252
    #13 0x087271b1 in BIH::buildHierarchy (this=0xc04abe0, tempTree=..., dat=...,
    stats=...) at /home/---/zero/src/server/src/game/vmap/BIH.cpp:38
    #14 0x088c5193 in BIH::build >(G3D::Array const&, void (&)(GameObjectModel const*, G3D::AABox&), unsigned int, bool) (
    this=0xc04abe0, primitives=..., getBounds=
    @0x88c3bab: {void (const GameObjectModel *, G3D::AABox &)} 0x88c3bab ::getBounds2(GameObjectModel const*, G3D::AABox&)>,
    leafSize=3, printStats=false)
    at /home/---/zero/src/server/src/game/vmap/BIH.h:156
    #15 0x088c47ff in BIHWrap >::balance (this=0xc04abe0) at /home/---/zero/src/server/src/game/vmap/BIHWrap.h:154
    #16 0x088c4996 in BIHWrap >::intersectRay (this=0xc04abe0, r=...,
    intersectCallback=..., maxDist=@0xb20ee5b0: 2.12960052)
    at /home/---/zero/src/server/src/game/vmap/BIHWrap.h:167
    #17 0x088c4344 in RegularGrid2D >, NodeCreator > >, PositionTrait >::intersectZAllignedRayTreeIntersectionCallback> (this=0xa382970, ray=..., intersectCallback=...,
    max_dist=@0xb20ee5b0: 2.12960052)
    at /home/---/zero/src/server/src/game/vmap/RegularGrid.h:357
    #18 0x088c3a7b in DynamicMapTree::getHeight (this=0xb207a44, x=-5573.08398,
    y=-1969.3446, z=-59.1703987, maxSearchDist=2.12960052)
    at /home/---/zero/src/server/src/game/vmap/DynamicTree.cpp:278
    #19 0x087350ae in Map::GetHeight (this=0xb1e28a8, x=-5573.08398, y=-1969.3446,
    z=-61.1703987)
    at /home/---/zero/src/server/src/game/WorldHandlers/Map.cpp:2022
    #20 0x085c6ed2 in WorldObject::UpdateAllowedPositionZ (this=0xce2c688,
    x=-5573.08398, y=-1969.3446, z=@0xb20ee6d8: -61.1703987)
    at /home/---/zero/src/server/src/game/Object/Object.cpp:1318
    #21 0x0888d335 in RandomMovementGenerator::_setRandomLocation (
    this=0xcdc6a18, creature=...)
    at /home/---/zero/src/server/src/game/MotionGenerators/RandomMovementGenerator.cpp:58
    #22 0x0888d4b8 in RandomMovementGenerator::Initialize (
    this=0xcdc6a18, creature=...)
    at /home/---/zero/src/server/src/game/MotionGenerators/RandomMovementGenerator.cpp:86
    #23 0x0854db36 in MovementGeneratorMedium >::Initialize (this=0xcdc6a18, u=...)
    at /home/---/zero/src/server/src/game/MotionGenerators/MovementGenerator.h
    :79
    #24 0x085467e3 in MotionMaster::Initialize (this=0xce2d0b4)
    at /home/---/zero/src/server/src/game/MotionGenerators/MotionMaster.cpp:63
    #25 0x08677155 in Creature::AIM_Initialize (this=0xce2c688)
    at /home/---/zero/src/server/src/game/Object/Creature.cpp:780
    #26 0x08679478 in Creature::LoadFromDB (this=0xce2c688, guidlow=21191,
    map=0xb1e28a8)
    at /home/---/zero/src/server/src/game/Object/Creature.cpp:1446
    #27 0x087d263f in LoadHelper (guid_set=..., cell=...,
    count=@0xb20efb14: 10, map=0xb1e28a8, grid=...)
    at /home/---/zero/src/server/src/game/WorldHandlers/ObjectGridLoader.cpp:126
    #28 0x087d1d15 in ObjectGridLoader::Visit (this=0xb20efb04, m=...)
    at /home/---/zero/src/server/src/game/WorldHandlers/ObjectGridLoader.cpp:203
    #29 0x087d2e74 in VisitorHelper (v=..., c=...)
    at /home/---/zero/src/server/src/framework/GameSystem/TypeContainerVisitor.h:72
    #30 0x087d2d1c in VisitorHelper > > (v=..., c=...)
    at /home/---/zero/src/server/src/framework/GameSystem/TypeContainerVisitor.h:85
    #31 0x087d2c12 in VisitorHelper > > > (v=..., c=...)
    at /home/---/zero/src/server/src/framework/GameSystem/TypeContainerVisitor.h:86
    #32 0x087d2b4e in VisitorHelper > > > > (v=...,
    c=...)
    at /home/---/zero/src/server/src/framework/GameSystem/TypeContainerVisitor.h:98
    #33 0x087d2ab6 in TypeContainerVisitor > > > > >::Visit (this=0xb20eea4c, c=...)
    at /home/---/zero/src/server/src/framework/GameSystem/TypeContainerVisitor.h:127
    #34 0x087d2792 in Grid > > >, TypeList > > > >::Visit (this=0xdad354c, visitor=...)
    at /home/---/zero/src/server/src/framework/GameSystem/Grid.h:99
    #35 0x087d1ee2 in ObjectGridLoader::Load (this=0xb20efb04, grid=...)
    at /home/---/zero/src/server/src/game/WorldHandlers/ObjectGridLoader.cpp:226
    #36 0x087d27d8 in GridLoadert > > >, TypeList > > > >::Load (this=0xb20eeab7, grid=..., loader=...)
    at /home/---/zero/src/server/src/framework/GameSystem/GridLoader.h:63
    #37 0x087d1ff1 in ObjectGridLoader::LoadN (this=0xb20efb04)
    at /home/---/zero/src/server/src/game/WorldHandlers/ObjectGridLoader.cpp:248
    #38 0x0872e480 in Map::EnsureGridLoaded (this=0xb1e28a8, cell=...)
    at /home/---/zero/src/server/src/game/WorldHandlers/Map.cpp:284
    #39 0x0855f1c0 in Map::Visit<:visiblenotifier typemapcontainer typelist typenull> > > > > > (this=0xb1e28a8, cell=..., visitor=...)
    at /home/---/zero/src/server/src/game/WorldHandlers/Map.h:445
    #40 0x0855f2f4 in Cell::VisitCircle<:visiblenotifier typemapcontainer typelist typenull> > > > > > (this=0xb20efce4, visitor=..., m=..., begin_cell=...,
    end_cell=...)
    at /home/---/zero/src/server/src/game/WorldHandlers/CellImpl.h:145
    #41 0x0855e98f in Cell::Visit<:visiblenotifier typemapcontainer typelist typenull> > > > > > (this=0xb20efce4, standing_cell=..., visitor=..., m=...,
    x=-5803.38428, y=-2216.19189, radius=90.3720016)
    at /home/---/zero/src/server/src/game/WorldHandlers/CellImpl.h:102
    #42 0x0855dfab in Cell::Visit<:visiblenotifier typemapcontainer typelist typenull> > > > > > (this=0xb20efce4, standing_cell=..., visitor=..., m=..., obj=...,
    radius=90)
    at /home/---/zero/src/server/src/game/WorldHandlers/CellImpl.h:62
    #43 0x0855d851 in Cell::VisitAllObjects<:visiblenotifier> (
    center_obj=0xcaf8510, visitor=..., radius=90, dont_load=false)
    at /home/---/zero/src/server/src/game/WorldHandlers/CellImpl.h:211
    #44 0x0855c847 in Camera::UpdateVisibilityForOwner (this=0xcaf9794)
    at /home/---/zero/src/server/src/game/Object/Camera.cpp:155
    #45 0x085c965e in ViewPoint::CameraCall (this=0xcaf8580, handler=
    (void (Camera::*)(Camera * const)) 0x855c7f4 <:updatevisibilityforowner>) at /home/---/zero/src/server/src/game/Object/Camera.h:105
    #46 0x085c9701 in ViewPoint::Call_UpdateVisibilityForOwner (this=0xcaf8580)
    at /home/---/zero/src/server/src/game/Object/Camera.h:143
    #47 0x085f9f13 in Unit::OnRelocated (this=0xcaf8510)
    at /home/---/zero/src/server/src/game/Object/Unit.cpp:9293
    #48 0x0872fecc in Map::PlayerRelocation (this=0xb1e28a8, player=0xcaf8510,
    x=-5803.38428, y=-2216.19189, z=87.4900208, orientation=3.20485687)
    at /home/---/zero/src/server/src/game/WorldHandlers/Map.cpp:722
    #49 0x0862c685 in Player::SetPosition (this=0xcaf8510, x=-5803.38428,
    y=-2216.19189, z=87.4900208, orientation=3.20485687, teleport=false)
    at /home/---/zero/src/server/src/game/Object/Player.cpp:5468
    #50 0x0884bae5 in WorldSession::HandleMoverRelocation (this=0xc91e490,
    movementInfo=...)
    at /home/---/zero/src/server/src/game/WorldHandlers/MovementHandler.cpp:649
    #51 0x0884a84a in WorldSession::HandleMovementOpcodes (this=0xc91e490,
    recv_data=...)
    at /home/---/zero/src/server/src/game/WorldHandlers/MovementHandler.cpp:345
    #52 0x086c4c75 in WorldSession::ExecuteOpcode (this=0xc91e490, opHandle=...,
    packet=0xb3100630)
    at /home/---/zero/src/server/src/game/Server/WorldSession.cpp:722
    #53 0x086c3396 in WorldSession::Update (this=0xc91e490, updater=...)
    at /home/---/zero/src/server/src/game/Server/WorldSession.cpp:235
    #54 0x0872eef9 in Map::Update (this=0xb1e28a8, t_diff=@0xb20f223c: 100)
    at /home/---/zero/src/server/src/game/WorldHandlers/Map.cpp:471
    #55 0x0883d45a in MapManager::Update (this=0xb98e020, diff=47)
    at /home/---/zero/src/server/src/game/WorldHandlers/MapManager.cpp:184
    #56 0x0874bdcb in World::Update (this=0x8c001b8, diff=47)
    at /home/---/zero/src/server/src/game/WorldHandlers/World.cpp:1498
    #57 0x08513293 in WorldRunnable::run (this=0xb90fc00)
    at /home/---/zero/src/server/src/mangosd/WorldRunnable.cpp:66
    #58 0x088e6d11 in ACE_Based::Thread::ThreadTask (param=0xb90fc00)
    at /home/---/zero/src/server/src/shared/Threading.cpp:197
    #59 0xb7f43171 in ACE_OS_Thread_Adapter::invoke() ()
    from /usr/lib/libACE-6.0.3.so
    #60 0xb7f051cf in ace_thread_adapter () from /usr/lib/libACE-6.0.3.so
    #61 0xb77ccc39 in start_thread ()
    from /lib/i386-linux-gnu/i686/cmov/libpthread.so.0
    #62 0xb77399fe in clone () from /lib/i386-linux-gnu/i686/cmov/libc.so.6
    [/code]
    Now let me compile the new stuff with SD2 and Eluna and your patch.

    Link to comment
    Share on other sites

    Alright, cloned fresh as you stated, built, installed, crashed upon character login. It is the mineral veins.
    [code]
    WORLD: Sent motd (SMSG_MOTD)
    CHARACTER: Sent Initial Spells
    Initializing Action Buttons for '5'
    Action Buttons for '5' Initialized
    PLAYER: UpdateHonor

    Program received signal SIGSEGV, Segmentation fault.
    [Switching to Thread 0xb20f1b70 (LWP 6791)]
    0x08650956 in GameObject::RollIfMineralVein (this=0xa20cf70)
    at /home/ryana/zero/src/server/src/game/GameObject.cpp:1795
    1795 SetDisplayId(goinfonew->displayId);
    (gdb) backtrace
    #0 0x08650956 in GameObject::RollIfMineralVein (this=0xa20cf70)
    at /home/---/zero/src/server/src/game/GameObject.cpp:1795
    #1 0x0864c08d in GameObject::Create (this=0xa20cf70, guidlow=6481,
    name_id=1735, map=0xb959388, x=-5743, y=-2341, z=-42, ang=4.95599985,
    rotation0=0, rotation1=0, rotation2=0.615951002, rotation3=-0.78778398,
    animprogress=100, go_state=GO_STATE_READY)
    at /home/---/zero/src/server/src/game/GameObject.cpp:209
    #2 0x0864d73a in GameObject::LoadFromDB (this=0xa20cf70, guid=6481,
    map=0xb959388) at /home/---/zero/src/server/src/game/GameObject.cpp:675
    #3 0x088691a3 in LoadHelper (guid_set=..., cell=...,
    count=@0xb20f0f70: 2, map=0xb959388, grid=...)
    at /home/---/zero/src/server/src/game/ObjectGridLoader.cpp:126
    #4 0x088688a4 in ObjectGridLoader::Visit (this=0xb20f0f64, m=...)
    at /home/---/zero/src/server/src/game/ObjectGridLoader.cpp:188
    #5 0x08869a22 in VisitorHelper (v=..., c=...)
    at /home/---/zero/src/server/src/framework/GameSystem/TypeContainerVisitor.h:72
    #6 0x0886991d in VisitorHelper > > > (v=..., c=...)
    at /home/---/zero/src/server/src/framework/GameSystem/TypeContainerVisitor.h:85
    #7 0x0886986e in VisitorHelper > > > > (v=...,
    c=...)
    at /home/---/zero/src/server/src/framework/GameSystem/TypeContainerVisitor.h:98
    #8 0x088697d6 in TypeContainerVisitor > > > > >::Visit (this=0xb20efeac, c=...)
    at /home/---/zero/src/server/src/framework/GameSystem/TypeContainerVisitor.h:127
    #9 0x088694b2 in Grid > > >, TypeList > > > >::Visit (this=0xa221a2c, visitor=...)
    at /home/---/zero/src/server/src/framework/GameSystem/Grid.h:99
    #10 0x08868c02 in ObjectGridLoader::Load (this=0xb20f0f64, grid=...)
    at /home/---/zero/src/server/src/game/ObjectGridLoader.cpp:226
    #11 0x088694f8 in GridLoader > > >, TypeList > > > >::Load (this=0xb20eff17, grid=..., loader=...)
    at /home/---/zero/src/server/src/framework/GameSystem/GridLoader.h:63
    #12 0x08868d11 in ObjectGridLoader::LoadN (this=0xb20f0f64)
    at /home/---/zero/src/server/src/game/ObjectGridLoader.cpp:248
    #13 0x08839f2e in Map::EnsureGridLoaded (this=0xb959388, cell=...)
    at /home/---/zero/src/server/src/game/Map.cpp:282
    #14 0x08839b4d in Map::EnsureGridLoadedAtEnter (this=0xb959388, cell=...,
    player=0xa20a158) at /home/---/zero/src/server/src/game/Map.cpp:244
    #15 0x0883a0d5 in Map::Add (this=0xb959388, player=0xa20a158)
    at /home/---/zero/src/server/src/game/Map.cpp:308
    #16 0x0894320d in WorldSession::HandlePlayerLogin (this=0xa2051b8,
    holder=0xb9e2c00)
    at /home/---/zero/src/server/src/game/CharacterHandler.cpp:622
    #17 0x08944765 in CharacterHandler::HandlePlayerLoginCallback (this=0x8c810a0,
    holder=0xb9e2c00)
    at /home/---/zero/src/server/src/game/CharacterHandler.cpp:134
    #18 0x089452e5 in MaNGOS::_Callback::_Execute (this=0xa20700c)
    at /home/---/zero/src/server/src/framework/Utilities/Callback.h:198
    #19 0x0894519c in MaNGOS::_IQueryCallback<:_callback queryresult sqlqueryholder void> >::Execute (this=0xa207008)
    at /home/---/zero/src/server/src/framework/Utilities/Callback.h:840
    #20 0x0895feb2 in SqlResultQueue::Update (this=0x8cc6928)
    at /home/---/zero/src/server/src/shared/Database/SqlOperations.cpp:111
    #21 0x089577c4 in Database::ProcessResultQueue (this=0x8c7b040)
    at /home/---/zero/src/server/src/shared/Database/Database.cpp:206
    #22 0x088e1cf4 in World::UpdateResultQueue (this=0x8cd82c8)
    at /home/---/zero/src/server/src/game/World.cpp:2003
    #23 0x088e064f in World::Update (this=0x8cd82c8, diff=50)
    at /home/---/zero/src/server/src/game/World.cpp:1511
    #24 0x0854d4bf in WorldRunnable::run (this=0xa4c62d8)
    at /home/---/zero/src/server/src/mangosd/WorldRunnable.cpp:66
    #25 0x08970791 in ACE_Based::Thread::ThreadTask (param=0xa4c62d8)
    at /home/---/zero/src/server/src/shared/Threading.cpp:197
    #26 0xb7f50171 in ACE_OS_Thread_Adapter::invoke() ()
    from /usr/lib/libACE-6.0.3.so
    #27 0xb7f121cf in ace_thread_adapter () from /usr/lib/libACE-6.0.3.so
    #28 0xb77d6c39 in start_thread ()
    from /lib/i386-linux-gnu/i686/cmov/libpthread.so.0
    #29 0xb77429fe in clone () from /lib/i386-linux-gnu/i686/cmov/libc.so.6
    [/code]
    This looks like the old node code however. Is this correct?

    *UPDATE*

    I am back to where I was a month or so back. I cannot login at all. Every time I try I get that crash.

    Link to comment
    Share on other sites

    It crashed again.
    [code]
    PLAYER: RewardHonor
    DealDamageAttackStop
    creature 7 stopped attacking player 21
    player 21 stopped attacking creature 7
    SET JUST_DIED
    Aura 3 now is remove mode 4
    Aura 79 now is remove mode 5
    Aura 79 now is remove mode 5
    Aura 142 now is remove mode 5
    Aura 133 now is remove mode 5
    Aura 101 now is remove mode 5
    Aura 133 now is remove mode 5
    Aura 31 now is remove mode 5
    Aura 110 now is remove mode 5
    Aura 52 now is remove mode 5
    Aura 57 now is remove mode 5
    Aura 157 now is remove mode 5
    Aura 42 now is remove mode 5
    DealDamageEnd returned 7 damage

    Program received signal SIGSEGV, Segmentation fault.
    [Switching to Thread 0xb20f1b70 (LWP 13268)]
    0x00000000 in ?? ()
    (gdb) backtrace
    #0 0x00000000 in ?? ()
    #1 0x0882d9f6 in Aura::UpdateAura (this=0xb77c43f0, diff=100)
    at /home/---/zero/src/server/src/game/WorldHandlers/SpellAuras.h:455
    #2 0x0882cd88 in SpellAuraHolder::Update (this=0xc25f338, diff=100)
    at /home/---/zero/src/server/src/game/WorldHandlers/SpellAuras.cpp:5445
    #3 0x086a0425 in SpellAuraHolder::UpdateHolder (this=0xc25f338, diff=100)
    at /home/---/zero/src/server/src/game/WorldHandlers/SpellAuras.h:154
    #4 0x0868aed9 in Unit::_UpdateSpells (this=0xc170f28, time=100)
    at /home/---/zero/src/server/src/game/Object/Unit.cpp:2978
    #5 0x08681d7e in Unit::Update (this=0xc170f28, update_diff=100, p_time=100)
    at /home/---/zero/src/server/src/game/Object/Unit.cpp:329
    #6 0x0871af80 in Creature::Update (this=0xc170f28, update_diff=100, diff=100)
    at /home/---/zero/src/server/src/game/Object/Creature.cpp:589
    #7 0x086b628e in Pet::Update (this=0xc170f28, update_diff=100, diff=100)
    at /home/---/zero/src/server/src/game/Object/Pet.cpp:600
    #8 0x087d9c24 in WorldObject::UpdateHelper::Update (this=0xb20effc4,
    time_diff=100) at /home/---/zero/src/server/src/game/Object/Object.h:473
    #9 0x087da38e in MaNGOS::ObjectUpdater::Visit (this=0xb20f11a0, m=...)
    at /home/---/zero/src/server/src/game/WorldHandlers/GridNotifiersImpl.h:54
    #10 0x087e742c in VisitorHelper<:objectupdater creature> (v=..., c=...)
    at /home/---/zero/src/server/src/framework/GameSystem/TypeContainerVisitor.h:72
    #11 0x087e70a4 in VisitorHelper<:objectupdater creature typelist typenull> > > (v=..., c=...)
    at /home/---/zero/src/server/src/framework/GameSystem/TypeContainerVisitor.h:85
    #12 0x087e6a62 in VisitorHelper<:objectupdater player typelist typenull> > > > (v=..., c=...)
    at /home/---/zero/src/server/src/framework/GameSystem/TypeContainerVisitor.h:86
    #13 0x087e5d13 in VisitorHelper<:objectupdater typelist typenull> > > > > (v=..., c=...)
    at /home/---/zero/src/server/src/framework/GameSystem/TypeContainerVisitor.h:98
    #14 0x087e4ae6 in TypeContainerVisitor<:objectupdater typemapcontainer typelist typenull> > > > > >::Visit (this=0xb20f1198, c=...)
    at /home/---/zero/src/server/src/framework/GameSystem/TypeContainerVisitor.h:127
    #15 0x087e2d4d in Grid > > >, TypeList > > > >::Visit<:objectupdater> (this=0xa3c9074, visitor=...)
    at /home/---/zero/src/server/src/framework/GameSystem/Grid.h:111
    #16 0x087e0558 in NGridt > > >, TypeList > > > >::Visit<:objectupdater typelist typenull> > > > > (this=0xa3bbf28, x=@0xb20f00dc: 14, y=@0xb20f00d8: 15,
    visitor=...)
    at /home/---/zero/src/server/src/framework/GameSystem/NGrid.h:360
    #17 0x087dc4e4 in Map::Visit<:objectupdater typemapcontainer typelist typenull> > > > > >
    (this=0xa63c5c0, cell=..., visitor=...)
    at /home/---/zero/src/server/src/game/WorldHandlers/Map.h:446
    #18 0x087d37a4 in Map::Update (this=0xa63c5c0, t_diff=@0xb20f123c: 100)
    at /home/---/zero/src/server/src/game/WorldHandlers/Map.cpp:521
    #19 0x088e2412 in MapManager::Update (this=0xb464d88, diff=48)
    at /home/---/zero/src/server/src/game/WorldHandlers/MapManager.cpp:184
    #20 0x087f042f in World::Update (this=0x8e4f310, diff=48)
    at /home/---/zero/src/server/src/game/WorldHandlers/World.cpp:1498
    #21 0x085b746f in WorldRunnable::run (this=0xbb3a980)
    at /home/---/zero/src/server/src/mangosd/WorldRunnable.cpp:66
    #22 0x0898c181 in ACE_Based::Thread::ThreadTask (param=0xbb3a980)
    at /home/---/zero/src/server/src/shared/Threading.cpp:197
    #23 0xb7f43171 in ACE_OS_Thread_Adapter::invoke() ()
    from /usr/lib/libACE-6.0.3.so
    #24 0xb7f051cf in ace_thread_adapter () from /usr/lib/libACE-6.0.3.so
    #25 0xb77ccc39 in start_thread ()
    from /lib/i386-linux-gnu/i686/cmov/libpthread.so.0
    #26 0xb77399fe in clone () from /lib/i386-linux-gnu/i686/cmov/libc.so.6
    [/code]
    Looks like it is trying to read invalid addresses of memory, with the 0x00000000 and all.

    Link to comment
    Share on other sites




    Create an account or sign in to comment

    You need to be a member in order to leave a comment

    Create an account

    Sign up for a new account in our community. It's easy!

    Register a new account

    Sign in

    Already have an account? Sign in here.

    Sign In Now

×
×
  • Create New...

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue. Privacy Policy Terms of Use