View Issue Details

IDProjectCategoryView StatusLast Update
0002596Spring engineGeneralpublic2011-11-20 17:13
Reporterabma Assigned Toabma  
PrioritynormalSeveritymajorReproducibilityhave not tried
Status resolvedResolutionduplicate 
Summary0002596: (master) memleaks found by valgrind
Descriptionwas run on this version:
https://github.com/spring/spring/commit/d33426f905ce94e9190230427bb48cbba5d09106
TagsNo tags attached.
Attached Files
valgrind.log (Attachment missing)
valgrind2.log (Attachment missing)
valgrind-verbose.7z (Attachment missing)
Checked infolog.txt for Errors

Relationships

related to 0002595 resolvedabma (master) valgrind log complains about: "Invalid read of size 4 in DamageArray::GetDefaultDamage() const (DamageArray.h:47)" 
related to 0002743 resolvedabma Valgrind error: "Invalid read of size 8" + not initialized value 

Activities

abma

2011-08-02 21:17

administrator   ~0007206

Last edited: 2011-08-02 21:17

Ingame Time was 15 minutes:
==14395== LEAK SUMMARY:
==14395== definitely lost: 1,910 bytes in 33 blocks
==14395== indirectly lost: 899,472 bytes in 1,125 blocks
==14395== possibly lost: 46,635 bytes in 23 blocks
==14395== still reachable: 9,496 bytes in 14 blocks
==14395== suppressed: 0 bytes in 0 blocks

hoijui

2011-08-04 12:22

reporter   ~0007212

what is strange here, is that valgrind has no problem finding the debug symbols of the Legacy C++ wrapper, but can't find the C AI Interface & KAIK debug symbols apparently.
The wrapper is compiled as a static lib, so maybe there is some compile flag or something that is different there... i'll try to find out.
if we are lucky, it could even explain why we are having problems with debug symbols in AIs since years.

abma

2011-08-04 13:13

administrator   ~0007214

maybe valgrind can't find libAIInterface.so because it's not in LD_LIBRARY_PATH and loaded dynamic?

added an valgrind2.log (0.82.3-3079-gb992353)

abma

2011-08-04 13:29

administrator   ~0007215

Last edited: 2011-08-04 13:30

added a run with "valgrind -v" (but aborted with ctrl-c, this is why its so big...)

my guess was wrong:
--8516-- Reading syms from /var/tmp/local/spring/master/share/games/spring/AI/Skirmish/KAIK/0.13/libSkirmishAI.so (0x14bd5000)

--8516-- Reading syms from /var/tmp/local/spring/master/share/games/spring/AI/Interfaces/C/0.1/libAIInterface.so (0x149b4000)

but i don't understand this line:

WARNING: new redirection conflicts with existing -- ignoring it

hoijui

2011-08-04 20:07

reporter   ~0007217

yeah, the LegacyCpp Wrapper is linked into libSkirmishAI.so, and it finds these debug symbols. but it does not find the symbols from the same libSkirmishAI.so concerning KAIK itsself.

use suppressions or stop producing valgrind logs please. ;-)

abma

2011-11-20 17:13

administrator   ~0007640

see 0002743 for a newer valgrind log

Issue History

Date Modified Username Field Change
2011-08-02 21:12 abma New Issue
2011-08-02 21:12 abma File Added: valgrind.log
2011-08-02 21:17 abma Note Added: 0007206
2011-08-02 21:17 abma Note Edited: 0007206
2011-08-02 21:20 abma Summary valgrind log => (master) memleaks in valgrind.log
2011-08-02 21:20 abma Description Updated
2011-08-02 21:49 abma Summary (master) memleaks in valgrind.log => (master) memleaks found by valgrind
2011-08-04 11:27 abma Relationship added related to 0002595
2011-08-04 12:22 hoijui Note Added: 0007212
2011-08-04 12:54 abma File Added: valgrind2.log
2011-08-04 13:13 abma Note Added: 0007214
2011-08-04 13:28 abma File Added: valgrind-verbose.7z
2011-08-04 13:29 abma Note Added: 0007215
2011-08-04 13:30 abma Note Edited: 0007215
2011-08-04 20:07 hoijui Note Added: 0007217
2011-11-20 17:12 abma Relationship added related to 0002743
2011-11-20 17:13 abma Note Added: 0007640
2011-11-20 17:13 abma Status new => resolved
2011-11-20 17:13 abma Resolution open => duplicate
2011-11-20 17:13 abma Assigned To => abma