==1242== Memcheck, a memory error detector ==1242== Copyright (C) 2002-2015, and GNU GPL'd, by Julian Seward et al. ==1242== Using Valgrind-3.12.0 and LibVEX; rerun with -h for copyright info ==1242== Command: /home/steffen/code.arena/tinycc.git/tcc -Wall -Wextra -pedantic -g -I/home/steffen/usr/include -I/home/steffen/usr/opt/tcc-mob/include -I/usr/local/include -I/usr/include -c mime_enc.c ==1242== mime_enc.c:165: error: 'a_ME_N' undeclared ==1242== Invalid read of size 8 ==1242== at 0x405AE2: end_macro (tccpp.c:1121) ==1242== by 0x409EA1: tccpp_delete (tccpp.c:3533) ==1242== by 0x4024DC: tcc_cleanup (libtcc.c:733) ==1242== by 0x402D23: tcc_delete (libtcc.c:908) ==1242== by 0x401EAE: main (tcc.c:364) ==1242== Address 0x5b02268 is 24 bytes inside a block of size 74 free'd ==1242== at 0x4C2BD3A: free (in /usr/lib/valgrind/vgpreload_memcheck-amd64-linux.so) ==1242== by 0x4024C5: tcc_free (libtcc.c:198) ==1242== by 0x4024C5: dynarray_reset (libtcc.c:455) ==1242== by 0x40E35A: free_inline_functions (tccgen.c:6550) ==1242== by 0x40207E: tcc_compile (libtcc.c:672) ==1242== by 0x403044: tcc_add_file_internal (libtcc.c:1051) ==1242== by 0x403226: tcc_add_file (libtcc.c:1118) ==1242== by 0x401D4A: main (tcc.c:335) ==1242== Block was alloc'd at ==1242== at 0x4C2AB8D: malloc (in /usr/lib/valgrind/vgpreload_memcheck-amd64-linux.so) ==1242== by 0x402685: tcc_malloc (libtcc.c:204) ==1242== by 0x413B67: decl0 (tccgen.c:6701) ==1242== by 0x40E36F: decl (tccgen.c:6814) ==1242== by 0x402111: tcc_compile (libtcc.c:665) ==1242== by 0x403044: tcc_add_file_internal (libtcc.c:1051) ==1242== by 0x403226: tcc_add_file (libtcc.c:1118) ==1242== by 0x401D4A: main (tcc.c:335) ==1242== ==1242== Invalid read of size 8 ==1242== at 0x405AED: end_macro (tccpp.c:1122) ==1242== by 0x409EA1: tccpp_delete (tccpp.c:3533) ==1242== by 0x4024DC: tcc_cleanup (libtcc.c:733) ==1242== by 0x402D23: tcc_delete (libtcc.c:908) ==1242== by 0x401EAE: main (tcc.c:364) ==1242== Address 0x5b02270 is 32 bytes inside a block of size 74 free'd ==1242== at 0x4C2BD3A: free (in /usr/lib/valgrind/vgpreload_memcheck-amd64-linux.so) ==1242== by 0x4024C5: tcc_free (libtcc.c:198) ==1242== by 0x4024C5: dynarray_reset (libtcc.c:455) ==1242== by 0x40E35A: free_inline_functions (tccgen.c:6550) ==1242== by 0x40207E: tcc_compile (libtcc.c:672) ==1242== by 0x403044: tcc_add_file_internal (libtcc.c:1051) ==1242== by 0x403226: tcc_add_file (libtcc.c:1118) ==1242== by 0x401D4A: main (tcc.c:335) ==1242== Block was alloc'd at ==1242== at 0x4C2AB8D: malloc (in /usr/lib/valgrind/vgpreload_memcheck-amd64-linux.so) ==1242== by 0x402685: tcc_malloc (libtcc.c:204) ==1242== by 0x413B67: decl0 (tccgen.c:6701) ==1242== by 0x40E36F: decl (tccgen.c:6814) ==1242== by 0x402111: tcc_compile (libtcc.c:665) ==1242== by 0x403044: tcc_add_file_internal (libtcc.c:1051) ==1242== by 0x403226: tcc_add_file (libtcc.c:1118) ==1242== by 0x401D4A: main (tcc.c:335) ==1242== ==1242== Invalid read of size 1 ==1242== at 0x405AF8: end_macro (tccpp.c:1123) ==1242== by 0x409EA1: tccpp_delete (tccpp.c:3533) ==1242== by 0x4024DC: tcc_cleanup (libtcc.c:733) ==1242== by 0x402D23: tcc_delete (libtcc.c:908) ==1242== by 0x401EAE: main (tcc.c:364) ==1242== Address 0x5b02278 is 40 bytes inside a block of size 74 free'd ==1242== at 0x4C2BD3A: free (in /usr/lib/valgrind/vgpreload_memcheck-amd64-linux.so) ==1242== by 0x4024C5: tcc_free (libtcc.c:198) ==1242== by 0x4024C5: dynarray_reset (libtcc.c:455) ==1242== by 0x40E35A: free_inline_functions (tccgen.c:6550) ==1242== by 0x40207E: tcc_compile (libtcc.c:672) ==1242== by 0x403044: tcc_add_file_internal (libtcc.c:1051) ==1242== by 0x403226: tcc_add_file (libtcc.c:1118) ==1242== by 0x401D4A: main (tcc.c:335) ==1242== Block was alloc'd at ==1242== at 0x4C2AB8D: malloc (in /usr/lib/valgrind/vgpreload_memcheck-amd64-linux.so) ==1242== by 0x402685: tcc_malloc (libtcc.c:204) ==1242== by 0x413B67: decl0 (tccgen.c:6701) ==1242== by 0x40E36F: decl (tccgen.c:6814) ==1242== by 0x402111: tcc_compile (libtcc.c:665) ==1242== by 0x403044: tcc_add_file_internal (libtcc.c:1051) ==1242== by 0x403226: tcc_add_file (libtcc.c:1118) ==1242== by 0x401D4A: main (tcc.c:335) ==1242== ==1242== Invalid read of size 8 ==1242== at 0x405AFE: end_macro (tccpp.c:1126) ==1242== by 0x409EA1: tccpp_delete (tccpp.c:3533) ==1242== by 0x4024DC: tcc_cleanup (libtcc.c:733) ==1242== by 0x402D23: tcc_delete (libtcc.c:908) ==1242== by 0x401EAE: main (tcc.c:364) ==1242== Address 0x5b02250 is 0 bytes inside a block of size 74 free'd ==1242== at 0x4C2BD3A: free (in /usr/lib/valgrind/vgpreload_memcheck-amd64-linux.so) ==1242== by 0x4024C5: tcc_free (libtcc.c:198) ==1242== by 0x4024C5: dynarray_reset (libtcc.c:455) ==1242== by 0x40E35A: free_inline_functions (tccgen.c:6550) ==1242== by 0x40207E: tcc_compile (libtcc.c:672) ==1242== by 0x403044: tcc_add_file_internal (libtcc.c:1051) ==1242== by 0x403226: tcc_add_file (libtcc.c:1118) ==1242== by 0x401D4A: main (tcc.c:335) ==1242== Block was alloc'd at ==1242== at 0x4C2AB8D: malloc (in /usr/lib/valgrind/vgpreload_memcheck-amd64-linux.so) ==1242== by 0x402685: tcc_malloc (libtcc.c:204) ==1242== by 0x413B67: decl0 (tccgen.c:6701) ==1242== by 0x40E36F: decl (tccgen.c:6814) ==1242== by 0x402111: tcc_compile (libtcc.c:665) ==1242== by 0x403044: tcc_add_file_internal (libtcc.c:1051) ==1242== by 0x403226: tcc_add_file (libtcc.c:1118) ==1242== by 0x401D4A: main (tcc.c:335) ==1242== ==1242== Invalid read of size 1 ==1242== at 0x405B06: end_macro (tccpp.c:1127) ==1242== by 0x409EA1: tccpp_delete (tccpp.c:3533) ==1242== by 0x4024DC: tcc_cleanup (libtcc.c:733) ==1242== by 0x402D23: tcc_delete (libtcc.c:908) ==1242== by 0x401EAE: main (tcc.c:364) ==1242== Address 0x5b02278 is 40 bytes inside a block of size 74 free'd ==1242== at 0x4C2BD3A: free (in /usr/lib/valgrind/vgpreload_memcheck-amd64-linux.so) ==1242== by 0x4024C5: tcc_free (libtcc.c:198) ==1242== by 0x4024C5: dynarray_reset (libtcc.c:455) ==1242== by 0x40E35A: free_inline_functions (tccgen.c:6550) ==1242== by 0x40207E: tcc_compile (libtcc.c:672) ==1242== by 0x403044: tcc_add_file_internal (libtcc.c:1051) ==1242== by 0x403226: tcc_add_file (libtcc.c:1118) ==1242== by 0x401D4A: main (tcc.c:335) ==1242== Block was alloc'd at ==1242== at 0x4C2AB8D: malloc (in /usr/lib/valgrind/vgpreload_memcheck-amd64-linux.so) ==1242== by 0x402685: tcc_malloc (libtcc.c:204) ==1242== by 0x413B67: decl0 (tccgen.c:6701) ==1242== by 0x40E36F: decl (tccgen.c:6814) ==1242== by 0x402111: tcc_compile (libtcc.c:665) ==1242== by 0x403044: tcc_add_file_internal (libtcc.c:1051) ==1242== by 0x403226: tcc_add_file (libtcc.c:1118) ==1242== by 0x401D4A: main (tcc.c:335) ==1242== ==1242== ==1242== HEAP SUMMARY: ==1242== in use at exit: 0 bytes in 0 blocks ==1242== total heap usage: 827 allocs, 827 frees, 4,508,379 bytes allocated ==1242== ==1242== All heap blocks were freed -- no leaks are possible ==1242== ==1242== For counts of detected and suppressed errors, rerun with: -v ==1242== ERROR SUMMARY: 5 errors from 5 contexts (suppressed: 0 from 0)