open("/usr/share/games/warzone2100/multiplay/maps/4c-rush/struct.bjo", O_RDONLY) = 13 fstat64(13, {st_mode=S_IFREG|0644, st_size=31212, ...}) = 0 read(13, "stru\10\0\0\0\4\1\0\0A0LightFactory\0\0\1\0\0\0"..., 31212) = 31212 fsync(13) = 0 close(13) = 0 futex(0x89fd9f0, FUTEX_WAIT, 2, NULL [masterz@kurama ~]$ valgrind warzone2100 ==29775== Memcheck, a memory error detector. ==29775== Copyright (C) 2002-2007, and GNU GPL'd, by Julian Seward et al. ==29775== Using LibVEX rev 1732, a library for dynamic binary translation. ==29775== Copyright (C) 2004-2007, and GNU GPL'd, by OpenWorks LLP. ==29775== Using valgrind-3.2.3, a dynamic binary instrumentation framework. ==29775== Copyright (C) 2000-2007, and GNU GPL'd, by Julian Seward et al. ==29775== For more details, rerun with: -v ==29775== ==29775== Syscall param write(buf) points to uninitialised byte(s) ==29775== at 0x4EC08FC3: write (in /lib/i686/libc-2.4.so) ==29775== by 0x4ECF31CD: (within /usr/lib/libX11.so.6.2.0) ==29775== by 0x4ECF2EEE: _X11TransWrite (in /usr/lib/libX11.so.6.2.0) ==29775== by 0x4ECEAF22: (within /usr/lib/libX11.so.6.2.0) ==29775== by 0x4ECEAFFB: _XReply (in /usr/lib/libX11.so.6.2.0) ==29775== by 0xBE98F4E3: ??? ==29775== Address 0x4B6683E is 14 bytes inside a block of size 16,384 alloc'd ==29775== at 0x4004824: calloc (in /usr/lib/valgrind/x86-linux/vgpreload_memcheck.so) ==29775== by 0x4ECD89D6: XOpenDisplay (in /usr/lib/libX11.so.6.2.0) ==29775== ==29775== Invalid read of size 4 ==29775== at 0x407212A: (within /usr/lib/libGL.so.100.14.23) ==29775== Address 0x4CB9E00 is 3,480 bytes inside a block of size 3,482 alloc'd ==29775== at 0x40054E5: malloc (in /usr/lib/valgrind/x86-linux/vgpreload_memcheck.so) ==29775== by 0x4070BE1: (within /usr/lib/libGL.so.100.14.23) ==29775== ==29775== Invalid read of size 4 ==29775== at 0x4072196: (within /usr/lib/libGL.so.100.14.23) ==29775== Address 0x4CB9E00 is 3,480 bytes inside a block of size 3,482 alloc'd ==29775== at 0x40054E5: malloc (in /usr/lib/valgrind/x86-linux/vgpreload_memcheck.so) ==29775== by 0x4070BE1: (within /usr/lib/libGL.so.100.14.23) ==29775== ==29775== Invalid read of size 4 ==29775== at 0x407228B: (within /usr/lib/libGL.so.100.14.23) ==29775== Address 0x4CBB9A0 is 3,480 bytes inside a block of size 3,482 alloc'd ==29775== at 0x40054E5: malloc (in /usr/lib/valgrind/x86-linux/vgpreload_memcheck.so) ==29775== by 0x4070BE1: (within /usr/lib/libGL.so.100.14.23) ==29775== ==29775== Invalid read of size 4 ==29775== at 0x4082CD3: (within /usr/lib/libGL.so.100.14.23) ==29775== Address 0x55A0DD0 is 184 bytes inside a block of size 186 alloc'd ==29775== at 0x40054E5: malloc (in /usr/lib/valgrind/x86-linux/vgpreload_memcheck.so) ==29775== by 0x4083011: (within /usr/lib/libGL.so.100.14.23) ==29775== ==29775== Invalid read of size 4 ==29775== at 0x4082EBB: (within /usr/lib/libGL.so.100.14.23) ==29775== Address 0x55A0EC0 is 184 bytes inside a block of size 187 alloc'd ==29775== at 0x40054E5: malloc (in /usr/lib/valgrind/x86-linux/vgpreload_memcheck.so) ==29775== by 0x4082D54: (within /usr/lib/libGL.so.100.14.23) ==29775== ==29775== Conditional jump or move depends on uninitialised value(s) ==29775== at 0x41B65C29: (within /usr/lib/libSDL-1.2.so.0.11.0) ==29775== ==29775== Conditional jump or move depends on uninitialised value(s) ==29775== at 0x41B65C32: (within /usr/lib/libSDL-1.2.so.0.11.0) ==29775== ==29775== Conditional jump or move depends on uninitialised value(s) ==29775== at 0x41B65BD8: (within /usr/lib/libSDL-1.2.so.0.11.0) ==29775== ==29775== Conditional jump or move depends on uninitialised value(s) ==29775== at 0x41B65BE0: (within /usr/lib/libSDL-1.2.so.0.11.0) ==29775== ==29775== Conditional jump or move depends on uninitialised value(s) ==29775== at 0x41B65BE8: (within /usr/lib/libSDL-1.2.so.0.11.0) ==29775== ==29775== Conditional jump or move depends on uninitialised value(s) ==29775== at 0x41B65BF0: (within /usr/lib/libSDL-1.2.so.0.11.0) ==29775== ==29775== Conditional jump or move depends on uninitialised value(s) ==29775== at 0x41B65BF8: (within /usr/lib/libSDL-1.2.so.0.11.0) ==29775== ==29775== Conditional jump or move depends on uninitialised value(s) ==29775== at 0x41B65C00: (within /usr/lib/libSDL-1.2.so.0.11.0) ==29775== ==29775== Conditional jump or move depends on uninitialised value(s) ==29775== at 0x41B65C0B: (within /usr/lib/libSDL-1.2.so.0.11.0) ==29775== ==29775== Syscall param write(buf) points to uninitialised byte(s) ==29775== at 0x4EC08FEB: write (in /lib/i686/libc-2.4.so) ==29775== by 0x4F10070C: __PHYSFS_platformWrite (in /usr/lib/libphysfs-1.0.so.1.0.0) ==29775== by 0x4F0F9484: (within /usr/lib/libphysfs-1.0.so.1.0.0) ==29775== by 0x4F0F6197: PHYSFS_write (in /usr/lib/libphysfs-1.0.so.1.0.0) ==29775== by 0x8168E87: saveFile (frame.c:611) ==29775== Address 0xBE98FE90 is on thread 1's stack ==29775== ==29775== Conditional jump or move depends on uninitialised value(s) ==29775== at 0x8128DF4: validLocation (structure.c:5488) ==29775== by 0x812A22D: setAssemblyPoint (structure.c:6956) ==29775== by 0x812E6E4: buildStructure (structure.c:2857) ==29775== by 0x810A0D2: loadSaveStructure (game.c:6587) ==29775== by 0x810E678: loadGame (game.c:2319) ==29775== by 0x8118248: startMission (mission.c:1545) ==29775== by 0x80A181C: levLoadData (levels.c:1058) ==29775== by 0x80A6250: main (main.c:633) ==29775== ==29775== Conditional jump or move depends on uninitialised value(s) ==29775== at 0x8128C43: validLocation (structure.c:5536) ==29775== by 0x812A22D: setAssemblyPoint (structure.c:6956) ==29775== by 0x812E6E4: buildStructure (structure.c:2857) ==29775== by 0x810A0D2: loadSaveStructure (game.c:6587) ==29775== by 0x810E678: loadGame (game.c:2319) ==29775== by 0x8118248: startMission (mission.c:1545) ==29775== by 0x80A181C: levLoadData (levels.c:1058) ==29775== by 0x80A6250: main (main.c:633) ==29775== ==29775== Conditional jump or move depends on uninitialised value(s) ==29775== at 0x8128DF4: validLocation (structure.c:5488) ==29775== by 0x812A2D5: setAssemblyPoint (structure.c:6970) ==29775== by 0x812E6E4: buildStructure (structure.c:2857) ==29775== by 0x810A0D2: loadSaveStructure (game.c:6587) ==29775== by 0x810E678: loadGame (game.c:2319) ==29775== by 0x8118248: startMission (mission.c:1545) ==29775== by 0x80A181C: levLoadData (levels.c:1058) ==29775== by 0x80A6250: main (main.c:633) ==29775== ==29775== Conditional jump or move depends on uninitialised value(s) ==29775== at 0x8128C43: validLocation (structure.c:5536) ==29775== by 0x812A2D5: setAssemblyPoint (structure.c:6970) ==29775== by 0x812E6E4: buildStructure (structure.c:2857) ==29775== by 0x810A0D2: loadSaveStructure (game.c:6587) ==29775== by 0x810E678: loadGame (game.c:2319) ==29775== by 0x8118248: startMission (mission.c:1545) ==29775== by 0x80A181C: levLoadData (levels.c:1058) ==29775== by 0x80A6250: main (main.c:633)