2025-07-19 11:19 CEST

View Issue Details Jump to Notes ]
IDProjectCategoryView StatusLast Update
0002596Spring engineGeneralpublic2011-11-20 17:13
Reporterabma 
Assigned Toabma 
PrioritynormalSeveritymajorReproducibilityhave not tried
StatusresolvedResolutionduplicate 
Product Version 
Target VersionFixed in Version 
Summary0002596: (master) memleaks found by valgrind
Descriptionwas run on this version:
https://github.com/spring/spring/commit/d33426f905ce94e9190230427bb48cbba5d09106
TagsNo tags attached.
Checked infolog.txt for Errors
Attached Files

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

-Notes

~0007206

abma (administrator)

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

~0007212

hoijui (reporter)

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.

~0007214

abma (administrator)

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)

~0007215

abma (administrator)

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

~0007217

hoijui (reporter)

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. ;-)

~0007640

abma (administrator)

see 0002743 for a newer valgrind log
+Notes

-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
+Issue History