[issue37395] Core interpreter should be linked with libgcc_s.so on Linux

2021-06-28 Thread STINNER Victor
STINNER Victor added the comment: > This is arguably a bug in glibc, but Python can easily work around it by > linking the core interpreter (the `python` executable and/or `libpython.so`) > with libgcc_s at build time (`-lgcc_s`) on Linux. It will then be loaded > already if and when it's

[issue37395] Core interpreter should be linked with libgcc_s.so on Linux

2019-06-24 Thread Zack Weinberg
New submission from Zack Weinberg : There are several existing issues (e.g. #18748 and #35866) where at least part of the problem is that GNU libc tried to dlopen() `libgcc_s.so` at a moment when that's not safe, e.g. during thread or process shutdown. This converts a recoverable error into