[issue33612] Assertion failure in PyThreadState_Clear

2018-05-23 Thread STINNER Victor
STINNER Victor added the comment: Attached bug.py reproduces the bug with a daemonic thread but without fork(): $ ./python bug.py ls coredpython: Python/pystate.c:589: PyThreadState_Clear: Assertion `tstate->exc_info->previous_item == NULL' failed. Aborted (core dumped)

[issue33613] test_multiprocessing_fork: test_semaphore_tracker_sigint() fails with -W error

2018-05-23 Thread STINNER Victor
Change by STINNER Victor : Removed file: https://bugs.python.org/file47611/bug.py ___ Python tracker ___

[issue33613] test_multiprocessing_fork: test_semaphore_tracker_sigint() fails with -W error

2018-05-23 Thread STINNER Victor
Change by STINNER Victor : -- Removed message: https://bugs.python.org/msg317376 ___ Python tracker ___

[issue33613] test_multiprocessing_fork: test_semaphore_tracker_sigint() fails with -W error

2018-05-23 Thread STINNER Victor
Change by STINNER Victor : -- Removed message: https://bugs.python.org/msg317375 ___ Python tracker ___

[issue33613] test_multiprocessing_fork: test_semaphore_tracker_sigint() fails with -W error

2018-05-23 Thread STINNER Victor
STINNER Victor added the comment: Using bug.py, the assertion fails at: python: Python/pystate.c:589: PyThreadState_Clear: Assertion `tstate->exc_info->previous_item == NULL' failed. Aborted (core dumped) (...) vstinner@apu$ gdb ./python -c coredump-python.24130 GNU gdb

[issue33613] test_multiprocessing_fork: test_semaphore_tracker_sigint() fails with -W error

2018-05-23 Thread STINNER Victor
STINNER Victor added the comment: Attached bug.py reproduces the bug with a daemonic thread but without fork(): $ ./python bug.py ls coredpython: Python/pystate.c:589: PyThreadState_Clear: Assertion `tstate->exc_info->previous_item == NULL' failed. Aborted (core dumped)

[issue33613] test_multiprocessing_fork: test_semaphore_tracker_sigint() fails with -W error

2018-05-23 Thread STINNER Victor
STINNER Victor added the comment: Note: I found this bug while working on bpo-33612. -- ___ Python tracker ___

[issue33612] Assertion failure in PyThreadState_Clear

2018-05-23 Thread STINNER Victor
STINNER Victor added the comment: I created bpo-33613: "test_multiprocessing_fork: test_semaphore_tracker_sigint() fails with -W error". I don't think that it's directly related. -- ___ Python tracker

[issue33613] test_multiprocessing_fork: test_semaphore_tracker_sigint() fails with -W error

2018-05-23 Thread STINNER Victor
New submission from STINNER Victor : test_semaphore_tracker_sigint() emits a warning. If the test is run with -W error, the test fails. vstinner@apu$ ./python -m test test_multiprocessing_fork -v -m test_semaphore_tracker_sigint (...) test_semaphore_tracker_sigint

[issue33611] Fatal Python error: Py_Initialize: unable to load the file system codec

2018-05-23 Thread STINNER Victor
STINNER Victor added the comment: > Maybe, your Python installation is broken, or you have wrong PYTHONPATH > envvar. We should maybe dump sys.path into stderr on the specific "unable to load the file system codec" error. -- nosy: +vstinner

[issue33611] Fatal Python error: Py_Initialize: unable to load the file system codec

2018-05-23 Thread INADA Naoki
INADA Naoki added the comment: It seems not a bug of Python. Maybe, your Python installation is broken, or you have wrong PYTHONPATH envvar. -- nosy: +inada.naoki ___ Python tracker

[issue33612] Assertion failure in PyThreadState_Clear

2018-05-23 Thread STINNER Victor
STINNER Victor added the comment: Failing assertion: /* The stack of exception states should contain just this thread. */ assert(tstate->exc_info->previous_item == NULL); "test_multiprocessing_fork passed in 9 min 13 sec" Oh. A child process crashed on "self.pid

[issue33612] Assertion failure in PyThreadState_Clear

2018-05-23 Thread STINNER Victor
STINNER Victor added the comment: The assertion has been added by bpo-25612: commit ae3087c6382011c47db82fea4d05f8bbf514265d Author: Mark Shannon Date: Sun Oct 22 22:41:51 2017 +0100 Move exc state to generator. Fixes bpo-25612 (#1773) Move

[issue33330] Better error handling in PyImport_Cleanup()

2018-05-23 Thread STINNER Victor
STINNER Victor added the comment: I reopen the issue because I created the PR 7068 to propose further checks (in debug mode). -- resolution: fixed -> status: closed -> open ___ Python tracker

[issue26826] Expose new copy_file_range() syscall in os module.

2018-05-23 Thread STINNER Victor
STINNER Victor added the comment: > As for the patch attached to this ticket, is there anything missing in order > to push it forward? IMHO the next step would be to create a pull request on GitHub. -- ___ Python tracker

[issue33330] Better error handling in PyImport_Cleanup()

2018-05-23 Thread STINNER Victor
Change by STINNER Victor : -- pull_requests: +6696 ___ Python tracker ___ ___

[issue26826] Expose new copy_file_range() syscall in os module.

2018-05-23 Thread Giampaolo Rodola'
Giampaolo Rodola' added the comment: This is a great addition. I have a working patch adding sendfile() support for shutil.copyfileobj() which speeds it up by a factor of 1.3x on Linux. According to this

[issue33612] Assertion failure in PyThreadState_Clear

2018-05-23 Thread Antoine Pitrou
Change by Antoine Pitrou : -- priority: normal -> critical ___ Python tracker ___ ___

[issue19251] bitwise ops for bytes of equal length

2018-05-23 Thread Matthias Gilch
Change by Matthias Gilch : -- nosy: +MGilch ___ Python tracker ___ ___

[issue33610] IDLE: Make multiple improvements to CodeContext

2018-05-23 Thread Terry J. Reedy
Terry J. Reedy added the comment: 11. Use read-only Text instead of Label for context. Text.index(f'@{e.x},{e.y}', where e is event, converts mouse click to line number. That can be mapped to text line number for 8. above. Text also enables 12. If context box is too short

[issue33612] Assertion failure in PyThreadState_Clear

2018-05-23 Thread Serhiy Storchaka
Change by Serhiy Storchaka : -- nosy: +vstinner ___ Python tracker ___ ___

[issue33612] Assertion failure in PyThreadState_Clear

2018-05-23 Thread Serhiy Storchaka
New submission from Serhiy Storchaka : I got the following output when run tests in the huntrleaks mode. $ ./python -We -m test -R 3:3 -x test_builtin -x test_urlparse ... 1:24:54 load avg: 2.48 [225/414] test_multiprocessing_fork beginning 6 repetitions 123456

[issue33565] strange tracemalloc results

2018-05-23 Thread Alexander Mohr
Alexander Mohr added the comment: INADA Naoki: Unfortunately you'll need to use credentials from a free AWS account: https://aws.amazon.com/free/. Then create a credentials file in ~/.aws/credentials:

[issue33611] Fatal Python error: Py_Initialize: unable to load the file system codec

2018-05-23 Thread s
New submission from s : Fatal Python error: Py_Initialize: unable to load the file system codec ModuleNotFoundError: No module named 'encodings' ### Process: Python [1889] Path:

<    1   2   3