Skip to content

Instantly share code, notes, and snippets.

@krofna
Created August 29, 2012 17:31
Show Gist options
  • Save krofna/3515914 to your computer and use it in GitHub Desktop.
Save krofna/3515914 to your computer and use it in GitHub Desktop.
Valgrind
==3936== Memcheck, a memory error detector
==3936== Copyright (C) 2002-2011, and GNU GPL'd, by Julian Seward et al.
==3936== Using Valgrind-3.7.0 and LibVEX; rerun with -h for copyright info
==3936== Command: ../Debug/Server
==3936==
Connect to database...
Connected to database.
Load creature templates...
Creature templates loaded.
Load spells...
Spells loaded.
Load players login informations...
Players login informations loaded.
Load scripts...
Scripts loaded.
Init Pathfinding...
Pathfinding initialized.
Loading maps...
Map 0 loaded.
Loading creatures' map (0)
Creatures' map loaded (0)
Maps loaded.
Console>
Map 0 destroyed.
==3936==
==3936== HEAP SUMMARY:
==3936== in use at exit: 1,840 bytes in 12 blocks
==3936== total heap usage: 610 allocs, 598 frees, 431,147 bytes allocated
==3936==
==3936== 24 bytes in 1 blocks are possibly lost in loss record 1 of 12
==3936== at 0x4C2B1C7: operator new(unsigned long) (in /usr/lib/valgrind/vgpreload_memcheck-amd64-linux.so)
==3936== by 0x4B5425: boost::detail::shared_count::shared_count<Creature>(Creature*) (in /home/krofna/Dev/Warrior-of-Dreamworld/build/bin/Server/Debug/Server)
==3936== by 0x4B45DC: boost::shared_ptr<Creature>::shared_ptr<Creature>(Creature*) (in /home/krofna/Dev/Warrior-of-Dreamworld/build/bin/Server/Debug/Server)
==3936== by 0x4B34AF: Map::LoadCreatures() (in /home/krofna/Dev/Warrior-of-Dreamworld/build/bin/Server/Debug/Server)
==3936== by 0x487D0C: World::Load() (in /home/krofna/Dev/Warrior-of-Dreamworld/build/bin/Server/Debug/Server)
==3936== by 0x4C4368: main (in /home/krofna/Dev/Warrior-of-Dreamworld/build/bin/Server/Debug/Server)
==3936==
==3936== 40 bytes in 1 blocks are possibly lost in loss record 3 of 12
==3936== at 0x4C2B1C7: operator new(unsigned long) (in /usr/lib/valgrind/vgpreload_memcheck-amd64-linux.so)
==3936== by 0x4C9A94: GetAI_npc_krofnica(boost::shared_ptr<Creature>) (in /home/krofna/Dev/Warrior-of-Dreamworld/build/bin/Server/Debug/Server)
==3936== by 0x4A1D8C: CreatureAIFactory::CreateAI(std::string const&, boost::shared_ptr<Creature>) (in /home/krofna/Dev/Warrior-of-Dreamworld/build/bin/Server/Debug/Server)
==3936== by 0x4C94B9: CreateAI(std::string const&, boost::shared_ptr<Creature>) (in /home/krofna/Dev/Warrior-of-Dreamworld/build/bin/Server/Debug/Server)
==3936== by 0x4B8A47: Creature::InitializeAI() (in /home/krofna/Dev/Warrior-of-Dreamworld/build/bin/Server/Debug/Server)
==3936== by 0x4B34E2: Map::LoadCreatures() (in /home/krofna/Dev/Warrior-of-Dreamworld/build/bin/Server/Debug/Server)
==3936== by 0x487D0C: World::Load() (in /home/krofna/Dev/Warrior-of-Dreamworld/build/bin/Server/Debug/Server)
==3936== by 0x4C4368: main (in /home/krofna/Dev/Warrior-of-Dreamworld/build/bin/Server/Debug/Server)
==3936==
==3936== 64 bytes in 1 blocks are possibly lost in loss record 5 of 12
==3936== at 0x4C2B1C7: operator new(unsigned long) (in /usr/lib/valgrind/vgpreload_memcheck-amd64-linux.so)
==3936== by 0x4B0A5B: __gnu_cxx::new_allocator<Vector2<int>*>::allocate(unsigned long, void const*) (in /home/krofna/Dev/Warrior-of-Dreamworld/build/bin/Server/Debug/Server)
==3936== by 0x4B0435: std::_Deque_base<Vector2<int>, std::allocator<Vector2<int> > >::_M_allocate_map(unsigned long) (in /home/krofna/Dev/Warrior-of-Dreamworld/build/bin/Server/Debug/Server)
==3936== by 0x4AF1CC: std::_Deque_base<Vector2<int>, std::allocator<Vector2<int> > >::_M_initialize_map(unsigned long) (in /home/krofna/Dev/Warrior-of-Dreamworld/build/bin/Server/Debug/Server)
==3936== by 0x4AE6F7: std::_Deque_base<Vector2<int>, std::allocator<Vector2<int> > >::_Deque_base() (in /home/krofna/Dev/Warrior-of-Dreamworld/build/bin/Server/Debug/Server)
==3936== by 0x4ADEF5: std::deque<Vector2<int>, std::allocator<Vector2<int> > >::deque() (in /home/krofna/Dev/Warrior-of-Dreamworld/build/bin/Server/Debug/Server)
==3936== by 0x4AD104: Pathfinder::Pathfinder(boost::shared_ptr<WorldObject>) (in /home/krofna/Dev/Warrior-of-Dreamworld/build/bin/Server/Debug/Server)
==3936== by 0x4B8A9D: Creature::InitializeAI() (in /home/krofna/Dev/Warrior-of-Dreamworld/build/bin/Server/Debug/Server)
==3936== by 0x4B34E2: Map::LoadCreatures() (in /home/krofna/Dev/Warrior-of-Dreamworld/build/bin/Server/Debug/Server)
==3936== by 0x487D0C: World::Load() (in /home/krofna/Dev/Warrior-of-Dreamworld/build/bin/Server/Debug/Server)
==3936== by 0x4C4368: main (in /home/krofna/Dev/Warrior-of-Dreamworld/build/bin/Server/Debug/Server)
==3936==
==3936== 104 bytes in 1 blocks are possibly lost in loss record 7 of 12
==3936== at 0x4C2B1C7: operator new(unsigned long) (in /usr/lib/valgrind/vgpreload_memcheck-amd64-linux.so)
==3936== by 0x4B3482: Map::LoadCreatures() (in /home/krofna/Dev/Warrior-of-Dreamworld/build/bin/Server/Debug/Server)
==3936== by 0x487D0C: World::Load() (in /home/krofna/Dev/Warrior-of-Dreamworld/build/bin/Server/Debug/Server)
==3936== by 0x4C4368: main (in /home/krofna/Dev/Warrior-of-Dreamworld/build/bin/Server/Debug/Server)
==3936==
==3936== 176 bytes in 1 blocks are possibly lost in loss record 8 of 12
==3936== at 0x4C2B1C7: operator new(unsigned long) (in /usr/lib/valgrind/vgpreload_memcheck-amd64-linux.so)
==3936== by 0x4B8A8F: Creature::InitializeAI() (in /home/krofna/Dev/Warrior-of-Dreamworld/build/bin/Server/Debug/Server)
==3936== by 0x4B34E2: Map::LoadCreatures() (in /home/krofna/Dev/Warrior-of-Dreamworld/build/bin/Server/Debug/Server)
==3936== by 0x487D0C: World::Load() (in /home/krofna/Dev/Warrior-of-Dreamworld/build/bin/Server/Debug/Server)
==3936== by 0x4C4368: main (in /home/krofna/Dev/Warrior-of-Dreamworld/build/bin/Server/Debug/Server)
==3936==
==3936== 512 bytes in 1 blocks are possibly lost in loss record 10 of 12
==3936== at 0x4C2B1C7: operator new(unsigned long) (in /usr/lib/valgrind/vgpreload_memcheck-amd64-linux.so)
==3936== by 0x4B0E99: __gnu_cxx::new_allocator<Vector2<int> >::allocate(unsigned long, void const*) (in /home/krofna/Dev/Warrior-of-Dreamworld/build/bin/Server/Debug/Server)
==3936== by 0x4B0994: std::_Deque_base<Vector2<int>, std::allocator<Vector2<int> > >::_M_allocate_node() (in /home/krofna/Dev/Warrior-of-Dreamworld/build/bin/Server/Debug/Server)
==3936== by 0x4B0496: std::_Deque_base<Vector2<int>, std::allocator<Vector2<int> > >::_M_create_nodes(Vector2<int>**, Vector2<int>**) (in /home/krofna/Dev/Warrior-of-Dreamworld/build/bin/Server/Debug/Server)
==3936== by 0x4AF225: std::_Deque_base<Vector2<int>, std::allocator<Vector2<int> > >::_M_initialize_map(unsigned long) (in /home/krofna/Dev/Warrior-of-Dreamworld/build/bin/Server/Debug/Server)
==3936== by 0x4AE6F7: std::_Deque_base<Vector2<int>, std::allocator<Vector2<int> > >::_Deque_base() (in /home/krofna/Dev/Warrior-of-Dreamworld/build/bin/Server/Debug/Server)
==3936== by 0x4ADEF5: std::deque<Vector2<int>, std::allocator<Vector2<int> > >::deque() (in /home/krofna/Dev/Warrior-of-Dreamworld/build/bin/Server/Debug/Server)
==3936== by 0x4AD104: Pathfinder::Pathfinder(boost::shared_ptr<WorldObject>) (in /home/krofna/Dev/Warrior-of-Dreamworld/build/bin/Server/Debug/Server)
==3936== by 0x4B8A9D: Creature::InitializeAI() (in /home/krofna/Dev/Warrior-of-Dreamworld/build/bin/Server/Debug/Server)
==3936== by 0x4B34E2: Map::LoadCreatures() (in /home/krofna/Dev/Warrior-of-Dreamworld/build/bin/Server/Debug/Server)
==3936== by 0x487D0C: World::Load() (in /home/krofna/Dev/Warrior-of-Dreamworld/build/bin/Server/Debug/Server)
==3936== by 0x4C4368: main (in /home/krofna/Dev/Warrior-of-Dreamworld/build/bin/Server/Debug/Server)
==3936==
==3936== 920 (104 direct, 816 indirect) bytes in 1 blocks are definitely lost in loss record 12 of 12
==3936== at 0x4C2B1C7: operator new(unsigned long) (in /usr/lib/valgrind/vgpreload_memcheck-amd64-linux.so)
==3936== by 0x4B3482: Map::LoadCreatures() (in /home/krofna/Dev/Warrior-of-Dreamworld/build/bin/Server/Debug/Server)
==3936== by 0x487D0C: World::Load() (in /home/krofna/Dev/Warrior-of-Dreamworld/build/bin/Server/Debug/Server)
==3936== by 0x4C4368: main (in /home/krofna/Dev/Warrior-of-Dreamworld/build/bin/Server/Debug/Server)
==3936==
==3936== LEAK SUMMARY:
==3936== definitely lost: 104 bytes in 1 blocks
==3936== indirectly lost: 816 bytes in 5 blocks
==3936== possibly lost: 920 bytes in 6 blocks
==3936== still reachable: 0 bytes in 0 blocks
==3936== suppressed: 0 bytes in 0 blocks
==3936==
==3936== For counts of detected and suppressed errors, rerun with: -v
==3936== ERROR SUMMARY: 7 errors from 7 contexts (suppressed: 2 from 2)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment