[IBPP-DISCUSS] segment fault in DatabaseImpl::Disconnect
IBPP is a C++ client class library for FirebirdSQL
Status: Inactive
Brought to you by:
epocman
|
From: chen h. <ch...@ou...> - 2016-06-08 20:22:09
|
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. |