Re: [IBPP-DISCUSS] segment fault in DatabaseImpl::Disconnect
IBPP is a C++ client class library for FirebirdSQL
Status: Inactive
Brought to you by:
epocman
|
From: Olivier M. <om...@in...> - 2016-06-11 12:54:49
|
> Le 8 juin 2016 à 22:22, chen hsu <ch...@ou...> a écrit : > > Recently I hit a segment fault in ibpp/database.cpp when deleting the database object, i.e. DatabaseImpl::Disconnect(). This function will call into Inactivate(), who iterates thru mStatements entries, and calls StatementImpl::DetachDatabaseImpl(), which in turn, calls into DatabaseImpl::DetachStatementImpl(), which will erase the corresponding entry from DatabaseImpl.mStatements vector. And a segment fault happened there, as mStatements has actually been overwritten with some garbage string. is it known issue? I doubt there might be some reentrant problem. Thanks. Indeed, there is one. I will upload a new version soon (next week) where this is fixed, along with some important announce about the project. -- Meilleures salutations, Met vriendelijke groeten, Best Regards, Olivier Mascia, integral.be/om |