[Xapian-discuss] errors with flint database, xapian 1.0.4

Vasiliy Sergeev vasiliy.sergeev at sibers.com
Thu Dec 6 12:36:30 GMT 2007


Olly Betts wrote:
> On Thu, Dec 06, 2007 at 12:20:11PM +0600, Vasiliy Sergeev wrote:
>   
>> I attach log-file from svn version checking.
>>     
>
> Can you run:
>
> cd tests
> ./runtest ./apitest -b flint -v zerodocid1 puncterms1 checkatleast3 valuerange1 sortrel1 adddoc4 emptyterm2
> ./runtest ./apitest -b multi -v zerodocid1 puncterms1 checkatleast3 valuerange1 sortrel1
>
>   
I attached logs of mentioned commands for freshest svn version, jsut 
installed. 111 is for first command and 222 is for the 2nd one.

>> I also was unable 
>> to make a simple test on php5 after installing xapian-core and xapian 
>> php-binding.
>> php simple code that add one document to created Db.
>> <?php
>> include "xapian.php";
>> $_xapianDB = new XapianWritableDatabase("./database", 
>> Xapian::DB_CREATE_OR_OPEN);
>> $xapianDoc = new XapianDocument();
>> $xapianDoc->add_posting('1000',1);//, 100000);
>> $_xapianDB->add_document($xapianDoc);
>> ?>
>>     
>
> So what does this actually do wrong?
>
>   
It cause segmentation fault on the command of adding document to xapian DB.
> Does "make check" on the php subdirectory of "xapian-bindings" report
> any problems?
>
>   
no, it doesn't cause any problem. But in smoketest I see using inmemory 
method to open xapian DB not just Xapian::flint_open....when I open 
xapian DB with XapianWritableDatabase or directly with 
Xapian::flint_open it cause segmentation fault.

Thanks Olly!
Looking forward to your help,
Vaso.
-------------- next part --------------
Running test './apitest -b flint -v zerodocid1 puncterms1 checkatleast3 valuerange1 sortrel1 adddoc4 emptyterm2' under valgrind
Running tests with backend "flint"...
Running test: zerodocid1... ok
Running test: puncterms1... ok
Running test: checkatleast3...
api_anydb.cc:1694: ((mset).size() == (60))
MSet `mset' is not of expected size: was `0' expected `60':
Full mset was:
Xapian::MSet(Xapian::MSet::Internal(firstitem=0, matches_lower_bound=0, matches_estimated=0, matches_upper_bound=0, max_possible=0.81093021621632876972, max_attained=0))

 FAILED
Running test: valuerange1...==27236== 
==27236== Conditional jump or move depends on uninitialised value(s)
==27236==    at 0x3A4DC04DDE: (within /usr/lib64/libz.so.1.2.1.2)
==27236==    by 0x3A4DC05C7F: (within /usr/lib64/libz.so.1.2.1.2)
==27236==    by 0x3A4DC040D1: deflate (in /usr/lib64/libz.so.1.2.1.2)
==27236==    by 0x4ABE665: FlintTable::add(std::string const&, std::string, bool) (flint_table.cc:1081)
==27236==    by 0x4AAF698: FlintRecordTable::replace_record(std::string const&, unsigned) (flint_utils.h:407)
==27236==    by 0x4AA1535: FlintWritableDatabase::add_document_(unsigned, Xapian::Document const&) (flint_database.cc:688)
==27236==    by 0x4AA3CF8: FlintWritableDatabase::add_document(Xapian::Document const&) (flint_database.cc:676)
==27236==    by 0x4A6BE73: Xapian::WritableDatabase::add_document(Xapian::Document const&) (base.h:462)
==27236==    by 0x4BFC3E: BackendManager::index_files_to_database(Xapian::WritableDatabase&, std::vector<std::string, std::allocator<std::string> > const&) (backendmanager.cc:54)
==27236==    by 0x4C06F9: BackendManager::createdb_flint(std::vector<std::string, std::allocator<std::string> > const&) (backendmanager.cc:106)
==27236==    by 0x4CA1B1: BackendManagerFlint::get_database(std::string const&) (new_allocator.h:69)
==27236==    by 0x40ABD6: get_database(std::string const&) (apitest.cc:58)
==27236== searching for pointers to 27 not-freed blocks.
==27236== checked 339,360 bytes.
==27236== 
==27236== 
==27236== 26 bytes in 1 blocks are possibly lost in loss record 2 of 16
==27236==    at 0x4904DB5: operator new(unsigned long) (vg_replace_malloc.c:168)
==27236==    by 0x3A4EF902DD: std::string::_Rep::_S_create(unsigned long, unsigned long, std::allocator<char> const&) (in /usr/lib64/libstdc++.so.6.0.3)
==27236==    by 0x3A4EF9269A: (within /usr/lib64/libstdc++.so.6.0.3)
==27236==    by 0x3A4EF927B2: std::string::string(char const*, std::allocator<char> const&) (in /usr/lib64/libstdc++.so.6.0.3)
==27236==    by 0x4C34F6: test_driver::get_srcdir() (new_allocator.h:62)
==27236==    by 0x40ACB9: main (apitest.cc:111)
==27236== 
==27236== 
==27236== 26 bytes in 1 blocks are possibly lost in loss record 3 of 16
==27236==    at 0x4904DB5: operator new(unsigned long) (vg_replace_malloc.c:168)
==27236==    by 0x3A4EF902DD: std::string::_Rep::_S_create(unsigned long, unsigned long, std::allocator<char> const&) (in /usr/lib64/libstdc++.so.6.0.3)
==27236==    by 0x3A4EF9269A: (within /usr/lib64/libstdc++.so.6.0.3)
==27236==    by 0x3A4EF9284A: std::string::string(char const*, unsigned long, std::allocator<char> const&) (in /usr/lib64/libstdc++.so.6.0.3)
==27236==    by 0x4AA3F4E: _GLOBAL__I__ZN13FlintDatabaseC2ERKSsij (new_allocator.h:62)
==27236==    by 0x4B5C0D5: (within /root/xapian/xapian-core-1.0.4_svn9822/.libs/libxapian.so.15.3.0)
==27236==    by 0x4A64F92: (within /root/xapian/xapian-core-1.0.4_svn9822/.libs/libxapian.so.15.3.0)
==27236== 
==27236== 
==27236== 26 bytes in 1 blocks are possibly lost in loss record 4 of 16
==27236==    at 0x4904DB5: operator new(unsigned long) (vg_replace_malloc.c:168)
==27236==    by 0x3A4EF902DD: std::string::_Rep::_S_create(unsigned long, unsigned long, std::allocator<char> const&) (in /usr/lib64/libstdc++.so.6.0.3)
==27236==    by 0x3A4EF9269A: (within /usr/lib64/libstdc++.so.6.0.3)
==27236==    by 0x3A4EF9284A: std::string::string(char const*, unsigned long, std::allocator<char> const&) (in /usr/lib64/libstdc++.so.6.0.3)
==27236==    by 0x4AFB0BE: _GLOBAL__I__ZNK17QuartzRecordTable10get_recordEj (new_allocator.h:62)
==27236==    by 0x4B5C0D5: (within /root/xapian/xapian-core-1.0.4_svn9822/.libs/libxapian.so.15.3.0)
==27236==    by 0x4A64F92: (within /root/xapian/xapian-core-1.0.4_svn9822/.libs/libxapian.so.15.3.0)
==27236== 
==27236== 
==27236== 30 bytes in 1 blocks are possibly lost in loss record 5 of 16
==27236==    at 0x4904DB5: operator new(unsigned long) (vg_replace_malloc.c:168)
==27236==    by 0x3A4EF902DD: std::string::_Rep::_S_create(unsigned long, unsigned long, std::allocator<char> const&) (in /usr/lib64/libstdc++.so.6.0.3)
==27236==    by 0x3A4EF9269A: (within /usr/lib64/libstdc++.so.6.0.3)
==27236==    by 0x3A4EF927B2: std::string::string(char const*, std::allocator<char> const&) (in /usr/lib64/libstdc++.so.6.0.3)
==27236==    by 0x4C701F: test_driver::parse_command_line(int, char**) (new_allocator.h:62)
==27236==    by 0x40ACB1: main (apitest.cc:109)
==27236== 
==27236== 
==27236== 31 bytes in 1 blocks are possibly lost in loss record 6 of 16
==27236==    at 0x4904DB5: operator new(unsigned long) (vg_replace_malloc.c:168)
==27236==    by 0x3A4EF902DD: std::string::_Rep::_S_create(unsigned long, unsigned long, std::allocator<char> const&) (in /usr/lib64/libstdc++.so.6.0.3)
==27236==    by 0x3A4EF9269A: (within /usr/lib64/libstdc++.so.6.0.3)
==27236==    by 0x3A4EF927B2: std::string::string(char const*, std::allocator<char> const&) (in /usr/lib64/libstdc++.so.6.0.3)
==27236==    by 0x4AF1D39: _GLOBAL__I__ZN14QuartzMetaFile4openEv (new_allocator.h:62)
==27236==    by 0x4B5C0D5: (within /root/xapian/xapian-core-1.0.4_svn9822/.libs/libxapian.so.15.3.0)
==27236==    by 0x4A64F92: (within /root/xapian/xapian-core-1.0.4_svn9822/.libs/libxapian.so.15.3.0)
==27236== 
==27236== 
==27236== 34 bytes in 1 blocks are possibly lost in loss record 7 of 16
==27236==    at 0x4904DB5: operator new(unsigned long) (vg_replace_malloc.c:168)
==27236==    by 0x3A4EF902DD: std::string::_Rep::_S_create(unsigned long, unsigned long, std::allocator<char> const&) (in /usr/lib64/libstdc++.so.6.0.3)
==27236==    by 0x3A4EF909DA: std::string::_M_mutate(unsigned long, unsigned long, unsigned long) (in /usr/lib64/libstdc++.so.6.0.3)
==27236==    by 0x3A4EF90CC1: std::string::assign(char const*, unsigned long) (in /usr/lib64/libstdc++.so.6.0.3)
==27236==    by 0x4C6D36: test_driver::parse_command_line(int, char**) (char_traits.h:258)
==27236==    by 0x40ACB1: main (apitest.cc:109)
==27236== 
==27236== 
==27236== 36 bytes in 1 blocks are possibly lost in loss record 8 of 16
==27236==    at 0x4904DB5: operator new(unsigned long) (vg_replace_malloc.c:168)
==27236==    by 0x3A4EF902DD: std::string::_Rep::_S_create(unsigned long, unsigned long, std::allocator<char> const&) (in /usr/lib64/libstdc++.so.6.0.3)
==27236==    by 0x3A4EF9037B: std::string::_Rep::_M_clone(std::allocator<char> const&, unsigned long) (in /usr/lib64/libstdc++.so.6.0.3)
==27236==    by 0x3A4EF90822: std::string::reserve(unsigned long) (in /usr/lib64/libstdc++.so.6.0.3)
==27236==    by 0x3A4EF90F27: std::string::append(char const*, unsigned long) (in /usr/lib64/libstdc++.so.6.0.3)
==27236==    by 0x40B06F: main (char_traits.h:258)
==27236== 
==27236== 
==27236== 38 bytes in 1 blocks are possibly lost in loss record 9 of 16
==27236==    at 0x4904DB5: operator new(unsigned long) (vg_replace_malloc.c:168)
==27236==    by 0x3A4EF902DD: std::string::_Rep::_S_create(unsigned long, unsigned long, std::allocator<char> const&) (in /usr/lib64/libstdc++.so.6.0.3)
==27236==    by 0x3A4EF9037B: std::string::_Rep::_M_clone(std::allocator<char> const&, unsigned long) (in /usr/lib64/libstdc++.so.6.0.3)
==27236==    by 0x3A4EF90822: std::string::reserve(unsigned long) (in /usr/lib64/libstdc++.so.6.0.3)
==27236==    by 0x3A4EF90F27: std::string::append(char const*, unsigned long) (in /usr/lib64/libstdc++.so.6.0.3)
==27236==    by 0x4C3D71: test_driver::add_command_line_option(std::string const&, char, std::string*) (char_traits.h:258)
==27236==    by 0x40AC8B: main (new_allocator.h:62)
==27236== 
==27236== 
==27236== 244 bytes in 7 blocks are possibly lost in loss record 15 of 16
==27236==    at 0x4904DB5: operator new(unsigned long) (vg_replace_malloc.c:168)
==27236==    by 0x3A4EF902DD: std::string::_Rep::_S_create(unsigned long, unsigned long, std::allocator<char> const&) (in /usr/lib64/libstdc++.so.6.0.3)
==27236==    by 0x3A4EF9269A: (within /usr/lib64/libstdc++.so.6.0.3)
==27236==    by 0x3A4EF927B2: std::string::string(char const*, std::allocator<char> const&) (in /usr/lib64/libstdc++.so.6.0.3)
==27236==    by 0x4C7126: test_driver::parse_command_line(int, char**) (new_allocator.h:62)
==27236==    by 0x40ACB1: main (apitest.cc:109)
==27236== 
==27236== 
==27236== 65,504 bytes in 1 blocks are possibly lost in loss record 16 of 16
==27236==    at 0x4904DB5: operator new(unsigned long) (vg_replace_malloc.c:168)
==27236==    by 0x3A4EF902DD: std::string::_Rep::_S_create(unsigned long, unsigned long, std::allocator<char> const&) (in /usr/lib64/libstdc++.so.6.0.3)
==27236==    by 0x3A4EF9037B: std::string::_Rep::_M_clone(std::allocator<char> const&, unsigned long) (in /usr/lib64/libstdc++.so.6.0.3)
==27236==    by 0x3A4EF90822: std::string::reserve(unsigned long) (in /usr/lib64/libstdc++.so.6.0.3)
==27236==    by 0x3A4EF8CDEE: std::basic_stringbuf<char, std::char_traits<char>, std::allocator<char> >::overflow(int) (in /usr/lib64/libstdc++.so.6.0.3)
==27236==    by 0x3A4EF8E9CE: std::basic_streambuf<char, std::char_traits<char> >::xsputn(char const*, long) (in /usr/lib64/libstdc++.so.6.0.3)
==27236==    by 0x3A4EF85632: std::basic_ostream<char, std::char_traits<char> >& std::operator<< <std::char_traits<char> >(std::basic_ostream<char, std::char_traits<char> >&, char const*) (in /usr/lib64/libstdc++.so.6.0.3)
==27236==    by 0x420F21: test_valuerange1() (ostream.tcc:63)
==27236==    by 0x4C4039: test_driver::runtest(test_desc const*) (testsuite.cc:241)
==27236==    by 0x4C6608: 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:525)
==27236==    by 0x4C6B28: 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:488)
==27236==    by 0x4C6B8A: test_driver::run(test_desc const*) (stl_iterator.h:666)
==27236== 
==27236== LEAK SUMMARY:
==27236==    definitely lost: 0 bytes in 0 blocks.
==27236==      possibly lost: 65,995 bytes in 16 blocks.
==27236==    still reachable: 480 bytes in 11 blocks.
==27236==         suppressed: 0 bytes in 0 blocks.
==27236== Reachable blocks (those to which a pointer was found) are not shown.
==27236== To see them, rerun with: --show-reachable=yes
 Conditional jump or move depends on uninitialised value(s)
Running test: sortrel1...==27236== 
==27236== Conditional jump or move depends on uninitialised value(s)
==27236==    at 0x3A4DC04E0E: (within /usr/lib64/libz.so.1.2.1.2)
==27236==    by 0x3A4DC05C7F: (within /usr/lib64/libz.so.1.2.1.2)
==27236==    by 0x3A4DC040D1: deflate (in /usr/lib64/libz.so.1.2.1.2)
==27236==    by 0x4ABE665: FlintTable::add(std::string const&, std::string, bool) (flint_table.cc:1081)
==27236==    by 0x4AC1B31: FlintTermListTable::set_termlist(unsigned, Xapian::Document const&, unsigned) (flint_utils.h:407)
==27236==    by 0x4AA1997: FlintWritableDatabase::add_document_(unsigned, Xapian::Document const&) (flint_database.cc:740)
==27236==    by 0x4AA3CF8: FlintWritableDatabase::add_document(Xapian::Document const&) (flint_database.cc:676)
==27236==    by 0x4A6BE73: Xapian::WritableDatabase::add_document(Xapian::Document const&) (base.h:462)
==27236==    by 0x4BFC3E: BackendManager::index_files_to_database(Xapian::WritableDatabase&, std::vector<std::string, std::allocator<std::string> > const&) (backendmanager.cc:54)
==27236==    by 0x4C06F9: BackendManager::createdb_flint(std::vector<std::string, std::allocator<std::string> > const&) (backendmanager.cc:106)
==27236==    by 0x4CA1B1: BackendManagerFlint::get_database(std::string const&) (new_allocator.h:69)
==27236==    by 0x40ABD6: get_database(std::string const&) (apitest.cc:58)
==27236== searching for pointers to 27 not-freed blocks.
==27236== checked 339,360 bytes.
==27236== 
==27236== 
==27236== 26 bytes in 1 blocks are possibly lost in loss record 2 of 16
==27236==    at 0x4904DB5: operator new(unsigned long) (vg_replace_malloc.c:168)
==27236==    by 0x3A4EF902DD: std::string::_Rep::_S_create(unsigned long, unsigned long, std::allocator<char> const&) (in /usr/lib64/libstdc++.so.6.0.3)
==27236==    by 0x3A4EF9269A: (within /usr/lib64/libstdc++.so.6.0.3)
==27236==    by 0x3A4EF927B2: std::string::string(char const*, std::allocator<char> const&) (in /usr/lib64/libstdc++.so.6.0.3)
==27236==    by 0x4C34F6: test_driver::get_srcdir() (new_allocator.h:62)
==27236==    by 0x40ACB9: main (apitest.cc:111)
==27236== 
==27236== 
==27236== 26 bytes in 1 blocks are possibly lost in loss record 3 of 16
==27236==    at 0x4904DB5: operator new(unsigned long) (vg_replace_malloc.c:168)
==27236==    by 0x3A4EF902DD: std::string::_Rep::_S_create(unsigned long, unsigned long, std::allocator<char> const&) (in /usr/lib64/libstdc++.so.6.0.3)
==27236==    by 0x3A4EF9269A: (within /usr/lib64/libstdc++.so.6.0.3)
==27236==    by 0x3A4EF9284A: std::string::string(char const*, unsigned long, std::allocator<char> const&) (in /usr/lib64/libstdc++.so.6.0.3)
==27236==    by 0x4AA3F4E: _GLOBAL__I__ZN13FlintDatabaseC2ERKSsij (new_allocator.h:62)
==27236==    by 0x4B5C0D5: (within /root/xapian/xapian-core-1.0.4_svn9822/.libs/libxapian.so.15.3.0)
==27236==    by 0x4A64F92: (within /root/xapian/xapian-core-1.0.4_svn9822/.libs/libxapian.so.15.3.0)
==27236== 
==27236== 
==27236== 26 bytes in 1 blocks are possibly lost in loss record 4 of 16
==27236==    at 0x4904DB5: operator new(unsigned long) (vg_replace_malloc.c:168)
==27236==    by 0x3A4EF902DD: std::string::_Rep::_S_create(unsigned long, unsigned long, std::allocator<char> const&) (in /usr/lib64/libstdc++.so.6.0.3)
==27236==    by 0x3A4EF9269A: (within /usr/lib64/libstdc++.so.6.0.3)
==27236==    by 0x3A4EF9284A: std::string::string(char const*, unsigned long, std::allocator<char> const&) (in /usr/lib64/libstdc++.so.6.0.3)
==27236==    by 0x4AFB0BE: _GLOBAL__I__ZNK17QuartzRecordTable10get_recordEj (new_allocator.h:62)
==27236==    by 0x4B5C0D5: (within /root/xapian/xapian-core-1.0.4_svn9822/.libs/libxapian.so.15.3.0)
==27236==    by 0x4A64F92: (within /root/xapian/xapian-core-1.0.4_svn9822/.libs/libxapian.so.15.3.0)
==27236== 
==27236== 
==27236== 30 bytes in 1 blocks are possibly lost in loss record 5 of 16
==27236==    at 0x4904DB5: operator new(unsigned long) (vg_replace_malloc.c:168)
==27236==    by 0x3A4EF902DD: std::string::_Rep::_S_create(unsigned long, unsigned long, std::allocator<char> const&) (in /usr/lib64/libstdc++.so.6.0.3)
==27236==    by 0x3A4EF9269A: (within /usr/lib64/libstdc++.so.6.0.3)
==27236==    by 0x3A4EF927B2: std::string::string(char const*, std::allocator<char> const&) (in /usr/lib64/libstdc++.so.6.0.3)
==27236==    by 0x4C701F: test_driver::parse_command_line(int, char**) (new_allocator.h:62)
==27236==    by 0x40ACB1: main (apitest.cc:109)
==27236== 
==27236== 
==27236== 31 bytes in 1 blocks are possibly lost in loss record 6 of 16
==27236==    at 0x4904DB5: operator new(unsigned long) (vg_replace_malloc.c:168)
==27236==    by 0x3A4EF902DD: std::string::_Rep::_S_create(unsigned long, unsigned long, std::allocator<char> const&) (in /usr/lib64/libstdc++.so.6.0.3)
==27236==    by 0x3A4EF9269A: (within /usr/lib64/libstdc++.so.6.0.3)
==27236==    by 0x3A4EF927B2: std::string::string(char const*, std::allocator<char> const&) (in /usr/lib64/libstdc++.so.6.0.3)
==27236==    by 0x4AF1D39: _GLOBAL__I__ZN14QuartzMetaFile4openEv (new_allocator.h:62)
==27236==    by 0x4B5C0D5: (within /root/xapian/xapian-core-1.0.4_svn9822/.libs/libxapian.so.15.3.0)
==27236==    by 0x4A64F92: (within /root/xapian/xapian-core-1.0.4_svn9822/.libs/libxapian.so.15.3.0)
==27236== 
==27236== 
==27236== 34 bytes in 1 blocks are possibly lost in loss record 7 of 16
==27236==    at 0x4904DB5: operator new(unsigned long) (vg_replace_malloc.c:168)
==27236==    by 0x3A4EF902DD: std::string::_Rep::_S_create(unsigned long, unsigned long, std::allocator<char> const&) (in /usr/lib64/libstdc++.so.6.0.3)
==27236==    by 0x3A4EF909DA: std::string::_M_mutate(unsigned long, unsigned long, unsigned long) (in /usr/lib64/libstdc++.so.6.0.3)
==27236==    by 0x3A4EF90CC1: std::string::assign(char const*, unsigned long) (in /usr/lib64/libstdc++.so.6.0.3)
==27236==    by 0x4C6D36: test_driver::parse_command_line(int, char**) (char_traits.h:258)
==27236==    by 0x40ACB1: main (apitest.cc:109)
==27236== 
==27236== 
==27236== 36 bytes in 1 blocks are possibly lost in loss record 8 of 16
==27236==    at 0x4904DB5: operator new(unsigned long) (vg_replace_malloc.c:168)
==27236==    by 0x3A4EF902DD: std::string::_Rep::_S_create(unsigned long, unsigned long, std::allocator<char> const&) (in /usr/lib64/libstdc++.so.6.0.3)
==27236==    by 0x3A4EF9037B: std::string::_Rep::_M_clone(std::allocator<char> const&, unsigned long) (in /usr/lib64/libstdc++.so.6.0.3)
==27236==    by 0x3A4EF90822: std::string::reserve(unsigned long) (in /usr/lib64/libstdc++.so.6.0.3)
==27236==    by 0x3A4EF90F27: std::string::append(char const*, unsigned long) (in /usr/lib64/libstdc++.so.6.0.3)
==27236==    by 0x40B06F: main (char_traits.h:258)
==27236== 
==27236== 
==27236== 38 bytes in 1 blocks are possibly lost in loss record 9 of 16
==27236==    at 0x4904DB5: operator new(unsigned long) (vg_replace_malloc.c:168)
==27236==    by 0x3A4EF902DD: std::string::_Rep::_S_create(unsigned long, unsigned long, std::allocator<char> const&) (in /usr/lib64/libstdc++.so.6.0.3)
==27236==    by 0x3A4EF9037B: std::string::_Rep::_M_clone(std::allocator<char> const&, unsigned long) (in /usr/lib64/libstdc++.so.6.0.3)
==27236==    by 0x3A4EF90822: std::string::reserve(unsigned long) (in /usr/lib64/libstdc++.so.6.0.3)
==27236==    by 0x3A4EF90F27: std::string::append(char const*, unsigned long) (in /usr/lib64/libstdc++.so.6.0.3)
==27236==    by 0x4C3D71: test_driver::add_command_line_option(std::string const&, char, std::string*) (char_traits.h:258)
==27236==    by 0x40AC8B: main (new_allocator.h:62)
==27236== 
==27236== 
==27236== 244 bytes in 7 blocks are possibly lost in loss record 15 of 16
==27236==    at 0x4904DB5: operator new(unsigned long) (vg_replace_malloc.c:168)
==27236==    by 0x3A4EF902DD: std::string::_Rep::_S_create(unsigned long, unsigned long, std::allocator<char> const&) (in /usr/lib64/libstdc++.so.6.0.3)
==27236==    by 0x3A4EF9269A: (within /usr/lib64/libstdc++.so.6.0.3)
==27236==    by 0x3A4EF927B2: std::string::string(char const*, std::allocator<char> const&) (in /usr/lib64/libstdc++.so.6.0.3)
==27236==    by 0x4C7126: test_driver::parse_command_line(int, char**) (new_allocator.h:62)
==27236==    by 0x40ACB1: main (apitest.cc:109)
==27236== 
==27236== 
==27236== 65,504 bytes in 1 blocks are possibly lost in loss record 16 of 16
==27236==    at 0x4904DB5: operator new(unsigned long) (vg_replace_malloc.c:168)
==27236==    by 0x3A4EF902DD: std::string::_Rep::_S_create(unsigned long, unsigned long, std::allocator<char> const&) (in /usr/lib64/libstdc++.so.6.0.3)
==27236==    by 0x3A4EF9037B: std::string::_Rep::_M_clone(std::allocator<char> const&, unsigned long) (in /usr/lib64/libstdc++.so.6.0.3)
==27236==    by 0x3A4EF90822: std::string::reserve(unsigned long) (in /usr/lib64/libstdc++.so.6.0.3)
==27236==    by 0x3A4EF8CDEE: std::basic_stringbuf<char, std::char_traits<char>, std::allocator<char> >::overflow(int) (in /usr/lib64/libstdc++.so.6.0.3)
==27236==    by 0x3A4EF8E9CE: std::basic_streambuf<char, std::char_traits<char> >::xsputn(char const*, long) (in /usr/lib64/libstdc++.so.6.0.3)
==27236==    by 0x3A4EF85632: std::basic_ostream<char, std::char_traits<char> >& std::operator<< <std::char_traits<char> >(std::basic_ostream<char, std::char_traits<char> >&, char const*) (in /usr/lib64/libstdc++.so.6.0.3)
==27236==    by 0x420F21: test_valuerange1() (ostream.tcc:63)
==27236==    by 0x4C4039: test_driver::runtest(test_desc const*) (testsuite.cc:241)
==27236==    by 0x4C6608: 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:525)
==27236==    by 0x4C6B28: 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:488)
==27236==    by 0x4C6B8A: test_driver::run(test_desc const*) (stl_iterator.h:666)
==27236== 
==27236== LEAK SUMMARY:
==27236==    definitely lost: 0 bytes in 0 blocks.
==27236==      possibly lost: 65,995 bytes in 16 blocks.
==27236==    still reachable: 480 bytes in 11 blocks.
==27236==         suppressed: 0 bytes in 0 blocks.
==27236== Reachable blocks (those to which a pointer was found) are not shown.
==27236== To see them, rerun with: --show-reachable=yes
 Conditional jump or move depends on uninitialised value(s)
./apitest completed test run: 2 tests passed, 3 failed.
Running test: adddoc4...==27236== searching for pointers to 28 not-freed blocks.
==27236== checked 338,376 bytes.
==27236== 
==27236== 
==27236== 26 bytes in 1 blocks are possibly lost in loss record 2 of 17
==27236==    at 0x4904DB5: operator new(unsigned long) (vg_replace_malloc.c:168)
==27236==    by 0x3A4EF902DD: std::string::_Rep::_S_create(unsigned long, unsigned long, std::allocator<char> const&) (in /usr/lib64/libstdc++.so.6.0.3)
==27236==    by 0x3A4EF9269A: (within /usr/lib64/libstdc++.so.6.0.3)
==27236==    by 0x3A4EF927B2: std::string::string(char const*, std::allocator<char> const&) (in /usr/lib64/libstdc++.so.6.0.3)
==27236==    by 0x4C34F6: test_driver::get_srcdir() (new_allocator.h:62)
==27236==    by 0x40ACB9: main (apitest.cc:111)
==27236== 
==27236== 
==27236== 26 bytes in 1 blocks are possibly lost in loss record 3 of 17
==27236==    at 0x4904DB5: operator new(unsigned long) (vg_replace_malloc.c:168)
==27236==    by 0x3A4EF902DD: std::string::_Rep::_S_create(unsigned long, unsigned long, std::allocator<char> const&) (in /usr/lib64/libstdc++.so.6.0.3)
==27236==    by 0x3A4EF9269A: (within /usr/lib64/libstdc++.so.6.0.3)
==27236==    by 0x3A4EF9284A: std::string::string(char const*, unsigned long, std::allocator<char> const&) (in /usr/lib64/libstdc++.so.6.0.3)
==27236==    by 0x4AA3F4E: _GLOBAL__I__ZN13FlintDatabaseC2ERKSsij (new_allocator.h:62)
==27236==    by 0x4B5C0D5: (within /root/xapian/xapian-core-1.0.4_svn9822/.libs/libxapian.so.15.3.0)
==27236==    by 0x4A64F92: (within /root/xapian/xapian-core-1.0.4_svn9822/.libs/libxapian.so.15.3.0)
==27236== 
==27236== 
==27236== 26 bytes in 1 blocks are possibly lost in loss record 4 of 17
==27236==    at 0x4904DB5: operator new(unsigned long) (vg_replace_malloc.c:168)
==27236==    by 0x3A4EF902DD: std::string::_Rep::_S_create(unsigned long, unsigned long, std::allocator<char> const&) (in /usr/lib64/libstdc++.so.6.0.3)
==27236==    by 0x3A4EF9269A: (within /usr/lib64/libstdc++.so.6.0.3)
==27236==    by 0x3A4EF9284A: std::string::string(char const*, unsigned long, std::allocator<char> const&) (in /usr/lib64/libstdc++.so.6.0.3)
==27236==    by 0x4AFB0BE: _GLOBAL__I__ZNK17QuartzRecordTable10get_recordEj (new_allocator.h:62)
==27236==    by 0x4B5C0D5: (within /root/xapian/xapian-core-1.0.4_svn9822/.libs/libxapian.so.15.3.0)
==27236==    by 0x4A64F92: (within /root/xapian/xapian-core-1.0.4_svn9822/.libs/libxapian.so.15.3.0)
==27236== 
==27236== 
==27236== 28 bytes in 1 blocks are possibly lost in loss record 5 of 17
==27236==    at 0x4904DB5: operator new(unsigned long) (vg_replace_malloc.c:168)
==27236==    by 0x3A4EF902DD: std::string::_Rep::_S_create(unsigned long, unsigned long, std::allocator<char> const&) (in /usr/lib64/libstdc++.so.6.0.3)
==27236==    by 0x3A4EF9269A: (within /usr/lib64/libstdc++.so.6.0.3)
==27236==    by 0x3A4EF927B2: std::string::string(char const*, std::allocator<char> const&) (in /usr/lib64/libstdc++.so.6.0.3)
==27236==    by 0x40C29F: get_writable_database(std::string const&) (new_allocator.h:62)
==27236==    by 0x4AD61E: test_adddoc4() (new_allocator.h:62)
==27236==    by 0x4C4039: test_driver::runtest(test_desc const*) (testsuite.cc:241)
==27236==    by 0x4C6608: 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:525)
==27236==    by 0x4C6B28: 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:488)
==27236==    by 0x4C6B8A: test_driver::run(test_desc const*) (stl_iterator.h:666)
==27236==    by 0x40B276: main (stl_algobase.h:173)
==27236== 
==27236== 
==27236== 30 bytes in 1 blocks are possibly lost in loss record 6 of 17
==27236==    at 0x4904DB5: operator new(unsigned long) (vg_replace_malloc.c:168)
==27236==    by 0x3A4EF902DD: std::string::_Rep::_S_create(unsigned long, unsigned long, std::allocator<char> const&) (in /usr/lib64/libstdc++.so.6.0.3)
==27236==    by 0x3A4EF9269A: (within /usr/lib64/libstdc++.so.6.0.3)
==27236==    by 0x3A4EF927B2: std::string::string(char const*, std::allocator<char> const&) (in /usr/lib64/libstdc++.so.6.0.3)
==27236==    by 0x4C701F: test_driver::parse_command_line(int, char**) (new_allocator.h:62)
==27236==    by 0x40ACB1: main (apitest.cc:109)
==27236== 
==27236== 
==27236== 31 bytes in 1 blocks are possibly lost in loss record 7 of 17
==27236==    at 0x4904DB5: operator new(unsigned long) (vg_replace_malloc.c:168)
==27236==    by 0x3A4EF902DD: std::string::_Rep::_S_create(unsigned long, unsigned long, std::allocator<char> const&) (in /usr/lib64/libstdc++.so.6.0.3)
==27236==    by 0x3A4EF9269A: (within /usr/lib64/libstdc++.so.6.0.3)
==27236==    by 0x3A4EF927B2: std::string::string(char const*, std::allocator<char> const&) (in /usr/lib64/libstdc++.so.6.0.3)
==27236==    by 0x4AF1D39: _GLOBAL__I__ZN14QuartzMetaFile4openEv (new_allocator.h:62)
==27236==    by 0x4B5C0D5: (within /root/xapian/xapian-core-1.0.4_svn9822/.libs/libxapian.so.15.3.0)
==27236==    by 0x4A64F92: (within /root/xapian/xapian-core-1.0.4_svn9822/.libs/libxapian.so.15.3.0)
==27236== 
==27236== 
==27236== 34 bytes in 1 blocks are possibly lost in loss record 8 of 17
==27236==    at 0x4904DB5: operator new(unsigned long) (vg_replace_malloc.c:168)
==27236==    by 0x3A4EF902DD: std::string::_Rep::_S_create(unsigned long, unsigned long, std::allocator<char> const&) (in /usr/lib64/libstdc++.so.6.0.3)
==27236==    by 0x3A4EF909DA: std::string::_M_mutate(unsigned long, unsigned long, unsigned long) (in /usr/lib64/libstdc++.so.6.0.3)
==27236==    by 0x3A4EF90CC1: std::string::assign(char const*, unsigned long) (in /usr/lib64/libstdc++.so.6.0.3)
==27236==    by 0x4C6D36: test_driver::parse_command_line(int, char**) (char_traits.h:258)
==27236==    by 0x40ACB1: main (apitest.cc:109)
==27236== 
==27236== 
==27236== 36 bytes in 1 blocks are possibly lost in loss record 9 of 17
==27236==    at 0x4904DB5: operator new(unsigned long) (vg_replace_malloc.c:168)
==27236==    by 0x3A4EF902DD: std::string::_Rep::_S_create(unsigned long, unsigned long, std::allocator<char> const&) (in /usr/lib64/libstdc++.so.6.0.3)
==27236==    by 0x3A4EF9037B: std::string::_Rep::_M_clone(std::allocator<char> const&, unsigned long) (in /usr/lib64/libstdc++.so.6.0.3)
==27236==    by 0x3A4EF90822: std::string::reserve(unsigned long) (in /usr/lib64/libstdc++.so.6.0.3)
==27236==    by 0x3A4EF90F27: std::string::append(char const*, unsigned long) (in /usr/lib64/libstdc++.so.6.0.3)
==27236==    by 0x40B06F: main (char_traits.h:258)
==27236== 
==27236== 
==27236== 38 bytes in 1 blocks are possibly lost in loss record 10 of 17
==27236==    at 0x4904DB5: operator new(unsigned long) (vg_replace_malloc.c:168)
==27236==    by 0x3A4EF902DD: std::string::_Rep::_S_create(unsigned long, unsigned long, std::allocator<char> const&) (in /usr/lib64/libstdc++.so.6.0.3)
==27236==    by 0x3A4EF9037B: std::string::_Rep::_M_clone(std::allocator<char> const&, unsigned long) (in /usr/lib64/libstdc++.so.6.0.3)
==27236==    by 0x3A4EF90822: std::string::reserve(unsigned long) (in /usr/lib64/libstdc++.so.6.0.3)
==27236==    by 0x3A4EF90F27: std::string::append(char const*, unsigned long) (in /usr/lib64/libstdc++.so.6.0.3)
==27236==    by 0x4C3D71: test_driver::add_command_line_option(std::string const&, char, std::string*) (char_traits.h:258)
==27236==    by 0x40AC8B: main (new_allocator.h:62)
==27236== 
==27236== 
==27236== 244 bytes in 7 blocks are possibly lost in loss record 16 of 17
==27236==    at 0x4904DB5: operator new(unsigned long) (vg_replace_malloc.c:168)
==27236==    by 0x3A4EF902DD: std::string::_Rep::_S_create(unsigned long, unsigned long, std::allocator<char> const&) (in /usr/lib64/libstdc++.so.6.0.3)
==27236==    by 0x3A4EF9269A: (within /usr/lib64/libstdc++.so.6.0.3)
==27236==    by 0x3A4EF927B2: std::string::string(char const*, std::allocator<char> const&) (in /usr/lib64/libstdc++.so.6.0.3)
==27236==    by 0x4C7126: test_driver::parse_command_line(int, char**) (new_allocator.h:62)
==27236==    by 0x40ACB1: main (apitest.cc:109)
==27236== 
==27236== 
==27236== 65,504 bytes in 1 blocks are possibly lost in loss record 17 of 17
==27236==    at 0x4904DB5: operator new(unsigned long) (vg_replace_malloc.c:168)
==27236==    by 0x3A4EF902DD: std::string::_Rep::_S_create(unsigned long, unsigned long, std::allocator<char> const&) (in /usr/lib64/libstdc++.so.6.0.3)
==27236==    by 0x3A4EF9037B: std::string::_Rep::_M_clone(std::allocator<char> const&, unsigned long) (in /usr/lib64/libstdc++.so.6.0.3)
==27236==    by 0x3A4EF90822: std::string::reserve(unsigned long) (in /usr/lib64/libstdc++.so.6.0.3)
==27236==    by 0x3A4EF8CDEE: std::basic_stringbuf<char, std::char_traits<char>, std::allocator<char> >::overflow(int) (in /usr/lib64/libstdc++.so.6.0.3)
==27236==    by 0x3A4EF8E9CE: std::basic_streambuf<char, std::char_traits<char> >::xsputn(char const*, long) (in /usr/lib64/libstdc++.so.6.0.3)
==27236==    by 0x3A4EF85632: std::basic_ostream<char, std::char_traits<char> >& std::operator<< <std::char_traits<char> >(std::basic_ostream<char, std::char_traits<char> >&, char const*) (in /usr/lib64/libstdc++.so.6.0.3)
==27236==    by 0x420F21: test_valuerange1() (ostream.tcc:63)
==27236==    by 0x4C4039: test_driver::runtest(test_desc const*) (testsuite.cc:241)
==27236==    by 0x4C6608: 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:525)
==27236==    by 0x4C6B28: 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:488)
==27236==    by 0x4C6B8A: test_driver::run(test_desc const*) (stl_iterator.h:666)
==27236== 
==27236== LEAK SUMMARY:
==27236==    definitely lost: 0 bytes in 0 blocks.
==27236==      possibly lost: 66,023 bytes in 17 blocks.
==27236==    still reachable: 480 bytes in 11 blocks.
==27236==         suppressed: 0 bytes in 0 blocks.
==27236== Reachable blocks (those to which a pointer was found) are not shown.
==27236== To see them, rerun with: --show-reachable=yes
 VALGRIND DETECTED A PROBLEM
Running test: emptyterm2...==27236== searching for pointers to 28 not-freed blocks.
==27236== checked 338,136 bytes.
==27236== 
==27236== 
==27236== 26 bytes in 1 blocks are possibly lost in loss record 2 of 17
==27236==    at 0x4904DB5: operator new(unsigned long) (vg_replace_malloc.c:168)
==27236==    by 0x3A4EF902DD: std::string::_Rep::_S_create(unsigned long, unsigned long, std::allocator<char> const&) (in /usr/lib64/libstdc++.so.6.0.3)
==27236==    by 0x3A4EF9269A: (within /usr/lib64/libstdc++.so.6.0.3)
==27236==    by 0x3A4EF927B2: std::string::string(char const*, std::allocator<char> const&) (in /usr/lib64/libstdc++.so.6.0.3)
==27236==    by 0x4C34F6: test_driver::get_srcdir() (new_allocator.h:62)
==27236==    by 0x40ACB9: main (apitest.cc:111)
==27236== 
==27236== 
==27236== 26 bytes in 1 blocks are possibly lost in loss record 3 of 17
==27236==    at 0x4904DB5: operator new(unsigned long) (vg_replace_malloc.c:168)
==27236==    by 0x3A4EF902DD: std::string::_Rep::_S_create(unsigned long, unsigned long, std::allocator<char> const&) (in /usr/lib64/libstdc++.so.6.0.3)
==27236==    by 0x3A4EF9269A: (within /usr/lib64/libstdc++.so.6.0.3)
==27236==    by 0x3A4EF9284A: std::string::string(char const*, unsigned long, std::allocator<char> const&) (in /usr/lib64/libstdc++.so.6.0.3)
==27236==    by 0x4AA3F4E: _GLOBAL__I__ZN13FlintDatabaseC2ERKSsij (new_allocator.h:62)
==27236==    by 0x4B5C0D5: (within /root/xapian/xapian-core-1.0.4_svn9822/.libs/libxapian.so.15.3.0)
==27236==    by 0x4A64F92: (within /root/xapian/xapian-core-1.0.4_svn9822/.libs/libxapian.so.15.3.0)
==27236== 
==27236== 
==27236== 26 bytes in 1 blocks are possibly lost in loss record 4 of 17
==27236==    at 0x4904DB5: operator new(unsigned long) (vg_replace_malloc.c:168)
==27236==    by 0x3A4EF902DD: std::string::_Rep::_S_create(unsigned long, unsigned long, std::allocator<char> const&) (in /usr/lib64/libstdc++.so.6.0.3)
==27236==    by 0x3A4EF9269A: (within /usr/lib64/libstdc++.so.6.0.3)
==27236==    by 0x3A4EF9284A: std::string::string(char const*, unsigned long, std::allocator<char> const&) (in /usr/lib64/libstdc++.so.6.0.3)
==27236==    by 0x4AFB0BE: _GLOBAL__I__ZNK17QuartzRecordTable10get_recordEj (new_allocator.h:62)
==27236==    by 0x4B5C0D5: (within /root/xapian/xapian-core-1.0.4_svn9822/.libs/libxapian.so.15.3.0)
==27236==    by 0x4A64F92: (within /root/xapian/xapian-core-1.0.4_svn9822/.libs/libxapian.so.15.3.0)
==27236== 
==27236== 
==27236== 28 bytes in 1 blocks are possibly lost in loss record 5 of 17
==27236==    at 0x4904DB5: operator new(unsigned long) (vg_replace_malloc.c:168)
==27236==    by 0x3A4EF902DD: std::string::_Rep::_S_create(unsigned long, unsigned long, std::allocator<char> const&) (in /usr/lib64/libstdc++.so.6.0.3)
==27236==    by 0x3A4EF9269A: (within /usr/lib64/libstdc++.so.6.0.3)
==27236==    by 0x3A4EF927B2: std::string::string(char const*, std::allocator<char> const&) (in /usr/lib64/libstdc++.so.6.0.3)
==27236==    by 0x40C29F: get_writable_database(std::string const&) (new_allocator.h:62)
==27236==    by 0x490FE0: test_emptyterm2() (new_allocator.h:62)
==27236==    by 0x4C4039: test_driver::runtest(test_desc const*) (testsuite.cc:241)
==27236==    by 0x4C6608: 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:525)
==27236==    by 0x4C6B28: 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:488)
==27236==    by 0x4C6B8A: test_driver::run(test_desc const*) (stl_iterator.h:666)
==27236==    by 0x40B276: main (stl_algobase.h:173)
==27236== 
==27236== 
==27236== 30 bytes in 1 blocks are possibly lost in loss record 6 of 17
==27236==    at 0x4904DB5: operator new(unsigned long) (vg_replace_malloc.c:168)
==27236==    by 0x3A4EF902DD: std::string::_Rep::_S_create(unsigned long, unsigned long, std::allocator<char> const&) (in /usr/lib64/libstdc++.so.6.0.3)
==27236==    by 0x3A4EF9269A: (within /usr/lib64/libstdc++.so.6.0.3)
==27236==    by 0x3A4EF927B2: std::string::string(char const*, std::allocator<char> const&) (in /usr/lib64/libstdc++.so.6.0.3)
==27236==    by 0x4C701F: test_driver::parse_command_line(int, char**) (new_allocator.h:62)
==27236==    by 0x40ACB1: main (apitest.cc:109)
==27236== 
==27236== 
==27236== 31 bytes in 1 blocks are possibly lost in loss record 7 of 17
==27236==    at 0x4904DB5: operator new(unsigned long) (vg_replace_malloc.c:168)
==27236==    by 0x3A4EF902DD: std::string::_Rep::_S_create(unsigned long, unsigned long, std::allocator<char> const&) (in /usr/lib64/libstdc++.so.6.0.3)
==27236==    by 0x3A4EF9269A: (within /usr/lib64/libstdc++.so.6.0.3)
==27236==    by 0x3A4EF927B2: std::string::string(char const*, std::allocator<char> const&) (in /usr/lib64/libstdc++.so.6.0.3)
==27236==    by 0x4AF1D39: _GLOBAL__I__ZN14QuartzMetaFile4openEv (new_allocator.h:62)
==27236==    by 0x4B5C0D5: (within /root/xapian/xapian-core-1.0.4_svn9822/.libs/libxapian.so.15.3.0)
==27236==    by 0x4A64F92: (within /root/xapian/xapian-core-1.0.4_svn9822/.libs/libxapian.so.15.3.0)
==27236== 
==27236== 
==27236== 34 bytes in 1 blocks are possibly lost in loss record 8 of 17
==27236==    at 0x4904DB5: operator new(unsigned long) (vg_replace_malloc.c:168)
==27236==    by 0x3A4EF902DD: std::string::_Rep::_S_create(unsigned long, unsigned long, std::allocator<char> const&) (in /usr/lib64/libstdc++.so.6.0.3)
==27236==    by 0x3A4EF909DA: std::string::_M_mutate(unsigned long, unsigned long, unsigned long) (in /usr/lib64/libstdc++.so.6.0.3)
==27236==    by 0x3A4EF90CC1: std::string::assign(char const*, unsigned long) (in /usr/lib64/libstdc++.so.6.0.3)
==27236==    by 0x4C6D36: test_driver::parse_command_line(int, char**) (char_traits.h:258)
==27236==    by 0x40ACB1: main (apitest.cc:109)
==27236== 
==27236== 
==27236== 36 bytes in 1 blocks are possibly lost in loss record 9 of 17
==27236==    at 0x4904DB5: operator new(unsigned long) (vg_replace_malloc.c:168)
==27236==    by 0x3A4EF902DD: std::string::_Rep::_S_create(unsigned long, unsigned long, std::allocator<char> const&) (in /usr/lib64/libstdc++.so.6.0.3)
==27236==    by 0x3A4EF9037B: std::string::_Rep::_M_clone(std::allocator<char> const&, unsigned long) (in /usr/lib64/libstdc++.so.6.0.3)
==27236==    by 0x3A4EF90822: std::string::reserve(unsigned long) (in /usr/lib64/libstdc++.so.6.0.3)
==27236==    by 0x3A4EF90F27: std::string::append(char const*, unsigned long) (in /usr/lib64/libstdc++.so.6.0.3)
==27236==    by 0x40B06F: main (char_traits.h:258)
==27236== 
==27236== 
==27236== 38 bytes in 1 blocks are possibly lost in loss record 10 of 17
==27236==    at 0x4904DB5: operator new(unsigned long) (vg_replace_malloc.c:168)
==27236==    by 0x3A4EF902DD: std::string::_Rep::_S_create(unsigned long, unsigned long, std::allocator<char> const&) (in /usr/lib64/libstdc++.so.6.0.3)
==27236==    by 0x3A4EF9037B: std::string::_Rep::_M_clone(std::allocator<char> const&, unsigned long) (in /usr/lib64/libstdc++.so.6.0.3)
==27236==    by 0x3A4EF90822: std::string::reserve(unsigned long) (in /usr/lib64/libstdc++.so.6.0.3)
==27236==    by 0x3A4EF90F27: std::string::append(char const*, unsigned long) (in /usr/lib64/libstdc++.so.6.0.3)
==27236==    by 0x4C3D71: test_driver::add_command_line_option(std::string const&, char, std::string*) (char_traits.h:258)
==27236==    by 0x40AC8B: main (new_allocator.h:62)
==27236== 
==27236== 
==27236== 244 bytes in 7 blocks are possibly lost in loss record 16 of 17
==27236==    at 0x4904DB5: operator new(unsigned long) (vg_replace_malloc.c:168)
==27236==    by 0x3A4EF902DD: std::string::_Rep::_S_create(unsigned long, unsigned long, std::allocator<char> const&) (in /usr/lib64/libstdc++.so.6.0.3)
==27236==    by 0x3A4EF9269A: (within /usr/lib64/libstdc++.so.6.0.3)
==27236==    by 0x3A4EF927B2: std::string::string(char const*, std::allocator<char> const&) (in /usr/lib64/libstdc++.so.6.0.3)
==27236==    by 0x4C7126: test_driver::parse_command_line(int, char**) (new_allocator.h:62)
==27236==    by 0x40ACB1: main (apitest.cc:109)
==27236== 
==27236== 
==27236== 65,504 bytes in 1 blocks are possibly lost in loss record 17 of 17
==27236==    at 0x4904DB5: operator new(unsigned long) (vg_replace_malloc.c:168)
==27236==    by 0x3A4EF902DD: std::string::_Rep::_S_create(unsigned long, unsigned long, std::allocator<char> const&) (in /usr/lib64/libstdc++.so.6.0.3)
==27236==    by 0x3A4EF9037B: std::string::_Rep::_M_clone(std::allocator<char> const&, unsigned long) (in /usr/lib64/libstdc++.so.6.0.3)
==27236==    by 0x3A4EF90822: std::string::reserve(unsigned long) (in /usr/lib64/libstdc++.so.6.0.3)
==27236==    by 0x3A4EF8CDEE: std::basic_stringbuf<char, std::char_traits<char>, std::allocator<char> >::overflow(int) (in /usr/lib64/libstdc++.so.6.0.3)
==27236==    by 0x3A4EF8E9CE: std::basic_streambuf<char, std::char_traits<char> >::xsputn(char const*, long) (in /usr/lib64/libstdc++.so.6.0.3)
==27236==    by 0x3A4EF85632: std::basic_ostream<char, std::char_traits<char> >& std::operator<< <std::char_traits<char> >(std::basic_ostream<char, std::char_traits<char> >&, char const*) (in /usr/lib64/libstdc++.so.6.0.3)
==27236==    by 0x420F21: test_valuerange1() (ostream.tcc:63)
==27236==    by 0x4C4039: test_driver::runtest(test_desc const*) (testsuite.cc:241)
==27236==    by 0x4C6608: 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:525)
==27236==    by 0x4C6B28: 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:488)
==27236==    by 0x4C6B8A: test_driver::run(test_desc const*) (stl_iterator.h:666)
==27236== 
==27236== LEAK SUMMARY:
==27236==    definitely lost: 0 bytes in 0 blocks.
==27236==      possibly lost: 66,023 bytes in 17 blocks.
==27236==    still reachable: 480 bytes in 11 blocks.
==27236==         suppressed: 0 bytes in 0 blocks.
==27236== Reachable blocks (those to which a pointer was found) are not shown.
==27236== To see them, rerun with: --show-reachable=yes
 VALGRIND DETECTED A PROBLEM
./apitest completed test run: 0 tests passed, 2 failed.
./apitest total: 2 tests passed, 5 failed.
-------------- next part --------------
Running test './apitest -b multi -v zerodocid1 puncterms1 checkatleast3 valuerange1 sortrel1' under valgrind
Running tests with backend "multi"...
Running test: zerodocid1...==28202== 
==28202== Conditional jump or move depends on uninitialised value(s)
==28202==    at 0x3A4DC04DDE: (within /usr/lib64/libz.so.1.2.1.2)
==28202==    by 0x3A4DC05C7F: (within /usr/lib64/libz.so.1.2.1.2)
==28202==    by 0x3A4DC040D1: deflate (in /usr/lib64/libz.so.1.2.1.2)
==28202==    by 0x4ABE665: FlintTable::add(std::string const&, std::string, bool) (flint_table.cc:1081)
==28202==    by 0x4AAF698: FlintRecordTable::replace_record(std::string const&, unsigned) (flint_utils.h:407)
==28202==    by 0x4AA1535: FlintWritableDatabase::add_document_(unsigned, Xapian::Document const&) (flint_database.cc:688)
==28202==    by 0x4AA3CF8: FlintWritableDatabase::add_document(Xapian::Document const&) (flint_database.cc:676)
==28202==    by 0x4A6BE73: Xapian::WritableDatabase::add_document(Xapian::Document const&) (base.h:462)
==28202==    by 0x4C1235: BackendManagerMulti::createdb_multi(std::vector<std::string, std::allocator<std::string> > const&) (backendmanager_multi.cc:90)
==28202==    by 0x4C1972: BackendManagerMulti::get_database(std::vector<std::string, std::allocator<std::string> > const&) (backendmanager_multi.cc:102)
==28202==    by 0x4C1A9D: BackendManagerMulti::get_database(std::string const&) (new_allocator.h:69)
==28202==    by 0x40ABD6: get_database(std::string const&) (apitest.cc:58)
==28202== searching for pointers to 22 not-freed blocks.
==28202== checked 295,048 bytes.
==28202== 
==28202== 
==28202== 26 bytes in 1 blocks are possibly lost in loss record 2 of 15
==28202==    at 0x4904DB5: operator new(unsigned long) (vg_replace_malloc.c:168)
==28202==    by 0x3A4EF902DD: std::string::_Rep::_S_create(unsigned long, unsigned long, std::allocator<char> const&) (in /usr/lib64/libstdc++.so.6.0.3)
==28202==    by 0x3A4EF9269A: (within /usr/lib64/libstdc++.so.6.0.3)
==28202==    by 0x3A4EF927B2: std::string::string(char const*, std::allocator<char> const&) (in /usr/lib64/libstdc++.so.6.0.3)
==28202==    by 0x4C34F6: test_driver::get_srcdir() (new_allocator.h:62)
==28202==    by 0x40ACB9: main (apitest.cc:111)
==28202== 
==28202== 
==28202== 26 bytes in 1 blocks are possibly lost in loss record 3 of 15
==28202==    at 0x4904DB5: operator new(unsigned long) (vg_replace_malloc.c:168)
==28202==    by 0x3A4EF902DD: std::string::_Rep::_S_create(unsigned long, unsigned long, std::allocator<char> const&) (in /usr/lib64/libstdc++.so.6.0.3)
==28202==    by 0x3A4EF9269A: (within /usr/lib64/libstdc++.so.6.0.3)
==28202==    by 0x3A4EF9284A: std::string::string(char const*, unsigned long, std::allocator<char> const&) (in /usr/lib64/libstdc++.so.6.0.3)
==28202==    by 0x4AA3F4E: _GLOBAL__I__ZN13FlintDatabaseC2ERKSsij (new_allocator.h:62)
==28202==    by 0x4B5C0D5: (within /root/xapian/xapian-core-1.0.4_svn9822/.libs/libxapian.so.15.3.0)
==28202==    by 0x4A64F92: (within /root/xapian/xapian-core-1.0.4_svn9822/.libs/libxapian.so.15.3.0)
==28202== 
==28202== 
==28202== 26 bytes in 1 blocks are possibly lost in loss record 4 of 15
==28202==    at 0x4904DB5: operator new(unsigned long) (vg_replace_malloc.c:168)
==28202==    by 0x3A4EF902DD: std::string::_Rep::_S_create(unsigned long, unsigned long, std::allocator<char> const&) (in /usr/lib64/libstdc++.so.6.0.3)
==28202==    by 0x3A4EF9269A: (within /usr/lib64/libstdc++.so.6.0.3)
==28202==    by 0x3A4EF9284A: std::string::string(char const*, unsigned long, std::allocator<char> const&) (in /usr/lib64/libstdc++.so.6.0.3)
==28202==    by 0x4AFB0BE: _GLOBAL__I__ZNK17QuartzRecordTable10get_recordEj (new_allocator.h:62)
==28202==    by 0x4B5C0D5: (within /root/xapian/xapian-core-1.0.4_svn9822/.libs/libxapian.so.15.3.0)
==28202==    by 0x4A64F92: (within /root/xapian/xapian-core-1.0.4_svn9822/.libs/libxapian.so.15.3.0)
==28202== 
==28202== 
==28202== 30 bytes in 1 blocks are possibly lost in loss record 5 of 15
==28202==    at 0x4904DB5: operator new(unsigned long) (vg_replace_malloc.c:168)
==28202==    by 0x3A4EF902DD: std::string::_Rep::_S_create(unsigned long, unsigned long, std::allocator<char> const&) (in /usr/lib64/libstdc++.so.6.0.3)
==28202==    by 0x3A4EF9269A: (within /usr/lib64/libstdc++.so.6.0.3)
==28202==    by 0x3A4EF927B2: std::string::string(char const*, std::allocator<char> const&) (in /usr/lib64/libstdc++.so.6.0.3)
==28202==    by 0x4C701F: test_driver::parse_command_line(int, char**) (new_allocator.h:62)
==28202==    by 0x40ACB1: main (apitest.cc:109)
==28202== 
==28202== 
==28202== 31 bytes in 1 blocks are possibly lost in loss record 6 of 15
==28202==    at 0x4904DB5: operator new(unsigned long) (vg_replace_malloc.c:168)
==28202==    by 0x3A4EF902DD: std::string::_Rep::_S_create(unsigned long, unsigned long, std::allocator<char> const&) (in /usr/lib64/libstdc++.so.6.0.3)
==28202==    by 0x3A4EF9269A: (within /usr/lib64/libstdc++.so.6.0.3)
==28202==    by 0x3A4EF927B2: std::string::string(char const*, std::allocator<char> const&) (in /usr/lib64/libstdc++.so.6.0.3)
==28202==    by 0x4AF1D39: _GLOBAL__I__ZN14QuartzMetaFile4openEv (new_allocator.h:62)
==28202==    by 0x4B5C0D5: (within /root/xapian/xapian-core-1.0.4_svn9822/.libs/libxapian.so.15.3.0)
==28202==    by 0x4A64F92: (within /root/xapian/xapian-core-1.0.4_svn9822/.libs/libxapian.so.15.3.0)
==28202== 
==28202== 
==28202== 34 bytes in 1 blocks are possibly lost in loss record 7 of 15
==28202==    at 0x4904DB5: operator new(unsigned long) (vg_replace_malloc.c:168)
==28202==    by 0x3A4EF902DD: std::string::_Rep::_S_create(unsigned long, unsigned long, std::allocator<char> const&) (in /usr/lib64/libstdc++.so.6.0.3)
==28202==    by 0x3A4EF909DA: std::string::_M_mutate(unsigned long, unsigned long, unsigned long) (in /usr/lib64/libstdc++.so.6.0.3)
==28202==    by 0x3A4EF90CC1: std::string::assign(char const*, unsigned long) (in /usr/lib64/libstdc++.so.6.0.3)
==28202==    by 0x4C6D36: test_driver::parse_command_line(int, char**) (char_traits.h:258)
==28202==    by 0x40ACB1: main (apitest.cc:109)
==28202== 
==28202== 
==28202== 36 bytes in 1 blocks are possibly lost in loss record 8 of 15
==28202==    at 0x4904DB5: operator new(unsigned long) (vg_replace_malloc.c:168)
==28202==    by 0x3A4EF902DD: std::string::_Rep::_S_create(unsigned long, unsigned long, std::allocator<char> const&) (in /usr/lib64/libstdc++.so.6.0.3)
==28202==    by 0x3A4EF9037B: std::string::_Rep::_M_clone(std::allocator<char> const&, unsigned long) (in /usr/lib64/libstdc++.so.6.0.3)
==28202==    by 0x3A4EF90822: std::string::reserve(unsigned long) (in /usr/lib64/libstdc++.so.6.0.3)
==28202==    by 0x3A4EF90F27: std::string::append(char const*, unsigned long) (in /usr/lib64/libstdc++.so.6.0.3)
==28202==    by 0x40B34A: main (char_traits.h:258)
==28202== 
==28202== 
==28202== 38 bytes in 1 blocks are possibly lost in loss record 9 of 15
==28202==    at 0x4904DB5: operator new(unsigned long) (vg_replace_malloc.c:168)
==28202==    by 0x3A4EF902DD: std::string::_Rep::_S_create(unsigned long, unsigned long, std::allocator<char> const&) (in /usr/lib64/libstdc++.so.6.0.3)
==28202==    by 0x3A4EF9037B: std::string::_Rep::_M_clone(std::allocator<char> const&, unsigned long) (in /usr/lib64/libstdc++.so.6.0.3)
==28202==    by 0x3A4EF90822: std::string::reserve(unsigned long) (in /usr/lib64/libstdc++.so.6.0.3)
==28202==    by 0x3A4EF90F27: std::string::append(char const*, unsigned long) (in /usr/lib64/libstdc++.so.6.0.3)
==28202==    by 0x4C3D71: test_driver::add_command_line_option(std::string const&, char, std::string*) (char_traits.h:258)
==28202==    by 0x40AC8B: main (new_allocator.h:62)
==28202== 
==28202== 
==28202== 177 bytes in 5 blocks are possibly lost in loss record 15 of 15
==28202==    at 0x4904DB5: operator new(unsigned long) (vg_replace_malloc.c:168)
==28202==    by 0x3A4EF902DD: std::string::_Rep::_S_create(unsigned long, unsigned long, std::allocator<char> const&) (in /usr/lib64/libstdc++.so.6.0.3)
==28202==    by 0x3A4EF9269A: (within /usr/lib64/libstdc++.so.6.0.3)
==28202==    by 0x3A4EF927B2: std::string::string(char const*, std::allocator<char> const&) (in /usr/lib64/libstdc++.so.6.0.3)
==28202==    by 0x4C7126: test_driver::parse_command_line(int, char**) (new_allocator.h:62)
==28202==    by 0x40ACB1: main (apitest.cc:109)
==28202== 
==28202== LEAK SUMMARY:
==28202==    definitely lost: 0 bytes in 0 blocks.
==28202==      possibly lost: 424 bytes in 13 blocks.
==28202==    still reachable: 392 bytes in 9 blocks.
==28202==         suppressed: 0 bytes in 0 blocks.
==28202== Reachable blocks (those to which a pointer was found) are not shown.
==28202== To see them, rerun with: --show-reachable=yes
 Conditional jump or move depends on uninitialised value(s)
Running test: puncterms1...==28202== 
==28202== Conditional jump or move depends on uninitialised value(s)
==28202==    at 0x3A4DC04E2A: (within /usr/lib64/libz.so.1.2.1.2)
==28202==    by 0x3A4DC05C7F: (within /usr/lib64/libz.so.1.2.1.2)
==28202==    by 0x3A4DC040D1: deflate (in /usr/lib64/libz.so.1.2.1.2)
==28202==    by 0x4ABE665: FlintTable::add(std::string const&, std::string, bool) (flint_table.cc:1081)
==28202==    by 0x4AC1B31: FlintTermListTable::set_termlist(unsigned, Xapian::Document const&, unsigned) (flint_utils.h:407)
==28202==    by 0x4AA1997: FlintWritableDatabase::add_document_(unsigned, Xapian::Document const&) (flint_database.cc:740)
==28202==    by 0x4AA3CF8: FlintWritableDatabase::add_document(Xapian::Document const&) (flint_database.cc:676)
==28202==    by 0x4A6BE73: Xapian::WritableDatabase::add_document(Xapian::Document const&) (base.h:462)
==28202==    by 0x4C1235: BackendManagerMulti::createdb_multi(std::vector<std::string, std::allocator<std::string> > const&) (backendmanager_multi.cc:90)
==28202==    by 0x4C1972: BackendManagerMulti::get_database(std::vector<std::string, std::allocator<std::string> > const&) (backendmanager_multi.cc:102)
==28202==    by 0x4C1A9D: BackendManagerMulti::get_database(std::string const&) (new_allocator.h:69)
==28202==    by 0x40ABD6: get_database(std::string const&) (apitest.cc:58)
==28202== searching for pointers to 22 not-freed blocks.
==28202== checked 295,056 bytes.
==28202== 
==28202== 
==28202== 26 bytes in 1 blocks are possibly lost in loss record 2 of 15
==28202==    at 0x4904DB5: operator new(unsigned long) (vg_replace_malloc.c:168)
==28202==    by 0x3A4EF902DD: std::string::_Rep::_S_create(unsigned long, unsigned long, std::allocator<char> const&) (in /usr/lib64/libstdc++.so.6.0.3)
==28202==    by 0x3A4EF9269A: (within /usr/lib64/libstdc++.so.6.0.3)
==28202==    by 0x3A4EF927B2: std::string::string(char const*, std::allocator<char> const&) (in /usr/lib64/libstdc++.so.6.0.3)
==28202==    by 0x4C34F6: test_driver::get_srcdir() (new_allocator.h:62)
==28202==    by 0x40ACB9: main (apitest.cc:111)
==28202== 
==28202== 
==28202== 26 bytes in 1 blocks are possibly lost in loss record 3 of 15
==28202==    at 0x4904DB5: operator new(unsigned long) (vg_replace_malloc.c:168)
==28202==    by 0x3A4EF902DD: std::string::_Rep::_S_create(unsigned long, unsigned long, std::allocator<char> const&) (in /usr/lib64/libstdc++.so.6.0.3)
==28202==    by 0x3A4EF9269A: (within /usr/lib64/libstdc++.so.6.0.3)
==28202==    by 0x3A4EF9284A: std::string::string(char const*, unsigned long, std::allocator<char> const&) (in /usr/lib64/libstdc++.so.6.0.3)
==28202==    by 0x4AA3F4E: _GLOBAL__I__ZN13FlintDatabaseC2ERKSsij (new_allocator.h:62)
==28202==    by 0x4B5C0D5: (within /root/xapian/xapian-core-1.0.4_svn9822/.libs/libxapian.so.15.3.0)
==28202==    by 0x4A64F92: (within /root/xapian/xapian-core-1.0.4_svn9822/.libs/libxapian.so.15.3.0)
==28202== 
==28202== 
==28202== 26 bytes in 1 blocks are possibly lost in loss record 4 of 15
==28202==    at 0x4904DB5: operator new(unsigned long) (vg_replace_malloc.c:168)
==28202==    by 0x3A4EF902DD: std::string::_Rep::_S_create(unsigned long, unsigned long, std::allocator<char> const&) (in /usr/lib64/libstdc++.so.6.0.3)
==28202==    by 0x3A4EF9269A: (within /usr/lib64/libstdc++.so.6.0.3)
==28202==    by 0x3A4EF9284A: std::string::string(char const*, unsigned long, std::allocator<char> const&) (in /usr/lib64/libstdc++.so.6.0.3)
==28202==    by 0x4AFB0BE: _GLOBAL__I__ZNK17QuartzRecordTable10get_recordEj (new_allocator.h:62)
==28202==    by 0x4B5C0D5: (within /root/xapian/xapian-core-1.0.4_svn9822/.libs/libxapian.so.15.3.0)
==28202==    by 0x4A64F92: (within /root/xapian/xapian-core-1.0.4_svn9822/.libs/libxapian.so.15.3.0)
==28202== 
==28202== 
==28202== 30 bytes in 1 blocks are possibly lost in loss record 5 of 15
==28202==    at 0x4904DB5: operator new(unsigned long) (vg_replace_malloc.c:168)
==28202==    by 0x3A4EF902DD: std::string::_Rep::_S_create(unsigned long, unsigned long, std::allocator<char> const&) (in /usr/lib64/libstdc++.so.6.0.3)
==28202==    by 0x3A4EF9269A: (within /usr/lib64/libstdc++.so.6.0.3)
==28202==    by 0x3A4EF927B2: std::string::string(char const*, std::allocator<char> const&) (in /usr/lib64/libstdc++.so.6.0.3)
==28202==    by 0x4C701F: test_driver::parse_command_line(int, char**) (new_allocator.h:62)
==28202==    by 0x40ACB1: main (apitest.cc:109)
==28202== 
==28202== 
==28202== 31 bytes in 1 blocks are possibly lost in loss record 6 of 15
==28202==    at 0x4904DB5: operator new(unsigned long) (vg_replace_malloc.c:168)
==28202==    by 0x3A4EF902DD: std::string::_Rep::_S_create(unsigned long, unsigned long, std::allocator<char> const&) (in /usr/lib64/libstdc++.so.6.0.3)
==28202==    by 0x3A4EF9269A: (within /usr/lib64/libstdc++.so.6.0.3)
==28202==    by 0x3A4EF927B2: std::string::string(char const*, std::allocator<char> const&) (in /usr/lib64/libstdc++.so.6.0.3)
==28202==    by 0x4AF1D39: _GLOBAL__I__ZN14QuartzMetaFile4openEv (new_allocator.h:62)
==28202==    by 0x4B5C0D5: (within /root/xapian/xapian-core-1.0.4_svn9822/.libs/libxapian.so.15.3.0)
==28202==    by 0x4A64F92: (within /root/xapian/xapian-core-1.0.4_svn9822/.libs/libxapian.so.15.3.0)
==28202== 
==28202== 
==28202== 34 bytes in 1 blocks are possibly lost in loss record 7 of 15
==28202==    at 0x4904DB5: operator new(unsigned long) (vg_replace_malloc.c:168)
==28202==    by 0x3A4EF902DD: std::string::_Rep::_S_create(unsigned long, unsigned long, std::allocator<char> const&) (in /usr/lib64/libstdc++.so.6.0.3)
==28202==    by 0x3A4EF909DA: std::string::_M_mutate(unsigned long, unsigned long, unsigned long) (in /usr/lib64/libstdc++.so.6.0.3)
==28202==    by 0x3A4EF90CC1: std::string::assign(char const*, unsigned long) (in /usr/lib64/libstdc++.so.6.0.3)
==28202==    by 0x4C6D36: test_driver::parse_command_line(int, char**) (char_traits.h:258)
==28202==    by 0x40ACB1: main (apitest.cc:109)
==28202== 
==28202== 
==28202== 36 bytes in 1 blocks are possibly lost in loss record 8 of 15
==28202==    at 0x4904DB5: operator new(unsigned long) (vg_replace_malloc.c:168)
==28202==    by 0x3A4EF902DD: std::string::_Rep::_S_create(unsigned long, unsigned long, std::allocator<char> const&) (in /usr/lib64/libstdc++.so.6.0.3)
==28202==    by 0x3A4EF9037B: std::string::_Rep::_M_clone(std::allocator<char> const&, unsigned long) (in /usr/lib64/libstdc++.so.6.0.3)
==28202==    by 0x3A4EF90822: std::string::reserve(unsigned long) (in /usr/lib64/libstdc++.so.6.0.3)
==28202==    by 0x3A4EF90F27: std::string::append(char const*, unsigned long) (in /usr/lib64/libstdc++.so.6.0.3)
==28202==    by 0x40B34A: main (char_traits.h:258)
==28202== 
==28202== 
==28202== 38 bytes in 1 blocks are possibly lost in loss record 9 of 15
==28202==    at 0x4904DB5: operator new(unsigned long) (vg_replace_malloc.c:168)
==28202==    by 0x3A4EF902DD: std::string::_Rep::_S_create(unsigned long, unsigned long, std::allocator<char> const&) (in /usr/lib64/libstdc++.so.6.0.3)
==28202==    by 0x3A4EF9037B: std::string::_Rep::_M_clone(std::allocator<char> const&, unsigned long) (in /usr/lib64/libstdc++.so.6.0.3)
==28202==    by 0x3A4EF90822: std::string::reserve(unsigned long) (in /usr/lib64/libstdc++.so.6.0.3)
==28202==    by 0x3A4EF90F27: std::string::append(char const*, unsigned long) (in /usr/lib64/libstdc++.so.6.0.3)
==28202==    by 0x4C3D71: test_driver::add_command_line_option(std::string const&, char, std::string*) (char_traits.h:258)
==28202==    by 0x40AC8B: main (new_allocator.h:62)
==28202== 
==28202== 
==28202== 177 bytes in 5 blocks are possibly lost in loss record 15 of 15
==28202==    at 0x4904DB5: operator new(unsigned long) (vg_replace_malloc.c:168)
==28202==    by 0x3A4EF902DD: std::string::_Rep::_S_create(unsigned long, unsigned long, std::allocator<char> const&) (in /usr/lib64/libstdc++.so.6.0.3)
==28202==    by 0x3A4EF9269A: (within /usr/lib64/libstdc++.so.6.0.3)
==28202==    by 0x3A4EF927B2: std::string::string(char const*, std::allocator<char> const&) (in /usr/lib64/libstdc++.so.6.0.3)
==28202==    by 0x4C7126: test_driver::parse_command_line(int, char**) (new_allocator.h:62)
==28202==    by 0x40ACB1: main (apitest.cc:109)
==28202== 
==28202== LEAK SUMMARY:
==28202==    definitely lost: 0 bytes in 0 blocks.
==28202==      possibly lost: 424 bytes in 13 blocks.
==28202==    still reachable: 392 bytes in 9 blocks.
==28202==         suppressed: 0 bytes in 0 blocks.
==28202== Reachable blocks (those to which a pointer was found) are not shown.
==28202== To see them, rerun with: --show-reachable=yes
 Conditional jump or move depends on uninitialised value(s)
Running test: checkatleast3...==28202== 
==28202== Conditional jump or move depends on uninitialised value(s)
==28202==    at 0x3A4DC04E0E: (within /usr/lib64/libz.so.1.2.1.2)
==28202==    by 0x3A4DC05C7F: (within /usr/lib64/libz.so.1.2.1.2)
==28202==    by 0x3A4DC040D1: deflate (in /usr/lib64/libz.so.1.2.1.2)
==28202==    by 0x4ABE665: FlintTable::add(std::string const&, std::string, bool) (flint_table.cc:1081)
==28202==    by 0x4AC1B31: FlintTermListTable::set_termlist(unsigned, Xapian::Document const&, unsigned) (flint_utils.h:407)
==28202==    by 0x4AA1997: FlintWritableDatabase::add_document_(unsigned, Xapian::Document const&) (flint_database.cc:740)
==28202==    by 0x4AA3CF8: FlintWritableDatabase::add_document(Xapian::Document const&) (flint_database.cc:676)
==28202==    by 0x4A6BE73: Xapian::WritableDatabase::add_document(Xapian::Document const&) (base.h:462)
==28202==    by 0x4C1235: BackendManagerMulti::createdb_multi(std::vector<std::string, std::allocator<std::string> > const&) (backendmanager_multi.cc:90)
==28202==    by 0x4C1972: BackendManagerMulti::get_database(std::vector<std::string, std::allocator<std::string> > const&) (backendmanager_multi.cc:102)
==28202==    by 0x4C1A9D: BackendManagerMulti::get_database(std::string const&) (new_allocator.h:69)
==28202==    by 0x40ABD6: get_database(std::string const&) (apitest.cc:58)
==28202== 
==28202== Conditional jump or move depends on uninitialised value(s)
==28202==    at 0x3A4DC04E70: (within /usr/lib64/libz.so.1.2.1.2)
==28202==    by 0x3A4DC05C7F: (within /usr/lib64/libz.so.1.2.1.2)
==28202==    by 0x3A4DC040D1: deflate (in /usr/lib64/libz.so.1.2.1.2)
==28202==    by 0x4ABE665: FlintTable::add(std::string const&, std::string, bool) (flint_table.cc:1081)
==28202==    by 0x4AAF698: FlintRecordTable::replace_record(std::string const&, unsigned) (flint_utils.h:407)
==28202==    by 0x4AA1535: FlintWritableDatabase::add_document_(unsigned, Xapian::Document const&) (flint_database.cc:688)
==28202==    by 0x4AA3CF8: FlintWritableDatabase::add_document(Xapian::Document const&) (flint_database.cc:676)
==28202==    by 0x4A6BE73: Xapian::WritableDatabase::add_document(Xapian::Document const&) (base.h:462)
==28202==    by 0x4C1235: BackendManagerMulti::createdb_multi(std::vector<std::string, std::allocator<std::string> > const&) (backendmanager_multi.cc:90)
==28202==    by 0x4C1972: BackendManagerMulti::get_database(std::vector<std::string, std::allocator<std::string> > const&) (backendmanager_multi.cc:102)
==28202==    by 0x4C1A9D: BackendManagerMulti::get_database(std::string const&) (new_allocator.h:69)
==28202==    by 0x40ABD6: get_database(std::string const&) (apitest.cc:58)
==28202== 
==28202== Conditional jump or move depends on uninitialised value(s)
==28202==    at 0x3A4DC04E1C: (within /usr/lib64/libz.so.1.2.1.2)
==28202==    by 0x3A4DC05C7F: (within /usr/lib64/libz.so.1.2.1.2)
==28202==    by 0x3A4DC040D1: deflate (in /usr/lib64/libz.so.1.2.1.2)
==28202==    by 0x4ABE665: FlintTable::add(std::string const&, std::string, bool) (flint_table.cc:1081)
==28202==    by 0x4AC1B31: FlintTermListTable::set_termlist(unsigned, Xapian::Document const&, unsigned) (flint_utils.h:407)
==28202==    by 0x4AA1997: FlintWritableDatabase::add_document_(unsigned, Xapian::Document const&) (flint_database.cc:740)
==28202==    by 0x4AA3CF8: FlintWritableDatabase::add_document(Xapian::Document const&) (flint_database.cc:676)
==28202==    by 0x4A6BE73: Xapian::WritableDatabase::add_document(Xapian::Document const&) (base.h:462)
==28202==    by 0x4C1235: BackendManagerMulti::createdb_multi(std::vector<std::string, std::allocator<std::string> > const&) (backendmanager_multi.cc:90)
==28202==    by 0x4C1972: BackendManagerMulti::get_database(std::vector<std::string, std::allocator<std::string> > const&) (backendmanager_multi.cc:102)
==28202==    by 0x4C1A9D: BackendManagerMulti::get_database(std::string const&) (new_allocator.h:69)
==28202==    by 0x40ABD6: get_database(std::string const&) (apitest.cc:58)
==28202== 
==28202== Conditional jump or move depends on uninitialised value(s)
==28202==    at 0x3A4DC04E38: (within /usr/lib64/libz.so.1.2.1.2)
==28202==    by 0x3A4DC05C7F: (within /usr/lib64/libz.so.1.2.1.2)
==28202==    by 0x3A4DC040D1: deflate (in /usr/lib64/libz.so.1.2.1.2)
==28202==    by 0x4ABE665: FlintTable::add(std::string const&, std::string, bool) (flint_table.cc:1081)
==28202==    by 0x4AC1B31: FlintTermListTable::set_termlist(unsigned, Xapian::Document const&, unsigned) (flint_utils.h:407)
==28202==    by 0x4AA1997: FlintWritableDatabase::add_document_(unsigned, Xapian::Document const&) (flint_database.cc:740)
==28202==    by 0x4AA3CF8: FlintWritableDatabase::add_document(Xapian::Document const&) (flint_database.cc:676)
==28202==    by 0x4A6BE73: Xapian::WritableDatabase::add_document(Xapian::Document const&) (base.h:462)
==28202==    by 0x4C1235: BackendManagerMulti::createdb_multi(std::vector<std::string, std::allocator<std::string> > const&) (backendmanager_multi.cc:90)
==28202==    by 0x4C1972: BackendManagerMulti::get_database(std::vector<std::string, std::allocator<std::string> > const&) (backendmanager_multi.cc:102)
==28202==    by 0x4C1A9D: BackendManagerMulti::get_database(std::string const&) (new_allocator.h:69)
==28202==    by 0x40ABD6: get_database(std::string const&) (apitest.cc:58)
==28202== 
==28202== Conditional jump or move depends on uninitialised value(s)
==28202==    at 0x3A4DC04DE5: (within /usr/lib64/libz.so.1.2.1.2)
==28202==    by 0x3A4DC05C7F: (within /usr/lib64/libz.so.1.2.1.2)
==28202==    by 0x3A4DC040D1: deflate (in /usr/lib64/libz.so.1.2.1.2)
==28202==    by 0x4ABE665: FlintTable::add(std::string const&, std::string, bool) (flint_table.cc:1081)
==28202==    by 0x4AC1B31: FlintTermListTable::set_termlist(unsigned, Xapian::Document const&, unsigned) (flint_utils.h:407)
==28202==    by 0x4AA1997: FlintWritableDatabase::add_document_(unsigned, Xapian::Document const&) (flint_database.cc:740)
==28202==    by 0x4AA3CF8: FlintWritableDatabase::add_document(Xapian::Document const&) (flint_database.cc:676)
==28202==    by 0x4A6BE73: Xapian::WritableDatabase::add_document(Xapian::Document const&) (base.h:462)
==28202==    by 0x4C1235: BackendManagerMulti::createdb_multi(std::vector<std::string, std::allocator<std::string> > const&) (backendmanager_multi.cc:90)
==28202==    by 0x4C1972: BackendManagerMulti::get_database(std::vector<std::string, std::allocator<std::string> > const&) (backendmanager_multi.cc:102)
==28202==    by 0x4C1A9D: BackendManagerMulti::get_database(std::string const&) (new_allocator.h:69)
==28202==    by 0x40ABD6: get_database(std::string const&) (apitest.cc:58)
==28202== searching for pointers to 22 not-freed blocks.
==28202== checked 295,056 bytes.
==28202== 
==28202== 
==28202== 26 bytes in 1 blocks are possibly lost in loss record 2 of 15
==28202==    at 0x4904DB5: operator new(unsigned long) (vg_replace_malloc.c:168)
==28202==    by 0x3A4EF902DD: std::string::_Rep::_S_create(unsigned long, unsigned long, std::allocator<char> const&) (in /usr/lib64/libstdc++.so.6.0.3)
==28202==    by 0x3A4EF9269A: (within /usr/lib64/libstdc++.so.6.0.3)
==28202==    by 0x3A4EF927B2: std::string::string(char const*, std::allocator<char> const&) (in /usr/lib64/libstdc++.so.6.0.3)
==28202==    by 0x4C34F6: test_driver::get_srcdir() (new_allocator.h:62)
==28202==    by 0x40ACB9: main (apitest.cc:111)
==28202== 
==28202== 
==28202== 26 bytes in 1 blocks are possibly lost in loss record 3 of 15
==28202==    at 0x4904DB5: operator new(unsigned long) (vg_replace_malloc.c:168)
==28202==    by 0x3A4EF902DD: std::string::_Rep::_S_create(unsigned long, unsigned long, std::allocator<char> const&) (in /usr/lib64/libstdc++.so.6.0.3)
==28202==    by 0x3A4EF9269A: (within /usr/lib64/libstdc++.so.6.0.3)
==28202==    by 0x3A4EF9284A: std::string::string(char const*, unsigned long, std::allocator<char> const&) (in /usr/lib64/libstdc++.so.6.0.3)
==28202==    by 0x4AA3F4E: _GLOBAL__I__ZN13FlintDatabaseC2ERKSsij (new_allocator.h:62)
==28202==    by 0x4B5C0D5: (within /root/xapian/xapian-core-1.0.4_svn9822/.libs/libxapian.so.15.3.0)
==28202==    by 0x4A64F92: (within /root/xapian/xapian-core-1.0.4_svn9822/.libs/libxapian.so.15.3.0)
==28202== 
==28202== 
==28202== 26 bytes in 1 blocks are possibly lost in loss record 4 of 15
==28202==    at 0x4904DB5: operator new(unsigned long) (vg_replace_malloc.c:168)
==28202==    by 0x3A4EF902DD: std::string::_Rep::_S_create(unsigned long, unsigned long, std::allocator<char> const&) (in /usr/lib64/libstdc++.so.6.0.3)
==28202==    by 0x3A4EF9269A: (within /usr/lib64/libstdc++.so.6.0.3)
==28202==    by 0x3A4EF9284A: std::string::string(char const*, unsigned long, std::allocator<char> const&) (in /usr/lib64/libstdc++.so.6.0.3)
==28202==    by 0x4AFB0BE: _GLOBAL__I__ZNK17QuartzRecordTable10get_recordEj (new_allocator.h:62)
==28202==    by 0x4B5C0D5: (within /root/xapian/xapian-core-1.0.4_svn9822/.libs/libxapian.so.15.3.0)
==28202==    by 0x4A64F92: (within /root/xapian/xapian-core-1.0.4_svn9822/.libs/libxapian.so.15.3.0)
==28202== 
==28202== 
==28202== 30 bytes in 1 blocks are possibly lost in loss record 5 of 15
==28202==    at 0x4904DB5: operator new(unsigned long) (vg_replace_malloc.c:168)
==28202==    by 0x3A4EF902DD: std::string::_Rep::_S_create(unsigned long, unsigned long, std::allocator<char> const&) (in /usr/lib64/libstdc++.so.6.0.3)
==28202==    by 0x3A4EF9269A: (within /usr/lib64/libstdc++.so.6.0.3)
==28202==    by 0x3A4EF927B2: std::string::string(char const*, std::allocator<char> const&) (in /usr/lib64/libstdc++.so.6.0.3)
==28202==    by 0x4C701F: test_driver::parse_command_line(int, char**) (new_allocator.h:62)
==28202==    by 0x40ACB1: main (apitest.cc:109)
==28202== 
==28202== 
==28202== 31 bytes in 1 blocks are possibly lost in loss record 6 of 15
==28202==    at 0x4904DB5: operator new(unsigned long) (vg_replace_malloc.c:168)
==28202==    by 0x3A4EF902DD: std::string::_Rep::_S_create(unsigned long, unsigned long, std::allocator<char> const&) (in /usr/lib64/libstdc++.so.6.0.3)
==28202==    by 0x3A4EF9269A: (within /usr/lib64/libstdc++.so.6.0.3)
==28202==    by 0x3A4EF927B2: std::string::string(char const*, std::allocator<char> const&) (in /usr/lib64/libstdc++.so.6.0.3)
==28202==    by 0x4AF1D39: _GLOBAL__I__ZN14QuartzMetaFile4openEv (new_allocator.h:62)
==28202==    by 0x4B5C0D5: (within /root/xapian/xapian-core-1.0.4_svn9822/.libs/libxapian.so.15.3.0)
==28202==    by 0x4A64F92: (within /root/xapian/xapian-core-1.0.4_svn9822/.libs/libxapian.so.15.3.0)
==28202== 
==28202== 
==28202== 34 bytes in 1 blocks are possibly lost in loss record 7 of 15
==28202==    at 0x4904DB5: operator new(unsigned long) (vg_replace_malloc.c:168)
==28202==    by 0x3A4EF902DD: std::string::_Rep::_S_create(unsigned long, unsigned long, std::allocator<char> const&) (in /usr/lib64/libstdc++.so.6.0.3)
==28202==    by 0x3A4EF909DA: std::string::_M_mutate(unsigned long, unsigned long, unsigned long) (in /usr/lib64/libstdc++.so.6.0.3)
==28202==    by 0x3A4EF90CC1: std::string::assign(char const*, unsigned long) (in /usr/lib64/libstdc++.so.6.0.3)
==28202==    by 0x4C6D36: test_driver::parse_command_line(int, char**) (char_traits.h:258)
==28202==    by 0x40ACB1: main (apitest.cc:109)
==28202== 
==28202== 
==28202== 36 bytes in 1 blocks are possibly lost in loss record 8 of 15
==28202==    at 0x4904DB5: operator new(unsigned long) (vg_replace_malloc.c:168)
==28202==    by 0x3A4EF902DD: std::string::_Rep::_S_create(unsigned long, unsigned long, std::allocator<char> const&) (in /usr/lib64/libstdc++.so.6.0.3)
==28202==    by 0x3A4EF9037B: std::string::_Rep::_M_clone(std::allocator<char> const&, unsigned long) (in /usr/lib64/libstdc++.so.6.0.3)
==28202==    by 0x3A4EF90822: std::string::reserve(unsigned long) (in /usr/lib64/libstdc++.so.6.0.3)
==28202==    by 0x3A4EF90F27: std::string::append(char const*, unsigned long) (in /usr/lib64/libstdc++.so.6.0.3)
==28202==    by 0x40B34A: main (char_traits.h:258)
==28202== 
==28202== 
==28202== 38 bytes in 1 blocks are possibly lost in loss record 9 of 15
==28202==    at 0x4904DB5: operator new(unsigned long) (vg_replace_malloc.c:168)
==28202==    by 0x3A4EF902DD: std::string::_Rep::_S_create(unsigned long, unsigned long, std::allocator<char> const&) (in /usr/lib64/libstdc++.so.6.0.3)
==28202==    by 0x3A4EF9037B: std::string::_Rep::_M_clone(std::allocator<char> const&, unsigned long) (in /usr/lib64/libstdc++.so.6.0.3)
==28202==    by 0x3A4EF90822: std::string::reserve(unsigned long) (in /usr/lib64/libstdc++.so.6.0.3)
==28202==    by 0x3A4EF90F27: std::string::append(char const*, unsigned long) (in /usr/lib64/libstdc++.so.6.0.3)
==28202==    by 0x4C3D71: test_driver::add_command_line_option(std::string const&, char, std::string*) (char_traits.h:258)
==28202==    by 0x40AC8B: main (new_allocator.h:62)
==28202== 
==28202== 
==28202== 177 bytes in 5 blocks are possibly lost in loss record 15 of 15
==28202==    at 0x4904DB5: operator new(unsigned long) (vg_replace_malloc.c:168)
==28202==    by 0x3A4EF902DD: std::string::_Rep::_S_create(unsigned long, unsigned long, std::allocator<char> const&) (in /usr/lib64/libstdc++.so.6.0.3)
==28202==    by 0x3A4EF9269A: (within /usr/lib64/libstdc++.so.6.0.3)
==28202==    by 0x3A4EF927B2: std::string::string(char const*, std::allocator<char> const&) (in /usr/lib64/libstdc++.so.6.0.3)
==28202==    by 0x4C7126: test_driver::parse_command_line(int, char**) (new_allocator.h:62)
==28202==    by 0x40ACB1: main (apitest.cc:109)
==28202== 
==28202== LEAK SUMMARY:
==28202==    definitely lost: 0 bytes in 0 blocks.
==28202==      possibly lost: 424 bytes in 13 blocks.
==28202==    still reachable: 392 bytes in 9 blocks.
==28202==         suppressed: 0 bytes in 0 blocks.
==28202== Reachable blocks (those to which a pointer was found) are not shown.
==28202== To see them, rerun with: --show-reachable=yes
 Conditional jump or move depends on uninitialised value(s)
Running test: valuerange1...==28202== searching for pointers to 23 not-freed blocks.
==28202== checked 338,152 bytes.
==28202== 
==28202== 
==28202== 26 bytes in 1 blocks are possibly lost in loss record 2 of 16
==28202==    at 0x4904DB5: operator new(unsigned long) (vg_replace_malloc.c:168)
==28202==    by 0x3A4EF902DD: std::string::_Rep::_S_create(unsigned long, unsigned long, std::allocator<char> const&) (in /usr/lib64/libstdc++.so.6.0.3)
==28202==    by 0x3A4EF9269A: (within /usr/lib64/libstdc++.so.6.0.3)
==28202==    by 0x3A4EF927B2: std::string::string(char const*, std::allocator<char> const&) (in /usr/lib64/libstdc++.so.6.0.3)
==28202==    by 0x4C34F6: test_driver::get_srcdir() (new_allocator.h:62)
==28202==    by 0x40ACB9: main (apitest.cc:111)
==28202== 
==28202== 
==28202== 26 bytes in 1 blocks are possibly lost in loss record 3 of 16
==28202==    at 0x4904DB5: operator new(unsigned long) (vg_replace_malloc.c:168)
==28202==    by 0x3A4EF902DD: std::string::_Rep::_S_create(unsigned long, unsigned long, std::allocator<char> const&) (in /usr/lib64/libstdc++.so.6.0.3)
==28202==    by 0x3A4EF9269A: (within /usr/lib64/libstdc++.so.6.0.3)
==28202==    by 0x3A4EF9284A: std::string::string(char const*, unsigned long, std::allocator<char> const&) (in /usr/lib64/libstdc++.so.6.0.3)
==28202==    by 0x4AA3F4E: _GLOBAL__I__ZN13FlintDatabaseC2ERKSsij (new_allocator.h:62)
==28202==    by 0x4B5C0D5: (within /root/xapian/xapian-core-1.0.4_svn9822/.libs/libxapian.so.15.3.0)
==28202==    by 0x4A64F92: (within /root/xapian/xapian-core-1.0.4_svn9822/.libs/libxapian.so.15.3.0)
==28202== 
==28202== 
==28202== 26 bytes in 1 blocks are possibly lost in loss record 4 of 16
==28202==    at 0x4904DB5: operator new(unsigned long) (vg_replace_malloc.c:168)
==28202==    by 0x3A4EF902DD: std::string::_Rep::_S_create(unsigned long, unsigned long, std::allocator<char> const&) (in /usr/lib64/libstdc++.so.6.0.3)
==28202==    by 0x3A4EF9269A: (within /usr/lib64/libstdc++.so.6.0.3)
==28202==    by 0x3A4EF9284A: std::string::string(char const*, unsigned long, std::allocator<char> const&) (in /usr/lib64/libstdc++.so.6.0.3)
==28202==    by 0x4AFB0BE: _GLOBAL__I__ZNK17QuartzRecordTable10get_recordEj (new_allocator.h:62)
==28202==    by 0x4B5C0D5: (within /root/xapian/xapian-core-1.0.4_svn9822/.libs/libxapian.so.15.3.0)
==28202==    by 0x4A64F92: (within /root/xapian/xapian-core-1.0.4_svn9822/.libs/libxapian.so.15.3.0)
==28202== 
==28202== 
==28202== 30 bytes in 1 blocks are possibly lost in loss record 5 of 16
==28202==    at 0x4904DB5: operator new(unsigned long) (vg_replace_malloc.c:168)
==28202==    by 0x3A4EF902DD: std::string::_Rep::_S_create(unsigned long, unsigned long, std::allocator<char> const&) (in /usr/lib64/libstdc++.so.6.0.3)
==28202==    by 0x3A4EF9269A: (within /usr/lib64/libstdc++.so.6.0.3)
==28202==    by 0x3A4EF927B2: std::string::string(char const*, std::allocator<char> const&) (in /usr/lib64/libstdc++.so.6.0.3)
==28202==    by 0x4C701F: test_driver::parse_command_line(int, char**) (new_allocator.h:62)
==28202==    by 0x40ACB1: main (apitest.cc:109)
==28202== 
==28202== 
==28202== 31 bytes in 1 blocks are possibly lost in loss record 6 of 16
==28202==    at 0x4904DB5: operator new(unsigned long) (vg_replace_malloc.c:168)
==28202==    by 0x3A4EF902DD: std::string::_Rep::_S_create(unsigned long, unsigned long, std::allocator<char> const&) (in /usr/lib64/libstdc++.so.6.0.3)
==28202==    by 0x3A4EF9269A: (within /usr/lib64/libstdc++.so.6.0.3)
==28202==    by 0x3A4EF927B2: std::string::string(char const*, std::allocator<char> const&) (in /usr/lib64/libstdc++.so.6.0.3)
==28202==    by 0x4AF1D39: _GLOBAL__I__ZN14QuartzMetaFile4openEv (new_allocator.h:62)
==28202==    by 0x4B5C0D5: (within /root/xapian/xapian-core-1.0.4_svn9822/.libs/libxapian.so.15.3.0)
==28202==    by 0x4A64F92: (within /root/xapian/xapian-core-1.0.4_svn9822/.libs/libxapian.so.15.3.0)
==28202== 
==28202== 
==28202== 34 bytes in 1 blocks are possibly lost in loss record 7 of 16
==28202==    at 0x4904DB5: operator new(unsigned long) (vg_replace_malloc.c:168)
==28202==    by 0x3A4EF902DD: std::string::_Rep::_S_create(unsigned long, unsigned long, std::allocator<char> const&) (in /usr/lib64/libstdc++.so.6.0.3)
==28202==    by 0x3A4EF909DA: std::string::_M_mutate(unsigned long, unsigned long, unsigned long) (in /usr/lib64/libstdc++.so.6.0.3)
==28202==    by 0x3A4EF90CC1: std::string::assign(char const*, unsigned long) (in /usr/lib64/libstdc++.so.6.0.3)
==28202==    by 0x4C6D36: test_driver::parse_command_line(int, char**) (char_traits.h:258)
==28202==    by 0x40ACB1: main (apitest.cc:109)
==28202== 
==28202== 
==28202== 36 bytes in 1 blocks are possibly lost in loss record 8 of 16
==28202==    at 0x4904DB5: operator new(unsigned long) (vg_replace_malloc.c:168)
==28202==    by 0x3A4EF902DD: std::string::_Rep::_S_create(unsigned long, unsigned long, std::allocator<char> const&) (in /usr/lib64/libstdc++.so.6.0.3)
==28202==    by 0x3A4EF9037B: std::string::_Rep::_M_clone(std::allocator<char> const&, unsigned long) (in /usr/lib64/libstdc++.so.6.0.3)
==28202==    by 0x3A4EF90822: std::string::reserve(unsigned long) (in /usr/lib64/libstdc++.so.6.0.3)
==28202==    by 0x3A4EF90F27: std::string::append(char const*, unsigned long) (in /usr/lib64/libstdc++.so.6.0.3)
==28202==    by 0x40B34A: main (char_traits.h:258)
==28202== 
==28202== 
==28202== 38 bytes in 1 blocks are possibly lost in loss record 9 of 16
==28202==    at 0x4904DB5: operator new(unsigned long) (vg_replace_malloc.c:168)
==28202==    by 0x3A4EF902DD: std::string::_Rep::_S_create(unsigned long, unsigned long, std::allocator<char> const&) (in /usr/lib64/libstdc++.so.6.0.3)
==28202==    by 0x3A4EF9037B: std::string::_Rep::_M_clone(std::allocator<char> const&, unsigned long) (in /usr/lib64/libstdc++.so.6.0.3)
==28202==    by 0x3A4EF90822: std::string::reserve(unsigned long) (in /usr/lib64/libstdc++.so.6.0.3)
==28202==    by 0x3A4EF90F27: std::string::append(char const*, unsigned long) (in /usr/lib64/libstdc++.so.6.0.3)
==28202==    by 0x4C3D71: test_driver::add_command_line_option(std::string const&, char, std::string*) (char_traits.h:258)
==28202==    by 0x40AC8B: main (new_allocator.h:62)
==28202== 
==28202== 
==28202== 177 bytes in 5 blocks are possibly lost in loss record 15 of 16
==28202==    at 0x4904DB5: operator new(unsigned long) (vg_replace_malloc.c:168)
==28202==    by 0x3A4EF902DD: std::string::_Rep::_S_create(unsigned long, unsigned long, std::allocator<char> const&) (in /usr/lib64/libstdc++.so.6.0.3)
==28202==    by 0x3A4EF9269A: (within /usr/lib64/libstdc++.so.6.0.3)
==28202==    by 0x3A4EF927B2: std::string::string(char const*, std::allocator<char> const&) (in /usr/lib64/libstdc++.so.6.0.3)
==28202==    by 0x4C7126: test_driver::parse_command_line(int, char**) (new_allocator.h:62)
==28202==    by 0x40ACB1: main (apitest.cc:109)
==28202== 
==28202== 
==28202== 65,504 bytes in 1 blocks are possibly lost in loss record 16 of 16
==28202==    at 0x4904DB5: operator new(unsigned long) (vg_replace_malloc.c:168)
==28202==    by 0x3A4EF902DD: std::string::_Rep::_S_create(unsigned long, unsigned long, std::allocator<char> const&) (in /usr/lib64/libstdc++.so.6.0.3)
==28202==    by 0x3A4EF9037B: std::string::_Rep::_M_clone(std::allocator<char> const&, unsigned long) (in /usr/lib64/libstdc++.so.6.0.3)
==28202==    by 0x3A4EF90822: std::string::reserve(unsigned long) (in /usr/lib64/libstdc++.so.6.0.3)
==28202==    by 0x3A4EF8CDEE: std::basic_stringbuf<char, std::char_traits<char>, std::allocator<char> >::overflow(int) (in /usr/lib64/libstdc++.so.6.0.3)
==28202==    by 0x3A4EF8E9CE: std::basic_streambuf<char, std::char_traits<char> >::xsputn(char const*, long) (in /usr/lib64/libstdc++.so.6.0.3)
==28202==    by 0x3A4EF85632: std::basic_ostream<char, std::char_traits<char> >& std::operator<< <std::char_traits<char> >(std::basic_ostream<char, std::char_traits<char> >&, char const*) (in /usr/lib64/libstdc++.so.6.0.3)
==28202==    by 0x420F21: test_valuerange1() (ostream.tcc:63)
==28202==    by 0x4C4039: test_driver::runtest(test_desc const*) (testsuite.cc:241)
==28202==    by 0x4C6608: 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:525)
==28202==    by 0x4C6B28: 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:488)
==28202==    by 0x4C6B8A: test_driver::run(test_desc const*) (stl_iterator.h:666)
==28202== 
==28202== LEAK SUMMARY:
==28202==    definitely lost: 0 bytes in 0 blocks.
==28202==      possibly lost: 65,928 bytes in 14 blocks.
==28202==    still reachable: 392 bytes in 9 blocks.
==28202==         suppressed: 0 bytes in 0 blocks.
==28202== Reachable blocks (those to which a pointer was found) are not shown.
==28202== To see them, rerun with: --show-reachable=yes
 VALGRIND DETECTED A PROBLEM
Running test: sortrel1...==28202== searching for pointers to 23 not-freed blocks.
==28202== checked 338,152 bytes.
==28202== 
==28202== 
==28202== 26 bytes in 1 blocks are possibly lost in loss record 2 of 16
==28202==    at 0x4904DB5: operator new(unsigned long) (vg_replace_malloc.c:168)
==28202==    by 0x3A4EF902DD: std::string::_Rep::_S_create(unsigned long, unsigned long, std::allocator<char> const&) (in /usr/lib64/libstdc++.so.6.0.3)
==28202==    by 0x3A4EF9269A: (within /usr/lib64/libstdc++.so.6.0.3)
==28202==    by 0x3A4EF927B2: std::string::string(char const*, std::allocator<char> const&) (in /usr/lib64/libstdc++.so.6.0.3)
==28202==    by 0x4C34F6: test_driver::get_srcdir() (new_allocator.h:62)
==28202==    by 0x40ACB9: main (apitest.cc:111)
==28202== 
==28202== 
==28202== 26 bytes in 1 blocks are possibly lost in loss record 3 of 16
==28202==    at 0x4904DB5: operator new(unsigned long) (vg_replace_malloc.c:168)
==28202==    by 0x3A4EF902DD: std::string::_Rep::_S_create(unsigned long, unsigned long, std::allocator<char> const&) (in /usr/lib64/libstdc++.so.6.0.3)
==28202==    by 0x3A4EF9269A: (within /usr/lib64/libstdc++.so.6.0.3)
==28202==    by 0x3A4EF9284A: std::string::string(char const*, unsigned long, std::allocator<char> const&) (in /usr/lib64/libstdc++.so.6.0.3)
==28202==    by 0x4AA3F4E: _GLOBAL__I__ZN13FlintDatabaseC2ERKSsij (new_allocator.h:62)
==28202==    by 0x4B5C0D5: (within /root/xapian/xapian-core-1.0.4_svn9822/.libs/libxapian.so.15.3.0)
==28202==    by 0x4A64F92: (within /root/xapian/xapian-core-1.0.4_svn9822/.libs/libxapian.so.15.3.0)
==28202== 
==28202== 
==28202== 26 bytes in 1 blocks are possibly lost in loss record 4 of 16
==28202==    at 0x4904DB5: operator new(unsigned long) (vg_replace_malloc.c:168)
==28202==    by 0x3A4EF902DD: std::string::_Rep::_S_create(unsigned long, unsigned long, std::allocator<char> const&) (in /usr/lib64/libstdc++.so.6.0.3)
==28202==    by 0x3A4EF9269A: (within /usr/lib64/libstdc++.so.6.0.3)
==28202==    by 0x3A4EF9284A: std::string::string(char const*, unsigned long, std::allocator<char> const&) (in /usr/lib64/libstdc++.so.6.0.3)
==28202==    by 0x4AFB0BE: _GLOBAL__I__ZNK17QuartzRecordTable10get_recordEj (new_allocator.h:62)
==28202==    by 0x4B5C0D5: (within /root/xapian/xapian-core-1.0.4_svn9822/.libs/libxapian.so.15.3.0)
==28202==    by 0x4A64F92: (within /root/xapian/xapian-core-1.0.4_svn9822/.libs/libxapian.so.15.3.0)
==28202== 
==28202== 
==28202== 30 bytes in 1 blocks are possibly lost in loss record 5 of 16
==28202==    at 0x4904DB5: operator new(unsigned long) (vg_replace_malloc.c:168)
==28202==    by 0x3A4EF902DD: std::string::_Rep::_S_create(unsigned long, unsigned long, std::allocator<char> const&) (in /usr/lib64/libstdc++.so.6.0.3)
==28202==    by 0x3A4EF9269A: (within /usr/lib64/libstdc++.so.6.0.3)
==28202==    by 0x3A4EF927B2: std::string::string(char const*, std::allocator<char> const&) (in /usr/lib64/libstdc++.so.6.0.3)
==28202==    by 0x4C701F: test_driver::parse_command_line(int, char**) (new_allocator.h:62)
==28202==    by 0x40ACB1: main (apitest.cc:109)
==28202== 
==28202== 
==28202== 31 bytes in 1 blocks are possibly lost in loss record 6 of 16
==28202==    at 0x4904DB5: operator new(unsigned long) (vg_replace_malloc.c:168)
==28202==    by 0x3A4EF902DD: std::string::_Rep::_S_create(unsigned long, unsigned long, std::allocator<char> const&) (in /usr/lib64/libstdc++.so.6.0.3)
==28202==    by 0x3A4EF9269A: (within /usr/lib64/libstdc++.so.6.0.3)
==28202==    by 0x3A4EF927B2: std::string::string(char const*, std::allocator<char> const&) (in /usr/lib64/libstdc++.so.6.0.3)
==28202==    by 0x4AF1D39: _GLOBAL__I__ZN14QuartzMetaFile4openEv (new_allocator.h:62)
==28202==    by 0x4B5C0D5: (within /root/xapian/xapian-core-1.0.4_svn9822/.libs/libxapian.so.15.3.0)
==28202==    by 0x4A64F92: (within /root/xapian/xapian-core-1.0.4_svn9822/.libs/libxapian.so.15.3.0)
==28202== 
==28202== 
==28202== 34 bytes in 1 blocks are possibly lost in loss record 7 of 16
==28202==    at 0x4904DB5: operator new(unsigned long) (vg_replace_malloc.c:168)
==28202==    by 0x3A4EF902DD: std::string::_Rep::_S_create(unsigned long, unsigned long, std::allocator<char> const&) (in /usr/lib64/libstdc++.so.6.0.3)
==28202==    by 0x3A4EF909DA: std::string::_M_mutate(unsigned long, unsigned long, unsigned long) (in /usr/lib64/libstdc++.so.6.0.3)
==28202==    by 0x3A4EF90CC1: std::string::assign(char const*, unsigned long) (in /usr/lib64/libstdc++.so.6.0.3)
==28202==    by 0x4C6D36: test_driver::parse_command_line(int, char**) (char_traits.h:258)
==28202==    by 0x40ACB1: main (apitest.cc:109)
==28202== 
==28202== 
==28202== 36 bytes in 1 blocks are possibly lost in loss record 8 of 16
==28202==    at 0x4904DB5: operator new(unsigned long) (vg_replace_malloc.c:168)
==28202==    by 0x3A4EF902DD: std::string::_Rep::_S_create(unsigned long, unsigned long, std::allocator<char> const&) (in /usr/lib64/libstdc++.so.6.0.3)
==28202==    by 0x3A4EF9037B: std::string::_Rep::_M_clone(std::allocator<char> const&, unsigned long) (in /usr/lib64/libstdc++.so.6.0.3)
==28202==    by 0x3A4EF90822: std::string::reserve(unsigned long) (in /usr/lib64/libstdc++.so.6.0.3)
==28202==    by 0x3A4EF90F27: std::string::append(char const*, unsigned long) (in /usr/lib64/libstdc++.so.6.0.3)
==28202==    by 0x40B34A: main (char_traits.h:258)
==28202== 
==28202== 
==28202== 38 bytes in 1 blocks are possibly lost in loss record 9 of 16
==28202==    at 0x4904DB5: operator new(unsigned long) (vg_replace_malloc.c:168)
==28202==    by 0x3A4EF902DD: std::string::_Rep::_S_create(unsigned long, unsigned long, std::allocator<char> const&) (in /usr/lib64/libstdc++.so.6.0.3)
==28202==    by 0x3A4EF9037B: std::string::_Rep::_M_clone(std::allocator<char> const&, unsigned long) (in /usr/lib64/libstdc++.so.6.0.3)
==28202==    by 0x3A4EF90822: std::string::reserve(unsigned long) (in /usr/lib64/libstdc++.so.6.0.3)
==28202==    by 0x3A4EF90F27: std::string::append(char const*, unsigned long) (in /usr/lib64/libstdc++.so.6.0.3)
==28202==    by 0x4C3D71: test_driver::add_command_line_option(std::string const&, char, std::string*) (char_traits.h:258)
==28202==    by 0x40AC8B: main (new_allocator.h:62)
==28202== 
==28202== 
==28202== 177 bytes in 5 blocks are possibly lost in loss record 15 of 16
==28202==    at 0x4904DB5: operator new(unsigned long) (vg_replace_malloc.c:168)
==28202==    by 0x3A4EF902DD: std::string::_Rep::_S_create(unsigned long, unsigned long, std::allocator<char> const&) (in /usr/lib64/libstdc++.so.6.0.3)
==28202==    by 0x3A4EF9269A: (within /usr/lib64/libstdc++.so.6.0.3)
==28202==    by 0x3A4EF927B2: std::string::string(char const*, std::allocator<char> const&) (in /usr/lib64/libstdc++.so.6.0.3)
==28202==    by 0x4C7126: test_driver::parse_command_line(int, char**) (new_allocator.h:62)
==28202==    by 0x40ACB1: main (apitest.cc:109)
==28202== 
==28202== 
==28202== 65,504 bytes in 1 blocks are possibly lost in loss record 16 of 16
==28202==    at 0x4904DB5: operator new(unsigned long) (vg_replace_malloc.c:168)
==28202==    by 0x3A4EF902DD: std::string::_Rep::_S_create(unsigned long, unsigned long, std::allocator<char> const&) (in /usr/lib64/libstdc++.so.6.0.3)
==28202==    by 0x3A4EF9037B: std::string::_Rep::_M_clone(std::allocator<char> const&, unsigned long) (in /usr/lib64/libstdc++.so.6.0.3)
==28202==    by 0x3A4EF90822: std::string::reserve(unsigned long) (in /usr/lib64/libstdc++.so.6.0.3)
==28202==    by 0x3A4EF8CDEE: std::basic_stringbuf<char, std::char_traits<char>, std::allocator<char> >::overflow(int) (in /usr/lib64/libstdc++.so.6.0.3)
==28202==    by 0x3A4EF8E9CE: std::basic_streambuf<char, std::char_traits<char> >::xsputn(char const*, long) (in /usr/lib64/libstdc++.so.6.0.3)
==28202==    by 0x3A4EF85632: std::basic_ostream<char, std::char_traits<char> >& std::operator<< <std::char_traits<char> >(std::basic_ostream<char, std::char_traits<char> >&, char const*) (in /usr/lib64/libstdc++.so.6.0.3)
==28202==    by 0x420F21: test_valuerange1() (ostream.tcc:63)
==28202==    by 0x4C4039: test_driver::runtest(test_desc const*) (testsuite.cc:241)
==28202==    by 0x4C6608: 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:525)
==28202==    by 0x4C6B28: 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:488)
==28202==    by 0x4C6B8A: test_driver::run(test_desc const*) (stl_iterator.h:666)
==28202== 
==28202== LEAK SUMMARY:
==28202==    definitely lost: 0 bytes in 0 blocks.
==28202==      possibly lost: 65,928 bytes in 14 blocks.
==28202==    still reachable: 392 bytes in 9 blocks.
==28202==         suppressed: 0 bytes in 0 blocks.
==28202== Reachable blocks (those to which a pointer was found) are not shown.
==28202== To see them, rerun with: --show-reachable=yes
 VALGRIND DETECTED A PROBLEM
./apitest completed test run: 0 tests passed, 5 failed.
./apitest total: 0 tests passed, 5 failed.


More information about the Xapian-discuss mailing list