[issue29167] Race condition in enum.py:_decompose()

2019-11-25 Thread Ethan Furman
Ethan Furman added the comment: The latest patch from issue38045 should make race-conditions non-existent. -- ___ Python tracker ___

[issue29167] Race condition in enum.py:_decompose()

2019-03-04 Thread Martin
Martin added the comment: Our production system hit this issue using Python 3.6.7 once a few days ago, so presumably the race is still possible with the applied patch, just less likely? ``` RuntimeError: dictionary changed size during iteration at _decompose (/usr/lib/python3.6/enum.py:858)

[issue29167] Race condition in enum.py:_decompose()

2017-01-24 Thread Roundup Robot
Roundup Robot added the comment: New changeset 95e184bd2d89 by Ethan Furman in branch '3.6': closes issue29167: fix race condition in (Int)Flag https://hg.python.org/cpython/rev/95e184bd2d89 New changeset e6b98c270718 by Ethan Furman in branch 'default': issue29167: fix race condition in

[issue29167] Race condition in enum.py:_decompose()

2017-01-23 Thread Ethan Furman
Ethan Furman added the comment: Fixed the race condition for both the RuntimeError and for getting duplicate composite members. -- keywords: +patch stage: test needed -> patch review Added file: http://bugs.python.org/file46394/issue29167.stoneleaf.01.patch

[issue29167] Race condition in enum.py:_decompose()

2017-01-07 Thread Ethan Furman
Ethan Furman added the comment: Thanks. I'll go through and audit all my dictionary iterations. -- nosy: +barry, eli.bendersky ___ Python tracker ___

[issue29167] Race condition in enum.py:_decompose()

2017-01-07 Thread Simon Percivall
Simon Percivall added the comment: Run this a couple of times (it fails for me the first time, but it's a race, so YMMV): ``` import enum from concurrent.futures import ThreadPoolExecutor class MyEnum(enum.IntFlag): one = 1 with ThreadPoolExecutor() as executor:

[issue29167] Race condition in enum.py:_decompose()

2017-01-05 Thread Ethan Furman
Changes by Ethan Furman : -- assignee: -> ethan.furman stage: -> test needed ___ Python tracker ___

[issue29167] Race condition in enum.py:_decompose()

2017-01-05 Thread Ethan Furman
Ethan Furman added the comment: Simon, can you post the exact line of code that causes the error? It would be useful for creating a test case and the couple things I have tried to duplicate the error have worked fine. -- ___ Python tracker

[issue29167] Race condition in enum.py:_decompose()

2017-01-05 Thread Serhiy Storchaka
Changes by Serhiy Storchaka : -- components: +IO nosy: +ethan.furman type: crash -> behavior ___ Python tracker ___

[issue29167] Race condition in enum.py:_decompose()

2017-01-05 Thread Simon Percivall
New submission from Simon Percivall: When called by `_create_pseudo_member_()`, the dictionary iteration of `_value2member_map` in `_decompose()` in enum.py may lead to a "RuntimeError: dictionary changed size during iteration". For me, it happened in `re.compile`. ``` Traceback (most recent