[GH-ISSUE #1300] Gnome-calculator not working in firejail 0.9.46 #885

Closed
opened 2026-05-05 07:02:29 -06:00 by gitea-mirror · 6 comments
Owner

Originally created by @qazip on GitHub (May 22, 2017).
Original GitHub issue: https://github.com/netblue30/firejail/issues/1300

This is the output after trying to run gnome-calculator:

gnome-calculator 
Reading profile /etc/firejail/gnome-calculator.profile
Reading profile /etc/firejail/disable-common.inc
Reading profile /etc/firejail/disable-programs.inc
Reading profile /etc/firejail/disable-passwdmgr.inc
Reading profile /etc/firejail/disable-devel.inc
Reading profile /etc/firejail/whitelist-common.inc
Parent pid 9613, child pid 9614
Child process initialized in 46.05 ms

(gnome-calculator:7): Gdk-ERROR **: The program 'gnome-calculator' received an X Window System error.
This probably reflects a bug in the program.
The error was 'BadAccess (attempt to access private resource denied)'.
  (Details: serial 178 error_code 10 request_code 130 (MIT-SHM) minor_code 1)
  (Note to programmers: normally, X errors are reported asynchronously;
   that is, you will receive the error a while after causing it.
   To debug your program, run it with the GDK_SYNCHRONIZE environment
   variable to change this behavior. You can then get a meaningful
   backtrace from your debugger if you break on the gdk_x_error() function.)

Parent is shutting down, bye...

I'm using Ubuntu 16.04 and I did "sudo firecfg".

Originally created by @qazip on GitHub (May 22, 2017). Original GitHub issue: https://github.com/netblue30/firejail/issues/1300 This is the output after trying to run gnome-calculator: ``` gnome-calculator Reading profile /etc/firejail/gnome-calculator.profile Reading profile /etc/firejail/disable-common.inc Reading profile /etc/firejail/disable-programs.inc Reading profile /etc/firejail/disable-passwdmgr.inc Reading profile /etc/firejail/disable-devel.inc Reading profile /etc/firejail/whitelist-common.inc Parent pid 9613, child pid 9614 Child process initialized in 46.05 ms (gnome-calculator:7): Gdk-ERROR **: The program 'gnome-calculator' received an X Window System error. This probably reflects a bug in the program. The error was 'BadAccess (attempt to access private resource denied)'. (Details: serial 178 error_code 10 request_code 130 (MIT-SHM) minor_code 1) (Note to programmers: normally, X errors are reported asynchronously; that is, you will receive the error a while after causing it. To debug your program, run it with the GDK_SYNCHRONIZE environment variable to change this behavior. You can then get a meaningful backtrace from your debugger if you break on the gdk_x_error() function.) Parent is shutting down, bye... ``` I'm using Ubuntu 16.04 and I did "sudo firecfg".
Author
Owner

@Fred-Barclay commented on GitHub (May 22, 2017):

I can't reproduce on my system (Debian Sid with the MATE desktop), either with or without firecfg.

What happens if you remove the links created by firecfg with sudo firecfg --clean and then run firejail gnome-calculator? What about if you just run gnome-calculator?

<!-- gh-comment-id:303179445 --> @Fred-Barclay commented on GitHub (May 22, 2017): I can't reproduce on my system (Debian Sid with the MATE desktop), either with or without firecfg. What happens if you remove the links created by firecfg with `sudo firecfg --clean` and then run `firejail gnome-calculator`? What about if you just run `gnome-calculator`?
Author
Owner

@qazip commented on GitHub (May 22, 2017):

After removing the links, gnome-calculator runs fine, firejail gnome-calculator does not:

firejail gnome-calculator
Reading profile /etc/firejail/gnome-calculator.profile
Reading profile /etc/firejail/disable-common.inc
Reading profile /etc/firejail/disable-programs.inc
Reading profile /etc/firejail/disable-passwdmgr.inc
Reading profile /etc/firejail/disable-devel.inc
Reading profile /etc/firejail/whitelist-common.inc
Parent pid 12407, child pid 12408
Child process initialized in 71.47 ms

(gnome-calculator:7): Gdk-ERROR **: The program 'gnome-calculator' received an X Window System error.
This probably reflects a bug in the program.
The error was 'BadAccess (attempt to access private resource denied)'.
  (Details: serial 178 error_code 10 request_code 130 (MIT-SHM) minor_code 1)
  (Note to programmers: normally, X errors are reported asynchronously;
   that is, you will receive the error a while after causing it.
   To debug your program, run it with the GDK_SYNCHRONIZE environment
   variable to change this behavior. You can then get a meaningful
   backtrace from your debugger if you break on the gdk_x_error() function.)

Parent is shutting down, bye...

<!-- gh-comment-id:303183830 --> @qazip commented on GitHub (May 22, 2017): After removing the links, `gnome-calculator` runs fine, `firejail gnome-calculator` does not: ``` firejail gnome-calculator Reading profile /etc/firejail/gnome-calculator.profile Reading profile /etc/firejail/disable-common.inc Reading profile /etc/firejail/disable-programs.inc Reading profile /etc/firejail/disable-passwdmgr.inc Reading profile /etc/firejail/disable-devel.inc Reading profile /etc/firejail/whitelist-common.inc Parent pid 12407, child pid 12408 Child process initialized in 71.47 ms (gnome-calculator:7): Gdk-ERROR **: The program 'gnome-calculator' received an X Window System error. This probably reflects a bug in the program. The error was 'BadAccess (attempt to access private resource denied)'. (Details: serial 178 error_code 10 request_code 130 (MIT-SHM) minor_code 1) (Note to programmers: normally, X errors are reported asynchronously; that is, you will receive the error a while after causing it. To debug your program, run it with the GDK_SYNCHRONIZE environment variable to change this behavior. You can then get a meaningful backtrace from your debugger if you break on the gdk_x_error() function.) Parent is shutting down, bye... ```
Author
Owner

@SYN-cook commented on GitHub (May 22, 2017):

Can you please try firejail --ignore=ipc-namespace gnome-calculator and let us know if that works?

<!-- gh-comment-id:303239550 --> @SYN-cook commented on GitHub (May 22, 2017): Can you please try `firejail --ignore=ipc-namespace gnome-calculator` and let us know if that works?
Author
Owner

@qazip commented on GitHub (May 23, 2017):

Yes, that worked:

firejail --ignore=ipc-namespace gnome-calculator
Reading profile /etc/firejail/gnome-calculator.profile
Reading profile /etc/firejail/disable-common.inc
Reading profile /etc/firejail/disable-programs.inc
Reading profile /etc/firejail/disable-passwdmgr.inc
Reading profile /etc/firejail/disable-devel.inc
Reading profile /etc/firejail/whitelist-common.inc
Parent pid 4606, child pid 4607
Child process initialized in 84.37 ms

** (gnome-calculator:7): WARNING **: currency.vala:407: Currency LTL is not provided by IMF or ECB

<!-- gh-comment-id:303302931 --> @qazip commented on GitHub (May 23, 2017): Yes, that worked: ``` firejail --ignore=ipc-namespace gnome-calculator Reading profile /etc/firejail/gnome-calculator.profile Reading profile /etc/firejail/disable-common.inc Reading profile /etc/firejail/disable-programs.inc Reading profile /etc/firejail/disable-passwdmgr.inc Reading profile /etc/firejail/disable-devel.inc Reading profile /etc/firejail/whitelist-common.inc Parent pid 4606, child pid 4607 Child process initialized in 84.37 ms ** (gnome-calculator:7): WARNING **: currency.vala:407: Currency LTL is not provided by IMF or ECB ```
Author
Owner

@SYN-cook commented on GitHub (May 23, 2017):

@qazip Nice! Thanks for the bug.

<!-- gh-comment-id:303365598 --> @SYN-cook commented on GitHub (May 23, 2017): @qazip Nice! Thanks for the bug.
Author
Owner

@netblue30 commented on GitHub (May 23, 2017):

all merged.

<!-- gh-comment-id:303391689 --> @netblue30 commented on GitHub (May 23, 2017): all merged.
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#885
No description provided.