No symbols in stack trace on tests of debug builds

RESOLVED FIXED

Status

defect
RESOLVED FIXED
10 years ago
6 years ago

People

(Reporter: catlee, Assigned: ted)

Tracking

Firefox Tracking Flags

(Not tracked)

Details

Attachments

(1 attachment)

Initial report here: https://bugzilla.mozilla.org/show_bug.cgi?id=518634#c3

We're not getting symbols on stack traces of debug builds.
Assignee: catlee → ted.mielczarek
Unsure if this has the same root cause as bug 519194, we should look and see.
Now that the debug builds are uploaded to a separate path, it's easy to look and see that the symbols.zip is only 230 bytes:
http://stage.mozilla.org/pub/mozilla.org/firefox/tinderbox-builds/mozilla-central-linux-debug/
(see the contents of any subdir there)
Blocks: 523385
Blocks: 523672
From the build log:
Processing file: ./dist/bin/libxul.so
Stab section not found.
Failed to write symbol file.

And from a random compile:
/tools/gcc-4.3.3/installed/bin/g++ -o nsDependentString.o -c -I../../../dist/system_wrappers -include /builds/moz2_slave/mozilla-central-linux-debug/build/config/gcc_hidden.h -DMOZILLA_INTERNAL_API -DOSTYPE=\"Linux2.6.18-53.1.19\" -DOSARCH=Linux -D_IMPL_NS_COM  -I/builds/moz2_slave/mozilla-central-linux-debug/build/xpcom/string/src -I. -I../../../dist/include -I../../../dist/include/nsprpub  -I/builds/moz2_slave/mozilla-central-linux-debug/build/obj-firefox/dist/include/nspr -I/builds/moz2_slave/mozilla-central-linux-debug/build/obj-firefox/dist/include/nss       -fPIC  -fno-rtti -fno-exceptions -Wall -Wpointer-arith -Woverloaded-virtual -Wsynth -Wno-ctor-dtor-privacy -Wno-non-virtual-dtor -Wcast-align -Wno-invalid-offsetof -Wno-long-long -pedantic -fno-strict-aliasing -fshort-wchar -pthread -pipe  -DDEBUG -D_DEBUG -DDEBUG_cltbld -DTRACING -g -fno-inline   -DMOZILLA_CLIENT -include ../../../mozilla-config.h -Wp,-MD,.deps/nsDependentString.pp /builds/moz2_slave/mozilla-central-linux-debug/build/xpcom/string/src/nsDependentString.cpp

We're building with -g, which is going to give us stabs by default. We need to do
--enable-debug="-gstabs+"
to fix this.
No longer blocks: 523672
Blocks: 523672
No longer blocks: 523672
This should do it, but I haven't tested it.
Attachment #407757 - Flags: review?(bhearsum)
Status: NEW → ASSIGNED
Comment on attachment 407757 [details] [diff] [review]
--enable-debug="-gstabs+"

Feel free to land this whenever, but please update the Maintenance page when you do (https://wiki.mozilla.org/ReleaseEngineering:Maintenance).
Attachment #407757 - Flags: review?(bhearsum) → review+
Pushed:
http://hg.mozilla.org/build/buildbot-configs/rev/bbeb0a56b830
Status: ASSIGNED → RESOLVED
Closed: 10 years ago
Resolution: --- → FIXED
Are we going to need that change on m-1.9.2 (and possibly elsewhere) if unit-on-debug is enabled there ?
Also, we have to remember to check what the disk space implications are of changes like this. We burned a number of builds until bug 522719 caught up with it.
Yeah, if we want debug unittests there we'll probably want this.
Product: mozilla.org → Release Engineering
You need to log in before you can comment on or make changes to this bug.