==19477== Memcheck, a memory error detector
==19477== Copyright (C) 2002-2017, and GNU GPL'd, by Julian Seward et al.
==19477== Using Valgrind-3.13.0 and LibVEX; rerun with -h for copyright info
==19477== Command: ../../fc-test
==19477==
==19477== Invalid read of size 8
==19477== at 0x4E5FC7C: FcConfigParseAndLoad (fcxml.c:3378)
==19477== by 0x108766: main (fc-test.c:8)
==19477== Address 0x20 is not stack'd, malloc'd or (recently) free'd
==19477==
==19477==
==19477== Process terminating with default action of signal 11 (SIGSEGV)
==19477== Access not within mapped region at address 0x20
==19477== at 0x4E5FC7C: FcConfigParseAndLoad (fcxml.c:3378)
==19477== by 0x108766: main (fc-test.c:8)
==19477== If you believe this happened as a result of a stack
==19477== overflow in your program's main thread (unlikely but
==19477== possible), you can try to increase the size of the
==19477== main thread stack using the --main-stacksize= flag.
==19477== The main thread stack size used in this run was 8388608.
==19477==
==19477== HEAP SUMMARY:
==19477== in use at exit: 192,962 bytes in 5,678 blocks
==19477== total heap usage: 11,118 allocs, 5,440 frees, 3,905,324 bytes allocated
==19477==
==19477== LEAK SUMMARY:
==19477== definitely lost: 6,656 bytes in 26 blocks
==19477== indirectly lost: 2,151 bytes in 101 blocks
==19477== possibly lost: 0 bytes in 0 blocks
==19477== still reachable: 184,155 bytes in 5,551 blocks
==19477== suppressed: 0 bytes in 0 blocks
==19477== Rerun with --leak-check=full to see details of leaked memory
==19477==
==19477== For counts of detected and suppressed errors, rerun with: -v
==19477== ERROR SUMMARY: 1 errors from 1 contexts (suppressed: 0 from 0)
Segmentation fault (core dumped)
Using the same sample as above:
==19477== Memcheck, a memory error detector dLoad (fcxml.c:3378) dLoad (fcxml.c:3378)
==19477== Copyright (C) 2002-2017, and GNU GPL'd, by Julian Seward et al.
==19477== Using Valgrind-3.13.0 and LibVEX; rerun with -h for copyright info
==19477== Command: ../../fc-test
==19477==
==19477== Invalid read of size 8
==19477== at 0x4E5FC7C: FcConfigParseAn
==19477== by 0x108766: main (fc-test.c:8)
==19477== Address 0x20 is not stack'd, malloc'd or (recently) free'd
==19477==
==19477==
==19477== Process terminating with default action of signal 11 (SIGSEGV)
==19477== Access not within mapped region at address 0x20
==19477== at 0x4E5FC7C: FcConfigParseAn
==19477== by 0x108766: main (fc-test.c:8)
==19477== If you believe this happened as a result of a stack
==19477== overflow in your program's main thread (unlikely but
==19477== possible), you can try to increase the size of the
==19477== main thread stack using the --main-stacksize= flag.
==19477== The main thread stack size used in this run was 8388608.
==19477==
==19477== HEAP SUMMARY:
==19477== in use at exit: 192,962 bytes in 5,678 blocks
==19477== total heap usage: 11,118 allocs, 5,440 frees, 3,905,324 bytes allocated
==19477==
==19477== LEAK SUMMARY:
==19477== definitely lost: 6,656 bytes in 26 blocks
==19477== indirectly lost: 2,151 bytes in 101 blocks
==19477== possibly lost: 0 bytes in 0 blocks
==19477== still reachable: 184,155 bytes in 5,551 blocks
==19477== suppressed: 0 bytes in 0 blocks
==19477== Rerun with --leak-check=full to see details of leaked memory
==19477==
==19477== For counts of detected and suppressed errors, rerun with: -v
==19477== ERROR SUMMARY: 1 errors from 1 contexts (suppressed: 0 from 0)
Segmentation fault (core dumped)