[GH-ISSUE #1947] Firefox exit code question #1305

Closed
opened 2026-05-05 07:50:00 -06:00 by gitea-mirror · 14 comments
Owner

Originally created by @reinerh on GitHub (May 17, 2018).
Original GitHub issue: https://github.com/netblue30/firejail/issues/1947

A Debian user of firejail reported that since 0.9.54 he observes a different exit status (1 instead of 0) when opening new tabs in Firefox (ESR 52) with firejail --name=firefox firefox-esr $url (when an instance is already running).

As I can't reproduce that behavior on my machine, I'm curious if other users are seeing this issue too.
Could someone please try it out as well?

Originally created by @reinerh on GitHub (May 17, 2018). Original GitHub issue: https://github.com/netblue30/firejail/issues/1947 A Debian user of firejail [reported](https://bugs.debian.org/898891) that since 0.9.54 he observes a different exit status (1 instead of 0) when opening new tabs in Firefox (ESR 52) with `firejail --name=firefox firefox-esr $url` (when an instance is already running). As I can't reproduce that behavior on my machine, I'm curious if other users are seeing this issue too. Could someone please try it out as well?
gitea-mirror 2026-05-05 07:50:00 -06:00
  • closed this issue
  • added the
    bug
    label
Author
Owner

@SkewedZeppelin commented on GitHub (May 17, 2018):

fwiw I was unable to reproduce under the following

Firefox 60 on Arch
Firefox ESR 60.0.1 on Arch
Firefox 60 on Fedora 28
Icecat 52.7.3 on Fedora 28

and I did indeed test by first launching an instance and then passing a URL the second time

<!-- gh-comment-id:390019246 --> @SkewedZeppelin commented on GitHub (May 17, 2018): fwiw I was unable to reproduce under the following Firefox 60 on Arch Firefox ESR 60.0.1 on Arch Firefox 60 on Fedora 28 Icecat 52.7.3 on Fedora 28 and I did indeed test by first launching an instance and then passing a URL the second time
Author
Owner

@netblue30 commented on GitHub (May 19, 2018):

I'm not seeing it on my computers also.

<!-- gh-comment-id:390420083 --> @netblue30 commented on GitHub (May 19, 2018): I'm not seeing it on my computers also.
Author
Owner

@chiraag-nataraj commented on GitHub (May 30, 2018):

Huh, I'm actually seeing this (just tested it). With an instance of firefox already running:

$ firefox; echo $?
0
$ firejail firefox; echo $?
1
<!-- gh-comment-id:393305853 --> @chiraag-nataraj commented on GitHub (May 30, 2018): Huh, I'm actually seeing this (just tested it). With an instance of firefox already running: ``` $ firefox; echo $? 0 ``` ``` $ firejail firefox; echo $? 1 ```
Author
Owner

@reinerh commented on GitHub (May 30, 2018):

@chiraag-nataraj that is interesting. when you run it the second time without firejail, does it then exit with 0 or also with 1?

<!-- gh-comment-id:393307305 --> @reinerh commented on GitHub (May 30, 2018): @chiraag-nataraj that is interesting. when you run it the second time without firejail, does it then exit with 0 or also with 1?
Author
Owner

@chiraag-nataraj commented on GitHub (May 30, 2018):

It repeatedly gives me 0 no matter how many times I run it or how I interleave it with firejail runs (the firejail runs similarly give me 1 no matter how many times I run it or how I interleave it with regular runs).

<!-- gh-comment-id:393312946 --> @chiraag-nataraj commented on GitHub (May 30, 2018): It repeatedly gives me 0 no matter how many times I run it or how I interleave it with `firejail` runs (the `firejail` runs similarly give me 1 no matter how many times I run it or how I interleave it with regular runs).
Author
Owner

@reinerh commented on GitHub (May 30, 2018):

@chiraag-nataraj which distribution are you using? is which firefox a binary or a shell script that is starting firefox?

<!-- gh-comment-id:393317086 --> @reinerh commented on GitHub (May 30, 2018): @chiraag-nataraj which distribution are you using? is `which firefox` a binary or a shell script that is starting firefox?
Author
Owner

@chiraag-nataraj commented on GitHub (May 30, 2018):

I'm on Debian Sid. which firefox is /usr/bin/firefox, which is a symlink to /usr/lib/firefox/firefox, which is a binary.

<!-- gh-comment-id:393318584 --> @chiraag-nataraj commented on GitHub (May 30, 2018): I'm on Debian Sid. `which firefox` is `/usr/bin/firefox`, which is a symlink to `/usr/lib/firefox/firefox`, which is a binary.
Author
Owner

@reinerh commented on GitHub (Jun 3, 2018):

@chiraag-nataraj could you please try to bisect the commit that "broke" that behavior?

In the git repo you can call "git bisect start 0.9.54 0.9.52" (as we know it's broken in 0.9.54 for you, and working in 0.9.52). It will then start a binary search for the commit causing the issue.
Each time you recompile/reinstall firejail and try to reproduce the issue. If it's still there you call "git bisect bad" (when it's exiting with 1), and "git bisect good" if it's working as expected (exiting with 0).

Sorry to bother you again, but you seem to be the only one here who is able to reproduce it.

<!-- gh-comment-id:394155222 --> @reinerh commented on GitHub (Jun 3, 2018): @chiraag-nataraj could you please try to bisect the commit that "broke" that behavior? In the git repo you can call "git bisect start 0.9.54 0.9.52" (as we know it's broken in 0.9.54 for you, and working in 0.9.52). It will then start a binary search for the commit causing the issue. Each time you recompile/reinstall firejail and try to reproduce the issue. If it's still there you call "git bisect bad" (when it's exiting with 1), and "git bisect good" if it's working as expected (exiting with 0). Sorry to bother you again, but you seem to be the only one here who is able to reproduce it.
Author
Owner

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

@reinerh I'll experiment and report back 😊

<!-- gh-comment-id:394184753 --> @chiraag-nataraj commented on GitHub (Jun 3, 2018): @reinerh I'll experiment and report back :blush:
Author
Owner

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

Wait, what the hell. I'm now getting 0 as expected. This is really bizarre.

<!-- gh-comment-id:394185179 --> @chiraag-nataraj commented on GitHub (Jun 3, 2018): Wait, what the hell. I'm now getting 0 as expected. This is really bizarre.
Author
Owner

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

I suspect this may have to do with the fact that I upgraded firefox in the interim. Going to check some things and report back.

<!-- gh-comment-id:394185273 --> @chiraag-nataraj commented on GitHub (Jun 3, 2018): I suspect this may have to do with the fact that I upgraded firefox in the interim. Going to check some things and report back.
Author
Owner

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

Okay, I give up. This had nothing to do with the firefox upgrade and I'm now consistently getting 0 as the return value no matter what I do...

<!-- gh-comment-id:394185433 --> @chiraag-nataraj commented on GitHub (Jun 3, 2018): Okay, I give up. This had nothing to do with the firefox upgrade and I'm now consistently getting 0 as the return value no matter what I do... :question::question::question:
Author
Owner

@reinerh commented on GitHub (Jun 3, 2018):

@chiraag-nataraj okay, interesting.
thanks for trying it!

<!-- gh-comment-id:394185603 --> @reinerh commented on GitHub (Jun 3, 2018): @chiraag-nataraj okay, interesting. thanks for trying it!
Author
Owner

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

I think we're not going to be able to solve this, since none of us are able to replicate. I'm going to close this for now. If it comes up again, we can re-open.

<!-- gh-comment-id:426512352 --> @chiraag-nataraj commented on GitHub (Oct 3, 2018): I think we're not going to be able to solve this, since none of us are able to replicate. I'm going to close this for now. If it comes up again, we can re-open.
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#1305
No description provided.