==19410== Invalid write of size 1
==19410== at 0x4C2F2B3: strcpy (vg_replace_strmem.c:458)
==19410== by 0x1095BF: ffnode (test.c:306)
==19410== by 0x109E3E: syntax (test.c:443)
==19410== by 0x109EDC: main (test.c:465)
==19410== Address 0x51d6165 is 0 bytes after a block of size 5 alloc'd
==19410== at 0x4C2DD10: calloc (vg_replace_malloc.c:623)
==19410== by 0x109E06: syntax (test.c:440)
==19410== by 0x109EDC: main (test.c:465)
==19410==
==19410== Invalid read of size 1
==19410== at 0x4C301EB: strcmp (vg_replace_strmem.c:755)
==19410== by 0x10945B: ffnode (test.c:276)
==19410== by 0x1095D8: ffnode (test.c:307)
==19410== by 0x109E3E: syntax (test.c:443)
==19410== by 0x109EDC: main (test.c:465)
==19410== Address 0x51d6165 is 0 bytes after a block of size 5 alloc'd
==19410== at 0x4C2DD10: calloc (vg_replace_malloc.c:623)
==19410== by 0x109E06: syntax (test.c:440)
==19410== by 0x109EDC: main (test.c:465)
==19410==
==19410== Invalid read of size 1
==19410== at 0x4C301EB: strcmp (vg_replace_strmem.c:755)
==19410== by 0x1092BC: hval (test.c:243)
==19410== by 0x10948C: ffnode (test.c:279)
==19410== by 0x1095D8: ffnode (test.c:307)
==19410== by 0x109E3E: syntax (test.c:443)
==19410== by 0x109EDC: main (test.c:465)
==19410== Address 0x51d6165 is 0 bytes after a block of size 5 alloc'd
==19410== at 0x4C2DD10: calloc (vg_replace_malloc.c:623)
==19410== by 0x109E06: syntax (test.c:440)
==19410== by 0x109EDC: main (test.c:465)
==19410==
==19410== Invalid read of size 1
==19410== at 0x4C301EB: strcmp (vg_replace_strmem.c:755)
==19410== by 0x1092BC: hval (test.c:243)
==19410== by 0x1094D1: ffnode (test.c:282)
==19410== by 0x1095D8: ffnode (test.c:307)
==19410== by 0x109E3E: syntax (test.c:443)
==19410== by 0x109EDC: main (test.c:465)
==19410== Address 0x51d6165 is 0 bytes after a block of size 5 alloc'd
==19410== at 0x4C2DD10: calloc (vg_replace_malloc.c:623)
==19410== by 0x109E06: syntax (test.c:440)
==19410== by 0x109EDC: main (test.c:465)
==19410== Invalid write of size 8
==19410== at 0x109186: tokenize (test.c:190)
==19410== by 0x10953C: ffnode (test.c:293)
==19410== by 0x1095D8: ffnode (test.c:307)
==19410== by 0x109E3E: syntax (test.c:443)
==19410== by 0x109EDC: main (test.c:465)
==19410== Address 0x51d7200 is 0 bytes after a block of size 0 alloc'd
==19410== at 0x4C2DD10: calloc (vg_replace_malloc.c:623)
==19410== by 0x10951C: ffnode (test.c:292)
==19410== by 0x1095D8: ffnode (test.c:307)
==19410== by 0x109E3E: syntax (test.c:443)
==19410== by 0x109EDC: main (test.c:465)
==19410==
==19410== Invalid read of size 8
==19410== at 0x1091A1: tokenize (test.c:191)
==19410== by 0x10953C: ffnode (test.c:293)
==19410== by 0x1095D8: ffnode (test.c:307)
==19410== by 0x109E3E: syntax (test.c:443)
==19410== by 0x109EDC: main (test.c:465)
==19410== Address 0x51d7200 is 0 bytes after a block of size 0 alloc'd
==19410== at 0x4C2DD10: calloc (vg_replace_malloc.c:623)
==19410== by 0x10951C: ffnode (test.c:292)
==19410== by 0x1095D8: ffnode (test.c:307)
==19410== by 0x109E3E: syntax (test.c:443)
==19410== by 0x109EDC: main (test.c:465)
==19410==
==19410== Invalid write of size 8
==19410== at 0x108F5A: delete (test.c:139)
==19410== by 0x109B46: ffnode (test.c:368)
==19410== by 0x1095D8: ffnode (test.c:307)
==19410== by 0x109E3E: syntax (test.c:443)
==19410== by 0x109EDC: main (test.c:465)
==19410== Address 0x51d95a0 is 0 bytes after a block of size 0 alloc'd
==19410== at 0x4C2DD10: calloc (vg_replace_malloc.c:623)
==19410== by 0x108F4A: delete (test.c:137)
==19410== by 0x109B46: ffnode (test.c:368)
==19410== by 0x1095D8: ffnode (test.c:307)
==19410== by 0x109E3E: syntax (test.c:443)
==19410== by 0x109EDC: main (test.c:465)
==19410== Argument 'size' of function malloc has a fishy (possibly negative) value: -40
==19410== at 0x4C2BC20: malloc (vg_replace_malloc.c:296)
==19410== by 0x4C2DFCF: realloc (vg_replace_malloc.c:692)
==19410== by 0x108F80: delete (test.c:141)
==19410== by 0x109B46: ffnode (test.c:368)
==19410== by 0x1095D8: ffnode (test.c:307)
==19410== by 0x109E3E: syntax (test.c:443)
==19410== by 0x109EDC: main (test.c:465)
==19410==
==19410== Invalid write of size 8
==19410== at 0x109186: tokenize (test.c:190)
==19410== by 0x10953C: ffnode (test.c:293)
==19410== by 0x1095D8: ffnode (test.c:307)
==19410== by 0x109AD9: ffnode (test.c:359)
==19410== by 0x1095D8: ffnode (test.c:307)
==19410== by 0x109E3E: syntax (test.c:443)
==19410== by 0x109EDC: main (test.c:465)
==19410== Address 0x51da6a0 is 0 bytes after a block of size 0 alloc'd
==19410== at 0x4C2DD10: calloc (vg_replace_malloc.c:623)
==19410== by 0x10951C: ffnode (test.c:292)
==19410== by 0x1095D8: ffnode (test.c:307)
==19410== by 0x109AD9: ffnode (test.c:359)
==19410== by 0x1095D8: ffnode (test.c:307)
==19410== by 0x109E3E: syntax (test.c:443)
==19410== by 0x109EDC: main (test.c:465)
==19410==
==19410== Invalid read of size 8
==19410== at 0x1091A1: tokenize (test.c:191)
==19410== by 0x10953C: ffnode (test.c:293)
==19410== by 0x1095D8: ffnode (test.c:307)
==19410== by 0x109AD9: ffnode (test.c:359)
==19410== by 0x1095D8: ffnode (test.c:307)
==19410== by 0x109E3E: syntax (test.c:443)
==19410== by 0x109EDC: main (test.c:465)
==19410== Address 0x51da6a0 is 0 bytes after a block of size 0 alloc'd
==19410== at 0x4C2DD10: calloc (vg_replace_malloc.c:623)
==19410== by 0x10951C: ffnode (test.c:292)
==19410== by 0x1095D8: ffnode (test.c:307)
==19410== by 0x109AD9: ffnode (test.c:359)
==19410== by 0x1095D8: ffnode (test.c:307)
==19410== by 0x109E3E: syntax (test.c:443)
==19410== by 0x109EDC: main (test.c:465)
==19410== Address 0x51dd390 is 0 bytes after a block of size 0 alloc'd
==19410== at 0x4C2DD10: calloc (vg_replace_malloc.c:623)
==19410== by 0x1096C7: ffnode (test.c:325)
==19410== by 0x109AD9: ffnode (test.c:359)
==19410== by 0x1095D8: ffnode (test.c:307)
==19410== by 0x1095D8: ffnode (test.c:307)
==19410== by 0x109AD9: ffnode (test.c:359)
==19410== by 0x1095D8: ffnode (test.c:307)
==19410== by 0x109E3E: syntax (test.c:443)
==19410== by 0x109EDC: main (test.c:465)
==19410==
==19410== Invalid read of size 8
==19410== at 0x1091A1: tokenize (test.c:191)
==19410== by 0x1096E7: ffnode (test.c:326)
==19410== by 0x109AD9: ffnode (test.c:359)
==19410== by 0x1095D8: ffnode (test.c:307)
==19410== by 0x1095D8: ffnode (test.c:307)
==19410== by 0x109AD9: ffnode (test.c:359)
==19410== by 0x1095D8: ffnode (test.c:307)
==19410== by 0x109E3E: syntax (test.c:443)
==19410== by 0x109EDC: main (test.c:465)
==19410== Address 0x51dd390 is 0 bytes after a block of size 0 alloc'd
==19410== at 0x4C2DD10: calloc (vg_replace_malloc.c:623)
==19410== by 0x1096C7: ffnode (test.c:325)
==19410== by 0x109AD9: ffnode (test.c:359)
==19410== by 0x1095D8: ffnode (test.c:307)
==19410== by 0x1095D8: ffnode (test.c:307)
==19410== by 0x109AD9: ffnode (test.c:359)
==19410== by 0x1095D8: ffnode (test.c:307)
==19410== by 0x109E3E: syntax (test.c:443)
==19410== by 0x109EDC: main (test.c:465)
==19410==
==19410== Invalid write of size 1
==19410== at 0x4C2F2A0: strcpy (vg_replace_strmem.c:458)
==19410== by 0x109D1D: ffnode (test.c:410)
==19410== by 0x109AD9: ffnode (test.c:359)
==19410== by 0x109AD9: ffnode (test.c:359)
==19410== by 0x1095D8: ffnode (test.c:307)
==19410== by 0x1095D8: ffnode (test.c:307)
==19410== by 0x109AD9: ffnode (test.c:359)
==19410== by 0x1095D8: ffnode (test.c:307)
==19410== by 0x109E3E: syntax (test.c:443)
==19410== by 0x109EDC: main (test.c:465)
==19410== Address 0x51de08a is 18 bytes after a block of size 8 alloc'd
==19410== at 0x4C2DD10: calloc (vg_replace_malloc.c:623)
==19410== by 0x109D03: ffnode (test.c:409)
==19410== by 0x109AD9: ffnode (test.c:359)
==19410== by 0x109AD9: ffnode (test.c:359)
==19410== by 0x1095D8: ffnode (test.c:307)
==19410== by 0x1095D8: ffnode (test.c:307)
==19410== by 0x109AD9: ffnode (test.c:359)
==19410== by 0x1095D8: ffnode (test.c:307)
==19410== by 0x109E3E: syntax (test.c:443)
==19410== by 0x109EDC: main (test.c:465)
==19410==
==19410== Invalid read of size 1
==19410== at 0x4C2F2A4: strcpy (vg_replace_strmem.c:458)
==19410== by 0x109D4A: ffnode (test.c:411)
==19410== by 0x109AD9: ffnode (test.c:359)
==19410== by 0x109AD9: ffnode (test.c:359)
==19410== by 0x1095D8: ffnode (test.c:307)
==19410== by 0x1095D8: ffnode (test.c:307)
==19410== by 0x109AD9: ffnode (test.c:359)
==19410== by 0x1095D8: ffnode (test.c:307)
==19410== by 0x109E3E: syntax (test.c:443)
==19410== by 0x109EDC: main (test.c:465)
==19410== Address 0x51de078 is 0 bytes after a block of size 8 alloc'd
==19410== at 0x4C2DD10: calloc (vg_replace_malloc.c:623)
==19410== by 0x109D03: ffnode (test.c:409)
==19410== by 0x109AD9: ffnode (test.c:359)
==19410== by 0x109AD9: ffnode (test.c:359)
==19410== by 0x1095D8: ffnode (test.c:307)
==19410== by 0x1095D8: ffnode (test.c:307)
==19410== by 0x109AD9: ffnode (test.c:359)
==19410== by 0x1095D8: ffnode (test.c:307)
==19410== by 0x109E3E: syntax (test.c:443)
==19410== by 0x109EDC: main (test.c:465)
==19410==
==19410== Invalid write of size 4
==19410== at 0x1099C7: ffnode (test.c:352)
==19410== by 0x109AD9: ffnode (test.c:359)
==19410== by 0x1095D8: ffnode (test.c:307)
==19410== by 0x1095D8: ffnode (test.c:307)
==19410== by 0x109AD9: ffnode (test.c:359)
==19410== by 0x1095D8: ffnode (test.c:307)
==19410== by 0x109E3E: syntax (test.c:443)
==19410== by 0x109EDC: main (test.c:465)
==19410== Address 0x51dd4a8 is 16 bytes after a block of size 40 alloc'd
==19410== at 0x4C2DD10: calloc (vg_replace_malloc.c:623)
==19410== by 0x109728: ffnode (test.c:330)
==19410== by 0x109AD9: ffnode (test.c:359)
==19410== by 0x1095D8: ffnode (test.c:307)
==19410== by 0x1095D8: ffnode (test.c:307)
==19410== by 0x109AD9: ffnode (test.c:359)
==19410== by 0x1095D8: ffnode (test.c:307)
==19410== by 0x109E3E: syntax (test.c:443)
==19410== by 0x109EDC: main (test.c:465)
==19410==
==19410== Invalid write of size 8
==19410== at 0x109A05: ffnode (test.c:353)
==19410== by 0x109AD9: ffnode (test.c:359)
==19410== by 0x1095D8: ffnode (test.c:307)
==19410== by 0x1095D8: ffnode (test.c:307)
==19410== by 0x109AD9: ffnode (test.c:359)
==19410== by 0x1095D8: ffnode (test.c:307)
==19410== by 0x109E3E: syntax (test.c:443)
==19410== by 0x109EDC: main (test.c:465)
==19410== Address 0x51dd4b8 is 24 bytes after a block of size 48 in arena "client"
==19410==
valgrind: m_mallocfree.c:304 (get_bszB_as_is): Assertion 'bszB_lo == bszB_hi' failed.
valgrind: Heap block lo/hi size mismatch: lo = 112, hi = 85844160.
This is probably caused by your program erroneously writing past the
end of a heap block and corrupting heap metadata. If you fix any
invalid writes reported by Memcheck, this assertion failure will
probably go away. Please try that before reporting this as a bug.