[Xapian-devel] Re: [XapianBug 117] Invalid data in remote protocol can cause buffer overflow

James Aylett james-xapian at tartarus.org
Thu Apr 5 15:31:34 BST 2007

On Thu, Apr 05, 2007 at 03:01:26PM +0100, Olly Betts wrote:

> > All the quartz and flint tests pass, although
> > writeabledb::databaseassign1 sometimes hangs for flint. Running it
> > again fixed it.
> Don't think I've seen that.  Can you get it to perform and strace or
> gdb similar to find out what it's doing when it hangs?

It's waiting for the locking child to die:

(gdb) bt
#0  0x90029e27 in wait4 ()
#1  0x90029e17 in waitpid ()
#2  0x01023cac in FlintLock::release (this=0x2818c48) at
#3  0x0101be55 in FlintDatabase::~FlintDatabase (this=0x2818654) at
#4  0x0101f716 in FlintWritableDatabase::~FlintWritableDatabase
(this=0x2818600) at flint_database.cc:545
#5  0x010a1b10 in
> > (__first=0x6013d0, __last=0x6013d4, __alloc=@0xbffff2ef) at
#6  0x01074357 in Xapian::Database::~Database (this=0xbffff338) at
#7  0x000811d6 in BackendManager::createdb_flint (this=0xb9c40,
dbnames=@0xbffff3c0) at backendmanager.cc:389
#8  0x000815d4 in BackendManager::getdb_flint (this=0xb9c40,
dbnames=@0xbffff3c0) at backendmanager.cc:397
#9  0x0007f9e8 in BackendManager::get_database (this=0xb9c40,
dbname=@0xbffff498) at backendmanager.cc:758
#10 0x0000204d in get_database (dbname=@0xbffff498) at apitest.cc:50
#11 0x00049c3e in test_databaseassign1 () at api_wrdb.cc:304
#12 0x0007af97 in test_driver::runtest (this=0xbffff67c, test=0x9b300)
at testsuite.cc:213
#13 0x0007d292 in test_driver::do_run_tests (this=0xbffff67c,
b={_M_current = 0x0}, e={_M_current = 0x0}) at testsuite.cc:447
#14 0x0007d51c in test_driver::run_tests (this=0xbffff67c,
b={_M_current = 0x0}, e={_M_current = 0x0}) at testsuite.cc:410
#15 0x0007dcb2 in test_driver::run (tests=0x9b2e0) at testsuite.cc:627
#16 0x000032ae in main (argc=3, argv=0xbffff9f8) at apitest.cc:116


  James Aylett                                                  xapian.org
  james at tartarus.org                               uncertaintydivision.org

More information about the Xapian-devel mailing list