View Issue Details

IDProjectCategoryView StatusLast Update
0002526FSSCPgraphicspublic2011-10-20 20:24
ReporterEchelon9 Assigned ToEchelon9  
PrioritynormalSeveritymajorReproducibilityalways
Status resolvedResolutionfixed 
Product Version3.6.13 
Fixed 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.

Activities

Echelon9

2011-10-20 20:24

developer   ~0012895

Fixed in r7921

Issue History

Date Modified Username Field Change
2011-10-20 20:21 Echelon9 New Issue
2011-10-20 20:21 Echelon9 Status new => assigned
2011-10-20 20:21 Echelon9 Assigned To => Echelon9
2011-10-20 20:24 Echelon9 Note Added: 0012895
2011-10-20 20:24 Echelon9 Status assigned => resolved
2011-10-20 20:24 Echelon9 Fixed in Version => 3.6.14
2011-10-20 20:24 Echelon9 Resolution open => fixed