Issue779

Title valgrind: uninitialized values on main menu open
Priority release-blocker Status rejected
Assigned To fluzz Keywords
Linked issues Watchers fluzz

Submitted on 2014-12-15 16h28 by matthiaskrgr, last changed by fluzz.

Messages
Author: matthiaskrgr Date: 2014-12-15   16h28
When the main menu opens:

valgrind --leak-check=full --track-origins=yes ./src/freedroidRPG -nq  
==13032== Memcheck, a memory error detector
==13032== Copyright (C) 2002-2013, and GNU GPL'd, by Julian Seward et al.
==13032== Using Valgrind-3.10.1 and LibVEX; rerun with -h for copyright info
==13032== Command: ./src/freedroidRPG -nq
==13032== 

Hello, this is FreedroidRPG, version 0.15-1335-g6980da0.

Video system type: x11.
Using screen resolution 1024 x 768.
==13032== Conditional jump or move depends on uninitialised value(s)
==13032==    at 0x61FB207: ??? (in /usr/lib/libSDL-1.2.so.0.11.4)
==13032==    by 0x61FB503: ??? (in /usr/lib/libSDL-1.2.so.0.11.4)
==13032==    by 0x61FC13A: ??? (in /usr/lib/libSDL-1.2.so.0.11.4)
==13032==    by 0x61D106B: SDL_PumpEvents (in /usr/lib/libSDL-1.2.so.0.11.4)
==13032==    by 0x61D10A8: SDL_PollEvent (in /usr/lib/libSDL-1.2.so.0.11.4)
==13032==    by 0x4B0411: DoMenuSelection.constprop.48 (menu.c:304)
==13032==    by 0x4B87D1: RunSubMenu.constprop.55 (menu.c:743)
==13032==    by 0x415B75: RunMenu (menu.c:776)
==13032==    by 0x415B75: StartupMenu (menu.c:782)
==13032==    by 0x415B75: main (main.c:178)
==13032==  Uninitialised value was created by a heap allocation
==13032==    at 0x4C29F90: malloc (in
/usr/lib/valgrind/vgpreload_memcheck-amd64-linux.so)
==13032==    by 0x79FDB9E: _XEnq (in /usr/lib/libX11.so.6.3.0)
==13032==    by 0x79FA90E: ??? (in /usr/lib/libX11.so.6.3.0)
==13032==    by 0x79FB8CF: _XReply (in /usr/lib/libX11.so.6.3.0)
==13032==    by 0x79F718C: XSync (in /usr/lib/libX11.so.6.3.0)
==13032==    by 0x61FC412: ??? (in /usr/lib/libSDL-1.2.so.0.11.4)
==13032==    by 0x61FC52C: ??? (in /usr/lib/libSDL-1.2.so.0.11.4)
==13032==    by 0x435782: InitVideo (graphics.c:897)
==13032==    by 0x4584BB: InitFreedroid (init.c:982)
==13032==    by 0x415A75: main (main.c:152)
==13032== 
==13032== Conditional jump or move depends on uninitialised value(s)
==13032==    at 0x61FB233: ??? (in /usr/lib/libSDL-1.2.so.0.11.4)
==13032==    by 0x61FB503: ??? (in /usr/lib/libSDL-1.2.so.0.11.4)
==13032==    by 0x61FC13A: ??? (in /usr/lib/libSDL-1.2.so.0.11.4)
==13032==    by 0x61D106B: SDL_PumpEvents (in /usr/lib/libSDL-1.2.so.0.11.4)
==13032==    by 0x61D10A8: SDL_PollEvent (in /usr/lib/libSDL-1.2.so.0.11.4)
==13032==    by 0x4B0411: DoMenuSelection.constprop.48 (menu.c:304)
==13032==    by 0x4B87D1: RunSubMenu.constprop.55 (menu.c:743)
==13032==    by 0x415B75: RunMenu (menu.c:776)
==13032==    by 0x415B75: StartupMenu (menu.c:782)
==13032==    by 0x415B75: main (main.c:178)
==13032==  Uninitialised value was created by a heap allocation
==13032==    at 0x4C29F90: malloc (in
/usr/lib/valgrind/vgpreload_memcheck-amd64-linux.so)
==13032==    by 0x79FDB9E: _XEnq (in /usr/lib/libX11.so.6.3.0)
==13032==    by 0x79FA90E: ??? (in /usr/lib/libX11.so.6.3.0)
==13032==    by 0x79FB2D4: _XEventsQueued (in /usr/lib/libX11.so.6.3.0)
==13032==    by 0x79DD449: XFlush (in /usr/lib/libX11.so.6.3.0)
==13032==    by 0x61FA937: ??? (in /usr/lib/libSDL-1.2.so.0.11.4)
==13032==    by 0x61FC14A: ??? (in /usr/lib/libSDL-1.2.so.0.11.4)
==13032==    by 0x61D106B: SDL_PumpEvents (in /usr/lib/libSDL-1.2.so.0.11.4)
==13032==    by 0x61D10A8: SDL_PollEvent (in /usr/lib/libSDL-1.2.so.0.11.4)
==13032==    by 0x4B0411: DoMenuSelection.constprop.48 (menu.c:304)
==13032==    by 0x4B87D1: RunSubMenu.constprop.55 (menu.c:743)
==13032==    by 0x415B75: RunMenu (menu.c:776)
==13032==    by 0x415B75: StartupMenu (menu.c:782)
==13032==    by 0x415B75: main (main.c:178)
Author: fluzz Date: 2015-01-04   14h26
SDL/X11 related. Nothing that we can do.
History
Date User Action Args
2015-01-04 14:26:39fluzzsetstatus: open -> rejected
messages: + msg3022
2014-12-15 16:28:50matthiaskrgrcreate