This is related to #234.
Pointers to underlying RocksDB objects (eg. iterators) can outlive the underlying DB
object. If these objects are used after the DB
is Drop
-ped and closed, this can cause segfaults. Consider the implications to adding lifetime annotations to structs that manage these underlying objects.
Very interesting. Could you please express an example of code that illustrates that bug ?
@aleksuss Yes, I will (assigned this issue to myself). #234 has one example, but I suspect there are others. I'll try to find as many as I can.
Also, thanks to @rob-solana for finding this issue via #234.
I have a branch that fixes this issue. Should be a PR soon.
Fixed by #253