[issue44434] _thread module: Remove redundant PyThread_exit_thread() call to avoid glibc fatal error: libgcc_s.so.1 must be installed for pthread_cancel to work

2021-07-08 Thread STINNER Victor
STINNER Victor added the comment: I created bpo-44584: "Deprecate thread debugging PYTHONTHREADDEBUG=1". -- ___ Python tracker ___

[issue44434] _thread module: Remove redundant PyThread_exit_thread() call to avoid glibc fatal error: libgcc_s.so.1 must be installed for pthread_cancel to work

2021-07-08 Thread STINNER Victor
STINNER Victor added the comment: I started "Does anyone use threading debug PYTHONTHREADDEBUG=1 env var? Can I remove it?" thread on python-dev: https://mail.python.org/archives/list/python-...@python.org/thread/NMLGCDRUKLZSTK4UICJTKR54WRXU2ZGJ/ --

[issue44434] _thread module: Remove redundant PyThread_exit_thread() call to avoid glibc fatal error: libgcc_s.so.1 must be installed for pthread_cancel to work

2021-07-03 Thread STINNER Victor
STINNER Victor added the comment: Good news: this change fixed bpo-35866 "concurrent.futures deadlock". -- ___ Python tracker ___

[issue44434] _thread module: Remove redundant PyThread_exit_thread() call to avoid glibc fatal error: libgcc_s.so.1 must be installed for pthread_cancel to work

2021-06-28 Thread STINNER Victor
STINNER Victor added the comment: On Linux, there is a workaround for Python versions which don't include this fix: $ LD_PRELOAD=/usr/lib64/libgcc_s.so.1 python3 ... To preload the libgcc_s.so.1 library in the Python process when running Python. --

[issue44434] _thread module: Remove redundant PyThread_exit_thread() call to avoid glibc fatal error: libgcc_s.so.1 must be installed for pthread_cancel to work

2021-06-28 Thread STINNER Victor
STINNER Victor added the comment: New changeset 48e3a1d95aee013974121fcafe19816c0e9a41da by Victor Stinner in branch 'main': bpo-44434: Remove useless calls to PyThread_exit_thread() (GH-26943) https://github.com/python/cpython/commit/48e3a1d95aee013974121fcafe19816c0e9a41da --

[issue44434] _thread module: Remove redundant PyThread_exit_thread() call to avoid glibc fatal error: libgcc_s.so.1 must be installed for pthread_cancel to work

2021-06-28 Thread STINNER Victor
STINNER Victor added the comment: I marked bpo-37395 "Core interpreter should be linked with libgcc_s.so on Linux" as a duplicate of this issue. -- ___ Python tracker ___

[issue44434] _thread module: Remove redundant PyThread_exit_thread() call to avoid glibc fatal error: libgcc_s.so.1 must be installed for pthread_cancel to work

2021-06-28 Thread STINNER Victor
STINNER Victor added the comment: Se also bpo-35866 which looks like a duplicate. -- ___ Python tracker ___ ___ Python-bugs-list

[issue44434] _thread module: Remove redundant PyThread_exit_thread() call to avoid glibc fatal error: libgcc_s.so.1 must be installed for pthread_cancel to work

2021-06-28 Thread STINNER Victor
STINNER Victor added the comment: I marked bpo-42888 as a duplicate of this issue. I created PR 26943 based on Alexey's PR 24241 to complete my fix (remove two calls in two tests). Copy of his interesting PR commit message: --- bpo-42888: Remove PyThread_exit_thread() calls from top-level

[issue44434] _thread module: Remove redundant PyThread_exit_thread() call to avoid glibc fatal error: libgcc_s.so.1 must be installed for pthread_cancel to work

2021-06-28 Thread STINNER Victor
Change by STINNER Victor : -- pull_requests: +25510 pull_request: https://github.com/python/cpython/pull/26943 ___ Python tracker ___

[issue44434] _thread module: Remove redundant PyThread_exit_thread() call to avoid glibc fatal error: libgcc_s.so.1 must be installed for pthread_cancel to work

2021-06-21 Thread STINNER Victor
STINNER Victor added the comment: Ok, the issue is now fixed in 3.9, 3.10 and main branches. -- resolution: -> fixed stage: patch review -> resolved status: open -> closed versions: +Python 3.10, Python 3.9 ___ Python tracker

[issue44434] _thread module: Remove redundant PyThread_exit_thread() call to avoid glibc fatal error: libgcc_s.so.1 must be installed for pthread_cancel to work

2021-06-21 Thread STINNER Victor
STINNER Victor added the comment: New changeset 6614eac843c5dc0f4c2664ef610b81e556e44923 by Miss Islington (bot) in branch '3.10': bpo-44434: Don't call PyThread_exit_thread() explicitly (GH-26758) (GH-26824) https://github.com/python/cpython/commit/6614eac843c5dc0f4c2664ef610b81e556e44923

[issue44434] _thread module: Remove redundant PyThread_exit_thread() call to avoid glibc fatal error: libgcc_s.so.1 must be installed for pthread_cancel to work

2021-06-21 Thread STINNER Victor
STINNER Victor added the comment: New changeset 83ad40efc3e299d1e94692d958111a63c2fd6775 by Victor Stinner in branch '3.9': bpo-44434: Don't call PyThread_exit_thread() explicitly (GH-26758) (GH-26825) https://github.com/python/cpython/commit/83ad40efc3e299d1e94692d958111a63c2fd6775

[issue44434] _thread module: Remove redundant PyThread_exit_thread() call to avoid glibc fatal error: libgcc_s.so.1 must be installed for pthread_cancel to work

2021-06-21 Thread STINNER Victor
Change by STINNER Victor : -- pull_requests: +25406 pull_request: https://github.com/python/cpython/pull/26825 ___ Python tracker ___

[issue44434] _thread module: Remove redundant PyThread_exit_thread() call to avoid glibc fatal error: libgcc_s.so.1 must be installed for pthread_cancel to work

2021-06-21 Thread miss-islington
Change by miss-islington : -- nosy: +miss-islington nosy_count: 2.0 -> 3.0 pull_requests: +25405 pull_request: https://github.com/python/cpython/pull/26824 ___ Python tracker

[issue44434] _thread module: Remove redundant PyThread_exit_thread() call to avoid glibc fatal error: libgcc_s.so.1 must be installed for pthread_cancel to work

2021-06-21 Thread STINNER Victor
STINNER Victor added the comment: New changeset 45a78f906d2d5fe5381d78466b11763fc56d57ba by Victor Stinner in branch 'main': bpo-44434: Don't call PyThread_exit_thread() explicitly (GH-26758) https://github.com/python/cpython/commit/45a78f906d2d5fe5381d78466b11763fc56d57ba --

[issue44434] _thread module: Remove redundant PyThread_exit_thread() call to avoid glibc fatal error: libgcc_s.so.1 must be installed for pthread_cancel to work

2021-06-16 Thread Erlend E. Aasland
Change by Erlend E. Aasland : -- nosy: +erlendaasland ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe:

[issue44434] _thread module: Remove redundant PyThread_exit_thread() call to avoid glibc fatal error: libgcc_s.so.1 must be installed for pthread_cancel to work

2021-06-16 Thread STINNER Victor
STINNER Victor added the comment: See also bpo-44436 "[Windows] _thread.start_new_thread() should close the thread handle". -- ___ Python tracker ___

[issue44434] _thread module: Remove redundant PyThread_exit_thread() call to avoid glibc fatal error: libgcc_s.so.1 must be installed for pthread_cancel to work

2021-06-16 Thread STINNER Victor
STINNER Victor added the comment: Unix pthread_create() manual page. https://man7.org/linux/man-pages/man3/pthread_create.3.html The new thread terminates in one of the following ways: (...) * It returns from start_routine(). This is equivalent to calling pthread_exit(3) with the value

[issue44434] _thread module: Remove redundant PyThread_exit_thread() call to avoid glibc fatal error: libgcc_s.so.1 must be installed for pthread_cancel to work

2021-06-16 Thread STINNER Victor
STINNER Victor added the comment: _thread.start_new_thread() always called "exit thread", since the function was added to Python: commit 1984f1e1c6306d4e8073c28d2395638f80ea509b Author: Guido van Rossum Date: Tue Aug 4 12:41:02 1992 + * Makefile adapted to changes below. *

[issue44434] _thread module: Remove redundant PyThread_exit_thread() call to avoid glibc fatal error: libgcc_s.so.1 must be installed for pthread_cancel to work

2021-06-16 Thread STINNER Victor
STINNER Victor added the comment: PyThread_exit_thread() was modified in 2011 to fix daemon threads: commit 0d5e52d3469a310001afe50689f77ddba6d554d1 Author: Antoine Pitrou Date: Wed May 4 20:02:30 2011 +0200 Issue #1856: Avoid crashes and lockups when daemon threads run while the

[issue44434] _thread module: Remove redundant PyThread_exit_thread() call to avoid glibc fatal error: libgcc_s.so.1 must be installed for pthread_cancel to work

2021-06-16 Thread STINNER Victor
Change by STINNER Victor : -- keywords: +patch pull_requests: +25343 stage: -> patch review pull_request: https://github.com/python/cpython/pull/26758 ___ Python tracker ___

[issue44434] _thread module: Remove redundant PyThread_exit_thread() call to avoid glibc fatal error: libgcc_s.so.1 must be installed for pthread_cancel to work

2021-06-16 Thread STINNER Victor
STINNER Victor added the comment: See also bpo-18748 "io.IOBase destructor silence I/O error on close() by default" which was caused by a bug in an application, the application closed the libgcc_s file descriptor by mistake. It closed the same file decriptor twice, whereas the FD was reused

[issue44434] _thread module: Remove redundant PyThread_exit_thread() call to avoid glibc fatal error: libgcc_s.so.1 must be installed for pthread_cancel to work

2021-06-16 Thread STINNER Victor
New submission from STINNER Victor : The glibc pthread_exit() functions loads an unwind function from libgcc_s.so.1 using dlopen(). dlopen() can fail to open libgcc_s.so.1 file to various reasons, but the most likely seems to be that the process is out of available file descriptor (EMFILE

[issue44434] _thread module: Remove redundant PyThread_exit_thread() call to avoid glibc fatal error: libgcc_s.so.1 must be installed for pthread_cancel to work

2021-06-16 Thread STINNER Victor
Change by STINNER Victor : Added file: https://bugs.python.org/file50113/pthread_cancel_emfile.py ___ Python tracker ___ ___