fix crash on shutdown when e.g. changing -txindex and abort action

- fixes #3136
- the problem is related to Boost path and a static initialized internal
  pointer
- using a std::string in CDBEnv::EnvShutdown() prevents the problem
- this removes the boost::filesystem::path path field from CDBEnv

Github-Pull: #6282
Rebased-From: 0ce30eaa36295447c6e7f8d16a05798c746fe28a
This commit is contained in:
Philip Kaufmann
2015-06-15 07:46:51 +02:00
committed by Wladimir J. van der Laan
parent 8ea6d37aee
commit daf956b7b1
2 changed files with 9 additions and 7 deletions

View File

@@ -27,7 +27,9 @@ class CDBEnv
private:
bool fDbEnvInit;
bool fMockDb;
boost::filesystem::path path;
// Don't change into boost::filesystem::path, as that can result in
// shutdown problems/crashes caused by a static initialized internal pointer.
std::string strPath;
void EnvShutdown();