~/dev/c/tinycc/tests$ ../tcc -B.. -I.. -I.. -I../include -DCONFIG_LDDIR="\"lib\"" -DCONFIG_MULTIARCHDIR="\"x86_64-linux-gnu\"" -DTCC_TARGET_X86_64 -DONE_SOURCE -o tcc.tcc ../tcc.c -ldl
~/dev/c/tinycc/tests$ valgrind --tool=memcheck ./tcc.tcc
==5044== Memcheck, a memory error detector
==5044== Copyright (C) 2002-2013, and GNU GPL'd, by Julian Seward et al.
==5044== Using Valgrind-3.9.0 and LibVEX; rerun with -h for copyright info
==5044== Command: ./tcc.tcc
==5044==
valgrind: m_debuginfo/readelf.c:2352 (vgModuleLocal_read_elf_debug_info): Assertion 'crc_offset + sizeof(UInt) <= debuglink_escn.szB' failed.
==5044== at 0x3804F522: ??? (in /home/mingo/local/lib/valgrind/memcheck-amd64-linux)
sched status:
running_tid=0
Note: see also the FAQ in the source distribution.
It contains workarounds to several common problems.
In particular, if Valgrind aborted or crashed after
identifying problems in your program, there's a good chance
that fixing those problems will prevent Valgrind aborting or
crashing, especially if it happened in m_mallocfree.c.
In the bug report, send all the above text, the valgrind
version, and what OS and version you are using. Thanks.