Skip to content

Fix Issue 24#25

Merged
1st1 merged 6 commits into
MagicStack:masterfrom
TIGirardi:issue-24
Apr 22, 2020
Merged

Fix Issue 24#25
1st1 merged 6 commits into
MagicStack:masterfrom
TIGirardi:issue-24

Conversation

@TIGirardi

@TIGirardi TIGirardi commented Apr 16, 2020

Copy link
Copy Markdown
Contributor

#24

MapNode_Array wasn't incrementing on inplace insertions

Related #26

Comment thread tests/test_issue24.py
self.assertTrue(d[0].startswith('HAMT'))
return d[1]

def test_array_node_update_in_place_count(self):

Copy link
Copy Markdown
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This test is crashing the interpreter on master

@elprans elprans requested a review from 1st1 April 18, 2020 18:03
@1st1

1st1 commented Apr 22, 2020

Copy link
Copy Markdown
Member

Thanks so much for fixing this. Debugging C code like this one isn't easy, really appreciate this.

While reviewing the fixes to map.c I create a fuzz test for the mutation API that also manages to crash the interpreter; your PR fixes that. I'll also double check all mutid == mutid branches to see if there are any potential problems there.

I'll merge the PR as is, although I will probably change the testing strategy to use the HashKey helper that allows testing precise hash tree shapes and trigger specific logic/code branches.

@1st1 1st1 merged commit ad137a3 into MagicStack:master Apr 22, 2020
@TIGirardi TIGirardi deleted the issue-24 branch May 17, 2020 11:08
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.

2 participants