Skip to content

Crash on Start on Ubuntu 24.04 - Electron SUID Sandbox fails #2433

@AmmarAbouZor

Description

@AmmarAbouZor

Chipmunk crashes on start on Linux on Ubuntu from version 24.04 LTS onward with the following error message:

The SUID sandbox helper binary was found, but is not configured correctly. Rather than run without sandboxing I'm aborting now. You need to make sure that /home/aa/Downloads/chipmunk@3.19.1-linux-portable/chrome-sandbox is owned by root and has mode 4755.
Trace/breakpoint trap (core dumped)

After some research I've found out that Ubuntu is adding restrictions apparmor for unprivileged users by default, causing Electron to fallback to SUID which require the file chrome-sandbox to have root privileges.

Currently, users can disable this restriction system-wide and chipmunk will run without any change but they need to run the command

sudo sysctl -w kernel.apparmor_restrict_unprivileged_userns=0

I don't think that we can solve this problem while keeping Chipmunk distribution via archives. To solve that we need to adjust packaging on Debian, and we need to consider distributing Chipmunk as a snap package.

Here are some links:

Metadata

Metadata

Labels

Type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions