Closed Bug 476518 Opened 15 years ago Closed 15 years ago

Sunbird debug symbols for crash reports seem to be missing

Categories

(Calendar :: Build Config, defect)

defect
Not set
normal

Tracking

(Not tracked)

RESOLVED FIXED

People

(Reporter: ssitter, Assigned: gozer)

Details

Attachments

(3 files)

Today I experienced some crashes when shutting down Thunderbird and Sunbird. I submitted crash reports for both applications.

The Thunderbird ones contain a useful stacktrace:
http://crash-stats.mozilla.com/report/index/f0e5021c-ce60-4c10-80a4-2719a2090202
http://crash-stats.mozilla.com/report/index/02bc8c17-11f3-4dea-860e-0bda82090202

The Sunbird ones not:
http://crash-stats.mozilla.com/report/index/dbbc3e1a-9ac1-452f-8b31-58e702090202
http://crash-stats.mozilla.com/report/index/9c772afc-85f3-422e-a246-c420c2090202

Looking at http://crash-stats.mozilla.com/ there are more Sunbird crash reports for the last day but none seems to contain useful information either.

Is there a possibility to check if the debug symbols for crash reports are correctly uploaded to the crash server?
Hrm, looks like the current buildbot configuration has the symbol generation disabled for nightly Sunbird. I can turn them on and see what happens.
This is the required buildbot config change to get debug symbols generated and uploaded for Sunbird.
Note that if we are turning this on, it would be a great opportunity to consider switching the Macs over to the new debug symbol generation (stabs) away from the buggy (dwarf-2).
Mozilla/5.0 (X11; U; Linux i686; en-US; rv:1.9.1b3pre) Gecko/20090201 Calendar/1.0pre

bp-d976c843-cf78-43f9-8971-798a32090202

I see symbols for libxpcom_core.so but not for the top and bottom of the stack where Breakpad only reports "sunbird-bin@" plus some hex addresses
OS: Windows XP → All
Hardware: x86 → All
(In reply to comment #4)
>
> I see symbols for libxpcom_core.so but not for the top and bottom of the stack

That's probably because luckly, a libxpcom_core.so with the same checksum was built as a result of a Thunderbird build, and crash-stats looks up symbols infomrmation by library checksum.

I've just enabled buildsymbols generation for the Linux and Windows Sunbird nightly builds.

pushing to http://hg.mozilla.org/build/buildbot-configs
searching for changes
changeset:   720:339b2e8b3b74
tag:         tip
user:        Philippe M. Chiasson <gozer@mozillamessaging.com>
date:        Mon Feb 02 22:09:37 2009 -0500
summary:     Bug 476518. Enable nightly buildsymbols for Sunbird Linux+Windows. r=me

For Mac, I'd prefer if we could agree on the dwarf/stubs debugging symbol change before enabling them.
(In reply to comment #5)
> For Mac, I'd prefer if we could agree on the dwarf/stubs debugging symbol
> symbol change before enabling them.

Sunbird already seems to use stabs:
https://hg.mozilla.org/build/buildbot-configs/file/339b2e8b3b74/thunderbird/macosx/mozconfig-sunbird#l20
that's because I got them reversed. stabs is the old way, dwarf-2 is the new way, see :

https://hg.mozilla.org/build/buildbot-configs/file/339b2e8b3b74/thunderbird/macosx/mozconfig

Oh, and it's stabs, not stubs, jeez.

Sorry about the confusion.
So what is needed to enable dwarf-2 ? I'm all for it.
This is all that's needed, the rest of the build tools know how to adapt.

Thunderbird has switched over to it a while back, and it's great. Works 100% of the time and is much, much easier on CPU
Once calendar switched over, we can get rid of a slow, painfull `find . [...]` to delete leftovers files from stabs builds.
Thanks to Standard8's ever watchful eyes, I did forget to mention that this requires the latest version of Apple's XCode 2.5
Comment on attachment 360317 [details] [diff] [review]
[checked in] Enable dwarf-2 buildsymbols for Calendar on OSX


>+<<<<<<< local
>+BRANCHES['comm-central-sunbird']['platforms']['macosx']['upload_symbols'] = True
>+=======
> BRANCHES['comm-central-sunbird']['platforms']['macosx']['upload_symbols'] = False
>+>>>>>>> other
This looks like a misguided merge?


r=philipp with comments considered.
Attachment #360317 - Flags: review+
(In reply to comment #12)
> Thanks to Standard8's ever watchful eyes, I did forget to mention that this
> requires the latest version of Apple's XCode 2.5

The upgrade to XCode 2.5 was painless, and worked just fine for me. I could easily upgrade cb-xserve03 (downloaded xcode 2.5 to it already)
upgraded cb-xserve03 to XCode 2.5, restarted build slave
Comment on attachment 360317 [details] [diff] [review]
[checked in] Enable dwarf-2 buildsymbols for Calendar on OSX

comparing with ssh://hg.mozilla.org/build/buildbot-configs
searching for changes
changeset:   722:9e0527a80b00
tag:         tip
user:        Philippe M. Chiasson <gozer@mozillamessaging.com>
date:        Tue Feb 03 14:32:48 2009 -0500
summary:     Bug 360317. Switch calendar osx builds to -gdwarf-2 for buildsymbols. r=philipp
Attachment #360317 - Attachment description: Enable dwarf-2 buildsymbols for Calendar on OSX → [checked in] Enable dwarf-2 buildsymbols for Calendar on OSX
Grr, apologies, referenced the wrong bug ## in the hg log message
Last night's Mac nightlies compiled with -gdwarf-2 without problems, so all that's left is to enable the buildsymbols step.

Pushed that last remaining change. 

changeset:   723:a79a8147cd59
tag:         tip
user:        Philippe M. Chiasson <gozer@mozillamessaging.com>
date:        Wed Feb 04 09:57:47 2009 -0500
summary:     Bug 476518. Enable buildsymbols generation on Sunbird/Mac. r=me
Status: NEW → RESOLVED
Closed: 15 years ago
Resolution: --- → FIXED
Assignee: nobody → gozer
You need to log in before you can comment on or make changes to this bug.

Attachment

General

Created:
Updated:
Size: