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
Bus error in latest PyInstaller 5.10.0 on Raspberry Pi 32bit Buster OS #7566
Comments
We would we had any idea how to reproduce this error. Can you please fill out the issue template. |
This is what I use to build: If you need sample MyApp.py then I need to write , test and send |
The bus error happens with any python script you try to freeze? E.g., also with just a |
I have 2 binaries in my current project. Do you need me to make a one line python code and reproduct the issue in latest PyInstaller 5.10 ? |
Actually, what I'd like you to do is to try installing PyInstaller from source (assuming your current installation was just using
This should trigger local bootloader compilation (for which you need to have gcc and |
I got it what you say. |
Here I have reproduced with oneline code: NOTE: BusErrorTest.py
While Building: $ sudo pyinstaller -c -F --key 'MySecuredKey' --clean --upx-dir=/usr/bin/ /home/pi/PyInstallerTest/BusErrorTest.py Testing: $ sudo ./dist/BusErrorTest |
Here is a clean install and same issue: $ sudo pip3 uninstall pyinstaller Found existing installation: pyinstaller 5.10.0 $ sudo pip3 install git+https://github.com/pyinstaller/pyinstaller.git Looking in indexes: https://pypi.org/simple, https://www.piwheels.org/simple $ pyinstaller --version $ sudo pyinstaller -c -F --key 'MySecuredKey' --clean --upx-dir=/usr/bin/ /home/pi/PyInstallerTest/BusErrorTest.py 409 DEPRECATION: Bytecode encryption will be removed in PyInstaller v6. Please remove your --key=xxx argument to avoid breakages on upgrade. For the rationale/alternatives see #6999 $ sudo ./dist/BusErrorTest |
Btw, I have both zlib1g-dev and CGG already installed $ sudo dpkg -s zlib1g-dev $ sudo dpkg -s GCC |
I get the bus error with onefile hello-world build in |
Thank you so much for your dedication. |
@gaamaaresosa Can you verify that #7571 fixes the problem for you? I.e., reinstall PyInstaller from that branch:
and then rebuild the application. |
Great !
Thank you so much for your prompt help ! |
You are the best person to ask my doubts on PyInstaller. I am very much skeptical on the security of my python binaries. How far PyInstaller is safe ? |
Actually, If you really want to obfuscate your code, either cythonize the critical modules (although be aware that PyInstaller won't be able to analyze them, so you'll have to deal with hidden imports) or use pyarmor. |
Thanks again !
|
The latest version still uses key and applies the encryption, but it emits the deprecation warning. And passing
Because the decryption key is plain to see for anyone who knows where to look for it. And like I said, it is trivial to write a script to unpack and decrypt everything. So at the end of the day, all the
I have no experience with |
As you said currently PyIntaller scans all the coded and warn if any issues on it. Today's world everyone needs a good anti-reversable protection binary. |
Yes its a challenge to hide any secrete code now a days. I feel very bad when the community grows in developing useless new technologies fails to concentrate of hiding secret keys ets. These pain can be understood only by the develpers who work hard for their everyday bread and butter. You must never diclare the schema of some secrets even on opensource, especially on security related codes. Do you think 'steganography' also be cracked ? |
System Used:
Raspberry Pi 4 with Buster Rasbian OS 32bit
PyInstaller 5.10.0
While running the built binary I get below error and application exits.
Bus error
Since 4 months I use Pyinstaller-5.9.0 10 to 15 times a day on my project
And no issue faced.
Yesterday (13Apr2023) I have updated PyInstaller 5.10.0
After that I get this error.
Bus error
Now I again downgraded to Pyinstaller-5.9.0
Everything working fine.
Please check this bug.
The text was updated successfully, but these errors were encountered: