==5349== Memcheck, a memory error detector ==5349== Copyright (C) 2002-2017, and GNU GPL'd, by Julian Seward et al. ==5349== Using Valgrind-3.13.0 and LibVEX; rerun with -h for copyright info ==5349== Command: ./tcc-plain /tmp/gsym_addr.c ==5349== ==5349== Invalid read of size 1 ==5349== at 0x12EAB6: read16le (tcc.h:1513) ==5349== by 0x12EAB6: read32le (tcc.h:1519) ==5349== by 0x12EAB6: gsym_addr (x86_64-gen.c:208) ==5349== by 0x1234A8: block (tccgen.c:6321) ==5349== by 0x122BFC: block (tccgen.c:6186) ==5349== by 0x1238E6: gen_function (tccgen.c:7369) ==5349== by 0x1225FD: decl0.isra.23 (tccgen.c:7602) ==5349== by 0x123BBB: decl (tccgen.c:7703) ==5349== by 0x123BBB: tccgen_compile (tccgen.c:298) ==5349== by 0x10B818: tcc_compile (libtcc.c:647) ==5349== by 0x10CE4A: tcc_add_file_internal (libtcc.c:1063) ==5349== by 0x10A16B: main (tcc.c:338) ==5349== Address 0x59a5e6d is 3 bytes before an unallocated block of size 2,265,456 in arena "client" ==5349== ==5349== Invalid read of size 1 ==5349== at 0x12EABB: read16le (tcc.h:1513) ==5349== by 0x12EABB: read32le (tcc.h:1519) ==5349== by 0x12EABB: gsym_addr (x86_64-gen.c:208) ==5349== by 0x1234A8: block (tccgen.c:6321) ==5349== by 0x122BFC: block (tccgen.c:6186) ==5349== by 0x1238E6: gen_function (tccgen.c:7369) ==5349== by 0x1225FD: decl0.isra.23 (tccgen.c:7602) ==5349== by 0x123BBB: decl (tccgen.c:7703) ==5349== by 0x123BBB: tccgen_compile (tccgen.c:298) ==5349== by 0x10B818: tcc_compile (libtcc.c:647) ==5349== by 0x10CE4A: tcc_add_file_internal (libtcc.c:1063) ==5349== by 0x10A16B: main (tcc.c:338) ==5349== Address 0x59a5e6b is 5 bytes before an unallocated block of size 2,265,456 in arena "client" ==5349== ==5349== Invalid read of size 1 ==5349== at 0x12EAC2: read16le (tcc.h:1513) ==5349== by 0x12EAC2: read32le (tcc.h:1519) ==5349== by 0x12EAC2: gsym_addr (x86_64-gen.c:208) ==5349== by 0x1234A8: block (tccgen.c:6321) ==5349== by 0x122BFC: block (tccgen.c:6186) ==5349== by 0x1238E6: gen_function (tccgen.c:7369) ==5349== by 0x1225FD: decl0.isra.23 (tccgen.c:7602) ==5349== by 0x123BBB: decl (tccgen.c:7703) ==5349== by 0x123BBB: tccgen_compile (tccgen.c:298) ==5349== by 0x10B818: tcc_compile (libtcc.c:647) ==5349== by 0x10CE4A: tcc_add_file_internal (libtcc.c:1063) ==5349== by 0x10A16B: main (tcc.c:338) ==5349== Address 0x59a5e6c is 4 bytes before an unallocated block of size 2,265,456 in arena "client" ==5349== ==5349== Invalid read of size 1 ==5349== at 0x12EAD2: read16le (tcc.h:1513) ==5349== by 0x12EAD2: read32le (tcc.h:1519) ==5349== by 0x12EAD2: gsym_addr (x86_64-gen.c:208) ==5349== by 0x1234A8: block (tccgen.c:6321) ==5349== by 0x122BFC: block (tccgen.c:6186) ==5349== by 0x1238E6: gen_function (tccgen.c:7369) ==5349== by 0x1225FD: decl0.isra.23 (tccgen.c:7602) ==5349== by 0x123BBB: decl (tccgen.c:7703) ==5349== by 0x123BBB: tccgen_compile (tccgen.c:298) ==5349== by 0x10B818: tcc_compile (libtcc.c:647) ==5349== by 0x10CE4A: tcc_add_file_internal (libtcc.c:1063) ==5349== by 0x10A16B: main (tcc.c:338) ==5349== Address 0x59a5e6a is 6 bytes before an unallocated block of size 2,265,456 in arena "client" ==5349== ==5349== Invalid write of size 1 ==5349== at 0x12EAE8: write16le (tcc.h:1516) ==5349== by 0x12EAE8: write32le (tcc.h:1522) ==5349== by 0x12EAE8: gsym_addr (x86_64-gen.c:209) ==5349== by 0x1234A8: block (tccgen.c:6321) ==5349== by 0x122BFC: block (tccgen.c:6186) ==5349== by 0x1238E6: gen_function (tccgen.c:7369) ==5349== by 0x1225FD: decl0.isra.23 (tccgen.c:7602) ==5349== by 0x123BBB: decl (tccgen.c:7703) ==5349== by 0x123BBB: tccgen_compile (tccgen.c:298) ==5349== by 0x10B818: tcc_compile (libtcc.c:647) ==5349== by 0x10CE4A: tcc_add_file_internal (libtcc.c:1063) ==5349== by 0x10A16B: main (tcc.c:338) ==5349== Address 0x59a5e6a is 6 bytes before an unallocated block of size 2,265,456 in arena "client" ==5349== ==5349== Invalid write of size 1 ==5349== at 0x12EAEA: write16le (tcc.h:1516) ==5349== by 0x12EAEA: write32le (tcc.h:1522) ==5349== by 0x12EAEA: gsym_addr (x86_64-gen.c:209) ==5349== by 0x1234A8: block (tccgen.c:6321) ==5349== by 0x122BFC: block (tccgen.c:6186) ==5349== by 0x1238E6: gen_function (tccgen.c:7369) ==5349== by 0x1225FD: decl0.isra.23 (tccgen.c:7602) ==5349== by 0x123BBB: decl (tccgen.c:7703) ==5349== by 0x123BBB: tccgen_compile (tccgen.c:298) ==5349== by 0x10B818: tcc_compile (libtcc.c:647) ==5349== by 0x10CE4A: tcc_add_file_internal (libtcc.c:1063) ==5349== by 0x10A16B: main (tcc.c:338) ==5349== Address 0x59a5e6b is 5 bytes before an unallocated block of size 2,265,456 in arena "client" ==5349== ==5349== Invalid write of size 1 ==5349== at 0x12EAF2: write16le (tcc.h:1516) ==5349== by 0x12EAF2: write32le (tcc.h:1522) ==5349== by 0x12EAF2: gsym_addr (x86_64-gen.c:209) ==5349== by 0x1234A8: block (tccgen.c:6321) ==5349== by 0x122BFC: block (tccgen.c:6186) ==5349== by 0x1238E6: gen_function (tccgen.c:7369) ==5349== by 0x1225FD: decl0.isra.23 (tccgen.c:7602) ==5349== by 0x123BBB: decl (tccgen.c:7703) ==5349== by 0x123BBB: tccgen_compile (tccgen.c:298) ==5349== by 0x10B818: tcc_compile (libtcc.c:647) ==5349== by 0x10CE4A: tcc_add_file_internal (libtcc.c:1063) ==5349== by 0x10A16B: main (tcc.c:338) ==5349== Address 0x59a5e6c is 4 bytes before an unallocated block of size 2,265,456 in arena "client" ==5349== ==5349== Invalid write of size 1 ==5349== at 0x12EAF5: write16le (tcc.h:1516) ==5349== by 0x12EAF5: write32le (tcc.h:1522) ==5349== by 0x12EAF5: gsym_addr (x86_64-gen.c:209) ==5349== by 0x1234A8: block (tccgen.c:6321) ==5349== by 0x122BFC: block (tccgen.c:6186) ==5349== by 0x1238E6: gen_function (tccgen.c:7369) ==5349== by 0x1225FD: decl0.isra.23 (tccgen.c:7602) ==5349== by 0x123BBB: decl (tccgen.c:7703) ==5349== by 0x123BBB: tccgen_compile (tccgen.c:298) ==5349== by 0x10B818: tcc_compile (libtcc.c:647) ==5349== by 0x10CE4A: tcc_add_file_internal (libtcc.c:1063) ==5349== by 0x10A16B: main (tcc.c:338) ==5349== Address 0x59a5e6d is 3 bytes before an unallocated block of size 2,265,456 in arena "client" ==5349== /tmp/gsym_addr.c:1: error: identifier expected ==5349== ==5349== HEAP SUMMARY: ==5349== in use at exit: 0 bytes in 0 blocks ==5349== total heap usage: 139 allocs, 139 frees, 1,919,286 bytes allocated ==5349== ==5349== All heap blocks were freed -- no leaks are possible ==5349== ==5349== For counts of detected and suppressed errors, rerun with: -v ==5349== ERROR SUMMARY: 8 errors from 8 contexts (suppressed: 0 from 0)