tpm@lara:/media/data20_md0/Projekte/freeBASIC/test/test7$ fbc test7.bas -g && valgrind ./test7
==3731== Memcheck, a memory error detector.
==3731== Copyright (C) 2002-2007, and GNU GPL'd, by Julian Seward et al.
==3731== Using LibVEX rev 1854, a library for dynamic binary translation.
==3731== Copyright (C) 2004-2007, and GNU GPL'd, by OpenWorks LLP.
==3731== Using valgrind-3.3.1-Debian, a dynamic binary instrumentation framework.
==3731== Copyright (C) 2000-2007, and GNU GPL'd, by Julian Seward et al.
==3731== For more details, rerun with: -v
==3731==
==3731== Invalid write of size 1
==3731== at 0x804B3B0: TMAZE::GENMAZE(unsigned short, unsigned short) (test7.bas:138)
==3731== by 0x804B76D: main (test7.bas:221)
==3731== Address 0x459e598 is not stack'd, malloc'd or (recently) free'd
==3731==
==3731== Invalid write of size 1
==3731== at 0x804B402: TMAZE::GENMAZE(unsigned short, unsigned short) (test7.bas:143)
==3731== by 0x804B76D: main (test7.bas:221)
==3731== Address 0x458e877 is not stack'd, malloc'd or (recently) free'd
==3731==
==3731== Invalid write of size 1
==3731== at 0x804B3E4: TMAZE::GENMAZE(unsigned short, unsigned short) (test7.bas:142)
==3731== by 0x804B76D: main (test7.bas:221)
==3731== Address 0x458e878 is not stack'd, malloc'd or (recently) free'd
==3731==
==3731== Invalid write of size 1
==3731== at 0x804B4B7: TMAZE::GENMAZE(unsigned short, unsigned short) (test7.bas:156)
==3731== by 0x804B76D: main (test7.bas:221)
==3731== Address 0x458f68b is not stack'd, malloc'd or (recently) free'd
==3731==
==3731== Invalid read of size 1
==3731== at 0x804B5FD: TMAZE::GENMAZE(unsigned short, unsigned short) (test7.bas:186)
==3731== by 0x804B76D: main (test7.bas:221)
==3731== Address 0x45932f8 is not stack'd, malloc'd or (recently) free'd
==3731==
==3731== Invalid write of size 1
==3731== at 0x804B60E: TMAZE::GENMAZE(unsigned short, unsigned short) (test7.bas:187)
==3731== by 0x804B76D: main (test7.bas:221)
==3731== Address 0x45932f8 is not stack'd, malloc'd or (recently) free'd
==3731==
==3731== Thread 3:
==3731== Invalid read of size 1
==3731== at 0x80512D2: x11_update (libfb_gfx_driver_x11.c:264)
==3731== by 0x8052745: window_thread (libfb_gfx_x11.c:151)
==3731== by 0x42E64BF: start_thread (in /lib/i686/cmov/libpthread-2.7.so)
==3731== by 0x423F84D: clone (in /lib/i686/cmov/libc-2.7.so)
==3731== Address 0x452b400 is 0 bytes after a block of size 600 alloc'd
==3731== at 0x4021E22: calloc (vg_replace_malloc.c:397)
==3731== by 0x804CA66: set_mode (libfb_gfx_screen.c:289)
==3731== by 0x804D120: fb_GfxScreenRes (libfb_gfx_screen.c:458)
==3731== by 0x804B73B: main (test7.bas:217)
==3731==
==3731== Thread 1:
==3731== Invalid read of size 1
==3731== at 0x804B164: TMAZE::DRAWMAZE(int) (test7.bas:81)
==3731== by 0x804B77B: main (test7.bas:222)
==3731== Address 0x458e728 is 0 bytes after a block of size 54,464 alloc'd
==3731== at 0x4021E22: calloc (vg_replace_malloc.c:397)
==3731== by 0x804B36C: TMAZE::GENMAZE(unsigned short, unsigned short) (test7.bas:132)
==3731== by 0x804B76D: main (test7.bas:221)
==3731==
==3731== Conditional jump or move depends on uninitialised value(s)
==3731== at 0x804B16F: TMAZE::DRAWMAZE(int) (test7.bas:82)
==3731== by 0x804B77B: main (test7.bas:222)
==3731==
==3731== Conditional jump or move depends on uninitialised value(s)
==3731== at 0x804B181: TMAZE::DRAWMAZE(int) (test7.bas:84)
==3731== by 0x804B77B: main (test7.bas:222)
==3731==
==3731== Conditional jump or move depends on uninitialised value(s)
==3731== at 0x804B193: TMAZE::DRAWMAZE(int) (test7.bas:86)
==3731== by 0x804B77B: main (test7.bas:222)
==3731==
==3731== Conditional jump or move depends on uninitialised value(s)
==3731== at 0x804B1A5: TMAZE::DRAWMAZE(int) (test7.bas:88)
==3731== by 0x804B77B: main (test7.bas:222)
==3731==
==3731== Invalid free() / delete / delete[]
==3731== at 0x4022B8A: free (vg_replace_malloc.c:323)
==3731== by 0x804B6AE: TMAZE::DELMAZE() (test7.bas:205)
==3731== by 0x804B2F1: TMAZE::GENMAZE(unsigned short, unsigned short) (test7.bas:125)
==3731== by 0x804B76D: main (test7.bas:221)
==3731== Address 0x4581268 is 0 bytes inside a block of size 54,464 free'd
==3731== at 0x4022B8A: free (vg_replace_malloc.c:323)
==3731== by 0x804B6AE: TMAZE::DELMAZE() (test7.bas:205)
==3731== by 0x804B791: main (test7.bas:225)
==3731==
==3731== Invalid write of size 1
==3731== at 0x804B49F: TMAZE::GENMAZE(unsigned short, unsigned short) (test7.bas:155)
==3731== by 0x804B76D: main (test7.bas:221)
==3731== Address 0x45a66c3 is not stack'd, malloc'd or (recently) free'd
==3731==
==3731== ERROR SUMMARY: 265090 errors from 14 contexts (suppressed: 43 from 2)
==3731== malloc/free: in use at exit: 33,229 bytes in 404 blocks.
==3731== malloc/free: 1,752 allocs, 1,351 frees, 2,423,189 bytes allocated.
==3731== For counts of detected errors, rerun with: -v
==3731== searching for pointers to 404 not-freed blocks.
==3731== checked 296,768 bytes.
==3731==
==3731== LEAK SUMMARY:
==3731== definitely lost: 20 bytes in 1 blocks.
==3731== possibly lost: 0 bytes in 0 blocks.
==3731== still reachable: 33,209 bytes in 403 blocks.
==3731== suppressed: 0 bytes in 0 blocks.
==3731== Rerun with --leak-check=full to see details of leaked memory.
tpm@lara:/media/data20_md0/Projekte/freeBASIC/test/test7$