Skip to content

[BUG] close() -> SIGSEGVΒ #18

@raphaelauv

Description

@raphaelauv

ubuntu 20.04 , python 3.8

import aimrocks

db_options = dict(
    create_if_missing=True,
    paranoid_checks=False,
)

db_path = '/tmp/example_db2'
rocks_db = aimrocks.DB(db_path, aimrocks.Options(**db_options), read_only=False)

batch = aimrocks.WriteBatch()
batch.put(b'key_1', b'value_1')
batch.put(b'key_1', b'value_1')
...

rocks_db.write(batch)
rocks_db.close() # throw the error

rocks_db = aimrocks.DB(db_path, aimrocks.Options(**db_options), read_only=True)
rocks_db.get(b"key_1")
if __name__ == '__main__':
    pass

give

Process finished with exit code 139 (interrupted by signal 11: SIGSEGV)

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions