[GH-ISSUE #909] "--allow-debuggers" always fails #616

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

Originally created by @andyjh92 on GitHub (Nov 12, 2016).
Original GitHub issue: https://github.com/netblue30/firejail/issues/909

Hello!

If I execute firejail --debug --allow-debuggers gdb firefox
,I get the following Error: cannot establish communication with the parent, exiting...
and more > http://pastebin.com/jNFDEEF3

I'm using firejail 0.9.45 and xubuntu 16.04.
firejail --version > http://pastebin.com/b72Vzm6U

Thanks,
Andi

Originally created by @andyjh92 on GitHub (Nov 12, 2016). Original GitHub issue: https://github.com/netblue30/firejail/issues/909 Hello! If I execute firejail --debug --allow-debuggers gdb firefox ,I get the following Error: cannot establish communication with the parent, exiting... and more > http://pastebin.com/jNFDEEF3 I'm using firejail 0.9.45 and xubuntu 16.04. firejail --version > http://pastebin.com/b72Vzm6U Thanks, Andi
gitea-mirror 2026-05-05 06:17:17 -06:00
  • closed this issue
  • added the
    bug
    label
Author
Owner

@netblue30 commented on GitHub (Nov 13, 2016):

This is what I get on my system:

$ firejail --allow-debuggers gdb /usr/lib/firefox-esr/firefox-esr
Reading profile /etc/firejail/default.profile
Reading profile /etc/firejail/disable-common.inc
Reading profile /etc/firejail/disable-programs.inc
Reading profile /etc/firejail/disable-passwdmgr.inc

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

Parent pid 5811, child pid 5812
Child process initialized
GNU gdb (Debian 7.7.1+dfsg-5) 7.7.1
Copyright (C) 2014 Free Software Foundation, Inc.
License GPLv3+: GNU GPL version 3 or later <http://gnu.org/licenses/gpl.html>
This is free software: you are free to change and redistribute it.
There is NO WARRANTY, to the extent permitted by law.  Type "show copying"
and "show warranty" for details.
This GDB was configured as "x86_64-linux-gnu".
Type "show configuration" for configuration details.
For bug reporting instructions, please see:
<http://www.gnu.org/software/gdb/bugs/>.
Find the GDB manual and other documentation resources online at:
<http://www.gnu.org/software/gdb/documentation/>.
For help, type "help".
Type "apropos word" to search for commands related to "word"...
Reading symbols from /usr/lib/firefox-esr/firefox-esr...(no debugging symbols found)...done.
(gdb) 

Does it work if you use --noprofile?

$ firejail --noprofile --allow debuggers gdb firefox
<!-- gh-comment-id:260191287 --> @netblue30 commented on GitHub (Nov 13, 2016): This is what I get on my system: ``` $ firejail --allow-debuggers gdb /usr/lib/firefox-esr/firefox-esr Reading profile /etc/firejail/default.profile Reading profile /etc/firejail/disable-common.inc Reading profile /etc/firejail/disable-programs.inc Reading profile /etc/firejail/disable-passwdmgr.inc ** Note: you can use --noprofile to disable default.profile ** Parent pid 5811, child pid 5812 Child process initialized GNU gdb (Debian 7.7.1+dfsg-5) 7.7.1 Copyright (C) 2014 Free Software Foundation, Inc. License GPLv3+: GNU GPL version 3 or later <http://gnu.org/licenses/gpl.html> This is free software: you are free to change and redistribute it. There is NO WARRANTY, to the extent permitted by law. Type "show copying" and "show warranty" for details. This GDB was configured as "x86_64-linux-gnu". Type "show configuration" for configuration details. For bug reporting instructions, please see: <http://www.gnu.org/software/gdb/bugs/>. Find the GDB manual and other documentation resources online at: <http://www.gnu.org/software/gdb/documentation/>. For help, type "help". Type "apropos word" to search for commands related to "word"... Reading symbols from /usr/lib/firefox-esr/firefox-esr...(no debugging symbols found)...done. (gdb) ``` Does it work if you use --noprofile? ``` $ firejail --noprofile --allow debuggers gdb firefox ```
Author
Owner

@andyjh92 commented on GitHub (Nov 17, 2016):

hello

i still have the same problem with --noprifile. i also reinstalled the os. still the same. but i have an error in my message above. i'm using ubuntu 16.10 not 16.04. sry.

<!-- gh-comment-id:261271665 --> @andyjh92 commented on GitHub (Nov 17, 2016): hello i still have the same problem with --noprifile. i also reinstalled the os. still the same. but i have an error in my message above. i'm using ubuntu 16.10 not 16.04. sry.
Author
Owner

@andyjh92 commented on GitHub (Nov 18, 2016):

i tried now ubuntu 16.04. it also fails with version 0.9.44 and version 0.9.45

<!-- gh-comment-id:261635900 --> @andyjh92 commented on GitHub (Nov 18, 2016): i tried now ubuntu 16.04. it also fails with version 0.9.44 and version 0.9.45
Author
Owner

@netblue30 commented on GitHub (Nov 19, 2016):

I'll have to try it out, here on Debian Jessie seems to be fine.

<!-- gh-comment-id:261723639 --> @netblue30 commented on GitHub (Nov 19, 2016): I'll have to try it out, here on Debian Jessie seems to be fine.
Author
Owner

@andyjh92 commented on GitHub (Jan 7, 2017):

now it works on ubuntu-16-04 with 0.9.45. i did a reinstall of the os. maybe installing firejail with apt-get and then overwriting it with ./configure; make ; make install caused problems.

<!-- gh-comment-id:271102835 --> @andyjh92 commented on GitHub (Jan 7, 2017): now it works on ubuntu-16-04 with 0.9.45. i did a reinstall of the os. maybe installing firejail with apt-get and then overwriting it with ./configure; make ; make install caused problems.
Author
Owner

@netblue30 commented on GitHub (Jan 9, 2017):

There was a problem with ptrace code in Linux kernels prior to 4.8, so I had to disable --allow-debuggers if I detect an older kernel - this happened in the last two or three days.

<!-- gh-comment-id:271304500 --> @netblue30 commented on GitHub (Jan 9, 2017): There was a problem with ptrace code in Linux kernels prior to 4.8, so I had to disable --allow-debuggers if I detect an older kernel - this happened in the last two or three days.
Author
Owner

@netblue30 commented on GitHub (Apr 14, 2017):

Closing... will reopen if necessary.

<!-- gh-comment-id:294184852 --> @netblue30 commented on GitHub (Apr 14, 2017): Closing... will reopen if necessary.
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#616
No description provided.