[GH-ISSUE #561] --trace does not work with --appimage #396

Closed
opened 2026-05-05 05:46:42 -06:00 by gitea-mirror · 7 comments
Owner

Originally created by @probonopd on GitHub (Jun 10, 2016).
Original GitHub issue: https://github.com/netblue30/firejail/issues/561

--trace does not seem to work with --appimage:

me@host:~$ firejail --trace --appimage /isodevice/Applications/Inkscape-0.91+devel.r14861.glibc2.14-x86_64.AppImage 
Reading profile /usr/local/etc/firejail/default.profile
Reading profile /usr/local/etc/firejail/disable-common.inc
Reading profile /usr/local/etc/firejail/disable-programs.inc
Reading profile /usr/local/etc/firejail/disable-passwdmgr.inc

** Note: you can use --noprofile to disable default.profile **

Parent pid 5670, child pid 5673

Child process initialized
2:bash:open /dev/tty:3
2:AppRun:fopen64 inkscape.desktop:0x210c020
2:inkscape.wrappe:open /dev/tty:3
2:inkscape.wrappe:open ./bin//inkscape.wrapper:3
/tmp/firejail-mnt-UQO1O5/usr/bin/inkscape.wrapper
6:sed:fopen64 /proc/filesystems:0x15df010
6:sed:open //lib/charset.alias:-1
/tmp/firejail-mnt-UQO1O5/usr/bin/inkscape not found

Parent is shutting down, bye...

Without trace it runs fine.

Originally created by @probonopd on GitHub (Jun 10, 2016). Original GitHub issue: https://github.com/netblue30/firejail/issues/561 `--trace` does not seem to work with `--appimage`: ``` me@host:~$ firejail --trace --appimage /isodevice/Applications/Inkscape-0.91+devel.r14861.glibc2.14-x86_64.AppImage Reading profile /usr/local/etc/firejail/default.profile Reading profile /usr/local/etc/firejail/disable-common.inc Reading profile /usr/local/etc/firejail/disable-programs.inc Reading profile /usr/local/etc/firejail/disable-passwdmgr.inc ** Note: you can use --noprofile to disable default.profile ** Parent pid 5670, child pid 5673 Child process initialized 2:bash:open /dev/tty:3 2:AppRun:fopen64 inkscape.desktop:0x210c020 2:inkscape.wrappe:open /dev/tty:3 2:inkscape.wrappe:open ./bin//inkscape.wrapper:3 /tmp/firejail-mnt-UQO1O5/usr/bin/inkscape.wrapper 6:sed:fopen64 /proc/filesystems:0x15df010 6:sed:open //lib/charset.alias:-1 /tmp/firejail-mnt-UQO1O5/usr/bin/inkscape not found Parent is shutting down, bye... ``` Without trace it runs fine.
gitea-mirror 2026-05-05 05:46:42 -06:00
  • closed this issue
  • added the
    bug
    label
Author
Owner

@netblue30 commented on GitHub (Jun 11, 2016):

Very ugly! I have something similar when running Chromium-based browsers with --trace.

<!-- gh-comment-id:225364624 --> @netblue30 commented on GitHub (Jun 11, 2016): Very ugly! I have something similar when running Chromium-based browsers with --trace.
Author
Owner

@chiraag-nataraj commented on GitHub (Oct 3, 2018):

This is still an issue! I don't understand much about appimages, but I can try to help debug.

<!-- gh-comment-id:426653841 --> @chiraag-nataraj commented on GitHub (Oct 3, 2018): This is still an issue! I don't understand much about appimages, but I can try to help debug.
Author
Owner

@kadogo commented on GitHub (Dec 24, 2018):

I have the same issue with discord.

$ firejail --debug --trace discord
...
Running 'discord'  command through /bin/bash
execvp argument 0: /bin/bash
execvp argument 1: -c
execvp argument 2: 'discord' 
Child process initialized in 95.84 ms
Installing /run/firejail/mnt/seccomp seccomp filter
Installing /run/firejail/mnt/seccomp.32 seccomp filter
Installing /run/firejail/mnt/seccomp.protocol seccomp filter
6:bash:exec /bin/bash:0
6:bash:open /dev/tty:3
monitoring pid 6

Maybe it can help somewhere. I tried also with --tracelog but it have an issue that look the same
Cheers.

<!-- gh-comment-id:449778646 --> @kadogo commented on GitHub (Dec 24, 2018): I have the same issue with discord. ``` $ firejail --debug --trace discord ... Running 'discord' command through /bin/bash execvp argument 0: /bin/bash execvp argument 1: -c execvp argument 2: 'discord' Child process initialized in 95.84 ms Installing /run/firejail/mnt/seccomp seccomp filter Installing /run/firejail/mnt/seccomp.32 seccomp filter Installing /run/firejail/mnt/seccomp.protocol seccomp filter 6:bash:exec /bin/bash:0 6:bash:open /dev/tty:3 monitoring pid 6 ``` Maybe it can help somewhere. I tried also with --tracelog but it have an issue that look the same Cheers.
Author
Owner

@SkewedZeppelin commented on GitHub (Dec 25, 2018):

@kadogo there have been a number of Discord fixes in recent versions
please consider making a separate issue and detail your version and distro

<!-- gh-comment-id:449782161 --> @SkewedZeppelin commented on GitHub (Dec 25, 2018): @kadogo there have been a number of Discord fixes in recent versions please consider making a separate issue and detail your version and distro
Author
Owner

@kadogo commented on GitHub (Dec 25, 2018):

@SkewedZeppelin
I did a new issue I didn't saw that --trace didn't stay hang here (in my case it stay hang).

<!-- gh-comment-id:449840941 --> @kadogo commented on GitHub (Dec 25, 2018): @SkewedZeppelin I did a new issue I didn't saw that --trace didn't stay hang here (in my case it stay hang).
Author
Owner

@chiraag-nataraj commented on GitHub (May 21, 2019):

@probonopd, is this still an issue?

<!-- gh-comment-id:494592619 --> @chiraag-nataraj commented on GitHub (May 21, 2019): @probonopd, is this still an issue?
Author
Owner

@crass commented on GitHub (Jul 9, 2019):

I'm not sure about Inkscape, but this is still an issue with discord 0.0.9.

$ sudo strace -f -x -v -s4096 -y -yy -uuser -o discord-stable-0.0.9-x86_64.AppImage.fj.trace.strace firejail --trace --appimage ./discord-stable-0.0.9-x86_64.AppImage --help
Mounting appimage type 2
Reading profile /etc/firejail/default.profile
Reading profile /home/user/.config/firejail/globals.local
Reading profile /etc/firejail/disable-common.inc   
Reading profile /etc/firejail/disable-passwdmgr.inc
Reading profile /etc/firejail/disable-programs.inc 

** Note: you can use --noprofile to disable default.profile **

Parent pid 23149, child pid 23152

**     Warning: dropping all Linux capabilities     **
Child process initialized in 600.36 ms
3:bash:exec /bin/bash:0
3:bash:open /dev/tty:3
3:AppRun:exec /bin/bash:0
3:AppRun:open /dev/tty:3
3:AppRun:open /run/firejail/appimage/.appimage-23149/AppRun:3
dir: cannot access '5:dirname:exec /usr/bin/dirname:0'$'\n''4:readlink:exec /bin/readlink:0'$'\n''/run/firejail/appimage/.appimage-23149/': No such file or directory
grep: 5:dirname:exec /usr/bin/dirname:0
4:readlink:exec /bin/readlink:0
/run/firejail/appimage/.appimage-23149/8:grep:exec /bin/grep:0: No such file or directory
/run/firejail/appimage/.appimage-23149/AppRun: line 50: /tmp/12:cut:exec /usr/bin/cut:0
11:cut:exec
10:grep:exec
10:grep:openat
4:readlink:exec
/run/firejail/appimage/.appimage-23149/8:grep:exec: No such file or directory

Parent is shutting down, bye...
AppImage unmounted
<!-- gh-comment-id:509492568 --> @crass commented on GitHub (Jul 9, 2019): I'm not sure about Inkscape, but this is still an issue with [discord 0.0.9](https://github.com/simoniz0r/Discord-AppImage/releases/download/v0.0.9/discord-stable-0.0.9-x86_64.AppImage). ``` $ sudo strace -f -x -v -s4096 -y -yy -uuser -o discord-stable-0.0.9-x86_64.AppImage.fj.trace.strace firejail --trace --appimage ./discord-stable-0.0.9-x86_64.AppImage --help Mounting appimage type 2 Reading profile /etc/firejail/default.profile Reading profile /home/user/.config/firejail/globals.local Reading profile /etc/firejail/disable-common.inc Reading profile /etc/firejail/disable-passwdmgr.inc Reading profile /etc/firejail/disable-programs.inc ** Note: you can use --noprofile to disable default.profile ** Parent pid 23149, child pid 23152 ** Warning: dropping all Linux capabilities ** Child process initialized in 600.36 ms 3:bash:exec /bin/bash:0 3:bash:open /dev/tty:3 3:AppRun:exec /bin/bash:0 3:AppRun:open /dev/tty:3 3:AppRun:open /run/firejail/appimage/.appimage-23149/AppRun:3 dir: cannot access '5:dirname:exec /usr/bin/dirname:0'$'\n''4:readlink:exec /bin/readlink:0'$'\n''/run/firejail/appimage/.appimage-23149/': No such file or directory grep: 5:dirname:exec /usr/bin/dirname:0 4:readlink:exec /bin/readlink:0 /run/firejail/appimage/.appimage-23149/8:grep:exec /bin/grep:0: No such file or directory /run/firejail/appimage/.appimage-23149/AppRun: line 50: /tmp/12:cut:exec /usr/bin/cut:0 11:cut:exec 10:grep:exec 10:grep:openat 4:readlink:exec /run/firejail/appimage/.appimage-23149/8:grep:exec: No such file or directory Parent is shutting down, bye... AppImage unmounted ```
Sign in to join this conversation.
No milestone
No project
No assignees
1 participant
Notifications
Due date
The due date is invalid or out of range. Please use the format "yyyy-mm-dd".

No due date set.

Dependencies

No dependencies set.

Reference: github-starred/firejail#396
No description provided.