Running test './termgentest -v tg_spell1' under valgrind Running test: tg_spell1...==24346== ==24346== Conditional jump or move depends on uninitialised value(s) ==24346== at 0x41E6BFE: (within /lib/libz.so.1.2.3) ==24346== by 0x41E814B: (within /lib/libz.so.1.2.3) ==24346== by 0x41E75C6: deflate (in /lib/libz.so.1.2.3) ==24346== by 0x40A5822: FlintTable::add(std::string const&, std::string, bool) (in /var/tmp/portage/dev-libs/xapian-1.0.6/work/xapian-core-1.0.6/.libs/libxapian.so.15.4.0) ==24346== by 0x409988C: FlintSpellingTable::merge_changes() (in /var/tmp/portage/dev-libs/xapian-1.0.6/work/xapian-core-1.0.6/.libs/libxapian.so.15.4.0) ==24346== by 0x409A91D: FlintSpellingTable::open_termlist(std::string const&) (in /var/tmp/portage/dev-libs/xapian-1.0.6/work/xapian-core-1.0.6/.libs/libxapian.so.15.4.0) ==24346== by 0x407E858: FlintDatabase::open_spelling_termlist(std::string const&) const (in /var/tmp/portage/dev-libs/xapian-1.0.6/work/xapian-core-1.0.6/.libs/libxapian.so.15.4.0) ==24346== by 0x4052877: Xapian::Database::get_spelling_suggestion(std::string const&, unsigned) const (in /var/tmp/portage/dev-libs/xapian-1.0.6/work/xapian-core-1.0.6/.libs/libxapian.so.15.4.0) ==24346== by 0x804E5D8: test_tg_spell1() (in /var/tmp/portage/dev-libs/xapian-1.0.6/work/xapian-core-1.0.6/tests/termgentest) ==24346== by 0x8056457: test_driver::runtest(test_desc const*) (in /var/tmp/portage/dev-libs/xapian-1.0.6/work/xapian-core-1.0.6/tests/termgentest) ==24346== by 0x805AD35: test_driver::do_run_tests(__gnu_cxx::__normal_iterator > >, __gnu_cxx::__normal_iterator > >) (in /var/tmp/portage/dev-libs/xapian-1.0.6/work/xapian-core-1.0.6/tests/termgentest) ==24346== by 0x805B146: test_driver::run_tests(__gnu_cxx::__normal_iterator > >, __gnu_cxx::__normal_iterator > >) (in /var/tmp/portage/dev-libs/xapian-1.0.6/work/xapian-core-1.0.6/tests/termgentest) ==24346== ==24346== Conditional jump or move depends on uninitialised value(s) ==24346== at 0x41E6BB7: (within /lib/libz.so.1.2.3) ==24346== by 0x41E814B: (within /lib/libz.so.1.2.3) ==24346== by 0x41E75C6: deflate (in /lib/libz.so.1.2.3) ==24346== by 0x40A5822: FlintTable::add(std::string const&, std::string, bool) (in /var/tmp/portage/dev-libs/xapian-1.0.6/work/xapian-core-1.0.6/.libs/libxapian.so.15.4.0) ==24346== by 0x409988C: FlintSpellingTable::merge_changes() (in /var/tmp/portage/dev-libs/xapian-1.0.6/work/xapian-core-1.0.6/.libs/libxapian.so.15.4.0) ==24346== by 0x409A91D: FlintSpellingTable::open_termlist(std::string const&) (in /var/tmp/portage/dev-libs/xapian-1.0.6/work/xapian-core-1.0.6/.libs/libxapian.so.15.4.0) ==24346== by 0x407E858: FlintDatabase::open_spelling_termlist(std::string const&) const (in /var/tmp/portage/dev-libs/xapian-1.0.6/work/xapian-core-1.0.6/.libs/libxapian.so.15.4.0) ==24346== by 0x4052877: Xapian::Database::get_spelling_suggestion(std::string const&, unsigned) const (in /var/tmp/portage/dev-libs/xapian-1.0.6/work/xapian-core-1.0.6/.libs/libxapian.so.15.4.0) ==24346== by 0x804E5D8: test_tg_spell1() (in /var/tmp/portage/dev-libs/xapian-1.0.6/work/xapian-core-1.0.6/tests/termgentest) ==24346== by 0x8056457: test_driver::runtest(test_desc const*) (in /var/tmp/portage/dev-libs/xapian-1.0.6/work/xapian-core-1.0.6/tests/termgentest) ==24346== by 0x805AD35: test_driver::do_run_tests(__gnu_cxx::__normal_iterator > >, __gnu_cxx::__normal_iterator > >) (in /var/tmp/portage/dev-libs/xapian-1.0.6/work/xapian-core-1.0.6/tests/termgentest) ==24346== by 0x805B146: test_driver::run_tests(__gnu_cxx::__normal_iterator > >, __gnu_cxx::__normal_iterator > >) (in /var/tmp/portage/dev-libs/xapian-1.0.6/work/xapian-core-1.0.6/tests/termgentest) ==24346== searching for pointers to 8 not-freed blocks. ==24346== checked 121,232 bytes. ==24346== ==24346== ==24346== 14 bytes in 1 blocks are possibly lost in loss record 2 of 8 ==24346== at 0x4023194: operator new(unsigned) (in /usr/lib/valgrind/x86-linux/vgpreload_memcheck.so) ==24346== by 0x4285E53: std::string::_Rep::_S_create(unsigned, unsigned, std::allocator const&) (in /usr/lib/gcc/i686-pc-linux-gnu/4.1.2/libstdc++.so.6.0.8) ==24346== by 0x4286C24: (within /usr/lib/gcc/i686-pc-linux-gnu/4.1.2/libstdc++.so.6.0.8) ==24346== by 0x4286D20: std::string::string(char const*, unsigned, std::allocator const&) (in /usr/lib/gcc/i686-pc-linux-gnu/4.1.2/libstdc++.so.6.0.8) ==24346== by 0x407EC6F: __static_initialization_and_destruction_0(int, int) (in /var/tmp/portage/dev-libs/xapian-1.0.6/work/xapian-core-1.0.6/.libs/libxapian.so.15.4.0) ==24346== by 0x414D9C4: (within /var/tmp/portage/dev-libs/xapian-1.0.6/work/xapian-core-1.0.6/.libs/libxapian.so.15.4.0) ==24346== by 0x404CC4C: (within /var/tmp/portage/dev-libs/xapian-1.0.6/work/xapian-core-1.0.6/.libs/libxapian.so.15.4.0) ==24346== by 0x400DC64: (within /lib/ld-2.6.1.so) ==24346== by 0x400DD70: (within /lib/ld-2.6.1.so) ==24346== by 0x40008FE: (within /lib/ld-2.6.1.so) ==24346== ==24346== ==24346== 14 bytes in 1 blocks are possibly lost in loss record 3 of 8 ==24346== at 0x4023194: operator new(unsigned) (in /usr/lib/valgrind/x86-linux/vgpreload_memcheck.so) ==24346== by 0x4285E53: std::string::_Rep::_S_create(unsigned, unsigned, std::allocator const&) (in /usr/lib/gcc/i686-pc-linux-gnu/4.1.2/libstdc++.so.6.0.8) ==24346== by 0x4286C24: (within /usr/lib/gcc/i686-pc-linux-gnu/4.1.2/libstdc++.so.6.0.8) ==24346== by 0x4286D20: std::string::string(char const*, unsigned, std::allocator const&) (in /usr/lib/gcc/i686-pc-linux-gnu/4.1.2/libstdc++.so.6.0.8) ==24346== by 0x40E011F: __static_initialization_and_destruction_0(int, int) (in /var/tmp/portage/dev-libs/xapian-1.0.6/work/xapian-core-1.0.6/.libs/libxapian.so.15.4.0) ==24346== by 0x414D9C4: (within /var/tmp/portage/dev-libs/xapian-1.0.6/work/xapian-core-1.0.6/.libs/libxapian.so.15.4.0) ==24346== by 0x404CC4C: (within /var/tmp/portage/dev-libs/xapian-1.0.6/work/xapian-core-1.0.6/.libs/libxapian.so.15.4.0) ==24346== by 0x400DC64: (within /lib/ld-2.6.1.so) ==24346== by 0x400DD70: (within /lib/ld-2.6.1.so) ==24346== by 0x40008FE: (within /lib/ld-2.6.1.so) ==24346== ==24346== ==24346== 19 bytes in 1 blocks are possibly lost in loss record 4 of 8 ==24346== at 0x4023194: operator new(unsigned) (in /usr/lib/valgrind/x86-linux/vgpreload_memcheck.so) ==24346== by 0x4285E53: std::string::_Rep::_S_create(unsigned, unsigned, std::allocator const&) (in /usr/lib/gcc/i686-pc-linux-gnu/4.1.2/libstdc++.so.6.0.8) ==24346== by 0x4286C24: (within /usr/lib/gcc/i686-pc-linux-gnu/4.1.2/libstdc++.so.6.0.8) ==24346== by 0x4286E38: std::string::string(char const*, std::allocator const&) (in /usr/lib/gcc/i686-pc-linux-gnu/4.1.2/libstdc++.so.6.0.8) ==24346== by 0x40D7486: __static_initialization_and_destruction_0(int, int) (in /var/tmp/portage/dev-libs/xapian-1.0.6/work/xapian-core-1.0.6/.libs/libxapian.so.15.4.0) ==24346== by 0x414D9C4: (within /var/tmp/portage/dev-libs/xapian-1.0.6/work/xapian-core-1.0.6/.libs/libxapian.so.15.4.0) ==24346== by 0x404CC4C: (within /var/tmp/portage/dev-libs/xapian-1.0.6/work/xapian-core-1.0.6/.libs/libxapian.so.15.4.0) ==24346== by 0x400DC64: (within /lib/ld-2.6.1.so) ==24346== by 0x400DD70: (within /lib/ld-2.6.1.so) ==24346== by 0x40008FE: (within /lib/ld-2.6.1.so) ==24346== ==24346== ==24346== 22 bytes in 1 blocks are possibly lost in loss record 6 of 8 ==24346== at 0x4023194: operator new(unsigned) (in /usr/lib/valgrind/x86-linux/vgpreload_memcheck.so) ==24346== by 0x4285E53: std::string::_Rep::_S_create(unsigned, unsigned, std::allocator const&) (in /usr/lib/gcc/i686-pc-linux-gnu/4.1.2/libstdc++.so.6.0.8) ==24346== by 0x4286C24: (within /usr/lib/gcc/i686-pc-linux-gnu/4.1.2/libstdc++.so.6.0.8) ==24346== by 0x4286E38: std::string::string(char const*, std::allocator const&) (in /usr/lib/gcc/i686-pc-linux-gnu/4.1.2/libstdc++.so.6.0.8) ==24346== by 0x80560E0: test_driver::parse_command_line(int, char**) (in /var/tmp/portage/dev-libs/xapian-1.0.6/work/xapian-core-1.0.6/tests/termgentest) ==24346== by 0x804CBF1: main (in /var/tmp/portage/dev-libs/xapian-1.0.6/work/xapian-core-1.0.6/tests/termgentest) ==24346== ==24346== ==24346== 26 bytes in 1 blocks are possibly lost in loss record 7 of 8 ==24346== at 0x4023194: operator new(unsigned) (in /usr/lib/valgrind/x86-linux/vgpreload_memcheck.so) ==24346== by 0x4285E53: std::string::_Rep::_S_create(unsigned, unsigned, std::allocator const&) (in /usr/lib/gcc/i686-pc-linux-gnu/4.1.2/libstdc++.so.6.0.8) ==24346== by 0x4287B56: std::string::_M_mutate(unsigned, unsigned, unsigned) (in /usr/lib/gcc/i686-pc-linux-gnu/4.1.2/libstdc++.so.6.0.8) ==24346== by 0x4287CF9: std::string::_M_replace_safe(unsigned, unsigned, char const*, unsigned) (in /usr/lib/gcc/i686-pc-linux-gnu/4.1.2/libstdc++.so.6.0.8) ==24346== by 0x4287D92: std::string::assign(char const*, unsigned) (in /usr/lib/gcc/i686-pc-linux-gnu/4.1.2/libstdc++.so.6.0.8) ==24346== by 0x8055D9C: test_driver::parse_command_line(int, char**) (in /var/tmp/portage/dev-libs/xapian-1.0.6/work/xapian-core-1.0.6/tests/termgentest) ==24346== by 0x804CBF1: main (in /var/tmp/portage/dev-libs/xapian-1.0.6/work/xapian-core-1.0.6/tests/termgentest) ==24346== ==24346== LEAK SUMMARY: ==24346== definitely lost: 0 bytes in 0 blocks. ==24346== possibly lost: 95 bytes in 5 blocks. ==24346== still reachable: 64 bytes in 3 blocks. ==24346== suppressed: 0 bytes in 0 blocks. ==24346== Reachable blocks (those to which a pointer was found) are not shown. ==24346== To see them, rerun with: --leak-check=full --show-reachable=yes Conditional jump or move depends on uninitialised value(s) ./termgentest completed test run: 0 tests passed, 1 failed.