Open iangneal opened 3 years ago
Hi @Dahca ,
Thanks for the report. Let me get back to you after checking and fixing it. However, if you already have a solution, I would appreciate it if you make a pull request for it.
Hey @SeKwonLee,
I'd be happy to submit a PR for this in the near future, but I will be slightly delayed by an upcoming deadline. I'll ping this issue once I have a solution or if I have any issues in coming up with one.
Bug
Exposed by crashing after freeing the hash table in
clht_gc_free
.https://github.com/utsaslab/RECIPE/blob/fc508ddfae1ca0d77cf3d3f1b73849e65c223f26/P-CLHT/src/clht_gc.c#L239-L242
pmemobj_free
sets the PMEMoid object to NULL when freeing objects.hashtable->table_off
, the offset is never set to null, and so a crash can cause a double-free to occur.Steps to reproduce
Will output something like: