Open Bug 1380557 Opened 2 years ago Updated Last year

Support symbol table for debug version of artifact builds

Categories

(Firefox Build System :: General, enhancement)

enhancement
Not set

Tracking

(firefox57 wontfix)

Tracking Status
firefox57 --- wontfix

People

(Reporter: swu, Unassigned)

References

(Blocks 1 open bug)

Details

The current debug version of artifact build doesn't contain symbol table.  It would be great to download the symbol table for debug version, so we can use GDB to debug with source code.
(In reply to Shian-Yow Wu [:swu] from comment #0)
> The current debug version of artifact build doesn't contain symbol table. 
> It would be great to download the symbol table for debug version, so we can
> use GDB to debug with source code.

I believe that even the debug binaries are stripped in automation, because the unstripped versions are perhaps 1GB.  Mozilla runs a symbol server, but I've never figured out how to make it work.  (And it might be Visual Studio-only.)
The symbol server only has symbols for nightlies anyways, but taskcluster artifacts *do* have the full debug symbols in a separate zip, which we could optionally use.
We already have support for download the crashreporter-symbols files in artifact builds: http://searchfox.org/mozilla-central/source/python/mozbuild/mozbuild/artifacts.py#856.  I think it was intended for use in automation.

I don't know where it needs to get placed for the `minidump_stackwalker` integration to work.

swu: can you see if this does what you need "out of the box", or suggest improvements that you need?
Flags: needinfo?(swu)
(In reply to Nick Alexander :nalexander from comment #3)
> We already have support for download the crashreporter-symbols files in
> artifact builds:
> http://searchfox.org/mozilla-central/source/python/mozbuild/mozbuild/
> artifacts.py#856.  I think it was intended for use in automation.
> 
> I don't know where it needs to get placed for the `minidump_stackwalker`
> integration to work.
> 
> swu: can you see if this does what you need "out of the box", or suggest
> improvements that you need?

My wish is to debug the C++ code by "./mach run --debugger=gdb" or "./mach run --debugger=rr" on the slow laptop running Linux.  So, maybe crashreport-symbols is not adequate for this purpose, and we might need the unstripped debug binaries?
Flags: needinfo?(swu)
Product: Core → Firefox Build System
You need to log in before you can comment on or make changes to this bug.