==19722== Memcheck, a memory error detector
==19722== Copyright (C) 2002-2015, and GNU GPL'd, by Julian Seward et al.
==19722== Using Valgrind-3.12.0 and LibVEX; rerun with -h for copyright info
==19722== Command: ./test/ls_valgrindtest
==19722== 
==19722== Invalid read of size 1
==19722==    at 0x4010FE: gpool_test (ls_valgrindtest.c:65)
==19722==    by 0x401087: main (ls_valgrindtest.c:214)
==19722==  Address 0x56956b8 is 5,624 bytes inside a block of size 6,192 alloc'd
==19722==    at 0x4C2DB2F: malloc (in /usr/lib/valgrind/vgpreload_memcheck-amd64-linux.so)
==19722==    by 0x4031E7: ls_palloc_slab (ls_pool.c:523)
==19722==    by 0x4030AD: ls_palloc (ls_pool.c:602)
==19722==    by 0x4010EA: gpool_test (ls_valgrindtest.c:63)
==19722==    by 0x401087: main (ls_valgrindtest.c:214)
==19722== 
==19722== Invalid read of size 1
==19722==    at 0x40110B: gpool_test (ls_valgrindtest.c:66)
==19722==    by 0x401087: main (ls_valgrindtest.c:214)
==19722==  Address 0x56957f8 is 5,944 bytes inside a block of size 6,192 alloc'd
==19722==    at 0x4C2DB2F: malloc (in /usr/lib/valgrind/vgpreload_memcheck-amd64-linux.so)
==19722==    by 0x4031E7: ls_palloc_slab (ls_pool.c:523)
==19722==    by 0x4030AD: ls_palloc (ls_pool.c:602)
==19722==    by 0x4010EA: gpool_test (ls_valgrindtest.c:63)
==19722==    by 0x401087: main (ls_valgrindtest.c:214)
==19722== 
==19722== Invalid read of size 1
==19722==    at 0x401128: gpool_test (ls_valgrindtest.c:68)
==19722==    by 0x401087: main (ls_valgrindtest.c:214)
==19722==  Address 0x56956b7 is 5,623 bytes inside a recently re-allocated block of size 6,192 alloc'd
==19722==    at 0x4C2DB2F: malloc (in /usr/lib/valgrind/vgpreload_memcheck-amd64-linux.so)
==19722==    by 0x4031E7: ls_palloc_slab (ls_pool.c:523)
==19722==    by 0x4030AD: ls_palloc (ls_pool.c:602)
==19722==    by 0x4010EA: gpool_test (ls_valgrindtest.c:63)
==19722==    by 0x401087: main (ls_valgrindtest.c:214)
==19722== 
==19722== Invalid read of size 1
==19722==    at 0x40116E: gpool_test (ls_valgrindtest.c:74)
==19722==    by 0x401087: main (ls_valgrindtest.c:214)
==19722==  Address 0x56957f8 is 5,944 bytes inside a block of size 6,192 alloc'd
==19722==    at 0x4C2DB2F: malloc (in /usr/lib/valgrind/vgpreload_memcheck-amd64-linux.so)
==19722==    by 0x4031E7: ls_palloc_slab (ls_pool.c:523)
==19722==    by 0x4030AD: ls_palloc (ls_pool.c:602)
==19722==    by 0x4010EA: gpool_test (ls_valgrindtest.c:63)
==19722==    by 0x401087: main (ls_valgrindtest.c:214)
==19722== 
==19722== Invalid read of size 1
==19722==    at 0x4011A6: gpool_test (ls_valgrindtest.c:79)
==19722==    by 0x401087: main (ls_valgrindtest.c:214)
==19722==  Address 0x56a5940 is 0 bytes after a block of size 65,552 alloc'd
==19722==    at 0x4C2DB2F: malloc (in /usr/lib/valgrind/vgpreload_memcheck-amd64-linux.so)
==19722==    by 0x40118B: gpool_test (ls_valgrindtest.c:77)
==19722==    by 0x401087: main (ls_valgrindtest.c:214)
==19722== 
==19722== Invalid read of size 1
==19722==    at 0x40124D: gpool_test (ls_valgrindtest.c:104)
==19722==    by 0x401087: main (ls_valgrindtest.c:214)
==19722==  Address 0x56c5a90 is 0 bytes after a block of size 65,568 alloc'd
==19722==    at 0x4C2DB2F: malloc (in /usr/lib/valgrind/vgpreload_memcheck-amd64-linux.so)
==19722==    by 0x403195: ls_palloc_slab (ls_pool.c:513)
==19722==    by 0x4030AD: ls_palloc (ls_pool.c:602)
==19722==    by 0x401225: gpool_test (ls_valgrindtest.c:101)
==19722==    by 0x401087: main (ls_valgrindtest.c:214)
==19722== 
==19722== Invalid read of size 1
==19722==    at 0x4012AA: xpool_test (ls_valgrindtest.c:136)
==19722==    by 0x40108C: main (ls_valgrindtest.c:215)
==19722==  Address 0x56c6ad4 is 4,100 bytes inside a block of size 4,112 client-defined
==19722==    at 0x4032E0: ls_palloc_slab (ls_pool.c:532)
==19722==    by 0x4030AD: ls_palloc (ls_pool.c:602)
==19722==    by 0x402A4A: ls_xpool_getsuperblk (ls_xpool.c:545)
==19722==    by 0x401C88: xpool_blkget (ls_xpool.c:442)
==19722==    by 0x4016AD: ls_xpool_alloc (ls_xpool.c:378)
==19722==    by 0x401288: xpool_test (ls_valgrindtest.c:132)
==19722==    by 0x40108C: main (ls_valgrindtest.c:215)
==19722== 
==19722== Invalid read of size 1
==19722==    at 0x4012CA: xpool_test (ls_valgrindtest.c:138)
==19722==    by 0x40108C: main (ls_valgrindtest.c:215)
==19722==  Address 0x56c6a78 is 4,008 bytes inside a block of size 4,112 client-defined
==19722==    at 0x4032E0: ls_palloc_slab (ls_pool.c:532)
==19722==    by 0x4030AD: ls_palloc (ls_pool.c:602)
==19722==    by 0x402A4A: ls_xpool_getsuperblk (ls_xpool.c:545)
==19722==    by 0x401C88: xpool_blkget (ls_xpool.c:442)
==19722==    by 0x4016AD: ls_xpool_alloc (ls_xpool.c:378)
==19722==    by 0x401288: xpool_test (ls_valgrindtest.c:132)
==19722==    by 0x40108C: main (ls_valgrindtest.c:215)
==19722== 
==19722== Invalid read of size 1
==19722==    at 0x4012F1: xpool_test (ls_valgrindtest.c:142)
==19722==    by 0x40108C: main (ls_valgrindtest.c:215)
==19722==  Address 0x56c6ad4 is 4,100 bytes inside a block of size 4,112 client-defined
==19722==    at 0x4032E0: ls_palloc_slab (ls_pool.c:532)
==19722==    by 0x4030AD: ls_palloc (ls_pool.c:602)
==19722==    by 0x402A4A: ls_xpool_getsuperblk (ls_xpool.c:545)
==19722==    by 0x401C88: xpool_blkget (ls_xpool.c:442)
==19722==    by 0x4016AD: ls_xpool_alloc (ls_xpool.c:378)
==19722==    by 0x401288: xpool_test (ls_valgrindtest.c:132)
==19722==    by 0x40108C: main (ls_valgrindtest.c:215)
==19722== 
==19722== Invalid read of size 1
==19722==    at 0x40130C: xpool_test (ls_valgrindtest.c:144)
==19722==    by 0x40108C: main (ls_valgrindtest.c:215)
==19722==  Address 0x56c69c8 is 3,832 bytes inside a block of size 4,112 client-defined
==19722==    at 0x4032E0: ls_palloc_slab (ls_pool.c:532)
==19722==    by 0x4030AD: ls_palloc (ls_pool.c:602)
==19722==    by 0x402A4A: ls_xpool_getsuperblk (ls_xpool.c:545)
==19722==    by 0x401C88: xpool_blkget (ls_xpool.c:442)
==19722==    by 0x4016AD: ls_xpool_alloc (ls_xpool.c:378)
==19722==    by 0x401288: xpool_test (ls_valgrindtest.c:132)
==19722==    by 0x40108C: main (ls_valgrindtest.c:215)
==19722== 
==19722== Invalid read of size 1
==19722==    at 0x40134F: xpool_test (ls_valgrindtest.c:150)
==19722==    by 0x40108C: main (ls_valgrindtest.c:215)
==19722==  Address 0x56c694d is 3,709 bytes inside a block of size 4,112 client-defined
==19722==    at 0x4032E0: ls_palloc_slab (ls_pool.c:532)
==19722==    by 0x4030AD: ls_palloc (ls_pool.c:602)
==19722==    by 0x402A4A: ls_xpool_getsuperblk (ls_xpool.c:545)
==19722==    by 0x401C88: xpool_blkget (ls_xpool.c:442)
==19722==    by 0x4016AD: ls_xpool_alloc (ls_xpool.c:378)
==19722==    by 0x401288: xpool_test (ls_valgrindtest.c:132)
==19722==    by 0x40108C: main (ls_valgrindtest.c:215)
==19722== 
==19722== Invalid read of size 1
==19722==    at 0x401372: xpool_test (ls_valgrindtest.c:152)
==19722==    by 0x40108C: main (ls_valgrindtest.c:215)
==19722==  Address 0x56c694c is 3,708 bytes inside a block of size 4,112 client-defined
==19722==    at 0x4032E0: ls_palloc_slab (ls_pool.c:532)
==19722==    by 0x4030AD: ls_palloc (ls_pool.c:602)
==19722==    by 0x402A4A: ls_xpool_getsuperblk (ls_xpool.c:545)
==19722==    by 0x401C88: xpool_blkget (ls_xpool.c:442)
==19722==    by 0x4016AD: ls_xpool_alloc (ls_xpool.c:378)
==19722==    by 0x401288: xpool_test (ls_valgrindtest.c:132)
==19722==    by 0x40108C: main (ls_valgrindtest.c:215)
==19722== 
==19722== Invalid read of size 1
==19722==    at 0x4013A2: xpool_test (ls_valgrindtest.c:157)
==19722==    by 0x40108C: main (ls_valgrindtest.c:215)
==19722==  Address 0x56c6838 is 3,432 bytes inside a block of size 4,112 client-defined
==19722==    at 0x4032E0: ls_palloc_slab (ls_pool.c:532)
==19722==    by 0x4030AD: ls_palloc (ls_pool.c:602)
==19722==    by 0x402A4A: ls_xpool_getsuperblk (ls_xpool.c:545)
==19722==    by 0x401C88: xpool_blkget (ls_xpool.c:442)
==19722==    by 0x4016AD: ls_xpool_alloc (ls_xpool.c:378)
==19722==    by 0x401288: xpool_test (ls_valgrindtest.c:132)
==19722==    by 0x40108C: main (ls_valgrindtest.c:215)
==19722== 
==19722== Invalid read of size 1
==19722==    at 0x4013C5: xpool_test (ls_valgrindtest.c:159)
==19722==    by 0x40108C: main (ls_valgrindtest.c:215)
==19722==  Address 0x56c6438 is 2,408 bytes inside a block of size 4,112 client-defined
==19722==    at 0x4032E0: ls_palloc_slab (ls_pool.c:532)
==19722==    by 0x4030AD: ls_palloc (ls_pool.c:602)
==19722==    by 0x402A4A: ls_xpool_getsuperblk (ls_xpool.c:545)
==19722==    by 0x401C88: xpool_blkget (ls_xpool.c:442)
==19722==    by 0x4016AD: ls_xpool_alloc (ls_xpool.c:378)
==19722==    by 0x401288: xpool_test (ls_valgrindtest.c:132)
==19722==    by 0x40108C: main (ls_valgrindtest.c:215)
==19722== 
==19722== Invalid read of size 1
==19722==    at 0x401408: xpool_test (ls_valgrindtest.c:166)
==19722==    by 0x40108C: main (ls_valgrindtest.c:215)
==19722==  Address 0x56c683d is 3,437 bytes inside a block of size 4,112 client-defined
==19722==    at 0x4032E0: ls_palloc_slab (ls_pool.c:532)
==19722==    by 0x4030AD: ls_palloc (ls_pool.c:602)
==19722==    by 0x402A4A: ls_xpool_getsuperblk (ls_xpool.c:545)
==19722==    by 0x401C88: xpool_blkget (ls_xpool.c:442)
==19722==    by 0x4016AD: ls_xpool_alloc (ls_xpool.c:378)
==19722==    by 0x401288: xpool_test (ls_valgrindtest.c:132)
==19722==    by 0x40108C: main (ls_valgrindtest.c:215)
==19722== 
==19722== Invalid read of size 1
==19722==    at 0x40142B: xpool_test (ls_valgrindtest.c:168)
==19722==    by 0x40108C: main (ls_valgrindtest.c:215)
==19722==  Address 0x56c683c is 3,436 bytes inside a block of size 4,112 client-defined
==19722==    at 0x4032E0: ls_palloc_slab (ls_pool.c:532)
==19722==    by 0x4030AD: ls_palloc (ls_pool.c:602)
==19722==    by 0x402A4A: ls_xpool_getsuperblk (ls_xpool.c:545)
==19722==    by 0x401C88: xpool_blkget (ls_xpool.c:442)
==19722==    by 0x4016AD: ls_xpool_alloc (ls_xpool.c:378)
==19722==    by 0x401288: xpool_test (ls_valgrindtest.c:132)
==19722==    by 0x40108C: main (ls_valgrindtest.c:215)
==19722== 
==19722== Invalid read of size 1
==19722==    at 0x40145B: xpool_test (ls_valgrindtest.c:173)
==19722==    by 0x40108C: main (ls_valgrindtest.c:215)
==19722==  Address 0x56c7b70 is 0 bytes after a block of size 4,144 alloc'd
==19722==    at 0x4C2DB2F: malloc (in /usr/lib/valgrind/vgpreload_memcheck-amd64-linux.so)
==19722==    by 0x4031E7: ls_palloc_slab (ls_pool.c:523)
==19722==    by 0x4030AD: ls_palloc (ls_pool.c:602)
==19722==    by 0x4019B0: ls_xpool_bblkalloc (ls_xpool.c:562)
==19722==    by 0x40163A: ls_xpool_alloc (ls_xpool.c:367)
==19722==    by 0x401440: xpool_test (ls_valgrindtest.c:170)
==19722==    by 0x40108C: main (ls_valgrindtest.c:215)
==19722== 
==19722== Invalid read of size 1
==19722==    at 0x40147E: xpool_test (ls_valgrindtest.c:175)
==19722==    by 0x40108C: main (ls_valgrindtest.c:215)
==19722==  Address 0x56c6b70 is 48 bytes inside a recently re-allocated block of size 4,144 alloc'd
==19722==    at 0x4C2DB2F: malloc (in /usr/lib/valgrind/vgpreload_memcheck-amd64-linux.so)
==19722==    by 0x4031E7: ls_palloc_slab (ls_pool.c:523)
==19722==    by 0x4030AD: ls_palloc (ls_pool.c:602)
==19722==    by 0x4019B0: ls_xpool_bblkalloc (ls_xpool.c:562)
==19722==    by 0x40163A: ls_xpool_alloc (ls_xpool.c:367)
==19722==    by 0x401440: xpool_test (ls_valgrindtest.c:170)
==19722==    by 0x40108C: main (ls_valgrindtest.c:215)
==19722== 
==19722== Invalid read of size 1
==19722==    at 0x4014CA: xpool_test (ls_valgrindtest.c:182)
==19722==    by 0x40108C: main (ls_valgrindtest.c:215)
==19722==  Address 0x56c6417 is 2,375 bytes inside a block of size 4,112 client-defined
==19722==    at 0x4032E0: ls_palloc_slab (ls_pool.c:532)
==19722==    by 0x4030AD: ls_palloc (ls_pool.c:602)
==19722==    by 0x402A4A: ls_xpool_getsuperblk (ls_xpool.c:545)
==19722==    by 0x401C88: xpool_blkget (ls_xpool.c:442)
==19722==    by 0x4016AD: ls_xpool_alloc (ls_xpool.c:378)
==19722==    by 0x401288: xpool_test (ls_valgrindtest.c:132)
==19722==    by 0x40108C: main (ls_valgrindtest.c:215)
==19722== 
==19722== 
==19722== HEAP SUMMARY:
==19722==     in use at exit: 215,280 bytes in 9 blocks
==19722==   total heap usage: 28 allocs, 1 frees, 244,457 bytes allocated
==19722== 
==19722== 65,552 bytes in 1 blocks are definitely lost in loss record 8 of 9
==19722==    at 0x4C2DB2F: malloc (in /usr/lib/valgrind/vgpreload_memcheck-amd64-linux.so)
==19722==    by 0x40118B: gpool_test (ls_valgrindtest.c:77)
==19722==    by 0x401087: main (ls_valgrindtest.c:214)
==19722== 
==19722== 65,568 bytes in 1 blocks are possibly lost in loss record 9 of 9
==19722==    at 0x4C2DB2F: malloc (in /usr/lib/valgrind/vgpreload_memcheck-amd64-linux.so)
==19722==    by 0x403195: ls_palloc_slab (ls_pool.c:513)
==19722==    by 0x4030AD: ls_palloc (ls_pool.c:602)
==19722==    by 0x401225: gpool_test (ls_valgrindtest.c:101)
==19722==    by 0x401087: main (ls_valgrindtest.c:214)
==19722== 
==19722== LEAK SUMMARY:
==19722==    definitely lost: 65,552 bytes in 1 blocks
==19722==    indirectly lost: 0 bytes in 0 blocks
==19722==      possibly lost: 65,568 bytes in 1 blocks
==19722==    still reachable: 84,160 bytes in 7 blocks
==19722==         suppressed: 0 bytes in 0 blocks
==19722== Reachable blocks (those to which a pointer was found) are not shown.
==19722== To see them, rerun with: --leak-check=full --show-leak-kinds=all
==19722== 
==19722== For counts of detected and suppressed errors, rerun with: -v
==19722== ERROR SUMMARY: 21 errors from 21 contexts (suppressed: 0 from 0)
