4 memcheck ... ... ... ... ... ... memcheck ... ./threadname RUNNING 0x........ ... InvalidWrite Invalid write of size 1 0x........ ... bad_things ... threadname.c ... 0x........ ... main ... threadname.c ... Address 0x........ is 0 bytes after a block of size 1 alloc'd 0x........ ... malloc ... vg_replace_malloc.c ... 0x........ ... bad_things ... threadname.c ... 0x........ ... main ... threadname.c ... 0x........ ... InvalidWrite Invalid write of size 1 0x........ ... bad_things ... threadname.c ... 0x........ ... child_fn_0 ... threadname.c ... Address 0x........ is 0 bytes after a block of size 2 alloc'd 0x........ ... malloc ... vg_replace_malloc.c ... 0x........ ... bad_things ... threadname.c ... 0x........ ... child_fn_0 ... threadname.c ... 0x........ ... try1 InvalidWrite Invalid write of size 1 0x........ ... bad_things ... threadname.c ... 0x........ ... child_fn_1 ... threadname.c ... Address 0x........ is 0 bytes after a block of size 3 alloc'd 0x........ ... malloc ... vg_replace_malloc.c ... 0x........ ... bad_things ... threadname.c ... 0x........ ... child_fn_1 ... threadname.c ... ... try1 I am in child_fn_1 0x........ ... 012345678901234 InvalidWrite Invalid write of size 1 0x........ ... bad_things ... threadname.c ... 0x........ ... child_fn_2 ... threadname.c ... Address 0x........ is 0 bytes after a block of size 4 alloc'd 0x........ ... malloc ... vg_replace_malloc.c ... 0x........ ... bad_things ... threadname.c ... 0x........ ... child_fn_2 ... threadname.c ... 0x........ ... InvalidWrite Invalid write of size 1 0x........ ... bad_things ... threadname.c ... 0x........ ... main ... threadname.c ... Address 0x........ is 0 bytes after a block of size 5 alloc'd 0x........ ... malloc ... vg_replace_malloc.c ... 0x........ ... bad_things ... threadname.c ... 0x........ ... main ... threadname.c ... FINISHED ... 0x........ ... 0x........ ... 0x........ ... 0x........ ... 0x........ ...