firefox -g option broken: Tries to run shell script under gdb

Bug #551070 reported by jimav
This bug report is a duplicate of:  Bug #546490: Firefox willl not start in debug mode. Edit Remove
8
This bug affects 1 person
Affects Status Importance Assigned to Milestone
firefox (Ubuntu)
New
Undecided
Unassigned

Bug Description

Binary package hint: firefox

firefox -g (or --debug) is supposed to run the binary executable under gdb to allow debugging.

However, it runs gdb on /usr/lib/firefox-3.6/firefox, which is a shell script, not an executable.

Here is the console output:

$ firefox --help
...
Usage: firefox [-flags] [<url>]

        -g or --debug Start within /usr/bin/gdb (Must be first)

$ firefox -g
sh /usr/lib/firefox-3.6/run-mozilla.sh /usr/bin/gdb /usr/lib/firefox-3.6/firefox-bin -x /tmp/mozargs.AKELLZ
GNU gdb (GDB) 7.1-ubuntu
Copyright (C) 2010 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 "x86_64-linux-gnu".
For bug reporting instructions, please see:
<http://www.gnu.org/software/gdb/bugs/>...
"/usr/lib/firefox-3.6/firefox": not in executable format: File format not recognized
(gdb) r
Starting program:
No executable file specified.
Use the "file" or "exec-file" command.
(gdb)

ProblemType: Bug
DistroRelease: Ubuntu 10.04
Package: firefox 3.6+nobinonly-0ubuntu6
ProcVersionSignature: Ubuntu 2.6.32-16.25-generic
Uname: Linux 2.6.32-16-generic x86_64
Architecture: amd64
Date: Mon Mar 29 10:24:43 2010
FirefoxPackages:
 firefox 3.6+nobinonly-0ubuntu6
 firefox-gnome-support 3.6+nobinonly-0ubuntu6
 firefox-branding 3.6+nobinonly-0ubuntu6
 abroswer N/A
 abrowser-branding N/A
InstallationMedia: Ubuntu 10.04 "Lucid Lynx" - Alpha amd64 (20100224.1)
ProcEnviron:
 PATH=(custom, user)
 LANG=en_US.utf8
 SHELL=/bin/bash
SourcePackage: firefox

Revision history for this message
jimav (james-avera) wrote :
Revision history for this message
Micah Gersten (micahg) wrote :

Thank you for taking the time to report this bug and helping to make Ubuntu better. This particular bug has already been reported and is a duplicate of bug 546490, so it is being marked as such. Please look at the other bug report to see if there is any missing information that you can provide, or to see if there is a workaround for the bug. Additionally, any further discussion regarding the bug should occur in the other report. Please continue to report any other bugs you may find.

To post a comment you must log in.
This report contains Public information  
Everyone can see this information.

Other bug subscribers

Remote bug watches

Bug watches keep track of this bug in other bug trackers.