weixin_39528000 2020-11-21 02:49
浏览 0

Invalid pointers to underlying objects outlive DB

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.

该提问来源于开源项目:rust-rocksdb/rust-rocksdb

  • 写回答

4条回答 默认 最新

  • weixin_39528000 2020-11-21 02:49
    关注

    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.

    评论

报告相同问题?