joe@beastie ~/programming/C/bilanz/src% valgrind -v --leak-check=yes ./text_miner < ../data/data.txt
==95563== Memcheck, a memory error detector
==95563== Copyright (C) 2002-2010, and GNU GPL'd, by Julian Seward et al.
==95563== Using Valgrind-3.6.1 and LibVEX; rerun with -h for copyright info
==95563== Command: ./text_miner
==95563==
--95563-- Valgrind options:
--95563-- -v
--95563-- --leak-check=yes
--95563-- Contents of /proc/version:
--95563-- Arch and hwcaps: AMD64, amd64-sse3-cx16
--95563-- Page sizes: currently 4096, max supported 4096
--95563-- Valgrind library directory: /usr/local/lib/valgrind
--95563-- Reading syms from /libexec/ld-elf.so.1 (0x10000)
--95563-- object doesn't have a symbol table
--95563-- Reading syms from /home/joe/programming/C/bilanz/src/text_miner (0x400000)
--95563-- Reading suppressions file: /usr/local/lib/valgrind/default.supp
==95563== Invalid read of size 8
==95563== at 0x12B2E: ??? (in /libexec/ld-elf.so.1)
==95563== by 0x11FA8: ??? (in /libexec/ld-elf.so.1)
==95563== Address 0x8 is not stack'd, malloc'd or (recently) free'd
==95563==
==95563==
==95563== Process terminating with default action of signal 11 (SIGSEGV): dumping core
==95563== Access not within mapped region at address 0x8
==95563== at 0x12B2E: ??? (in /libexec/ld-elf.so.1)
==95563== by 0x11FA8: ??? (in /libexec/ld-elf.so.1)
==95563== If you believe this happened as a result of a stack
==95563== overflow in your program's main thread (unlikely but
==95563== possible), you can try to increase the size of the
==95563== main thread stack using the --main-stacksize= flag.
==95563== The main thread stack size used in this run was 16777216.
==95563==
==95563== HEAP SUMMARY:
==95563== in use at exit: 0 bytes in 0 blocks
==95563== total heap usage: 0 allocs, 0 frees, 0 bytes allocated
==95563==
==95563== All heap blocks were freed -- no leaks are possible
==95563==
==95563== ERROR SUMMARY: 1 errors from 1 contexts (suppressed: 0 from 0)
==95563==
==95563== 1 errors in context 1 of 1:
==95563== Invalid read of size 8
==95563== at 0x12B2E: ??? (in /libexec/ld-elf.so.1)
==95563== by 0x11FA8: ??? (in /libexec/ld-elf.so.1)
==95563== Address 0x8 is not stack'd, malloc'd or (recently) free'd
==95563==
==95563== ERROR SUMMARY: 1 errors from 1 contexts (suppressed: 0 from 0)
zsh: segmentation fault valgrind -v --leak-check=yes ./text_miner < ../data/data.txt