[issue40860] Exception in multiprocessing/context.py under load

2020-08-10 Thread Arkady
Arkady added the comment: "documentation of thread safety" I find it surprising that a module called "multiprocessing" has not a thread safe API. If this is inevitable, I guess that's the life. I expect nothing less that a bold bright red font at the top of the do

[issue40860] Exception in multiprocessing/context.py under load

2020-08-09 Thread Arkady
Arkady added the comment: I have switched to os.fork() I am doing something like this https://gist.github.com/larytet/3ca9f9a32b1dc089a24cb7011455141f -- ___ Python tracker <https://bugs.python.org/issue40

[issue37788] fix for bpo-36402 (threading._shutdown() race condition) causes reference leak

2020-06-19 Thread Arkady
Arkady added the comment: I have reproduced a similar memory leak in the multiprocessing This is the trace: 913 memory blocks: 33232 Bytes: File "/usr/lib/python3.7/threading.py", line 890;self._bootstrap_inner(); File "/usr/lib/python3.7/threading.py"

[issue40860] Exception in multiprocessing/context.py under load

2020-06-19 Thread Arkady
Arkady added the comment: There is a memory leak every time call to join() fails (is https://bugs.python.org/issue37788 relevant?) -- ___ Python tracker <https://bugs.python.org/issue40

[issue40860] Exception in multiprocessing/context.py under load

2020-06-10 Thread Arkady
Arkady added the comment: A workaround is to synchronize the call to Process.start() diff --git a/main.py b/main.py index d09dc53..49d68f0 100644 --- a/main.py +++ b/main.py @@ -26,17 +26,24 @@ def load_cpu(deadline): while time.time() - start < 0.2*deadline: math.

[issue40860] Exception in multiprocessing/context.py under load

2020-06-09 Thread Arkady
Arkady added the comment: Update. I have reproduced the problem in the code not calling Process.join() at all. It require more time and more load, but eventually Process.start() crashes. Posted a question on https://stackoverflow.com/questions/62276345/call-to-pythons-mutliprocessing

[issue40860] Exception in multiprocessing/context.py under load

2020-06-07 Thread Arkady
Arkady added the comment: Is there any news about? This 50 lines sample reproduces the problem https://github.com/larytet-py/multiprocess Please let me know if more information is needed. -- ___ Python tracker <https://bugs.python.org/issue40

[issue40860] Exception in multiprocessing/context.py under load

2020-06-04 Thread Arkady
Arkady added the comment: The problem is likely in the call to multiprocessing.Process.join() with timeout. If I use timeout=None the code works. -- ___ Python tracker <https://bugs.python.org/issue40

[issue40860] Exception in multiprocessing/context.py under load

2020-06-03 Thread Arkady M
New submission from Arkady M : I am running an HTTP server (socketserver.ThreadingMixIn, http.server.HTTPServer) in a Docker container (FROM ubuntu:19.10) Occasionally I get an exception: Exception happened during processing of request from ('172.17.0.1', 35756) Traceback (most r

[issue28899] Symbols doesn't match in VS for python.exe and python35.dll

2016-12-07 Thread Arkady “KindDragon” Shapkin
Changes by Arkady “KindDragon” Shapkin : -- resolution: -> not a bug ___ Python tracker <http://bugs.python.org/issue28899> ___ ___ Python-bugs-list mai

[issue28899] Symbols doesn't match in VS for python.exe and python35.dll

2016-12-07 Thread Arkady “KindDragon” Shapkin
Arkady “KindDragon” Shapkin added the comment: That was my fault -- status: open -> closed ___ Python tracker <http://bugs.python.org/issue28899> ___ ___ Py

[issue28899] Symbols doesn't match in VS for python.exe and python35.dll

2016-12-07 Thread Arkady “KindDragon” Shapkin
New submission from Arkady “KindDragon” Shapkin: I installed Python 3.5.2 with PDB, but they can't be loaded. If I try to load them manually Visual Studio displays message "A matching symbol file was not found in this folder." -- components: Windows messages: 2826

[issue13207] os.path.expanduser breaks when using unicode character in the username

2016-04-08 Thread Arkady “KindDragon” Shapkin
Arkady “KindDragon” Shapkin added the comment: At least Python 2.7 should return in locale.getpreferredencoding() encoding -- nosy: +Arkady “KindDragon” Shapkin ___ Python tracker <http://bugs.python.org/issue13

[issue11577] testcase for exception binhex.Error

2011-03-16 Thread Arkady Koplyarov
Arkady Koplyarov added the comment: Well, I believe that in BinHex.__init__() I cannot just wrap the _writeinfo call into a try-finally block, and close ofp in the finally. I see that in the case of normal operation when the exception is not thrown, the output file descriptor ofp is used in

[issue11577] testcase for exception binhex.Error

2011-03-16 Thread Arkady Koplyarov
Arkady Koplyarov added the comment: The testcase provided shows up a resource leakage: - C:\_cpython\cpython>PCbuild\python_d.exe -m test.regrtest test_binhex [1/1] test_binhex C:\_cpython\cpython\lib\unittest\case.py:574: ResourceWarning: unclosed file <_io.BufferedWrite

[issue11577] testcase for exception binhex.Error

2011-03-16 Thread Arkady Koplyarov
Arkady Koplyarov added the comment: The testcase updated accordingly to Nick Coghlan's suggestion to use assertRaises() since the testcase deals with an exception. -- Added file: http://bugs.python.org/file21252/testcase_for_binhex_module_2.

[issue11577] testcase for exception binhex.Error

2011-03-16 Thread Arkady Koplyarov
New submission from Arkady Koplyarov : Testcase for exception binhex.Error to increase test coverage. -- components: Library (Lib), Tests files: testcase_for_binhex_module.patch keywords: patch messages: 131159 nosy: arkady.koplyarov priority: normal severity: normal status: open title