Running test './apitest nearsubqueries1 -v' under valgrind
Running tests with backend "none"...
Running test: nearsubqueries1...==8364== 
==8364== Invalid read of size 4
==8364==    at 0x407D32E: Xapian::Query::Internal::flatten_subqs() (omqueryinternal.cc:998)
==8364==    by 0x407D537: Xapian::Query::Internal::simplify_query() (omqueryinternal.cc:879)
==8364==    by 0x407D6AF: Xapian::Query::Internal::end_construction() (omqueryinternal.cc:750)
==8364==    by 0x4078206: Xapian::Query::end_construction() (omquery.cc:89)
==8364==    by 0x40782C0: Xapian::Query::Query(Xapian::Query::op, Xapian::Query const&, Xapian::Query const&) (omquery.cc:116)
==8364==    by 0x80E0C76: test_nearsubqueries1() (api_nodb.cc:477)
==8364==    by 0x81A5126: test_driver::runtest(test_desc const*) (testsuite.cc:248)
==8364==    by 0x81A971D: test_driver::do_run_tests(__gnu_cxx::__normal_iterator<std::string const*, std::vector<std::string, std::allocator<std::string> > >, __gnu_cxx::__normal_iterator<std::string const*, std::vector<std::string, std::allocator<std::string> > >) (testsuite.cc:533)
==8364==    by 0x81A9B96: test_driver::run_tests(__gnu_cxx::__normal_iterator<std::string const*, std::vector<std::string, std::allocator<std::string> > >, __gnu_cxx::__normal_iterator<std::string const*, std::vector<std::string, std::allocator<std::string> > >) (testsuite.cc:496)
==8364==    by 0x81A9BF2: test_driver::run(test_desc const*) (testsuite.cc:708)
==8364==    by 0x8055253: ApiTestRunner::run() const (api_collated.h:47)
==8364==    by 0x81A2416: TestRunner::do_tests_for_backend(BackendManager*) (testrunner.cc:171)
==8364==  Address 0x448cf30 is 0 bytes inside a block of size 8 free'd
==8364==    at 0x40222EC: operator delete(void*) (vg_replace_malloc.c:342)
==8364==    by 0x40831D2: __gnu_cxx::new_allocator<Xapian::Query::Internal*>::deallocate(Xapian::Query::Internal**, unsigned) (new_allocator.h:97)
==8364==    by 0x408320C: std::_Vector_base<Xapian::Query::Internal*, std::allocator<Xapian::Query::Internal*> >::_M_deallocate(Xapian::Query::Internal**, unsigned) (stl_vector.h:134)
==8364==    by 0x4083255: std::_Vector_base<Xapian::Query::Internal*, std::allocator<Xapian::Query::Internal*> >::~_Vector_base() (stl_vector.h:120)
==8364==    by 0x40832C7: std::vector<Xapian::Query::Internal*, std::allocator<Xapian::Query::Internal*> >::~vector() (stl_vector.h:268)
==8364==    by 0x4079D45: Xapian::Query::Internal::~Internal() (omqueryinternal.cc:743)
==8364==    by 0x407D3DB: Xapian::Query::Internal::flatten_subqs() (omqueryinternal.cc:1004)
==8364==    by 0x407D310: Xapian::Query::Internal::flatten_subqs() (omqueryinternal.cc:996)
==8364==    by 0x407D537: Xapian::Query::Internal::simplify_query() (omqueryinternal.cc:879)
==8364==    by 0x407D6AF: Xapian::Query::Internal::end_construction() (omqueryinternal.cc:750)
==8364==    by 0x4078206: Xapian::Query::end_construction() (omquery.cc:89)
==8364==    by 0x40782C0: Xapian::Query::Query(Xapian::Query::op, Xapian::Query const&, Xapian::Query const&) (omquery.cc:116)
==8364== 
==8364== Invalid read of size 4
==8364==    at 0x4081636: __gnu_cxx::__normal_iterator<Xapian::Query::Internal**, std::vector<Xapian::Query::Internal*, std::allocator<Xapian::Query::Internal*> > >::__normal_iterator(Xapian::Query::Internal** const&) (stl_iterator.h:653)
==8364==    by 0x4081664: std::vector<Xapian::Query::Internal*, std::allocator<Xapian::Query::Internal*> >::begin() (stl_vector.h:328)
==8364==    by 0x4079C18: Xapian::Query::Internal::~Internal() (omqueryinternal.cc:737)
==8364==    by 0x407D34C: Xapian::Query::Internal::flatten_subqs() (omqueryinternal.cc:998)
==8364==    by 0x407D537: Xapian::Query::Internal::simplify_query() (omqueryinternal.cc:879)
==8364==    by 0x407D6AF: Xapian::Query::Internal::end_construction() (omqueryinternal.cc:750)
==8364==    by 0x4078206: Xapian::Query::end_construction() (omquery.cc:89)
==8364==    by 0x40782C0: Xapian::Query::Query(Xapian::Query::op, Xapian::Query const&, Xapian::Query const&) (omquery.cc:116)
==8364==    by 0x80E0C76: test_nearsubqueries1() (api_nodb.cc:477)
==8364==    by 0x81A5126: test_driver::runtest(test_desc const*) (testsuite.cc:248)
==8364==    by 0x81A971D: test_driver::do_run_tests(__gnu_cxx::__normal_iterator<std::string const*, std::vector<std::string, std::allocator<std::string> > >, __gnu_cxx::__normal_iterator<std::string const*, std::vector<std::string, std::allocator<std::string> > >) (testsuite.cc:533)
==8364==    by 0x81A9B96: test_driver::run_tests(__gnu_cxx::__normal_iterator<std::string const*, std::vector<std::string, std::allocator<std::string> > >, __gnu_cxx::__normal_iterator<std::string const*, std::vector<std::string, std::allocator<std::string> > >) (testsuite.cc:496)
==8364==  Address 0x448cc40 is 8 bytes inside a block of size 48 free'd
==8364==    at 0x40222EC: operator delete(void*) (vg_replace_malloc.c:342)
==8364==    by 0x4079C4F: Xapian::Query::Internal::~Internal() (omqueryinternal.cc:738)
==8364==    by 0x407D3DB: Xapian::Query::Internal::flatten_subqs() (omqueryinternal.cc:1004)
==8364==    by 0x407D310: Xapian::Query::Internal::flatten_subqs() (omqueryinternal.cc:996)
==8364==    by 0x407D537: Xapian::Query::Internal::simplify_query() (omqueryinternal.cc:879)
==8364==    by 0x407D6AF: Xapian::Query::Internal::end_construction() (omqueryinternal.cc:750)
==8364==    by 0x4078206: Xapian::Query::end_construction() (omquery.cc:89)
==8364==    by 0x40782C0: Xapian::Query::Query(Xapian::Query::op, Xapian::Query const&, Xapian::Query const&) (omquery.cc:116)
==8364==    by 0x80E0C76: test_nearsubqueries1() (api_nodb.cc:477)
==8364==    by 0x81A5126: test_driver::runtest(test_desc const*) (testsuite.cc:248)
==8364==    by 0x81A971D: test_driver::do_run_tests(__gnu_cxx::__normal_iterator<std::string const*, std::vector<std::string, std::allocator<std::string> > >, __gnu_cxx::__normal_iterator<std::string const*, std::vector<std::string, std::allocator<std::string> > >) (testsuite.cc:533)
==8364==    by 0x81A9B96: test_driver::run_tests(__gnu_cxx::__normal_iterator<std::string const*, std::vector<std::string, std::allocator<std::string> > >, __gnu_cxx::__normal_iterator<std::string const*, std::vector<std::string, std::allocator<std::string> > >) (testsuite.cc:496)
==8364== 
==8364== Invalid read of size 4
==8364==    at 0x4081636: __gnu_cxx::__normal_iterator<Xapian::Query::Internal**, std::vector<Xapian::Query::Internal*, std::allocator<Xapian::Query::Internal*> > >::__normal_iterator(Xapian::Query::Internal** const&) (stl_iterator.h:653)
==8364==    by 0x4081697: std::vector<Xapian::Query::Internal*, std::allocator<Xapian::Query::Internal*> >::end() (stl_vector.h:346)
==8364==    by 0x4079C81: Xapian::Query::Internal::~Internal() (omqueryinternal.cc:737)
==8364==    by 0x407D34C: Xapian::Query::Internal::flatten_subqs() (omqueryinternal.cc:998)
==8364==    by 0x407D537: Xapian::Query::Internal::simplify_query() (omqueryinternal.cc:879)
==8364==    by 0x407D6AF: Xapian::Query::Internal::end_construction() (omqueryinternal.cc:750)
==8364==    by 0x4078206: Xapian::Query::end_construction() (omquery.cc:89)
==8364==    by 0x40782C0: Xapian::Query::Query(Xapian::Query::op, Xapian::Query const&, Xapian::Query const&) (omquery.cc:116)
==8364==    by 0x80E0C76: test_nearsubqueries1() (api_nodb.cc:477)
==8364==    by 0x81A5126: test_driver::runtest(test_desc const*) (testsuite.cc:248)
==8364==    by 0x81A971D: test_driver::do_run_tests(__gnu_cxx::__normal_iterator<std::string const*, std::vector<std::string, std::allocator<std::string> > >, __gnu_cxx::__normal_iterator<std::string const*, std::vector<std::string, std::allocator<std::string> > >) (testsuite.cc:533)
==8364==    by 0x81A9B96: test_driver::run_tests(__gnu_cxx::__normal_iterator<std::string const*, std::vector<std::string, std::allocator<std::string> > >, __gnu_cxx::__normal_iterator<std::string const*, std::vector<std::string, std::allocator<std::string> > >) (testsuite.cc:496)
==8364==  Address 0x448cc44 is 12 bytes inside a block of size 48 free'd
==8364==    at 0x40222EC: operator delete(void*) (vg_replace_malloc.c:342)
==8364==    by 0x4079C4F: Xapian::Query::Internal::~Internal() (omqueryinternal.cc:738)
==8364==    by 0x407D3DB: Xapian::Query::Internal::flatten_subqs() (omqueryinternal.cc:1004)
==8364==    by 0x407D310: Xapian::Query::Internal::flatten_subqs() (omqueryinternal.cc:996)
==8364==    by 0x407D537: Xapian::Query::Internal::simplify_query() (omqueryinternal.cc:879)
==8364==    by 0x407D6AF: Xapian::Query::Internal::end_construction() (omqueryinternal.cc:750)
==8364==    by 0x4078206: Xapian::Query::end_construction() (omquery.cc:89)
==8364==    by 0x40782C0: Xapian::Query::Query(Xapian::Query::op, Xapian::Query const&, Xapian::Query const&) (omquery.cc:116)
==8364==    by 0x80E0C76: test_nearsubqueries1() (api_nodb.cc:477)
==8364==    by 0x81A5126: test_driver::runtest(test_desc const*) (testsuite.cc:248)
==8364==    by 0x81A971D: test_driver::do_run_tests(__gnu_cxx::__normal_iterator<std::string const*, std::vector<std::string, std::allocator<std::string> > >, __gnu_cxx::__normal_iterator<std::string const*, std::vector<std::string, std::allocator<std::string> > >) (testsuite.cc:533)
==8364==    by 0x81A9B96: test_driver::run_tests(__gnu_cxx::__normal_iterator<std::string const*, std::vector<std::string, std::allocator<std::string> > >, __gnu_cxx::__normal_iterator<std::string const*, std::vector<std::string, std::allocator<std::string> > >) (testsuite.cc:496)
==8364== 
==8364== Invalid read of size 1
==8364==    at 0x4079C9E: Xapian::Query::Internal::~Internal() (omqueryinternal.cc:740)
==8364==    by 0x407D34C: Xapian::Query::Internal::flatten_subqs() (omqueryinternal.cc:998)
==8364==    by 0x407D537: Xapian::Query::Internal::simplify_query() (omqueryinternal.cc:879)
==8364==    by 0x407D6AF: Xapian::Query::Internal::end_construction() (omqueryinternal.cc:750)
==8364==    by 0x4078206: Xapian::Query::end_construction() (omquery.cc:89)
==8364==    by 0x40782C0: Xapian::Query::Query(Xapian::Query::op, Xapian::Query const&, Xapian::Query const&) (omquery.cc:116)
==8364==    by 0x80E0C76: test_nearsubqueries1() (api_nodb.cc:477)
==8364==    by 0x81A5126: test_driver::runtest(test_desc const*) (testsuite.cc:248)
==8364==    by 0x81A971D: test_driver::do_run_tests(__gnu_cxx::__normal_iterator<std::string const*, std::vector<std::string, std::allocator<std::string> > >, __gnu_cxx::__normal_iterator<std::string const*, std::vector<std::string, std::allocator<std::string> > >) (testsuite.cc:533)
==8364==    by 0x81A9B96: test_driver::run_tests(__gnu_cxx::__normal_iterator<std::string const*, std::vector<std::string, std::allocator<std::string> > >, __gnu_cxx::__normal_iterator<std::string const*, std::vector<std::string, std::allocator<std::string> > >) (testsuite.cc:496)
==8364==    by 0x81A9BF2: test_driver::run(test_desc const*) (testsuite.cc:708)
==8364==    by 0x8055253: ApiTestRunner::run() const (api_collated.h:47)
==8364==  Address 0x448cc64 is 44 bytes inside a block of size 48 free'd
==8364==    at 0x40222EC: operator delete(void*) (vg_replace_malloc.c:342)
==8364==    by 0x4079C4F: Xapian::Query::Internal::~Internal() (omqueryinternal.cc:738)
==8364==    by 0x407D3DB: Xapian::Query::Internal::flatten_subqs() (omqueryinternal.cc:1004)
==8364==    by 0x407D310: Xapian::Query::Internal::flatten_subqs() (omqueryinternal.cc:996)
==8364==    by 0x407D537: Xapian::Query::Internal::simplify_query() (omqueryinternal.cc:879)
==8364==    by 0x407D6AF: Xapian::Query::Internal::end_construction() (omqueryinternal.cc:750)
==8364==    by 0x4078206: Xapian::Query::end_construction() (omquery.cc:89)
==8364==    by 0x40782C0: Xapian::Query::Query(Xapian::Query::op, Xapian::Query const&, Xapian::Query const&) (omquery.cc:116)
==8364==    by 0x80E0C76: test_nearsubqueries1() (api_nodb.cc:477)
==8364==    by 0x81A5126: test_driver::runtest(test_desc const*) (testsuite.cc:248)
==8364==    by 0x81A971D: test_driver::do_run_tests(__gnu_cxx::__normal_iterator<std::string const*, std::vector<std::string, std::allocator<std::string> > >, __gnu_cxx::__normal_iterator<std::string const*, std::vector<std::string, std::allocator<std::string> > >) (testsuite.cc:533)
==8364==    by 0x81A9B96: test_driver::run_tests(__gnu_cxx::__normal_iterator<std::string const*, std::vector<std::string, std::allocator<std::string> > >, __gnu_cxx::__normal_iterator<std::string const*, std::vector<std::string, std::allocator<std::string> > >) (testsuite.cc:496)
==8364== 
==8364== Invalid read of size 4
==8364==    at 0x42C2535: std::string::~string() (in /usr/lib/libstdc++.so.6.0.9)
==8364==    by 0x4079CDB: Xapian::Query::Internal::~Internal() (omqueryinternal.cc:743)
==8364==    by 0x407D34C: Xapian::Query::Internal::flatten_subqs() (omqueryinternal.cc:998)
==8364==    by 0x407D537: Xapian::Query::Internal::simplify_query() (omqueryinternal.cc:879)
==8364==    by 0x407D6AF: Xapian::Query::Internal::end_construction() (omqueryinternal.cc:750)
==8364==    by 0x4078206: Xapian::Query::end_construction() (omquery.cc:89)
==8364==    by 0x40782C0: Xapian::Query::Query(Xapian::Query::op, Xapian::Query const&, Xapian::Query const&) (omquery.cc:116)
==8364==    by 0x80E0C76: test_nearsubqueries1() (api_nodb.cc:477)
==8364==    by 0x81A5126: test_driver::runtest(test_desc const*) (testsuite.cc:248)
==8364==    by 0x81A971D: test_driver::do_run_tests(__gnu_cxx::__normal_iterator<std::string const*, std::vector<std::string, std::allocator<std::string> > >, __gnu_cxx::__normal_iterator<std::string const*, std::vector<std::string, std::allocator<std::string> > >) (testsuite.cc:533)
==8364==    by 0x81A9B96: test_driver::run_tests(__gnu_cxx::__normal_iterator<std::string const*, std::vector<std::string, std::allocator<std::string> > >, __gnu_cxx::__normal_iterator<std::string const*, std::vector<std::string, std::allocator<std::string> > >) (testsuite.cc:496)
==8364==    by 0x81A9BF2: test_driver::run(test_desc const*) (testsuite.cc:708)
==8364==  Address 0x448cc54 is 28 bytes inside a block of size 48 free'd
==8364==    at 0x40222EC: operator delete(void*) (vg_replace_malloc.c:342)
==8364==    by 0x4079C4F: Xapian::Query::Internal::~Internal() (omqueryinternal.cc:738)
==8364==    by 0x407D3DB: Xapian::Query::Internal::flatten_subqs() (omqueryinternal.cc:1004)
==8364==    by 0x407D310: Xapian::Query::Internal::flatten_subqs() (omqueryinternal.cc:996)
==8364==    by 0x407D537: Xapian::Query::Internal::simplify_query() (omqueryinternal.cc:879)
==8364==    by 0x407D6AF: Xapian::Query::Internal::end_construction() (omqueryinternal.cc:750)
==8364==    by 0x4078206: Xapian::Query::end_construction() (omquery.cc:89)
==8364==    by 0x40782C0: Xapian::Query::Query(Xapian::Query::op, Xapian::Query const&, Xapian::Query const&) (omquery.cc:116)
==8364==    by 0x80E0C76: test_nearsubqueries1() (api_nodb.cc:477)
==8364==    by 0x81A5126: test_driver::runtest(test_desc const*) (testsuite.cc:248)
==8364==    by 0x81A971D: test_driver::do_run_tests(__gnu_cxx::__normal_iterator<std::string const*, std::vector<std::string, std::allocator<std::string> > >, __gnu_cxx::__normal_iterator<std::string const*, std::vector<std::string, std::allocator<std::string> > >) (testsuite.cc:533)
==8364==    by 0x81A9B96: test_driver::run_tests(__gnu_cxx::__normal_iterator<std::string const*, std::vector<std::string, std::allocator<std::string> > >, __gnu_cxx::__normal_iterator<std::string const*, std::vector<std::string, std::allocator<std::string> > >) (testsuite.cc:496)
==8364== 
==8364== Invalid read of size 4
==8364==    at 0x42C2535: std::string::~string() (in /usr/lib/libstdc++.so.6.0.9)
==8364==    by 0x4079D10: Xapian::Query::Internal::~Internal() (omqueryinternal.cc:743)
==8364==    by 0x407D34C: Xapian::Query::Internal::flatten_subqs() (omqueryinternal.cc:998)
==8364==    by 0x407D537: Xapian::Query::Internal::simplify_query() (omqueryinternal.cc:879)
==8364==    by 0x407D6AF: Xapian::Query::Internal::end_construction() (omqueryinternal.cc:750)
==8364==    by 0x4078206: Xapian::Query::end_construction() (omquery.cc:89)
==8364==    by 0x40782C0: Xapian::Query::Query(Xapian::Query::op, Xapian::Query const&, Xapian::Query const&) (omquery.cc:116)
==8364==    by 0x80E0C76: test_nearsubqueries1() (api_nodb.cc:477)
==8364==    by 0x81A5126: test_driver::runtest(test_desc const*) (testsuite.cc:248)
==8364==    by 0x81A971D: test_driver::do_run_tests(__gnu_cxx::__normal_iterator<std::string const*, std::vector<std::string, std::allocator<std::string> > >, __gnu_cxx::__normal_iterator<std::string const*, std::vector<std::string, std::allocator<std::string> > >) (testsuite.cc:533)
==8364==    by 0x81A9B96: test_driver::run_tests(__gnu_cxx::__normal_iterator<std::string const*, std::vector<std::string, std::allocator<std::string> > >, __gnu_cxx::__normal_iterator<std::string const*, std::vector<std::string, std::allocator<std::string> > >) (testsuite.cc:496)
==8364==    by 0x81A9BF2: test_driver::run(test_desc const*) (testsuite.cc:708)
==8364==  Address 0x448cc50 is 24 bytes inside a block of size 48 free'd
==8364==    at 0x40222EC: operator delete(void*) (vg_replace_malloc.c:342)
==8364==    by 0x4079C4F: Xapian::Query::Internal::~Internal() (omqueryinternal.cc:738)
==8364==    by 0x407D3DB: Xapian::Query::Internal::flatten_subqs() (omqueryinternal.cc:1004)
==8364==    by 0x407D310: Xapian::Query::Internal::flatten_subqs() (omqueryinternal.cc:996)
==8364==    by 0x407D537: Xapian::Query::Internal::simplify_query() (omqueryinternal.cc:879)
==8364==    by 0x407D6AF: Xapian::Query::Internal::end_construction() (omqueryinternal.cc:750)
==8364==    by 0x4078206: Xapian::Query::end_construction() (omquery.cc:89)
==8364==    by 0x40782C0: Xapian::Query::Query(Xapian::Query::op, Xapian::Query const&, Xapian::Query const&) (omquery.cc:116)
==8364==    by 0x80E0C76: test_nearsubqueries1() (api_nodb.cc:477)
==8364==    by 0x81A5126: test_driver::runtest(test_desc const*) (testsuite.cc:248)
==8364==    by 0x81A971D: test_driver::do_run_tests(__gnu_cxx::__normal_iterator<std::string const*, std::vector<std::string, std::allocator<std::string> > >, __gnu_cxx::__normal_iterator<std::string const*, std::vector<std::string, std::allocator<std::string> > >) (testsuite.cc:533)
==8364==    by 0x81A9B96: test_driver::run_tests(__gnu_cxx::__normal_iterator<std::string const*, std::vector<std::string, std::allocator<std::string> > >, __gnu_cxx::__normal_iterator<std::string const*, std::vector<std::string, std::allocator<std::string> > >) (testsuite.cc:496)
==8364== 
==8364== Invalid read of size 4
==8364==    at 0x4083297: std::vector<Xapian::Query::Internal*, std::allocator<Xapian::Query::Internal*> >::~vector() (stl_vector.h:268)
==8364==    by 0x4079D45: Xapian::Query::Internal::~Internal() (omqueryinternal.cc:743)
==8364==    by 0x407D34C: Xapian::Query::Internal::flatten_subqs() (omqueryinternal.cc:998)
==8364==    by 0x407D537: Xapian::Query::Internal::simplify_query() (omqueryinternal.cc:879)
==8364==    by 0x407D6AF: Xapian::Query::Internal::end_construction() (omqueryinternal.cc:750)
==8364==    by 0x4078206: Xapian::Query::end_construction() (omquery.cc:89)
==8364==    by 0x40782C0: Xapian::Query::Query(Xapian::Query::op, Xapian::Query const&, Xapian::Query const&) (omquery.cc:116)
==8364==    by 0x80E0C76: test_nearsubqueries1() (api_nodb.cc:477)
==8364==    by 0x81A5126: test_driver::runtest(test_desc const*) (testsuite.cc:248)
==8364==    by 0x81A971D: test_driver::do_run_tests(__gnu_cxx::__normal_iterator<std::string const*, std::vector<std::string, std::allocator<std::string> > >, __gnu_cxx::__normal_iterator<std::string const*, std::vector<std::string, std::allocator<std::string> > >) (testsuite.cc:533)
==8364==    by 0x81A9B96: test_driver::run_tests(__gnu_cxx::__normal_iterator<std::string const*, std::vector<std::string, std::allocator<std::string> > >, __gnu_cxx::__normal_iterator<std::string const*, std::vector<std::string, std::allocator<std::string> > >) (testsuite.cc:496)
==8364==    by 0x81A9BF2: test_driver::run(test_desc const*) (testsuite.cc:708)
==8364==  Address 0x448cc44 is 12 bytes inside a block of size 48 free'd
==8364==    at 0x40222EC: operator delete(void*) (vg_replace_malloc.c:342)
==8364==    by 0x4079C4F: Xapian::Query::Internal::~Internal() (omqueryinternal.cc:738)
==8364==    by 0x407D3DB: Xapian::Query::Internal::flatten_subqs() (omqueryinternal.cc:1004)
==8364==    by 0x407D310: Xapian::Query::Internal::flatten_subqs() (omqueryinternal.cc:996)
==8364==    by 0x407D537: Xapian::Query::Internal::simplify_query() (omqueryinternal.cc:879)
==8364==    by 0x407D6AF: Xapian::Query::Internal::end_construction() (omqueryinternal.cc:750)
==8364==    by 0x4078206: Xapian::Query::end_construction() (omquery.cc:89)
==8364==    by 0x40782C0: Xapian::Query::Query(Xapian::Query::op, Xapian::Query const&, Xapian::Query const&) (omquery.cc:116)
==8364==    by 0x80E0C76: test_nearsubqueries1() (api_nodb.cc:477)
==8364==    by 0x81A5126: test_driver::runtest(test_desc const*) (testsuite.cc:248)
==8364==    by 0x81A971D: test_driver::do_run_tests(__gnu_cxx::__normal_iterator<std::string const*, std::vector<std::string, std::allocator<std::string> > >, __gnu_cxx::__normal_iterator<std::string const*, std::vector<std::string, std::allocator<std::string> > >) (testsuite.cc:533)
==8364==    by 0x81A9B96: test_driver::run_tests(__gnu_cxx::__normal_iterator<std::string const*, std::vector<std::string, std::allocator<std::string> > >, __gnu_cxx::__normal_iterator<std::string const*, std::vector<std::string, std::allocator<std::string> > >) (testsuite.cc:496)
==8364== 
==8364== Invalid read of size 4
==8364==    at 0x408329D: std::vector<Xapian::Query::Internal*, std::allocator<Xapian::Query::Internal*> >::~vector() (stl_vector.h:268)
==8364==    by 0x4079D45: Xapian::Query::Internal::~Internal() (omqueryinternal.cc:743)
==8364==    by 0x407D34C: Xapian::Query::Internal::flatten_subqs() (omqueryinternal.cc:998)
==8364==    by 0x407D537: Xapian::Query::Internal::simplify_query() (omqueryinternal.cc:879)
==8364==    by 0x407D6AF: Xapian::Query::Internal::end_construction() (omqueryinternal.cc:750)
==8364==    by 0x4078206: Xapian::Query::end_construction() (omquery.cc:89)
==8364==    by 0x40782C0: Xapian::Query::Query(Xapian::Query::op, Xapian::Query const&, Xapian::Query const&) (omquery.cc:116)
==8364==    by 0x80E0C76: test_nearsubqueries1() (api_nodb.cc:477)
==8364==    by 0x81A5126: test_driver::runtest(test_desc const*) (testsuite.cc:248)
==8364==    by 0x81A971D: test_driver::do_run_tests(__gnu_cxx::__normal_iterator<std::string const*, std::vector<std::string, std::allocator<std::string> > >, __gnu_cxx::__normal_iterator<std::string const*, std::vector<std::string, std::allocator<std::string> > >) (testsuite.cc:533)
==8364==    by 0x81A9B96: test_driver::run_tests(__gnu_cxx::__normal_iterator<std::string const*, std::vector<std::string, std::allocator<std::string> > >, __gnu_cxx::__normal_iterator<std::string const*, std::vector<std::string, std::allocator<std::string> > >) (testsuite.cc:496)
==8364==    by 0x81A9BF2: test_driver::run(test_desc const*) (testsuite.cc:708)
==8364==  Address 0x448cc40 is 8 bytes inside a block of size 48 free'd
==8364==    at 0x40222EC: operator delete(void*) (vg_replace_malloc.c:342)
==8364==    by 0x4079C4F: Xapian::Query::Internal::~Internal() (omqueryinternal.cc:738)
==8364==    by 0x407D3DB: Xapian::Query::Internal::flatten_subqs() (omqueryinternal.cc:1004)
==8364==    by 0x407D310: Xapian::Query::Internal::flatten_subqs() (omqueryinternal.cc:996)
==8364==    by 0x407D537: Xapian::Query::Internal::simplify_query() (omqueryinternal.cc:879)
==8364==    by 0x407D6AF: Xapian::Query::Internal::end_construction() (omqueryinternal.cc:750)
==8364==    by 0x4078206: Xapian::Query::end_construction() (omquery.cc:89)
==8364==    by 0x40782C0: Xapian::Query::Query(Xapian::Query::op, Xapian::Query const&, Xapian::Query const&) (omquery.cc:116)
==8364==    by 0x80E0C76: test_nearsubqueries1() (api_nodb.cc:477)
==8364==    by 0x81A5126: test_driver::runtest(test_desc const*) (testsuite.cc:248)
==8364==    by 0x81A971D: test_driver::do_run_tests(__gnu_cxx::__normal_iterator<std::string const*, std::vector<std::string, std::allocator<std::string> > >, __gnu_cxx::__normal_iterator<std::string const*, std::vector<std::string, std::allocator<std::string> > >) (testsuite.cc:533)
==8364==    by 0x81A9B96: test_driver::run_tests(__gnu_cxx::__normal_iterator<std::string const*, std::vector<std::string, std::allocator<std::string> > >, __gnu_cxx::__normal_iterator<std::string const*, std::vector<std::string, std::allocator<std::string> > >) (testsuite.cc:496)
==8364== 
==8364== Invalid read of size 4
==8364==    at 0x4083229: std::_Vector_base<Xapian::Query::Internal*, std::allocator<Xapian::Query::Internal*> >::~_Vector_base() (stl_vector.h:120)
==8364==    by 0x40832C7: std::vector<Xapian::Query::Internal*, std::allocator<Xapian::Query::Internal*> >::~vector() (stl_vector.h:268)
==8364==    by 0x4079D45: Xapian::Query::Internal::~Internal() (omqueryinternal.cc:743)
==8364==    by 0x407D34C: Xapian::Query::Internal::flatten_subqs() (omqueryinternal.cc:998)
==8364==    by 0x407D537: Xapian::Query::Internal::simplify_query() (omqueryinternal.cc:879)
==8364==    by 0x407D6AF: Xapian::Query::Internal::end_construction() (omqueryinternal.cc:750)
==8364==    by 0x4078206: Xapian::Query::end_construction() (omquery.cc:89)
==8364==    by 0x40782C0: Xapian::Query::Query(Xapian::Query::op, Xapian::Query const&, Xapian::Query const&) (omquery.cc:116)
==8364==    by 0x80E0C76: test_nearsubqueries1() (api_nodb.cc:477)
==8364==    by 0x81A5126: test_driver::runtest(test_desc const*) (testsuite.cc:248)
==8364==    by 0x81A971D: test_driver::do_run_tests(__gnu_cxx::__normal_iterator<std::string const*, std::vector<std::string, std::allocator<std::string> > >, __gnu_cxx::__normal_iterator<std::string const*, std::vector<std::string, std::allocator<std::string> > >) (testsuite.cc:533)
==8364==    by 0x81A9B96: test_driver::run_tests(__gnu_cxx::__normal_iterator<std::string const*, std::vector<std::string, std::allocator<std::string> > >, __gnu_cxx::__normal_iterator<std::string const*, std::vector<std::string, std::allocator<std::string> > >) (testsuite.cc:496)
==8364==  Address 0x448cc48 is 16 bytes inside a block of size 48 free'd
==8364==    at 0x40222EC: operator delete(void*) (vg_replace_malloc.c:342)
==8364==    by 0x4079C4F: Xapian::Query::Internal::~Internal() (omqueryinternal.cc:738)
==8364==    by 0x407D3DB: Xapian::Query::Internal::flatten_subqs() (omqueryinternal.cc:1004)
==8364==    by 0x407D310: Xapian::Query::Internal::flatten_subqs() (omqueryinternal.cc:996)
==8364==    by 0x407D537: Xapian::Query::Internal::simplify_query() (omqueryinternal.cc:879)
==8364==    by 0x407D6AF: Xapian::Query::Internal::end_construction() (omqueryinternal.cc:750)
==8364==    by 0x4078206: Xapian::Query::end_construction() (omquery.cc:89)
==8364==    by 0x40782C0: Xapian::Query::Query(Xapian::Query::op, Xapian::Query const&, Xapian::Query const&) (omquery.cc:116)
==8364==    by 0x80E0C76: test_nearsubqueries1() (api_nodb.cc:477)
==8364==    by 0x81A5126: test_driver::runtest(test_desc const*) (testsuite.cc:248)
==8364==    by 0x81A971D: test_driver::do_run_tests(__gnu_cxx::__normal_iterator<std::string const*, std::vector<std::string, std::allocator<std::string> > >, __gnu_cxx::__normal_iterator<std::string const*, std::vector<std::string, std::allocator<std::string> > >) (testsuite.cc:533)
==8364==    by 0x81A9B96: test_driver::run_tests(__gnu_cxx::__normal_iterator<std::string const*, std::vector<std::string, std::allocator<std::string> > >, __gnu_cxx::__normal_iterator<std::string const*, std::vector<std::string, std::allocator<std::string> > >) (testsuite.cc:496)
==8364== 
==8364== Invalid read of size 4
==8364==    at 0x4083231: std::_Vector_base<Xapian::Query::Internal*, std::allocator<Xapian::Query::Internal*> >::~_Vector_base() (stl_vector.h:120)
==8364==    by 0x40832C7: std::vector<Xapian::Query::Internal*, std::allocator<Xapian::Query::Internal*> >::~vector() (stl_vector.h:268)
==8364==    by 0x4079D45: Xapian::Query::Internal::~Internal() (omqueryinternal.cc:743)
==8364==    by 0x407D34C: Xapian::Query::Internal::flatten_subqs() (omqueryinternal.cc:998)
==8364==    by 0x407D537: Xapian::Query::Internal::simplify_query() (omqueryinternal.cc:879)
==8364==    by 0x407D6AF: Xapian::Query::Internal::end_construction() (omqueryinternal.cc:750)
==8364==    by 0x4078206: Xapian::Query::end_construction() (omquery.cc:89)
==8364==    by 0x40782C0: Xapian::Query::Query(Xapian::Query::op, Xapian::Query const&, Xapian::Query const&) (omquery.cc:116)
==8364==    by 0x80E0C76: test_nearsubqueries1() (api_nodb.cc:477)
==8364==    by 0x81A5126: test_driver::runtest(test_desc const*) (testsuite.cc:248)
==8364==    by 0x81A971D: test_driver::do_run_tests(__gnu_cxx::__normal_iterator<std::string const*, std::vector<std::string, std::allocator<std::string> > >, __gnu_cxx::__normal_iterator<std::string const*, std::vector<std::string, std::allocator<std::string> > >) (testsuite.cc:533)
==8364==    by 0x81A9B96: test_driver::run_tests(__gnu_cxx::__normal_iterator<std::string const*, std::vector<std::string, std::allocator<std::string> > >, __gnu_cxx::__normal_iterator<std::string const*, std::vector<std::string, std::allocator<std::string> > >) (testsuite.cc:496)
==8364==  Address 0x448cc40 is 8 bytes inside a block of size 48 free'd
==8364==    at 0x40222EC: operator delete(void*) (vg_replace_malloc.c:342)
==8364==    by 0x4079C4F: Xapian::Query::Internal::~Internal() (omqueryinternal.cc:738)
==8364==    by 0x407D3DB: Xapian::Query::Internal::flatten_subqs() (omqueryinternal.cc:1004)
==8364==    by 0x407D310: Xapian::Query::Internal::flatten_subqs() (omqueryinternal.cc:996)
==8364==    by 0x407D537: Xapian::Query::Internal::simplify_query() (omqueryinternal.cc:879)
==8364==    by 0x407D6AF: Xapian::Query::Internal::end_construction() (omqueryinternal.cc:750)
==8364==    by 0x4078206: Xapian::Query::end_construction() (omquery.cc:89)
==8364==    by 0x40782C0: Xapian::Query::Query(Xapian::Query::op, Xapian::Query const&, Xapian::Query const&) (omquery.cc:116)
==8364==    by 0x80E0C76: test_nearsubqueries1() (api_nodb.cc:477)
==8364==    by 0x81A5126: test_driver::runtest(test_desc const*) (testsuite.cc:248)
==8364==    by 0x81A971D: test_driver::do_run_tests(__gnu_cxx::__normal_iterator<std::string const*, std::vector<std::string, std::allocator<std::string> > >, __gnu_cxx::__normal_iterator<std::string const*, std::vector<std::string, std::allocator<std::string> > >) (testsuite.cc:533)
==8364==    by 0x81A9B96: test_driver::run_tests(__gnu_cxx::__normal_iterator<std::string const*, std::vector<std::string, std::allocator<std::string> > >, __gnu_cxx::__normal_iterator<std::string const*, std::vector<std::string, std::allocator<std::string> > >) (testsuite.cc:496)
==8364== 
==8364== Invalid read of size 4
==8364==    at 0x4083241: std::_Vector_base<Xapian::Query::Internal*, std::allocator<Xapian::Query::Internal*> >::~_Vector_base() (stl_vector.h:120)
==8364==    by 0x40832C7: std::vector<Xapian::Query::Internal*, std::allocator<Xapian::Query::Internal*> >::~vector() (stl_vector.h:268)
==8364==    by 0x4079D45: Xapian::Query::Internal::~Internal() (omqueryinternal.cc:743)
==8364==    by 0x407D34C: Xapian::Query::Internal::flatten_subqs() (omqueryinternal.cc:998)
==8364==    by 0x407D537: Xapian::Query::Internal::simplify_query() (omqueryinternal.cc:879)
==8364==    by 0x407D6AF: Xapian::Query::Internal::end_construction() (omqueryinternal.cc:750)
==8364==    by 0x4078206: Xapian::Query::end_construction() (omquery.cc:89)
==8364==    by 0x40782C0: Xapian::Query::Query(Xapian::Query::op, Xapian::Query const&, Xapian::Query const&) (omquery.cc:116)
==8364==    by 0x80E0C76: test_nearsubqueries1() (api_nodb.cc:477)
==8364==    by 0x81A5126: test_driver::runtest(test_desc const*) (testsuite.cc:248)
==8364==    by 0x81A971D: test_driver::do_run_tests(__gnu_cxx::__normal_iterator<std::string const*, std::vector<std::string, std::allocator<std::string> > >, __gnu_cxx::__normal_iterator<std::string const*, std::vector<std::string, std::allocator<std::string> > >) (testsuite.cc:533)
==8364==    by 0x81A9B96: test_driver::run_tests(__gnu_cxx::__normal_iterator<std::string const*, std::vector<std::string, std::allocator<std::string> > >, __gnu_cxx::__normal_iterator<std::string const*, std::vector<std::string, std::allocator<std::string> > >) (testsuite.cc:496)
==8364==  Address 0x448cc40 is 8 bytes inside a block of size 48 free'd
==8364==    at 0x40222EC: operator delete(void*) (vg_replace_malloc.c:342)
==8364==    by 0x4079C4F: Xapian::Query::Internal::~Internal() (omqueryinternal.cc:738)
==8364==    by 0x407D3DB: Xapian::Query::Internal::flatten_subqs() (omqueryinternal.cc:1004)
==8364==    by 0x407D310: Xapian::Query::Internal::flatten_subqs() (omqueryinternal.cc:996)
==8364==    by 0x407D537: Xapian::Query::Internal::simplify_query() (omqueryinternal.cc:879)
==8364==    by 0x407D6AF: Xapian::Query::Internal::end_construction() (omqueryinternal.cc:750)
==8364==    by 0x4078206: Xapian::Query::end_construction() (omquery.cc:89)
==8364==    by 0x40782C0: Xapian::Query::Query(Xapian::Query::op, Xapian::Query const&, Xapian::Query const&) (omquery.cc:116)
==8364==    by 0x80E0C76: test_nearsubqueries1() (api_nodb.cc:477)
==8364==    by 0x81A5126: test_driver::runtest(test_desc const*) (testsuite.cc:248)
==8364==    by 0x81A971D: test_driver::do_run_tests(__gnu_cxx::__normal_iterator<std::string const*, std::vector<std::string, std::allocator<std::string> > >, __gnu_cxx::__normal_iterator<std::string const*, std::vector<std::string, std::allocator<std::string> > >) (testsuite.cc:533)
==8364==    by 0x81A9B96: test_driver::run_tests(__gnu_cxx::__normal_iterator<std::string const*, std::vector<std::string, std::allocator<std::string> > >, __gnu_cxx::__normal_iterator<std::string const*, std::vector<std::string, std::allocator<std::string> > >) (testsuite.cc:496)
==8364== 
==8364== Invalid free() / delete / delete[]
==8364==    at 0x40222EC: operator delete(void*) (vg_replace_malloc.c:342)
==8364==    by 0x407D35A: Xapian::Query::Internal::flatten_subqs() (omqueryinternal.cc:998)
==8364==    by 0x407D537: Xapian::Query::Internal::simplify_query() (omqueryinternal.cc:879)
==8364==    by 0x407D6AF: Xapian::Query::Internal::end_construction() (omqueryinternal.cc:750)
==8364==    by 0x4078206: Xapian::Query::end_construction() (omquery.cc:89)
==8364==    by 0x40782C0: Xapian::Query::Query(Xapian::Query::op, Xapian::Query const&, Xapian::Query const&) (omquery.cc:116)
==8364==    by 0x80E0C76: test_nearsubqueries1() (api_nodb.cc:477)
==8364==    by 0x81A5126: test_driver::runtest(test_desc const*) (testsuite.cc:248)
==8364==    by 0x81A971D: test_driver::do_run_tests(__gnu_cxx::__normal_iterator<std::string const*, std::vector<std::string, std::allocator<std::string> > >, __gnu_cxx::__normal_iterator<std::string const*, std::vector<std::string, std::allocator<std::string> > >) (testsuite.cc:533)
==8364==    by 0x81A9B96: test_driver::run_tests(__gnu_cxx::__normal_iterator<std::string const*, std::vector<std::string, std::allocator<std::string> > >, __gnu_cxx::__normal_iterator<std::string const*, std::vector<std::string, std::allocator<std::string> > >) (testsuite.cc:496)
==8364==    by 0x81A9BF2: test_driver::run(test_desc const*) (testsuite.cc:708)
==8364==    by 0x8055253: ApiTestRunner::run() const (api_collated.h:47)
==8364==  Address 0x448cc38 is 0 bytes inside a block of size 48 free'd
==8364==    at 0x40222EC: operator delete(void*) (vg_replace_malloc.c:342)
==8364==    by 0x4079C4F: Xapian::Query::Internal::~Internal() (omqueryinternal.cc:738)
==8364==    by 0x407D3DB: Xapian::Query::Internal::flatten_subqs() (omqueryinternal.cc:1004)
==8364==    by 0x407D310: Xapian::Query::Internal::flatten_subqs() (omqueryinternal.cc:996)
==8364==    by 0x407D537: Xapian::Query::Internal::simplify_query() (omqueryinternal.cc:879)
==8364==    by 0x407D6AF: Xapian::Query::Internal::end_construction() (omqueryinternal.cc:750)
==8364==    by 0x4078206: Xapian::Query::end_construction() (omquery.cc:89)
==8364==    by 0x40782C0: Xapian::Query::Query(Xapian::Query::op, Xapian::Query const&, Xapian::Query const&) (omquery.cc:116)
==8364==    by 0x80E0C76: test_nearsubqueries1() (api_nodb.cc:477)
==8364==    by 0x81A5126: test_driver::runtest(test_desc const*) (testsuite.cc:248)
==8364==    by 0x81A971D: test_driver::do_run_tests(__gnu_cxx::__normal_iterator<std::string const*, std::vector<std::string, std::allocator<std::string> > >, __gnu_cxx::__normal_iterator<std::string const*, std::vector<std::string, std::allocator<std::string> > >) (testsuite.cc:533)
==8364==    by 0x81A9B96: test_driver::run_tests(__gnu_cxx::__normal_iterator<std::string const*, std::vector<std::string, std::allocator<std::string> > >, __gnu_cxx::__normal_iterator<std::string const*, std::vector<std::string, std::allocator<std::string> > >) (testsuite.cc:496)
==8364== 
==8364== Invalid write of size 4
==8364==    at 0x407D366: Xapian::Query::Internal::flatten_subqs() (omqueryinternal.cc:999)
==8364==    by 0x407D537: Xapian::Query::Internal::simplify_query() (omqueryinternal.cc:879)
==8364==    by 0x407D6AF: Xapian::Query::Internal::end_construction() (omqueryinternal.cc:750)
==8364==    by 0x4078206: Xapian::Query::end_construction() (omquery.cc:89)
==8364==    by 0x40782C0: Xapian::Query::Query(Xapian::Query::op, Xapian::Query const&, Xapian::Query const&) (omquery.cc:116)
==8364==    by 0x80E0C76: test_nearsubqueries1() (api_nodb.cc:477)
==8364==    by 0x81A5126: test_driver::runtest(test_desc const*) (testsuite.cc:248)
==8364==    by 0x81A971D: test_driver::do_run_tests(__gnu_cxx::__normal_iterator<std::string const*, std::vector<std::string, std::allocator<std::string> > >, __gnu_cxx::__normal_iterator<std::string const*, std::vector<std::string, std::allocator<std::string> > >) (testsuite.cc:533)
==8364==    by 0x81A9B96: test_driver::run_tests(__gnu_cxx::__normal_iterator<std::string const*, std::vector<std::string, std::allocator<std::string> > >, __gnu_cxx::__normal_iterator<std::string const*, std::vector<std::string, std::allocator<std::string> > >) (testsuite.cc:496)
==8364==    by 0x81A9BF2: test_driver::run(test_desc const*) (testsuite.cc:708)
==8364==    by 0x8055253: ApiTestRunner::run() const (api_collated.h:47)
==8364==    by 0x81A2416: TestRunner::do_tests_for_backend(BackendManager*) (testrunner.cc:171)
==8364==  Address 0x448cf30 is 0 bytes inside a block of size 8 free'd
==8364==    at 0x40222EC: operator delete(void*) (vg_replace_malloc.c:342)
==8364==    by 0x40831D2: __gnu_cxx::new_allocator<Xapian::Query::Internal*>::deallocate(Xapian::Query::Internal**, unsigned) (new_allocator.h:97)
==8364==    by 0x408320C: std::_Vector_base<Xapian::Query::Internal*, std::allocator<Xapian::Query::Internal*> >::_M_deallocate(Xapian::Query::Internal**, unsigned) (stl_vector.h:134)
==8364==    by 0x4083255: std::_Vector_base<Xapian::Query::Internal*, std::allocator<Xapian::Query::Internal*> >::~_Vector_base() (stl_vector.h:120)
==8364==    by 0x40832C7: std::vector<Xapian::Query::Internal*, std::allocator<Xapian::Query::Internal*> >::~vector() (stl_vector.h:268)
==8364==    by 0x4079D45: Xapian::Query::Internal::~Internal() (omqueryinternal.cc:743)
==8364==    by 0x407D3DB: Xapian::Query::Internal::flatten_subqs() (omqueryinternal.cc:1004)
==8364==    by 0x407D310: Xapian::Query::Internal::flatten_subqs() (omqueryinternal.cc:996)
==8364==    by 0x407D537: Xapian::Query::Internal::simplify_query() (omqueryinternal.cc:879)
==8364==    by 0x407D6AF: Xapian::Query::Internal::end_construction() (omqueryinternal.cc:750)
==8364==    by 0x4078206: Xapian::Query::end_construction() (omquery.cc:89)
==8364==    by 0x40782C0: Xapian::Query::Query(Xapian::Query::op, Xapian::Query const&, Xapian::Query const&) (omquery.cc:116)
==8364== 
==8364== Invalid write of size 4
==8364==    at 0x407D2F3: Xapian::Query::Internal::flatten_subqs() (omqueryinternal.cc:994)
==8364==    by 0x407D537: Xapian::Query::Internal::simplify_query() (omqueryinternal.cc:879)
==8364==    by 0x407D6AF: Xapian::Query::Internal::end_construction() (omqueryinternal.cc:750)
==8364==    by 0x4078206: Xapian::Query::end_construction() (omquery.cc:89)
==8364==    by 0x40782C0: Xapian::Query::Query(Xapian::Query::op, Xapian::Query const&, Xapian::Query const&) (omquery.cc:116)
==8364==    by 0x80E0C76: test_nearsubqueries1() (api_nodb.cc:477)
==8364==    by 0x81A5126: test_driver::runtest(test_desc const*) (testsuite.cc:248)
==8364==    by 0x81A971D: test_driver::do_run_tests(__gnu_cxx::__normal_iterator<std::string const*, std::vector<std::string, std::allocator<std::string> > >, __gnu_cxx::__normal_iterator<std::string const*, std::vector<std::string, std::allocator<std::string> > >) (testsuite.cc:533)
==8364==    by 0x81A9B96: test_driver::run_tests(__gnu_cxx::__normal_iterator<std::string const*, std::vector<std::string, std::allocator<std::string> > >, __gnu_cxx::__normal_iterator<std::string const*, std::vector<std::string, std::allocator<std::string> > >) (testsuite.cc:496)
==8364==    by 0x81A9BF2: test_driver::run(test_desc const*) (testsuite.cc:708)
==8364==    by 0x8055253: ApiTestRunner::run() const (api_collated.h:47)
==8364==    by 0x81A2416: TestRunner::do_tests_for_backend(BackendManager*) (testrunner.cc:171)
==8364==  Address 0x448cf30 is 0 bytes inside a block of size 8 free'd
==8364==    at 0x40222EC: operator delete(void*) (vg_replace_malloc.c:342)
==8364==    by 0x40831D2: __gnu_cxx::new_allocator<Xapian::Query::Internal*>::deallocate(Xapian::Query::Internal**, unsigned) (new_allocator.h:97)
==8364==    by 0x408320C: std::_Vector_base<Xapian::Query::Internal*, std::allocator<Xapian::Query::Internal*> >::_M_deallocate(Xapian::Query::Internal**, unsigned) (stl_vector.h:134)
==8364==    by 0x4083255: std::_Vector_base<Xapian::Query::Internal*, std::allocator<Xapian::Query::Internal*> >::~_Vector_base() (stl_vector.h:120)
==8364==    by 0x40832C7: std::vector<Xapian::Query::Internal*, std::allocator<Xapian::Query::Internal*> >::~vector() (stl_vector.h:268)
==8364==    by 0x4079D45: Xapian::Query::Internal::~Internal() (omqueryinternal.cc:743)
==8364==    by 0x407D3DB: Xapian::Query::Internal::flatten_subqs() (omqueryinternal.cc:1004)
==8364==    by 0x407D310: Xapian::Query::Internal::flatten_subqs() (omqueryinternal.cc:996)
==8364==    by 0x407D537: Xapian::Query::Internal::simplify_query() (omqueryinternal.cc:879)
==8364==    by 0x407D6AF: Xapian::Query::Internal::end_construction() (omqueryinternal.cc:750)
==8364==    by 0x4078206: Xapian::Query::end_construction() (omquery.cc:89)
==8364==    by 0x40782C0: Xapian::Query::Query(Xapian::Query::op, Xapian::Query const&, Xapian::Query const&) (omquery.cc:116)
==8364== 
==8364== Invalid read of size 4
==8364==    at 0x42C2555: std::string::~string() (in /usr/lib/libstdc++.so.6.0.9)
==8364==    by 0x4079D10: Xapian::Query::Internal::~Internal() (omqueryinternal.cc:743)
==8364==    by 0x4079C44: Xapian::Query::Internal::~Internal() (omqueryinternal.cc:738)
==8364==    by 0x4077FE8: Xapian::Query::~Query() (base.h:138)
==8364==    by 0x80E0E67: test_nearsubqueries1() (api_nodb.cc:479)
==8364==    by 0x81A5126: test_driver::runtest(test_desc const*) (testsuite.cc:248)
==8364==    by 0x81A971D: test_driver::do_run_tests(__gnu_cxx::__normal_iterator<std::string const*, std::vector<std::string, std::allocator<std::string> > >, __gnu_cxx::__normal_iterator<std::string const*, std::vector<std::string, std::allocator<std::string> > >) (testsuite.cc:533)
==8364==    by 0x81A9B96: test_driver::run_tests(__gnu_cxx::__normal_iterator<std::string const*, std::vector<std::string, std::allocator<std::string> > >, __gnu_cxx::__normal_iterator<std::string const*, std::vector<std::string, std::allocator<std::string> > >) (testsuite.cc:496)
==8364==    by 0x81A9BF2: test_driver::run(test_desc const*) (testsuite.cc:708)
==8364==    by 0x8055253: ApiTestRunner::run() const (api_collated.h:47)
==8364==    by 0x81A2416: TestRunner::do_tests_for_backend(BackendManager*) (testrunner.cc:171)
==8364==    by 0x81A270C: TestRunner::run_tests(int, char**) (testrunner.cc:185)
==8364==  Address 0x448c680 is 8 bytes inside a block of size 14 free'd
==8364==    at 0x40222EC: operator delete(void*) (vg_replace_malloc.c:342)
==8364==    by 0x42C079C: std::string::_Rep::_M_destroy(std::allocator<char> const&) (in /usr/lib/libstdc++.so.6.0.9)
==8364==    by 0x42C2570: std::string::~string() (in /usr/lib/libstdc++.so.6.0.9)
==8364==    by 0x4079D10: Xapian::Query::Internal::~Internal() (omqueryinternal.cc:743)
==8364==    by 0x4079C44: Xapian::Query::Internal::~Internal() (omqueryinternal.cc:738)
==8364==    by 0x4079C44: Xapian::Query::Internal::~Internal() (omqueryinternal.cc:738)
==8364==    by 0x40781C7: Xapian::Query::abort_construction() (base.h:126)
==8364==    by 0x40782F3: Xapian::Query::Query(Xapian::Query::op, Xapian::Query const&, Xapian::Query const&) (omquery.cc:118)
==8364==    by 0x80E0C76: test_nearsubqueries1() (api_nodb.cc:477)
==8364==    by 0x81A5126: test_driver::runtest(test_desc const*) (testsuite.cc:248)
==8364==    by 0x81A971D: test_driver::do_run_tests(__gnu_cxx::__normal_iterator<std::string const*, std::vector<std::string, std::allocator<std::string> > >, __gnu_cxx::__normal_iterator<std::string const*, std::vector<std::string, std::allocator<std::string> > >) (testsuite.cc:533)
==8364==    by 0x81A9B96: test_driver::run_tests(__gnu_cxx::__normal_iterator<std::string const*, std::vector<std::string, std::allocator<std::string> > >, __gnu_cxx::__normal_iterator<std::string const*, std::vector<std::string, std::allocator<std::string> > >) (testsuite.cc:496)
==8364== 
==8364== Invalid write of size 4
==8364==    at 0x42C255B: std::string::~string() (in /usr/lib/libstdc++.so.6.0.9)
==8364==    by 0x4079D10: Xapian::Query::Internal::~Internal() (omqueryinternal.cc:743)
==8364==    by 0x4079C44: Xapian::Query::Internal::~Internal() (omqueryinternal.cc:738)
==8364==    by 0x4077FE8: Xapian::Query::~Query() (base.h:138)
==8364==    by 0x80E0E67: test_nearsubqueries1() (api_nodb.cc:479)
==8364==    by 0x81A5126: test_driver::runtest(test_desc const*) (testsuite.cc:248)
==8364==    by 0x81A971D: test_driver::do_run_tests(__gnu_cxx::__normal_iterator<std::string const*, std::vector<std::string, std::allocator<std::string> > >, __gnu_cxx::__normal_iterator<std::string const*, std::vector<std::string, std::allocator<std::string> > >) (testsuite.cc:533)
==8364==    by 0x81A9B96: test_driver::run_tests(__gnu_cxx::__normal_iterator<std::string const*, std::vector<std::string, std::allocator<std::string> > >, __gnu_cxx::__normal_iterator<std::string const*, std::vector<std::string, std::allocator<std::string> > >) (testsuite.cc:496)
==8364==    by 0x81A9BF2: test_driver::run(test_desc const*) (testsuite.cc:708)
==8364==    by 0x8055253: ApiTestRunner::run() const (api_collated.h:47)
==8364==    by 0x81A2416: TestRunner::do_tests_for_backend(BackendManager*) (testrunner.cc:171)
==8364==    by 0x81A270C: TestRunner::run_tests(int, char**) (testrunner.cc:185)
==8364==  Address 0x448c680 is 8 bytes inside a block of size 14 free'd
==8364==    at 0x40222EC: operator delete(void*) (vg_replace_malloc.c:342)
==8364==    by 0x42C079C: std::string::_Rep::_M_destroy(std::allocator<char> const&) (in /usr/lib/libstdc++.so.6.0.9)
==8364==    by 0x42C2570: std::string::~string() (in /usr/lib/libstdc++.so.6.0.9)
==8364==    by 0x4079D10: Xapian::Query::Internal::~Internal() (omqueryinternal.cc:743)
==8364==    by 0x4079C44: Xapian::Query::Internal::~Internal() (omqueryinternal.cc:738)
==8364==    by 0x4079C44: Xapian::Query::Internal::~Internal() (omqueryinternal.cc:738)
==8364==    by 0x40781C7: Xapian::Query::abort_construction() (base.h:126)
==8364==    by 0x40782F3: Xapian::Query::Query(Xapian::Query::op, Xapian::Query const&, Xapian::Query const&) (omquery.cc:118)
==8364==    by 0x80E0C76: test_nearsubqueries1() (api_nodb.cc:477)
==8364==    by 0x81A5126: test_driver::runtest(test_desc const*) (testsuite.cc:248)
==8364==    by 0x81A971D: test_driver::do_run_tests(__gnu_cxx::__normal_iterator<std::string const*, std::vector<std::string, std::allocator<std::string> > >, __gnu_cxx::__normal_iterator<std::string const*, std::vector<std::string, std::allocator<std::string> > >) (testsuite.cc:533)
==8364==    by 0x81A9B96: test_driver::run_tests(__gnu_cxx::__normal_iterator<std::string const*, std::vector<std::string, std::allocator<std::string> > >, __gnu_cxx::__normal_iterator<std::string const*, std::vector<std::string, std::allocator<std::string> > >) (testsuite.cc:496)
==8364== 
==8364== Invalid free() / delete / delete[]
==8364==    at 0x40222EC: operator delete(void*) (vg_replace_malloc.c:342)
==8364==    by 0x42C079C: std::string::_Rep::_M_destroy(std::allocator<char> const&) (in /usr/lib/libstdc++.so.6.0.9)
==8364==    by 0x42C2570: std::string::~string() (in /usr/lib/libstdc++.so.6.0.9)
==8364==    by 0x4079D10: Xapian::Query::Internal::~Internal() (omqueryinternal.cc:743)
==8364==    by 0x4079C44: Xapian::Query::Internal::~Internal() (omqueryinternal.cc:738)
==8364==    by 0x4077FE8: Xapian::Query::~Query() (base.h:138)
==8364==    by 0x80E0E67: test_nearsubqueries1() (api_nodb.cc:479)
==8364==    by 0x81A5126: test_driver::runtest(test_desc const*) (testsuite.cc:248)
==8364==    by 0x81A971D: test_driver::do_run_tests(__gnu_cxx::__normal_iterator<std::string const*, std::vector<std::string, std::allocator<std::string> > >, __gnu_cxx::__normal_iterator<std::string const*, std::vector<std::string, std::allocator<std::string> > >) (testsuite.cc:533)
==8364==    by 0x81A9B96: test_driver::run_tests(__gnu_cxx::__normal_iterator<std::string const*, std::vector<std::string, std::allocator<std::string> > >, __gnu_cxx::__normal_iterator<std::string const*, std::vector<std::string, std::allocator<std::string> > >) (testsuite.cc:496)
==8364==    by 0x81A9BF2: test_driver::run(test_desc const*) (testsuite.cc:708)
==8364==    by 0x8055253: ApiTestRunner::run() const (api_collated.h:47)
==8364==  Address 0x448c678 is 0 bytes inside a block of size 14 free'd
==8364==    at 0x40222EC: operator delete(void*) (vg_replace_malloc.c:342)
==8364==    by 0x42C079C: std::string::_Rep::_M_destroy(std::allocator<char> const&) (in /usr/lib/libstdc++.so.6.0.9)
==8364==    by 0x42C2570: std::string::~string() (in /usr/lib/libstdc++.so.6.0.9)
==8364==    by 0x4079D10: Xapian::Query::Internal::~Internal() (omqueryinternal.cc:743)
==8364==    by 0x4079C44: Xapian::Query::Internal::~Internal() (omqueryinternal.cc:738)
==8364==    by 0x4079C44: Xapian::Query::Internal::~Internal() (omqueryinternal.cc:738)
==8364==    by 0x40781C7: Xapian::Query::abort_construction() (base.h:126)
==8364==    by 0x40782F3: Xapian::Query::Query(Xapian::Query::op, Xapian::Query const&, Xapian::Query const&) (omquery.cc:118)
==8364==    by 0x80E0C76: test_nearsubqueries1() (api_nodb.cc:477)
==8364==    by 0x81A5126: test_driver::runtest(test_desc const*) (testsuite.cc:248)
==8364==    by 0x81A971D: test_driver::do_run_tests(__gnu_cxx::__normal_iterator<std::string const*, std::vector<std::string, std::allocator<std::string> > >, __gnu_cxx::__normal_iterator<std::string const*, std::vector<std::string, std::allocator<std::string> > >) (testsuite.cc:533)
==8364==    by 0x81A9B96: test_driver::run_tests(__gnu_cxx::__normal_iterator<std::string const*, std::vector<std::string, std::allocator<std::string> > >, __gnu_cxx::__normal_iterator<std::string const*, std::vector<std::string, std::allocator<std::string> > >) (testsuite.cc:496)
==8364== searching for pointers to 16 not-freed blocks.
==8364== checked 181,980 bytes.
==8364== 
==8364== 
==8364== 14 bytes in 1 blocks are possibly lost in loss record 4 of 16
==8364==    at 0x4023294: operator new(unsigned) (vg_replace_malloc.c:224)
==8364==    by 0x42C0750: std::string::_Rep::_S_create(unsigned, unsigned, std::allocator<char> const&) (in /usr/lib/libstdc++.so.6.0.9)
==8364==    by 0x42C0F0E: std::string::_S_construct(unsigned, char, std::allocator<char> const&) (in /usr/lib/libstdc++.so.6.0.9)
==8364==    by 0x42C0F8B: std::string::string(unsigned, char, std::allocator<char> const&) (in /usr/lib/libstdc++.so.6.0.9)
==8364==    by 0x40BB54C: __static_initialization_and_destruction_0(int, int) (chert_dbstats.cc:30)
==8364==    by 0x4199F44: (within /home/richard/private/Working/xapian/working/build/xapian-core/.libs/libxapian.so.15.5.1)
==8364==    by 0x405B293: (within /home/richard/private/Working/xapian/working/build/xapian-core/.libs/libxapian.so.15.5.1)
==8364==    by 0x400D98F: call_init (in /lib/ld-2.7.so)
==8364==    by 0x400DAC2: _dl_init (in /lib/ld-2.7.so)
==8364==    by 0x400084E: (within /lib/ld-2.7.so)
==8364== 
==8364== 
==8364== 14 bytes in 1 blocks are possibly lost in loss record 5 of 16
==8364==    at 0x4023294: operator new(unsigned) (vg_replace_malloc.c:224)
==8364==    by 0x42C0750: std::string::_Rep::_S_create(unsigned, unsigned, std::allocator<char> const&) (in /usr/lib/libstdc++.so.6.0.9)
==8364==    by 0x42C1984: (within /usr/lib/libstdc++.so.6.0.9)
==8364==    by 0x42C1A60: std::string::string(char const*, unsigned, std::allocator<char> const&) (in /usr/lib/libstdc++.so.6.0.9)
==8364==    by 0x40EB25E: __static_initialization_and_destruction_0(int, int) (flint_database.cc:83)
==8364==    by 0x4199F44: (within /home/richard/private/Working/xapian/working/build/xapian-core/.libs/libxapian.so.15.5.1)
==8364==    by 0x405B293: (within /home/richard/private/Working/xapian/working/build/xapian-core/.libs/libxapian.so.15.5.1)
==8364==    by 0x400D98F: call_init (in /lib/ld-2.7.so)
==8364==    by 0x400DAC2: _dl_init (in /lib/ld-2.7.so)
==8364==    by 0x400084E: (within /lib/ld-2.7.so)
==8364== 
==8364== 
==8364== 17 bytes in 1 blocks are possibly lost in loss record 6 of 16
==8364==    at 0x4023294: operator new(unsigned) (vg_replace_malloc.c:224)
==8364==    by 0x42C0750: std::string::_Rep::_S_create(unsigned, unsigned, std::allocator<char> const&) (in /usr/lib/libstdc++.so.6.0.9)
==8364==    by 0x42C1984: (within /usr/lib/libstdc++.so.6.0.9)
==8364==    by 0x42C1B36: std::string::string(char const*, std::allocator<char> const&) (in /usr/lib/libstdc++.so.6.0.9)
==8364==    by 0x819B9C0: BackendManager::get_dbtype() const (backendmanager.cc:194)
==8364==    by 0x81A230F: TestRunner::do_tests_for_backend(BackendManager*) (testrunner.cc:165)
==8364==    by 0x81A270C: TestRunner::run_tests(int, char**) (testrunner.cc:185)
==8364==    by 0x8054105: main (apitest.cc:138)
==8364== 
==8364== 
==8364== 22 bytes in 1 blocks are possibly lost in loss record 8 of 16
==8364==    at 0x4023294: operator new(unsigned) (vg_replace_malloc.c:224)
==8364==    by 0x42C0750: std::string::_Rep::_S_create(unsigned, unsigned, std::allocator<char> const&) (in /usr/lib/libstdc++.so.6.0.9)
==8364==    by 0x42C264B: std::string::_M_mutate(unsigned, unsigned, unsigned) (in /usr/lib/libstdc++.so.6.0.9)
==8364==    by 0x42C27D9: std::string::_M_replace_safe(unsigned, unsigned, char const*, unsigned) (in /usr/lib/libstdc++.so.6.0.9)
==8364==    by 0x42C2874: std::string::assign(char const*, unsigned) (in /usr/lib/libstdc++.so.6.0.9)
==8364==    by 0x81A4AAE: test_driver::parse_command_line(int, char**) (basic_string.h:920)
==8364==    by 0x81A26B7: TestRunner::run_tests(int, char**) (testrunner.cc:182)
==8364==    by 0x8054105: main (apitest.cc:138)
==8364== 
==8364== 
==8364== 28 bytes in 1 blocks are possibly lost in loss record 10 of 16
==8364==    at 0x4023294: operator new(unsigned) (vg_replace_malloc.c:224)
==8364==    by 0x42C0750: std::string::_Rep::_S_create(unsigned, unsigned, std::allocator<char> const&) (in /usr/lib/libstdc++.so.6.0.9)
==8364==    by 0x42C1984: (within /usr/lib/libstdc++.so.6.0.9)
==8364==    by 0x42C1B36: std::string::string(char const*, std::allocator<char> const&) (in /usr/lib/libstdc++.so.6.0.9)
==8364==    by 0x81A4D8E: test_driver::parse_command_line(int, char**) (testsuite.cc:680)
==8364==    by 0x81A26B7: TestRunner::run_tests(int, char**) (testrunner.cc:182)
==8364==    by 0x8054105: main (apitest.cc:138)
==8364== 
==8364== 
==8364== 35 bytes in 1 blocks are possibly lost in loss record 11 of 16
==8364==    at 0x4023294: operator new(unsigned) (vg_replace_malloc.c:224)
==8364==    by 0x42C0750: std::string::_Rep::_S_create(unsigned, unsigned, std::allocator<char> const&) (in /usr/lib/libstdc++.so.6.0.9)
==8364==    by 0x42C1367: std::string::_Rep::_M_clone(std::allocator<char> const&, unsigned) (in /usr/lib/libstdc++.so.6.0.9)
==8364==    by 0x42C1F77: std::string::reserve(unsigned) (in /usr/lib/libstdc++.so.6.0.9)
==8364==    by 0x42C21A1: std::string::append(char const*, unsigned) (in /usr/lib/libstdc++.so.6.0.9)
==8364==    by 0x81A34F2: test_driver::add_command_line_option(std::string const&, char, std::string*) (basic_string.h:827)
==8364==    by 0x81A2693: TestRunner::run_tests(int, char**) (testrunner.cc:181)
==8364==    by 0x8054105: main (apitest.cc:138)
==8364== 
==8364== 
==8364== 62 (48 direct, 14 indirect) bytes in 1 blocks are definitely lost in loss record 13 of 16
==8364==    at 0x4023294: operator new(unsigned) (vg_replace_malloc.c:224)
==8364==    by 0x407AC07: Xapian::Query::Internal::Internal(Xapian::Query::Internal const&) (omqueryinternal.cc:649)
==8364==    by 0x407AE57: Xapian::Query::Internal::add_subquery(Xapian::Query::Internal const*) (omqueryinternal.cc:1021)
==8364==    by 0x4077B87: Xapian::Query::add_subquery(Xapian::Query const&) (omquery.cc:49)
==8364==    by 0x40782A9: Xapian::Query::Query(Xapian::Query::op, Xapian::Query const&, Xapian::Query const&) (omquery.cc:114)
==8364==    by 0x80E0C76: test_nearsubqueries1() (api_nodb.cc:477)
==8364==    by 0x81A5126: test_driver::runtest(test_desc const*) (testsuite.cc:248)
==8364==    by 0x81A971D: test_driver::do_run_tests(__gnu_cxx::__normal_iterator<std::string const*, std::vector<std::string, std::allocator<std::string> > >, __gnu_cxx::__normal_iterator<std::string const*, std::vector<std::string, std::allocator<std::string> > >) (testsuite.cc:533)
==8364==    by 0x81A9B96: test_driver::run_tests(__gnu_cxx::__normal_iterator<std::string const*, std::vector<std::string, std::allocator<std::string> > >, __gnu_cxx::__normal_iterator<std::string const*, std::vector<std::string, std::allocator<std::string> > >) (testsuite.cc:496)
==8364==    by 0x81A9BF2: test_driver::run(test_desc const*) (testsuite.cc:708)
==8364==    by 0x8055253: ApiTestRunner::run() const (api_collated.h:47)
==8364==    by 0x81A2416: TestRunner::do_tests_for_backend(BackendManager*) (testrunner.cc:171)
==8364== 
==8364== 
==8364== 75 bytes in 1 blocks are possibly lost in loss record 14 of 16
==8364==    at 0x4023294: operator new(unsigned) (vg_replace_malloc.c:224)
==8364==    by 0x42C0750: std::string::_Rep::_S_create(unsigned, unsigned, std::allocator<char> const&) (in /usr/lib/libstdc++.so.6.0.9)
==8364==    by 0x42C1984: (within /usr/lib/libstdc++.so.6.0.9)
==8364==    by 0x42C1B36: std::string::string(char const*, std::allocator<char> const&) (in /usr/lib/libstdc++.so.6.0.9)
==8364==    by 0x81A3D86: test_driver::get_srcdir() (testsuite.cc:108)
==8364==    by 0x81A26C2: TestRunner::run_tests(int, char**) (testrunner.cc:183)
==8364==    by 0x8054105: main (apitest.cc:138)
==8364== 
==8364== 
==8364== 137 bytes in 1 blocks are possibly lost in loss record 15 of 16
==8364==    at 0x4023294: operator new(unsigned) (vg_replace_malloc.c:224)
==8364==    by 0x42C0750: std::string::_Rep::_S_create(unsigned, unsigned, std::allocator<char> const&) (in /usr/lib/libstdc++.so.6.0.9)
==8364==    by 0x42C1367: std::string::_Rep::_M_clone(std::allocator<char> const&, unsigned) (in /usr/lib/libstdc++.so.6.0.9)
==8364==    by 0x42C1F77: std::string::reserve(unsigned) (in /usr/lib/libstdc++.so.6.0.9)
==8364==    by 0x42C21A1: std::string::append(char const*, unsigned) (in /usr/lib/libstdc++.so.6.0.9)
==8364==    by 0x81A2358: TestRunner::do_tests_for_backend(BackendManager*) (basic_string.h:827)
==8364==    by 0x81A270C: TestRunner::run_tests(int, char**) (testrunner.cc:185)
==8364==    by 0x8054105: main (apitest.cc:138)
==8364== 
==8364== 
==8364== 525 bytes in 1 blocks are possibly lost in loss record 16 of 16
==8364==    at 0x4023294: operator new(unsigned) (vg_replace_malloc.c:224)
==8364==    by 0x42C0750: std::string::_Rep::_S_create(unsigned, unsigned, std::allocator<char> const&) (in /usr/lib/libstdc++.so.6.0.9)
==8364==    by 0x42C1367: std::string::_Rep::_M_clone(std::allocator<char> const&, unsigned) (in /usr/lib/libstdc++.so.6.0.9)
==8364==    by 0x42C1F77: std::string::reserve(unsigned) (in /usr/lib/libstdc++.so.6.0.9)
==8364==    by 0x42BB372: std::basic_stringbuf<char, std::char_traits<char>, std::allocator<char> >::overflow(int) (in /usr/lib/libstdc++.so.6.0.9)
==8364==    by 0x42BFC8A: std::basic_streambuf<char, std::char_traits<char> >::xsputn(char const*, int) (in /usr/lib/libstdc++.so.6.0.9)
==8364==    by 0x42B638E: std::basic_ostream<char, std::char_traits<char> >& std::__ostream_insert<char, std::char_traits<char> >(std::basic_ostream<char, std::char_traits<char> >&, char const*, int) (in /usr/lib/libstdc++.so.6.0.9)
==8364==    by 0x80E0C33: test_nearsubqueries1() (ostream:517)
==8364==    by 0x81A5126: test_driver::runtest(test_desc const*) (testsuite.cc:248)
==8364==    by 0x81A971D: test_driver::do_run_tests(__gnu_cxx::__normal_iterator<std::string const*, std::vector<std::string, std::allocator<std::string> > >, __gnu_cxx::__normal_iterator<std::string const*, std::vector<std::string, std::allocator<std::string> > >) (testsuite.cc:533)
==8364==    by 0x81A9B96: test_driver::run_tests(__gnu_cxx::__normal_iterator<std::string const*, std::vector<std::string, std::allocator<std::string> > >, __gnu_cxx::__normal_iterator<std::string const*, std::vector<std::string, std::allocator<std::string> > >) (testsuite.cc:496)
==8364==    by 0x81A9BF2: test_driver::run(test_desc const*) (testsuite.cc:708)
==8364== 
==8364== LEAK SUMMARY:
==8364==    definitely lost: 48 bytes in 1 blocks.
==8364==    indirectly lost: 14 bytes in 1 blocks.
==8364==      possibly lost: 867 bytes in 9 blocks.
==8364==    still reachable: 104 bytes in 5 blocks.
==8364==         suppressed: 0 bytes in 0 blocks.
==8364== Reachable blocks (those to which a pointer was found) are not shown.
==8364== To see them, rerun with: --leak-check=full --show-reachable=yes
 Invalid read of size 4
./apitest backend none: 0 tests passed, 1 failed.
Running tests with backend "inmemory"...
Running tests with backend "chert"...
Running tests with backend "flint"...
Running tests with backend "multi_chert"...
Running tests with backend "multi_flint"...
Running tests with backend "remoteprog_chert"...
Running tests with backend "remotetcp_chert"...
Running tests with backend "remoteprog_flint"...
Running tests with backend "remotetcp_flint"...
./apitest total: 0 tests passed, 1 failed.
