[Bug 809384] Re: Firefox Aurora PPA build fails to load XPCOM

Bug Watch Updater 809384 at bugs.launchpad.net
Wed Jul 13 23:33:13 UTC 2011


Launchpad has imported 3 comments from the remote bug at
https://bugzilla.mozilla.org/show_bug.cgi?id=671397.

If you reply to an imported comment from within Launchpad, your comment
will be sent to the remote bug automatically. Read more about
Launchpad's inter-bugtracker facilities at
https://help.launchpad.net/InterBugTracking.

------------------------------------------------------------------------
On 2011-07-13T20:24:36+00:00 Chris Coulson wrote:

On current nightly and aurora builds, Firefox will fail to start with
"Couldn't load XPCOM" under these conditions:

1) The executable is loaded from the users PATH,
...and...
2) There is a file called "firefox" in the current working directory

This is because if you pass a relative path to realpath, it will resolve
the path if the file exists in the current working directory. This
causes mozilla::BinaryPath::Get() to return the wrong path.

This was reported to https://launchpad.net/bugs/809384 by Ben, who
experienced this because he has a folder named "firefox" in his home
directory. This is enough to prevent a current aurora build from
starting

Reply at: https://bugs.launchpad.net/firefox/+bug/809384/comments/3

------------------------------------------------------------------------
On 2011-07-13T20:27:10+00:00 Chris Coulson wrote:

Created attachment 545732
Don't call realpath when loaded from PATH

This fixes it by not calling realpath() if we are executed from the
users PATH. This is determined by the absence of any separators in
argv[0]. I did consider also checking that the result is actually an
executable file too, but that seemed overkill.

Reply at: https://bugs.launchpad.net/firefox/+bug/809384/comments/4

------------------------------------------------------------------------
On 2011-07-13T21:39:00+00:00 Reed Loden wrote:


*** This bug has been marked as a duplicate of bug 670788 ***

Reply at: https://bugs.launchpad.net/firefox/+bug/809384/comments/5


** Changed in: firefox
       Status: Unknown => Invalid

** Changed in: firefox
   Importance: Unknown => Medium

-- 
You received this bug notification because you are a member of Mozilla
Bugs, which is subscribed to firefox in Ubuntu.
https://bugs.launchpad.net/bugs/809384

Title:
  Firefox Aurora PPA build fails to load XPCOM

To manage notifications about this bug go to:
https://bugs.launchpad.net/firefox/+bug/809384/+subscriptions




More information about the Ubuntu-mozillateam-bugs mailing list