[GH-ISSUE #996] Firefox and libGL problem #677

Closed
opened 2026-05-05 06:25:23 -06:00 by gitea-mirror · 1 comment
Owner

Originally created by @curiosity-seeker on GitHub (Dec 22, 2016).
Original GitHub issue: https://github.com/netblue30/firejail/issues/996

I'm testing KDE Neon (based on Ubuntu 16.04) and ran into a strange problem:

Whenever I try to start Firefox (firejailed wit Firejail 09.44.2) for the first time it doesn't launch and I get the error:

Couldn't open libGL.so.1: libGL.so.1: Kann die Shared-Object-Datei nicht öffnen: Datei oder Verzeichnis nicht gefunden

If I start Firefox with
firejail --noprofile firefox

... I'm getting the error:

libGL error: MESA-LOADER: failed to stat fd 5
libGL error: MESA-LOADER: failed to stat fd 5
libGL error: MESA-LOADER: failed to stat fd 53
libGL error: MESA-LOADER: failed to stat fd 53
ATTENTION: default value of option force_s3tc_enable overridden by environment.
libGL error: MESA-LOADER: failed to stat fd 63
libGL error: MESA-LOADER: failed to stat fd 63
ATTENTION: default value of option force_s3tc_enable overridden by environment.

... but Firefox launches without a problem.

Now comes the funny part of the story: If I start Firefox again normally sandboxed with Firejail it launches without any error messages! In other words: Only if I start Firefox with --noprofile first and then normally sandboxed thereafter it launches successfully.

How can this be? Any suggestion how to solve this?

Originally created by @curiosity-seeker on GitHub (Dec 22, 2016). Original GitHub issue: https://github.com/netblue30/firejail/issues/996 I'm testing KDE Neon (based on Ubuntu 16.04) and ran into a strange problem: Whenever I try to start Firefox (firejailed wit Firejail 09.44.2) for the first time it doesn't launch and I get the error: `Couldn't open libGL.so.1: libGL.so.1: Kann die Shared-Object-Datei nicht öffnen: Datei oder Verzeichnis nicht gefunden` If I start Firefox with `firejail --noprofile firefox` ... I'm getting the error: ``` libGL error: MESA-LOADER: failed to stat fd 5 libGL error: MESA-LOADER: failed to stat fd 5 libGL error: MESA-LOADER: failed to stat fd 53 libGL error: MESA-LOADER: failed to stat fd 53 ATTENTION: default value of option force_s3tc_enable overridden by environment. libGL error: MESA-LOADER: failed to stat fd 63 libGL error: MESA-LOADER: failed to stat fd 63 ATTENTION: default value of option force_s3tc_enable overridden by environment. ``` ... but Firefox launches without a problem. Now comes the funny part of the story: If I start Firefox again normally sandboxed with Firejail it launches *without any error messages*! In other words: Only if I start Firefox with --noprofile ***first*** and then normally sandboxed ***thereafter*** it launches successfully. How can this be? Any suggestion how to solve this?
Author
Owner

@curiosity-seeker commented on GitHub (Dec 23, 2016):

I found the culprit (which also affected Gwenview): In my adjusted profiles I had uncommented the private-etc line. This had not caused any problems on Fedora 25 but obviously does on Ubuntu.

I'm still puzzled, though, why Firefox reproducibly starts with that option after a preceding start with the --noprofile switch. Very strange ...

<!-- gh-comment-id:269026461 --> @curiosity-seeker commented on GitHub (Dec 23, 2016): I found the culprit (which also affected Gwenview): In my adjusted profiles I had uncommented the private-etc line. This had not caused any problems on Fedora 25 but obviously does on Ubuntu. I'm still puzzled, though, why Firefox reproducibly starts with that option after a preceding start with the --noprofile switch. Very strange ...
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#677
No description provided.