[GH-ISSUE #824] firefox: error while loading shared libraries: libstdc++.so.6 #559

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

Originally created by @houseofsuns on GitHub (Oct 1, 2016).
Original GitHub issue: https://github.com/netblue30/firejail/issues/824

On my hardened Gentoo ~amd64 machine I see the following error when invoking firefox.

firefox: error while loading shared libraries: libstdc++.so.6: cannot open shared object file: No such file or directory

This happens with commit b806f35192. Downgrading to version 0.9.42 causes segfaults, which probably is issue #804. Downgrading further to version 0.9.38.2 makes everything work again.

Originally created by @houseofsuns on GitHub (Oct 1, 2016). Original GitHub issue: https://github.com/netblue30/firejail/issues/824 On my hardened Gentoo ~amd64 machine I see the following error when invoking firefox. <pre> firefox: error while loading shared libraries: libstdc++.so.6: cannot open shared object file: No such file or directory </pre> This happens with commit b806f35192817e78b95a92dd658f1430bcc6fb56. Downgrading to version 0.9.42 causes segfaults, which probably is issue #804. Downgrading further to version 0.9.38.2 makes everything work again.
gitea-mirror 2026-05-05 06:08:10 -06:00
  • closed this issue
  • added the
    bug
    label
Author
Owner

@netblue30 commented on GitHub (Oct 1, 2016):

It is possible this is the same as https://github.com/netblue30/firejail/issues/674

In a text editor open /etc/firejail/disable-devel.inc file and comment out (add a #) the following lines in GCC section:

#blacklist /usr/bin/x86_64-linux-gnu-g++*
#blacklist /usr/bin/x86_64-linux-gnu-gcc*
#blacklist /usr/bin/x86_64-unknown-linux-gnu-g++*
#blacklist /usr/bin/x86_64-unknown-linux-gnu-gcc*

Where is libstdc++.so.6 located on Gentoo? Can you run "find / -name libstdc++.so.6 | less", thanks.

<!-- gh-comment-id:250914173 --> @netblue30 commented on GitHub (Oct 1, 2016): It is possible this is the same as https://github.com/netblue30/firejail/issues/674 In a text editor open /etc/firejail/disable-devel.inc file and comment out (add a #) the following lines in GCC section: ``` #blacklist /usr/bin/x86_64-linux-gnu-g++* #blacklist /usr/bin/x86_64-linux-gnu-gcc* #blacklist /usr/bin/x86_64-unknown-linux-gnu-g++* #blacklist /usr/bin/x86_64-unknown-linux-gnu-gcc* ``` Where is libstdc++.so.6 located on Gentoo? Can you run "find / -name libstdc++.so.6 | less", thanks.
Author
Owner

@kaskasbarakas commented on GitHub (Oct 1, 2016):

same problem here on Gentoo it works for me if i comment gcc

#blacklist /usr/lib/gcc

<!-- gh-comment-id:250922639 --> @kaskasbarakas commented on GitHub (Oct 1, 2016): same problem here on Gentoo it works for me if i comment gcc `#blacklist /usr/lib/gcc`
Author
Owner

@kaskasbarakas commented on GitHub (Oct 1, 2016):

$ find / -name libstdc++.so.6
/usr/lib64/gcc/x86_64-pc-linux-gnu/4.9.3/libstdc++.so.6
/usr/lib64/gcc/x86_64-pc-linux-gnu/4.9.3/32/libstdc++.so.6

<!-- gh-comment-id:250922817 --> @kaskasbarakas commented on GitHub (Oct 1, 2016): `$ find / -name libstdc++.so.6` `/usr/lib64/gcc/x86_64-pc-linux-gnu/4.9.3/libstdc++.so.6` `/usr/lib64/gcc/x86_64-pc-linux-gnu/4.9.3/32/libstdc++.so.6`
Author
Owner

@netblue30 commented on GitHub (Oct 1, 2016):

Thanks @kaskasbarakas, I just put a fix in git with /usr/lib/gcc commented out. If everybody's happy, I'll close the bug.

<!-- gh-comment-id:250923104 --> @netblue30 commented on GitHub (Oct 1, 2016): Thanks @kaskasbarakas, I just put a fix in git with /usr/lib/gcc commented out. If everybody's happy, I'll close the bug.
Author
Owner

@msva commented on GitHub (Oct 1, 2016):

yeah, latest commit, as expected, fixed the issue

<!-- gh-comment-id:250927041 --> @msva commented on GitHub (Oct 1, 2016): yeah, latest commit, as expected, fixed the issue
Author
Owner

@houseofsuns commented on GitHub (Oct 2, 2016):

I can confirm, that the issue is fixed. Closing. :)

<!-- gh-comment-id:250963451 --> @houseofsuns commented on GitHub (Oct 2, 2016): I can confirm, that the issue is fixed. Closing. :)
Author
Owner

@netblue30 commented on GitHub (Oct 2, 2016):

Then is closed, thanks guys!

<!-- gh-comment-id:250969462 --> @netblue30 commented on GitHub (Oct 2, 2016): Then is closed, thanks guys!
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#559
No description provided.