==13241== Memcheck, a memory error detector
==13241== Copyright (C) 2002-2012, and GNU GPL'd, by Julian Seward et al.
==13241== Using Valgrind-3.8.1 and LibVEX; rerun with -h for copyright info
==13241== Command: ./test
==13241== Parent PID: 13097
==13241== 
==13241== Invalid read of size 8
==13241==    at 0x4EAE161: profiler_try_realloc (gmem.c:813)
==13241==    by 0x4EAEB68: profiler_realloc (gmem.c:846)
==13241==    by 0x4EAE576: g_realloc (gmem.c:169)
==13241==    by 0x4C34BB1: g_signal_newv (gsignal.c:1675)
==13241==    by 0x4C353AC: g_signal_new_valist (gsignal.c:1853)
==13241==    by 0x4C35491: g_signal_new (gsignal.c:1408)
==13241==    by 0x4C23A78: g_object_do_class_init (gobject.c:489)
==13241==    by 0x4C3E8DD: g_type_class_ref (gtype.c:2220)
==13241==    by 0x4C26A71: g_object_newv (gobject.c:1834)
==13241==    by 0x4C271BB: g_object_new (gobject.c:1553)
==13241==    by 0x400857: test_alloc (test.c:6)
==13241==    by 0x4ECC1BF: g_test_run_suite_internal (gtestutils.c:1869)
==13241==  Address 0x51d9700 is 16 bytes before a block of size 8 alloc'd
==13241==    at 0x4A06409: malloc (in /usr/lib64/valgrind/vgpreload_memcheck-amd64-linux.so)
==13241==    by 0x4EAE4CE: g_malloc (gmem.c:104)
==13241==    by 0x4C3274A: _g_signal_init (gsignal.c:836)
==13241==    by 0x4C1AE24: gobject_init_ctor (gtype.c:4404)
==13241==    by 0x3A96E0F4F2: _dl_init (dl-init.c:82)
==13241==    by 0x3A96E01459: ??? (in /usr/lib64/ld-2.17.so)
==13241== 
==13241== Invalid free() / delete / delete[] / realloc()
==13241==    at 0x4A082F7: realloc (in /usr/lib64/valgrind/vgpreload_memcheck-amd64-linux.so)
==13241==    by 0x4EAE176: profiler_try_realloc (gmem.c:824)
==13241==    by 0x4EAEB68: profiler_realloc (gmem.c:846)
==13241==    by 0x4EAE576: g_realloc (gmem.c:169)
==13241==    by 0x4C34BB1: g_signal_newv (gsignal.c:1675)
==13241==    by 0x4C353AC: g_signal_new_valist (gsignal.c:1853)
==13241==    by 0x4C35491: g_signal_new (gsignal.c:1408)
==13241==    by 0x4C23A78: g_object_do_class_init (gobject.c:489)
==13241==    by 0x4C3E8DD: g_type_class_ref (gtype.c:2220)
==13241==    by 0x4C26A71: g_object_newv (gobject.c:1834)
==13241==    by 0x4C271BB: g_object_new (gobject.c:1553)
==13241==    by 0x400857: test_alloc (test.c:6)
==13241==  Address 0x51d9700 is 16 bytes before a block of size 8 alloc'd
==13241==    at 0x4A06409: malloc (in /usr/lib64/valgrind/vgpreload_memcheck-amd64-linux.so)
==13241==    by 0x4EAE4CE: g_malloc (gmem.c:104)
==13241==    by 0x4C3274A: _g_signal_init (gsignal.c:836)
==13241==    by 0x4C1AE24: gobject_init_ctor (gtype.c:4404)
==13241==    by 0x3A96E0F4F2: _dl_init (dl-init.c:82)
==13241==    by 0x3A96E01459: ??? (in /usr/lib64/ld-2.17.so)
==13241== 
==13241== 
==13241== Process terminating with default action of signal 5 (SIGTRAP): dumping core
==13241==    at 0x4EAFAC1: g_logv (gmessages.c:989)
==13241==    by 0x4EAFC01: g_log (gmessages.c:1025)
==13241==    by 0x4EAE5CB: g_realloc (gmem.c:174)
==13241==    by 0x4C34BB1: g_signal_newv (gsignal.c:1675)
==13241==    by 0x4C353AC: g_signal_new_valist (gsignal.c:1853)
==13241==    by 0x4C35491: g_signal_new (gsignal.c:1408)
==13241==    by 0x4C23A78: g_object_do_class_init (gobject.c:489)
==13241==    by 0x4C3E8DD: g_type_class_ref (gtype.c:2220)
==13241==    by 0x4C26A71: g_object_newv (gobject.c:1834)
==13241==    by 0x4C271BB: g_object_new (gobject.c:1553)
==13241==    by 0x400857: test_alloc (test.c:6)
==13241==    by 0x4ECC1BF: g_test_run_suite_internal (gtestutils.c:1869)
==13241== 
==13241== HEAP SUMMARY:
==13241==     in use at exit: 197,226 bytes in 370 blocks
==13241==   total heap usage: 603 allocs, 233 frees, 1,399,822 bytes allocated
==13241== 
==13241== LEAK SUMMARY:
==13241==    definitely lost: 22,567 bytes in 96 blocks
==13241==    indirectly lost: 0 bytes in 0 blocks
==13241==      possibly lost: 11,051 bytes in 112 blocks
==13241==    still reachable: 163,608 bytes in 162 blocks
==13241==         suppressed: 0 bytes in 0 blocks
==13241== Rerun with --leak-check=full to see details of leaked memory
==13241== 
==13241== For counts of detected and suppressed errors, rerun with: -v
==13241== ERROR SUMMARY: 2 errors from 2 contexts (suppressed: 2 from 2)
