[issue24583] Crash when source set is changed during merging

2015-07-08 Thread Raymond Hettinger

Raymond Hettinger added the comment:

Can you produce a test case?

Perhaps the incref/decref pair ought to be moved into 
PyObject_RichCompareBool().  It doesn't make much sense for the callers to do 
the work.

--

___
Python tracker 

___
___
Python-bugs-list mailing list
Unsubscribe: 
https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[issue24583] Crash when source set is changed during merging

2015-07-08 Thread Serhiy Storchaka

Serhiy Storchaka added the comment:

LGTM for 3.5.

But 3.6 has other bug. Changeset 637e197be547 looks incorrect to me. key should 
be increfed before calling PyObject_RichCompareBool() for the same reason as 
startkey.

--

___
Python tracker 

___
___
Python-bugs-list mailing list
Unsubscribe: 
https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[issue24583] Crash when source set is changed during merging

2015-07-08 Thread Serhiy Storchaka

Changes by Serhiy Storchaka :


--
Removed message: http://bugs.python.org/msg246469

___
Python tracker 

___
___
Python-bugs-list mailing list
Unsubscribe: 
https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[issue24583] Crash when source set is changed during merging

2015-07-08 Thread Serhiy Storchaka

Serhiy Storchaka added the comment:

LGTM for 3.4.

But 3.5 has other bug. Changeset 637e197be547 looks incorrect to me. key should 
be increfed before calling PyObject_RichCompareBool() for the same reason as 
startkey.

--

___
Python tracker 

___
___
Python-bugs-list mailing list
Unsubscribe: 
https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[issue24583] Crash when source set is changed during merging

2015-07-08 Thread Raymond Hettinger

Changes by Raymond Hettinger :


--
stage: needs patch -> patch review

___
Python tracker 

___
___
Python-bugs-list mailing list
Unsubscribe: 
https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[issue24583] Crash when source set is changed during merging

2015-07-08 Thread Raymond Hettinger

Changes by Raymond Hettinger :


Added file: http://bugs.python.org/file39883/index_to_entry.diff

___
Python tracker 

___
___
Python-bugs-list mailing list
Unsubscribe: 
https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[issue24583] Crash when source set is changed during merging

2015-07-07 Thread Raymond Hettinger

Changes by Raymond Hettinger :


--
priority: normal -> high

___
Python tracker 

___
___
Python-bugs-list mailing list
Unsubscribe: 
https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[issue24583] Crash when source set is changed during merging

2015-07-07 Thread Raymond Hettinger

Changes by Raymond Hettinger :


--
assignee:  -> rhettinger

___
Python tracker 

___
___
Python-bugs-list mailing list
Unsubscribe: 
https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[issue24583] Crash when source set is changed during merging

2015-07-07 Thread Serhiy Storchaka

New submission from Serhiy Storchaka:

When the set is not empty and set.update() argument is set that is modified 
during merging, the crash is caused. Here is a test that reproduces a crash. 
Only Python 3.5+ is affected.

--
components: Interpreter Core
files: test_set__merge_and_mutate.patch
keywords: patch
messages: 246403
nosy: rhettinger, serhiy.storchaka
priority: normal
severity: normal
stage: needs patch
status: open
title: Crash when source set is changed during merging
type: crash
versions: Python 3.5, Python 3.6
Added file: http://bugs.python.org/file39881/test_set__merge_and_mutate.patch

___
Python tracker 

___
___
Python-bugs-list mailing list
Unsubscribe: 
https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com