Skip to content

Fix list.insert() for refcounted values - #7603

Merged
sklam merged 1 commit into
numba:masterfrom
ehsantn:ehsan/list_insert_incref
Dec 15, 2021
Merged

sklam merged 1 commit into
numba:masterfrom
ehsantn:ehsan/list_insert_incref

Conversation

@ehsantn

@ehsantn ehsantn commented Nov 27, 2021

Copy link
Copy Markdown
Contributor

Fixes #7553.

Reference an existing issue

@esc esc left a comment

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

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

Thank you for this fix. I have tried running the test w/o the fix applied and I receive:

python(26644,0x112ca8dc0) malloc: Incorrect checksum for freed object 0x7f957ce5ec80: probably modified after being freed.
Corrupt value: 0x9fffffffffffffff
python(26644,0x112ca8dc0) malloc: *** set a breakpoint in malloc_error_break to debug
Fatal Python error: Aborted

Current thread 0x0000000112ca8dc0 (most recent call first):
<no Python frame>

But, with the fix applied, the test passes fine. So I am giving this the green light to merge.

@esc esc added 5 - Ready to merge Review and testing done, is ready to merge and removed 3 - Ready for Review Effort - short Short size effort needed labels Dec 14, 2021
@stuartarchibald stuartarchibald added this to the Numba 0.55 RC milestone Dec 14, 2021
@stuartarchibald stuartarchibald added the Effort - short Short size effort needed label Dec 14, 2021

@sklam sklam left a comment

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

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

Thanks for the patch!

I give a 15minute attempt to see if calling zfill in move would be more elegant and I am stuck with the case of moving the slots backward. So, it can be a future thing to revisit but we need to fix this bug now.

@sklam
sklam merged commit f02b5d8 into numba:master Dec 15, 2021
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

5 - Ready to merge Review and testing done, is ready to merge Effort - short Short size effort needed

Projects

None yet

Development

Successfully merging this pull request may close these issues.

List.insert() crashes for Numpy arrays

4 participants