Source Code Project Mantis - FSSCP
View Issue Details
0002526FSSCPgraphicspublic2011-10-20 16:212011-10-20 16:24
ReporterEchelon9 
Assigned ToEchelon9 
PrioritynormalSeveritymajorReproducibilityalways
StatusresolvedResolutionfixed 
PlatformOSOS Version
Product Version3.6.13 
Target VersionFixed in Version3.6.14 
Summary0002526: Valgrind: Conditional jump or move depends on uninitialized value(s) - init_anim_instance()
DescriptionValgrind reports a memory management error caused by the following line:

inst = (anim_instance *) vm_malloc(sizeof(anim_instance));

in packunpack.cpp
Additional Information==32675== Conditional jump or move depends on uninitialised value(s)
==32675== at 0x45411A: generic_render_ani_stream(generic_anim*) (in FS2_Open-Inferno (debug).app/Contents/MacOS/FS2_Open-Inferno (debug))
==32675== by 0x454742: generic_anim_render(generic_anim*, float, int, int) (in FS2_Open-Inferno (debug).app/Contents/MacOS/FS2_Open-Inferno (debug))
==32675== by 0x1DE9F9: main_hall_render_door_anims(float) (in FS2_Open-Inferno (debug).app/Contents/MacOS/FS2_Open-Inferno (debug))
==32675== by 0x1E1CC4: main_hall_do(float) (in FS2_Open-Inferno (debug).app/Contents/MacOS/FS2_Open-Inferno (debug))
==32675== by 0x6EFB3: game_do_state(int) (in FS2_Open-Inferno (debug).app/Contents/MacOS/FS2_Open-Inferno (debug))
==32675== by 0x1169A4: gameseq_process_events() (in FS2_Open-Inferno (debug).app/Contents/MacOS/FS2_Open-Inferno (debug))
==32675== by 0x6AF5C: game_main(char*) (in FS2_Open-Inferno (debug).app/Contents/MacOS/FS2_Open-Inferno (debug))
==32675== by 0x6B10F: SDL_main (in FS2_Open-Inferno (debug).app/Contents/MacOS/FS2_Open-Inferno (debug))
==32675== by 0x3CC3D: -[SDLMain applicationDidFinishLaunching:] (in FS2_Open-Inferno (debug).app/Contents/MacOS/FS2_Open-Inferno (debug))
==32675== by 0x22E1F48: __-[NSNotificationCenter addObserver:selector:name:object:]_block_invoke_1 (in /System/Library/Frameworks/Foundation.framework/Versions/C/Foundation)
==32675== by 0x3AAFFF2: ___CFXNotificationPost_block_invoke_1 (in /System/Library/Frameworks/CoreFoundation.framework/Versions/A/CoreFoundation)
==32675== by 0x3A7AD77: _CFXNotificationPost (in /System/Library/Frameworks/CoreFoundation.framework/Versions/A/CoreFoundation)
==32675== Uninitialised value was created by a heap allocation
==32675== at 0x1EC3498: malloc (vg_replace_malloc.c:266)
==32675== by 0x29D31: _vm_malloc(int, char*, int, int) (in FS2_Open-Inferno (debug).app/Contents/MacOS/FS2_Open-Inferno (debug))
==32675== by 0xCA914: init_anim_instance(anim*, int) (in FS2_Open-Inferno (debug).app/Contents/MacOS/FS2_Open-Inferno (debug))
==32675== by 0x4549A0: generic_anim_stream(generic_anim*) (in FS2_Open-Inferno (debug).app/Contents/MacOS/FS2_Open-Inferno (debug))
==32675== by 0x1E0469: main_hall_init(int) (in FS2_Open-Inferno (debug).app/Contents/MacOS/FS2_Open-Inferno (debug))
==32675== by 0x6B4EC: game_enter_state(int, int) (in FS2_Open-Inferno (debug).app/Contents/MacOS/FS2_Open-Inferno (debug))
==32675== by 0x1163B1: gameseq_set_state(int, int) (in FS2_Open-Inferno (debug).app/Contents/MacOS/FS2_Open-Inferno (debug))
==32675== by 0x6C84C: game_process_event(int, int) (in FS2_Open-Inferno (debug).app/Contents/MacOS/FS2_Open-Inferno (debug))
==32675== by 0x116911: gameseq_process_events() (in FS2_Open-Inferno (debug).app/Contents/MacOS/FS2_Open-Inferno (debug))
==32675== by 0x6AF5C: game_main(char*) (in FS2_Open-Inferno (debug).app/Contents/MacOS/FS2_Open-Inferno (debug))
==32675== by 0x6B10F: SDL_main (in FS2_Open-Inferno (debug).app/Contents/MacOS/FS2_Open-Inferno (debug))
==32675== by 0x3CC3D: -[SDLMain applicationDidFinishLaunching:] (in FS2_Open-Inferno (debug).app/Contents/MacOS/FS2_Open-Inferno (debug))
TagsNo tags attached.
Attached Files

Notes
(0012895)
Echelon9   
2011-10-20 16:24   
Fixed in r7921

Issue History
2011-10-20 16:21Echelon9New Issue
2011-10-20 16:21Echelon9Statusnew => assigned
2011-10-20 16:21Echelon9Assigned To => Echelon9
2011-10-20 16:24Echelon9Note Added: 0012895
2011-10-20 16:24Echelon9Statusassigned => resolved
2011-10-20 16:24Echelon9Fixed in Version => 3.6.14
2011-10-20 16:24Echelon9Resolutionopen => fixed