Skip to content

[3.7] bpo-35961: Fix a crash in slice_richcompare() (GH-11830)#11839

Merged
miss-islington merged 1 commit into
python:3.7from
miss-islington:backport-dcb68f4-3.7
Feb 13, 2019
Merged

[3.7] bpo-35961: Fix a crash in slice_richcompare() (GH-11830)#11839
miss-islington merged 1 commit into
python:3.7from
miss-islington:backport-dcb68f4-3.7

Conversation

@miss-islington

@miss-islington miss-islington commented Feb 13, 2019

Copy link
Copy Markdown
Contributor

Fix a crash in slice_richcompare(): use strong references rather than
stolen references for the two temporary internal tuples.

The crash (or assertion error) occurred if a garbage collection
occurred during slice_richcompare(), especially while calling
PyObject_RichCompare(t1, t2, op).
(cherry picked from commit dcb68f4)

Co-authored-by: Victor Stinner vstinner@redhat.com

https://bugs.python.org/issue35961

Fix a crash in slice_richcompare(): use strong references rather than
stolen references for the two temporary internal tuples.

The crash (or assertion error) occurred if a garbage collection
occurred during slice_richcompare(), especially while calling
PyObject_RichCompare(t1, t2, op).
(cherry picked from commit dcb68f4)

Co-authored-by: Victor Stinner <vstinner@redhat.com>

@vstinner vstinner 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.

LGTM, good bot.

@miss-islington

Copy link
Copy Markdown
Contributor Author

@vstinner: Status check is done, and it's a success ✅ .

@miss-islington miss-islington merged commit a78251e into python:3.7 Feb 13, 2019
@miss-islington miss-islington deleted the backport-dcb68f4-3.7 branch February 13, 2019 11:49
@miss-islington

Copy link
Copy Markdown
Contributor Author

@vstinner: Status check is done, and it's a success ✅ .

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.

4 participants