glob2-devel
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[glob2-devel] valgrind, errors in VoiceRecorder and openInputStreamBacke


From: Nuage
Subject: [glob2-devel] valgrind, errors in VoiceRecorder and openInputStreamBackend
Date: Sat, 06 May 2006 03:56:42 +0200
User-agent: Mozilla/5.0 (X11; U; Linux i686; en-US; rv:1.7.13) Gecko/20060430

Kai and I are putting hard work on the gradient optimization. (During this we
found out big memory leak, my fault actually.) I found out other errors. The
guys taking care of this code, can you fix it, thank you!

Please rename "rec" to some more explicit name too, thanks!

~/glob2 $ time valgrind --leak-check=full --leak-resolution=med src/glob2 -nox
games/Pleoght_1.aicastor.game 500 1
==30536== Memcheck, a memory error detector.
==30536== Copyright (C) 2002-2005, and GNU GPL'd, by Julian Seward et al.
==30536== Using LibVEX rev 1575, a library for dynamic binary translation.
==30536== Copyright (C) 2004-2005, and GNU GPL'd, by OpenWorks LLP.
==30536== Using valgrind-3.1.1, a dynamic binary instrumentation framework.
==30536== Copyright (C) 2000-2005, and GNU GPL'd, by Julian Seward et al.
==30536== For more details, rerun with: -v
==30536==
nox::running 1 times 500 steps:
nox::game started
nox::gui.game.checkSum() = c8934711
nox::cpuSumCountStats = 500
nox::noxTicks = 94591
nox::speed = 5.285915 [steps/s]
==30536== Conditional jump or move depends on uninitialised value(s)
==30536==    at 0x8102FA7: GlobalContainer::~GlobalContainer()
(GlobalContainer.cpp:104)
==30536==    by 0x8101E5E: Glob2::run(int, char**) (Glob2.cpp:269)
==30536==    by 0x8102041: main (Glob2.cpp:433)
==30536==
==30536== ERROR SUMMARY: 1 errors from 1 contexts (suppressed: 69 from 1)
==30536== malloc/free: in use at exit: 706,660 bytes in 70 blocks.
==30536== malloc/free: 18,018 allocs, 17,948 frees, 147,818,448 bytes allocated.
==30536== For counts of detected errors, rerun with: -v
==30536== searching for pointers to 70 not-freed blocks.
==30536== checked 1,956,640 bytes.
==30536==
==30536==
==30536== 8 bytes in 1 blocks are definitely lost in loss record 1 of 14
==30536==    at 0x401A8D5: operator new(unsigned) (in
/usr/lib/valgrind/x86-linux/vgpreload_memcheck.so)
==30536==    by 0x81C5D50: GAGCore::FileManager::openInputStreamBackend(char
const*) (FileManager.cpp:237)
==30536==    by 0x813082C: Race::loadDefault() (Toolkit.h:59)
==30536==    by 0x8103F97: GlobalContainer::load() (GlobalContainer.cpp:437)
==30536==    by 0x81018E4: Glob2::run(int, char**) (Glob2.cpp:246)
==30536==    by 0x8102041: main (Glob2.cpp:433)
==30536==
==30536== LEAK SUMMARY:
==30536==    definitely lost: 8 bytes in 1 blocks.
==30536==      possibly lost: 0 bytes in 0 blocks.
==30536==    still reachable: 706,652 bytes in 69 blocks.
==30536==         suppressed: 0 bytes in 0 blocks.
==30536== Reachable blocks (those to which a pointer was found) are not shown.
==30536== To see them, rerun with: --show-reachable=yes

real    2m8.055s
user    2m6.164s
sys     0m1.060s




reply via email to

[Prev in Thread] Current Thread [Next in Thread]