[issue38884] __import__ is not thread-safe on Python 3

2021-12-08 Thread Valentyn Tymofieiev
Valentyn Tymofieiev added the comment: Given that the behavior changes between Python 3.2 (no deadlock) and Python 3.3 (deadlock), this should be easily bisectable if someone has the right setup to build and run Python versions from sources in that range

[issue35943] PyImport_GetModule() can return partially-initialized module

2020-02-20 Thread Valentyn Tymofieiev
Valentyn Tymofieiev added the comment: @gjb1002: see also https://bugs.python.org/issue38884, which demonstrates that concurrent imports are not thread-safe on Python 3. -- ___ Python tracker <https://bugs.python.org/issue35

[issue38884] __import__ is not thread-safe on Python 3

2020-01-15 Thread Valentyn Tymofieiev
Valentyn Tymofieiev added the comment: Just checking - is issue38884.zip an acceptable repro for this issue? Thanks. -- ___ Python tracker <https://bugs.python.org/issue38

[issue38593] Python 3.7 does not catch infinite recursion for some values of sys.getrecursionlimit()

2020-01-15 Thread Valentyn Tymofieiev
Valentyn Tymofieiev added the comment: The stack is fairly deep here, and I didn't have time to filter out the smallest repro. Since this check is best effort, and not reproducible on the 3.8, perhaps this is a low-priority issue. Thanks. -- nosy: +brett.c

[issue38884] __import__ is not thread-safe on Python 3

2019-11-25 Thread Valentyn Tymofieiev
Valentyn Tymofieiev added the comment: @brett.cannon, looks like I inadvertently dropped you from nosy list, so in case you missed the updates - please take a look at issue38884.zip. Thank you. -- ___ Python tracker <https://bugs.python.

[issue38884] __import__ is not thread-safe on Python 3

2019-11-25 Thread Valentyn Tymofieiev
Change by Valentyn Tymofieiev : -- nosy: +brett.cannon, eric.snow, ncoghlan ___ Python tracker <https://bugs.python.org/issue38884> ___ ___ Python-bugs-list m

[issue38884] __import__ is not thread-safe on Python 3

2019-11-25 Thread Valentyn Tymofieiev
Change by Valentyn Tymofieiev : -- nosy: +Valentyn Tymofieiev -brett.cannon ___ Python tracker <https://bugs.python.org/issue38884> ___ ___ Python-bugs-list m

[issue38884] __import__ is not thread-safe on Python 3

2019-11-25 Thread Valentyn Tymofieiev
Change by Valentyn Tymofieiev : -- nosy: +brett.cannon -Valentyn Tymofieiev ___ Python tracker <https://bugs.python.org/issue38884> ___ ___ Python-bugs-list m

[issue38884] __import__ is not thread-safe on Python 3

2019-11-21 Thread Valentyn Tymofieiev
Change by Valentyn Tymofieiev : -- versions: +Python 3.8 ___ Python tracker <https://bugs.python.org/issue38884> ___ ___ Python-bugs-list mailing list Unsub

[issue38884] __import__ is not thread-safe on Python 3

2019-11-21 Thread Valentyn Tymofieiev
Valentyn Tymofieiev added the comment: The behavior changes between Python 3.2 (no deadlock) and Python 3.3 (deadlock). Deadlock also reproducible on Python 3.8. -- ___ Python tracker <https://bugs.python.org/issue38

[issue38884] __import__ is not thread-safe on Python 3

2019-11-21 Thread Valentyn Tymofieiev
Valentyn Tymofieiev added the comment: input_deadlock.py in issue38884.zip has a left-over comment: # Requires pip install tensorflow==2.0.0 tensorflow-transform==0.15.0 Please ignore that. -- ___ Python tracker <https://bugs.python.

[issue38884] __import__ is not thread-safe on Python 3

2019-11-21 Thread Valentyn Tymofieiev
Valentyn Tymofieiev added the comment: Repro: unpack issue38884.zip python input_deadlock.py (fails on Python 3.7, but not on 2.7). -- ___ Python tracker <https://bugs.python.org/issue38

[issue38884] __import__ is not thread-safe on Python 3

2019-11-21 Thread Valentyn Tymofieiev
Valentyn Tymofieiev added the comment: Attaching a minimal repro with simple project hierarchy. -- nosy: -brett.cannon, eric.snow, ncoghlan Added file: https://bugs.python.org/file48737/issue38884.zip ___ Python tracker <https://bugs.python.

[issue38884] __import__ is not thread-safe on Python 3

2019-11-21 Thread Valentyn Tymofieiev
Valentyn Tymofieiev added the comment: Possibly related: https://bugs.python.org/issue35943 -- ___ Python tracker <https://bugs.python.org/issue38884> ___ ___

[issue35943] PyImport_GetModule() can return partially-initialized module

2019-11-21 Thread Valentyn Tymofieiev
Valentyn Tymofieiev added the comment: Thanks. Is it possible that this issue and https://bugs.python.org/issue38884 are duplicates? -- ___ Python tracker <https://bugs.python.org/issue35

[issue34572] C unpickling bypasses import thread safety

2019-11-21 Thread Valentyn Tymofieiev
Valentyn Tymofieiev added the comment: While investigating[1], I observe that certain unpickling operations, for example, Unpickler.find_class, remain not thread-safe in Python 3.7.5 and earlier versions that I tried. I have not tried 3.8, but cannot reproduce this error on Python 2. For

[issue34572] C unpickling bypasses import thread safety

2019-11-21 Thread Valentyn Tymofieiev
Change by Valentyn Tymofieiev : Added file: https://bugs.python.org/file48736/find_class_deadlock.py ___ Python tracker <https://bugs.python.org/issue34572> ___ ___ Pytho

[issue38884] __import__ is not thread-safe on Python 3

2019-11-21 Thread Valentyn Tymofieiev
Valentyn Tymofieiev added the comment: Attached import_deadlock.py fails with ... File "", line 980, in _find_and_load File "", line 149, in __enter__ File "", line 94, in acquire _frozen_importlib._DeadlockError: dea

[issue38884] __import__ is not thread-safe on Python 3

2019-11-21 Thread Valentyn Tymofieiev
New submission from Valentyn Tymofieiev : Attached import_module_not_found.py consistently fails for me on Python 3.7.5 and earlier Python 3 versions that I have tried with File "/usr/lib/python3.7/threading.py", line 926, in _bootstrap_inner self.run() File "/us

[issue35943] PyImport_GetModule() can return partially-initialized module

2019-11-18 Thread Valentyn Tymofieiev
Valentyn Tymofieiev added the comment: Do we plan to backport the change by nanjekyejoannah to 3.7 branch? -- nosy: +Valentyn Tymofieiev ___ Python tracker <https://bugs.python.org/issue35

[issue38593] Python 3.7 does not catch infinite recursion for some values of sys.getrecursionlimit()

2019-10-25 Thread Valentyn Tymofieiev
Valentyn Tymofieiev added the comment: I observed this issue in Python 3.7.2, 3.7.4, 3.7.5, however it seems to be fixed in 3.8.0. -- ___ Python tracker <https://bugs.python.org/issue38

[issue38593] Python 3.7 does not catch infinite recursion for some values of sys.getrecursionlimit()

2019-10-25 Thread Valentyn Tymofieiev
Change by Valentyn Tymofieiev : -- type: -> crash ___ Python tracker <https://bugs.python.org/issue38593> ___ ___ Python-bugs-list mailing list Unsubscrib

[issue38593] Python 3.7 does not catch infinite recursion for some values of sys.getrecursionlimit()

2019-10-25 Thread Valentyn Tymofieiev
New submission from Valentyn Tymofieiev : While investigating an issue[1] in Apache Beam, we observed that Python 3.7 does not catch an infinite recursion for some values of sys.getrecursionlimit(). Repro steps: docker run -it --entrypoint=/bin/bash python:3.7-stretch git clone https