question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

DEB/RPM application crash due to fallback sandbox

See original GitHub issue

Description

If Marktext is installed with deb package it fails to start with Trace/breakpoint trap error.

  • Can you reproduce the issue?

Steps to reproduce

  1. Install deb package
  2. Launch application
  3. Trace/breakpoint trap error

Expected behavior: Application starts

Actual behavior: Application does not start

Versions

  • Mark Text: 0.16.0-rc.2
  • Operating system:
Distributor ID:	Debian
Description:	Debian GNU/Linux 10 (buster)
Release:	10
Codename:	buster

Issue Analytics

  • State:open
  • Created 4 years ago
  • Comments:7 (3 by maintainers)

github_iconTop GitHub Comments

2reactions
fxhacommented, Nov 27, 2019

TLTR: Please enable user namespaces for your kernel because Chromium’s fallback sandbox crashes due to some packaging issue that we cannot solve currenlty.

The crash is actually an issue with Electron’s/Chromium’s fallback sandbox and how we pack the Debian package. It seems that Chromium’s fallback sandbox doesn’t support spaces and our package is saved under /opt/Mark Text/ but we are unable to change this location. I’ll open an upstream issue at electron-builder to be able to use a custom output name such as marktext or to always remove spaces.

Currently you could:

  • Enable Linux kernel user namespaces to use the preferred sandbox: sudo sysctl kernel.unprivileged_userns_clone=1,
  • Launch Mark Text with --no-sandbox argument or
  • Rename /opt/Mark Text/ directory to /opt/marktext but you may change all links and path too. Mark Text will not be uninstalled due to path changes!

Edit: I guess this applies to RPM package too.

1reaction
getreucommented, Aug 29, 2020

I can confirm this issue with Debian 10.5 and Marktext 0.16.2.

$cat /proc/version 
Linux version 4.19.0-10-amd64 (debian-kernel@lists.debian.org) (gcc version 8.3.0 (Debian 8.3.0-6)) #1 SMP Debian 4.19.132-1 (2020-07-24)
# dpkg -i marktext-amd64.deb 
Selecting previously unselected package marktext.
(Reading database ... 208429 files and directories currently installed.)
Preparing to unpack marktext-amd64.deb ...
Unpacking marktext (0.16.2-3092) ...
Setting up marktext (0.16.2-3092) ...
Processing triggers for desktop-file-utils (0.23-4) ...
Processing triggers for mime-support (3.62) ...
Processing triggers for hicolor-icon-theme (0.17-2) ...
root@saar1:.../Downloads# logout
$ marktext
Trace/breakpoint trap

The following above mentioned workaround worked for me:

marktext --no-sandbox
Read more comments on GitHub >

github_iconTop Results From Across the Web

DEB/RPM application crash due to fallback sandbox ... - Issuehunt
If Marktext is installed with deb package it fails to start with Trace/breakpoint trap error. <!-- Description of the bug -->. Can you...
Read more >
Flatpak: A security nightmare – two years later - Hacker News
But the apps themselves still show "Sandboxed" when they aren't[1]. It's trivial for the flatpak "store" to just hide "sandboxed" if the ...
Read more >
nix bundle - NixOS
nix bundle - bundle an application so that it works outside of the Nix store ... Common flake-related options: ... Disable the sandbox-fallback...
Read more >
What is the point of appimages? : r/linux - Reddit
appimage workflow is less secure than traditional deb/rpm/pacman ... which crashes on startup or displays a black screen due to this, ...
Read more >
799144 - Switch to using appindicator3 by default on Linux
but older versions of GNOME not showing the application indicator by default. ... This unfortunately can't change due to an Ubuntu bug ...
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found