Skip to content

Commit

Permalink
Fix #1 by preloading libgcc_s.so.1
Browse files Browse the repository at this point in the history
  • Loading branch information
kpushkaryov committed Jun 7, 2024
1 parent e9220e1 commit 8a1b55a
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 8a1b55a

Please sign in to comment.