Bug#826085: Could not find the Mozilla runtime

積丹尼 Dan Jacobson jidanni at jidanni.org
Thu Jun 2 06:31:00 UTC 2016


Package: firefox
Version: 47.0~b5-1

If one has a NON-executable file "firefox" on one's PATH,
firefox's entire startup fails.

Other programs know that NON-executable files should be skipped.

That is the whole point of the executable bit.

$ firefox
Could not find the Mozilla runtime.
$ strace firefox
...
lstat64("/home", {st_mode=S_IFDIR|0755, st_size=1024, ...}) = 0
lstat64("/home/jidanni", {st_mode=S_IFDIR|0755, st_size=10240, ...}) = 0
lstat64("/home/jidanni/bin", {st_mode=S_IFDIR|0755, st_size=6144, ...}) = 0
lstat64("/home/jidanni/bin/firefox", {st_mode=S_IFREG|0644, st_size=24, ...}) = 0
stat64("/home/jidanni/bin/firefox", {st_mode=S_IFREG|0644, st_size=24, ...}) = 0
access("/home/jidanni/bin/libxul.so", R_OK) = -1 ENOENT (No such file or directory)
write(2, "Could not find the Mozilla runti"..., 36Could not find the Mozilla runtime.
) = 36
exit_group(255)                         = ?
+++ exited with 255 +++

The above simple check does not check if the executable bit is set or
not!!

All other wrapper scripts can be toggled on and off by setting the
executable bit.

Firefox wrapper scripts can only have one state: ON. (chmod +x).

Else one must remove them.

$ cd && ls -l bin/firefox
-rw-r--r-- 1 jidanni jidanni 24 2014-06-16  bin/firefox



More information about the pkg-mozilla-maintainers mailing list