Skip to content

Fix reference counting issue (#65) - #69

Open
jamesjer wants to merge 1 commit into
dask:mainfrom
jamesjer:refcount
Open

Fix reference counting issue (#65)#69
jamesjer wants to merge 1 commit into
dask:mainfrom
jamesjer:refcount

Conversation

@jamesjer

Copy link
Copy Markdown
Contributor

Fixes #65. I think what is going on is that a hash table merge can leave the same object in two hash tables, so when both hash tables are deleted, that object's reference count is decremented twice. Since the reference count is incremented only when an object is added to T->list, I took the approach of decrementing the reference count based on the contents of T->list, instead of trying to figure out how to tweak reference counts during a merge. In my tests with Fedora Rawhide, this lets the test suite pass without segfaulting.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Segfaults on Python 3.14.0b2

1 participant