extremly slow startup of firefox if a nfs-share is not reachable
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
firefox (Ubuntu) |
Expired
|
Undecided
|
Unassigned | ||
firefox-3.0 (Ubuntu) |
Invalid
|
Undecided
|
Unassigned |
Bug Description
Binary package hint: firefox
Firefox needs a few minutes for startup if a mounted filesystem is not reachable (i.e. a nfs-share).
The "/usr/bin/firefox" wrapper-script uses "/bin/pwd" to gather the current working directory.
--- Strace output
fstat64(3, {st_mode=
close(4) = 0
fstat64(3, {st_mode=
fcntl64(3, F_GETFL) = 0x8000 (flags O_RDONLY|
fcntl64(3, F_SETFD, FD_CLOEXEC) = 0
getdents64(3, /* 30 entries */, 4096) = 808
fstatat64(3, "bin", {st_mode=
fstatat64(3, "dev", {st_mode=
fstatat64(3, "etc", {st_mode=
fstatat64(3, "lib", {st_mode=
fstatat64(3, "nas", <unfinished ...>
---
The last fstat is blocking for a long time - replacing "/bin/pwd" by the shell-builtin "pwd" solves the problem.
$ diff -u /usr/bin/firefox mozilla.fixed
--- /usr/bin/firefox 2007-12-04 12:00:28.000000000 +0100
+++ mozilla.fixed 2008-01-15 16:34:03.000000000 +0100
@@ -106,7 +106,7 @@
dist_
found=1
else
- here=`/bin/pwd`
+ here=`pwd`
while [ -h "$progname" ]; do
bn=`basename "$progname"`
cd `dirname "$progname"`
----
Please submit this change to the firefox developer team if you think this change is useful....
Changed in firefox (Ubuntu): | |
status: | In Progress → Incomplete |
On Tue, Jan 15, 2008 at 04:01:19PM -0000, scoopex wrote:
>
> The last fstat is blocking for a long time - replacing "/bin/pwd" by the
> shell-builtin "pwd" solves the problem.
>
> $ diff -u /usr/bin/firefox mozilla.fixed
> --- /usr/bin/firefox 2007-12-04 12:00:28.000000000 +0100
> +++ mozilla.fixed 2008-01-15 16:34:03.000000000 +0100
> @@ -106,7 +106,7 @@
> dist_bin="$curdir"
> found=1
> else
> - here=`/bin/pwd`
> + here=`pwd`
> while [ -h "$progname" ]; do
> bn=`basename "$progname"`
> cd `dirname "$progname"`
> ----
>
Thanks for that info/patch.
affects ubuntu/firefox
status inprogress
affects ubuntu/firefox-3.0
status incomplete
Could you verify if this is still an issue in firefox-3.0 ?
- Alexander