As a security precaution, we have turned on the setting "Require API key authentication for API requests" for everyone. If this has broken something, please contact
Last Comment Bug 770900 - No debugging symbols generated for Firefox on x86-64 Linux (with all relevant options on)
: No debugging symbols generated for Firefox on x86-64 Linux (with all relevant...
Product: Firefox
Classification: Client Software
Component: Untriaged (show other bugs)
: Trunk
: x86_64 Linux
: -- normal (vote)
: ---
Assigned To: Nobody; OK to take it and work on it
Depends on:
  Show dependency treegraph
Reported: 2012-07-04 08:10 PDT by Shlomi Fish
Modified: 2012-07-04 08:20 PDT (History)
2 users (show)
See Also:
Crash Signature:
QA Whiteboard:
Iteration: ---
Points: ---
Has Regression Range: ---
Has STR: ---

The Patch I used. (1.62 KB, patch)
2012-07-04 08:20 PDT, Shlomi Fish
no flags Details | Diff | Splinter Review

Description User image Shlomi Fish 2012-07-04 08:10:57 PDT
User Agent: Mozilla/5.0 (X11; Linux x86_64; rv:13.0) Gecko/20100101 Firefox/13.0.1
Build ID: 20120616022601

Steps to reproduce:

I've ran  "make -f" and "make -f install" with this .mozconfig:

. $topsrcdir/browser/config/mozconfig
export LDFLAGS="-Wl,--no-keep-memory"
mk_add_options MOZ_OBJDIR=@TOPSRCDIR@/ff-dbg
ac_add_options --disable-optimize
ac_add_options --enable-debug
ac_add_options --enable-tests
ac_add_options --enable-debug-symbols
ac_add_options --prefix="$HOME/apps/net/www/firefox-hg"

On Mageia Linux 2 x86-64 on my Acer laptop. I've based my build on the mozilla-central revision 98255:87db9617a885e7bac31d9e724facf9f0ad3a6c50 with a small patch to get the build to work here.

Actual results:

When running gdb against firefox or firefox-bin, the stack trace is full of question marks instead of symbols:

#0  0x00007ffff1ad741d in ?? ()
   from /home/shlomif/apps/net/www/firefox-hg/lib/firefox-16.0a1/
#1  0x00007ffff1b593c3 in ?? ()
   from /home/shlomif/apps/net/www/firefox-hg/lib/firefox-16.0a1/
#2  0x00007ffff1b5932c in ?? ()
   from /home/shlomif/apps/net/www/firefox-hg/lib/firefox-16.0a1/
#3  0x00007ffff1b59151 in ?? ()
   from /home/shlomif/apps/net/www/firefox-hg/lib/firefox-16.0a1/
#4  0x00007ffff3444e3b in ?? ()
   from /home/shlomif/apps/net/www/firefox-hg/lib/firefox-16.0a1/
#5  0x00007ffff33d8c2f in ?? ()
   from /home/shlomif/apps/net/www/firefox-hg/lib/firefox-16.0a1/
#6  0x00007ffff3228a80 in ?? ()
   from /home/shlomif/apps/net/www/firefox-hg/lib/firefox-16.0a1/
#7  0x00007ffff3496577 in ?? ()

Expected results:

There should be debug symbols.
Comment 1 User image Mike Hommey [:glandium] 2012-07-04 08:17:07 PDT
The symbols are stripped when installing.

You can either ask the build system not to strip when installing with
  make -f install PKG_SKIP_STRIP=1

Or point gdb to the symbols location (set debug-file-directory)
Comment 2 User image Mike Hommey [:glandium] 2012-07-04 08:19:28 PDT
> Or point gdb to the symbols location (set debug-file-directory)

(You can point it to objdir/dist/bin)
Comment 3 User image Shlomi Fish 2012-07-04 08:20:08 PDT
Created attachment 639105 [details] [diff] [review]
The Patch I used.

This is the patch I used to get the trunk to build. Part of it is based on the recommendation in:

I suggest adding the part with the " | xargs rm" ==> " | xargs rm -f".

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