Bug 676183 - "firefox -g" is broken
Summary: "firefox -g" is broken
Keywords:
Status: CLOSED ERRATA
Alias: None
Product: Fedora
Classification: Fedora
Component: firefox
Version: rawhide
Hardware: Unspecified
OS: Unspecified
unspecified
unspecified
Target Milestone: ---
Assignee: Martin Stransky
QA Contact: Fedora Extras Quality Assurance
URL:
Whiteboard:
Depends On:
Blocks:
TreeView+ depends on / blocked
 
Reported: 2011-02-09 01:05 UTC by Hicham HAOUARI
Modified: 2018-04-11 09:35 UTC (History)
2 users (show)

Fixed In Version: firefox-4.0.1-2.fc15
Doc Type: Bug Fix
Doc Text:
Clone Of:
Environment:
Last Closed: 2011-05-19 05:08:11 UTC
Type: ---
Embargoed:


Attachments (Terms of Use)

Description Hicham HAOUARI 2011-02-09 01:05:27 UTC
Version-Release number of selected component (if applicable):
firefox-4.0-0.14b10.fc15.i686

How reproducible:
Always

Additional info:

hicham@hicham-laptop ~/rpmbuild/SPECS $ firefox -g
MOZILLA_FIVE_HOME=/usr/lib/firefox-4
  LD_LIBRARY_PATH=/usr/lib/firefox-4:/usr/lib/firefox-4/plugins:/usr/lib/firefox-4
DISPLAY=:0.0
FONTCONFIG_PATH=/etc/fonts:/usr/lib/firefox-4/res/Xft
DYLD_LIBRARY_PATH=/usr/lib/firefox-4:/usr/lib/firefox-4
     LIBRARY_PATH=/usr/lib/firefox-4:/usr/lib/firefox-4/components:/usr/lib/firefox-4
       SHLIB_PATH=/usr/lib/firefox-4:/usr/lib/firefox-4
          LIBPATH=/usr/lib/firefox-4:/usr/lib/firefox-4
       ADDON_PATH=/usr/lib/firefox-4
      MOZ_PROGRAM=/usr/bin/xulrunner
      MOZ_TOOLKIT=
        moz_debug=1
     moz_debugger=
moz_debugger_args=
/usr/lib/firefox-4/run-mozilla.sh: line 116: type: ddd: not found
/usr/bin/gdb  --args /usr/bin/xulrunner /usr/lib/firefox-4/application.ini
GNU gdb (GDB) Fedora (7.2.50.20110206-18.fc15)
Copyright (C) 2011 Free Software Foundation, Inc.
License GPLv3+: GNU GPL version 3 or later <http://gnu.org/licenses/gpl.html>
This is free software: you are free to change and redistribute it.
There is NO WARRANTY, to the extent permitted by law.  Type "show copying"
and "show warranty" for details.
This GDB was configured as "i686-redhat-linux-gnu".
For bug reporting instructions, please see:
<http://www.gnu.org/software/gdb/bugs/>...
"/usr/bin/xulrunner": not in executable format: File format not recognized

Comment 1 Hicham HAOUARI 2011-02-09 01:52:32 UTC
a quick fix is to change :

MOZ_PROGRAM="/usr/bin/xulrunner $MOZ_DIST_BIN/$MOZ_FIREFOX_FILE"

to

MOZ_PROGRAM="$MOZ_XUL_DIR/xulrunner-bin $MOZ_DIST_BIN/$MOZ_FIREFOX_FILE"

in firefox.sh.in

Comment 2 Matěj Cepl 2011-02-14 14:22:55 UTC
Yes, can easily reproduce with firefox-4.0-0.16.b11.fc16.x86_64 and xulrunner-2.0-0.21.b11.fc16.x86_64

Comment 3 Hicham HAOUARI 2011-02-14 16:16:23 UTC
@Matej,

Can you confirm that what I suggested fixes the issue for you ?

Comment 4 Martin Stransky 2011-04-01 08:55:33 UTC
You should place the fix to /usr/bin/xulrunner script.

Comment 5 Martin Stransky 2011-04-01 10:54:23 UTC
Unfortunately the fix is not so straightforward. If we launch firefox as pure xul application (by /usr/bin/xulrunner /usr/lib/firefox/firefox.ini) we have to define the firefox.ini file as an argument in gdb as well. It would be better to revert the prelink fix and build the ff executable stub instead of copying it from xulrunner dir.

Comment 6 Martin Stransky 2011-04-01 15:08:50 UTC
Hm, we need to use the xulrunner stub as a launcher. I tried to use the firefox binary but it fails to register xpcom components from firefox dir. Chris, are you interested in patch which builds xulrunner stub as a part of firefox package? The XulStub builds fine with firefox, it just needs some makefile adjustments and packaging work.

Comment 7 Christopher Aillon 2011-04-01 18:13:33 UTC
Can't it build as part of the XR package?

Comment 8 Hicham HAOUARI 2011-04-03 01:44:31 UTC
(In reply to comment #4)
> You should place the fix to /usr/bin/xulrunner script.

Any reason for that ?

Comment 9 Martin Stransky 2011-04-04 07:42:58 UTC
(In reply to comment #7)
> Can't it build as part of the XR package?
Not when we build ff/xl as separate packages. It causes the prelink breakage.

> Any reason for that ?
The fix from comment 1 does not work for us, see my comment 5.

Comment 10 Hicham HAOUARI 2011-04-04 22:34:44 UTC
(In reply to comment #9)
> > Any reason for that ?
> The fix from comment 1 does not work for us, see my comment 5.

Obviously I tested it and it works for me

Comment 11 Martin Stransky 2011-04-05 06:17:36 UTC
Try to add some argument to gdb command line. For instance a different profile, a web page you can load or something else. like: 

(gdb) r -P test_profile -no-remote

which is widely used by firefox developers.

Comment 12 Fedora Update System 2011-05-10 11:06:13 UTC
firefox-4.0.1-2.fc15 has been submitted as an update for Fedora 15.
https://admin.fedoraproject.org/updates/firefox-4.0.1-2.fc15

Comment 13 Fedora Update System 2011-05-11 05:49:11 UTC
Package firefox-4.0.1-2.fc15:
* should fix your issue,
* was pushed to the Fedora 15 testing repository,
* should be available at your local mirror within two days.
Update it with:
# su -c 'yum update --enablerepo=updates-testing firefox-4.0.1-2.fc15'
as soon as you are able to.
Please go to the following url:
https://admin.fedoraproject.org/updates/firefox-4.0.1-2.fc15
then log in and leave karma (feedback).

Comment 14 Fedora Update System 2011-05-19 05:08:05 UTC
firefox-4.0.1-2.fc15 has been pushed to the Fedora 15 stable repository.  If problems still persist, please make note of it in this bug report.


Note You need to log in before you can comment on or make changes to this bug.