oxen-core/src/blockchain_db
Jason Rhinelander 4f6f67d151 Fix segfault triggered in test suite on macos
It seems that the `m_tinfo` can be null, sometimes, when `m_cursors ==
&m_wcursors` is true, and the upstream Monero code (which is pure macro)
doesn't touch the bool in such a case.

For some reason this started segfaulting now, only on macos, only on a
release build because of the access into `m_tinfo`.

The workaround (which is indeed a correct fix) appears to avoid the
segfault, but the segfault could retrigger if that invariant doesn't
hold (and it isn't immediately obvious why that invariant *should*
hold).

This, like pretty much all of the LMDB code, is garbage.
2021-07-06 17:37:01 -03:00
..
lmdb Fix segfault triggered in test suite on macos 2021-07-06 17:37:01 -03:00
CMakeLists.txt std::filesystem 2020-10-24 12:45:37 -03:00
blockchain_db.cpp Add snode revision soft forks & drop hard fork voting code 2021-06-19 15:13:57 -03:00
blockchain_db.h Add snode revision soft forks & drop hard fork voting code 2021-06-19 15:13:57 -03:00
locked_txn.h Merge commit 'c038cc8b791ffb4bcd5f13e47de1ea98815059fe' into MergeUpstream3 2020-05-28 12:23:19 +10:00
testdb.h Test suite fixes 2021-07-05 23:48:18 -03:00