diff options
author | Miss Islington (bot) <31488909+miss-islington@users.noreply.github.com> | 2021-06-21 12:29:17 (GMT) |
---|---|---|
committer | GitHub <noreply@github.com> | 2021-06-21 12:29:17 (GMT) |
commit | 6614eac843c5dc0f4c2664ef610b81e556e44923 (patch) | |
tree | 6da2cc08034d3068e11986b2af52c2e42e7ba540 /Lib/test/test_asyncio/test_windows_utils.py | |
parent | 9b0bbb9143d15507aae0ff3afeb05969178b306c (diff) | |
download | cpython-6614eac843c5dc0f4c2664ef610b81e556e44923.zip cpython-6614eac843c5dc0f4c2664ef610b81e556e44923.tar.gz cpython-6614eac843c5dc0f4c2664ef610b81e556e44923.tar.bz2 |
bpo-44434: Don't call PyThread_exit_thread() explicitly (GH-26758) (GH-26824)
_thread.start_new_thread() no longer calls PyThread_exit_thread()
explicitly at the thread exit, the call was redundant.
On Linux with the glibc, pthread_cancel() loads dynamically the
libgcc_s.so.1 library. dlopen() can fail if there is no more
available file descriptor to open the file. In this case, the process
aborts with the error message:
"libgcc_s.so.1 must be installed for pthread_cancel to work"
pthread_cancel() unwinds back to the thread's wrapping function that
calls the thread entry point.
The unwind function is dynamically loaded from the libgcc_s library
since it is tightly coupled to the C compiler (GCC). The unwinder
depends on DWARF, the compiler generates DWARF, so the unwinder
belongs to the compiler.
Thanks Florian Weimer and Carlos O'Donell for their help on
investigating this issue.
(cherry picked from commit 45a78f906d2d5fe5381d78466b11763fc56d57ba)
Co-authored-by: Victor Stinner <vstinner@python.org>
Diffstat (limited to 'Lib/test/test_asyncio/test_windows_utils.py')
0 files changed, 0 insertions, 0 deletions