Skip to content

Commit

Permalink
Preload libgcc_s.so.1 to avoid crash on pthread_cancel call (fixes #1)
Browse files Browse the repository at this point in the history
  • Loading branch information
kpushkaryov committed Jun 13, 2024
1 parent e9220e1 commit a26b518
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion BUCK
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,10 @@ include_defs('//product.defs.py')
python_binary(
name = 'debian11to12.pex',
platform = 'py3',
build_args = ['--python-shebang', '/usr/bin/env python3'],
# libgcc_s.so.1 is preloaded to workaround crash due to "libgcc_s.so.1 must
# be installed for pthread_cancel to work" instead of clean exit after
# dist-upgrade, see https://bugs.python.org/issue44434
build_args = ['--python-shebang', '/usr/bin/env -S LD_PRELOAD=libgcc_s.so.1 python3'],
main_module = 'debian11to12.main',
deps = [
'dist-upgrader//pleskdistup:lib',
Expand Down

0 comments on commit a26b518

Please sign in to comment.