pyinstaller / pyinstaller/pyinstaller

Can we get a better error message for noexec /tmp?

Open
#4,548 6 comments 0 reactions 0 assignees View on GitHub

Nobody has claimed this yet.

pull-request wanted
Dominant language
Python
Stars
13.1k
Forks
2k
Avg merge
1d 3h
Merged PRs (30d)
11

Description

Hi! Not sure if this is a pyinstaller bug, or a problem with the way Ubuntu bundles docker-compose. However, pyinstaller seems like the most central place to fix it:

error while loading shared libraries: libz.so.1: failed to map segment from shared object: Operation not permitted

Could we give a more helpful error message here, to remind users of bundled programs that it's about /tmp being mounted noexec?

This issue is intended to improve the experience for users of bundled programs.
#3870 is a related issue, but as I understand it, from the bundle provider's view.

Contributor guide

Open the contributing guide

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. Open a pull request that references the issue number.

Research direction

No file or test is named. Start from the quoted shared-library error and the /tmp noexec condition, then locate where PyInstaller can distinguish this failure from other loading errors. Done means bundled-program users receive a clear diagnostic explaining that /tmp is mounted noexec, with coverage for the reported case.

Written by the indexing model from the issue text.

Assessment

Tech stack
python
Domain
devtools, operating-systems
Issue type
Feature
Difficulty
4/5
Estimated time
3-5 days
Activity status
Stale
Clarity
Mostly clear
Newbie friendliness
35/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.