Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

archive: fix TOC entry alignment in PKG/CArchive #7571

Merged
merged 1 commit into from Apr 14, 2023

Conversation

rokm
Copy link
Member

@rokm rokm commented Apr 14, 2023

The archive writers clean-up in #7518 introduced a subtle bug that causes incorrect padding of TOC entries that require no padding; such entries receive padding of the previously-processed entry.

This in turn breaks 16-byte alignment of the TOC entries, causing bus error when running onefile executable on platforms with stricter alignment requirements, for example armhf (32-bit Raspian OS).

Fixes #7566.

The archive writers clean-up in pyinstaller#7518 introduced a subtle bug that
causes incorrect padding of TOC entries that require no padding;
such entries receive padding of the previously-processed entry.

This in turn breaks 16-byte alignment of the TOC entries, causing
bus error when running executables on platforms with stricter
data alignment requirements, for example armhf (32-bit Raspbian OS).
@bwoodsend
Copy link
Member

Think I'll do a patch release for this one. It sounds pretty nasty.

@rokm rokm merged commit 4c2239a into pyinstaller:develop Apr 14, 2023
18 checks passed
@rokm rokm deleted the fix-pkg-alignment branch April 14, 2023 21:44
@github-actions github-actions bot locked as resolved and limited conversation to collaborators Jun 14, 2023
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Bus error in latest PyInstaller 5.10.0 on Raspberry Pi 32bit Buster OS
3 participants