Closed
Bug 526623
Opened 15 years ago
Closed 15 years ago
Send channel with crash data
Categories
(Toolkit :: Crash Reporting, defect)
Toolkit
Crash Reporting
Tracking
()
RESOLVED
FIXED
mozilla1.9.3a1
Tracking | Status | |
---|---|---|
blocking2.0 | --- | alpha1+ |
status1.9.2 | --- | beta5-fixed |
People
(Reporter: samuel.sidler+old, Assigned: ddahl)
References
Details
(Whiteboard: [crashkill-metrics])
Attachments
(2 files, 2 obsolete files)
1.82 KB,
patch
|
mossop
:
review+
|
Details | Diff | Splinter Review |
1.82 KB,
patch
|
mossop
:
review+
beltzner
:
approval1.9.2+
|
Details | Diff | Splinter Review |
We should send the channel a user is one with the crash data in an easy format for Socorro to read. Doing so would allow us to easily process 100% of crash reports for users during the maintenance release beta periods we have. Otherwise, we'll have to unthrottle then re-throttle all the time.
Flags: blocking1.9.2?
Reporter | ||
Updated•15 years ago
|
Whiteboard: [crashkill-metrics]
Comment 1•15 years ago
|
||
This wants a toolkit or browser peer to fix it.
Comment 2•15 years ago
|
||
Would take fix, would not block.
blocking2.0: --- → ?
Flags: blocking1.9.2? → blocking1.9.2-
Assignee | ||
Comment 3•15 years ago
|
||
Notes for where to do this and how, from irc: <Mossop> ddahl: Here is where we push some information to the crash reporter from the extension manager http://mxr.mozilla.org/mozilla-central/source/toolkit/mozapps/extensions/src/nsExtensionManager.js.in#2349 <ddahl> thanks <Mossop> You'd want to do the same in some other component during startup, maybe browser glue, maybe something more toolkity <Mossop> ddahl: And here is some example code to read the update channel: http://mxr.mozilla.org/mozilla-central/source/toolkit/mozapps/update/src/nsUpdateService.js.in#573 <ddahl> ok cool <Mossop> Ok, gonna see if a change of scenery kicks my brain back on again <ddahl> Mossop: where do you think would be a good place to insert this call, so it runs once on startup or delayed startup or 2 hours after startup or something like that? I wish dietrich was online:) <Mossop> ddahl: Depends how important it is. If you need it for al crashes, even early startup ones then you need it as soon as possible which would be a potential perf hit (albeit a small one) <Mossop> ddahl: Actually in the app updater code might be a good place since it is update related, depends what rs thinks
Assignee | ||
Updated•15 years ago
|
Assignee: nobody → ddahl
Assignee | ||
Comment 4•15 years ago
|
||
I am working on a patch that annotates the CrashReporter right after xpcom startup: http://pastebin.mozilla.org/682971 It seems to be crashing fx after line 12.
Assignee | ||
Comment 5•15 years ago
|
||
Working patch, deep in XRE_Main
Attachment #411805 -
Flags: review?
Assignee | ||
Updated•15 years ago
|
Attachment #411805 -
Flags: review? → review?(dtownsend)
Assignee | ||
Comment 6•15 years ago
|
||
Forgot to #ifdef everything on MOZ_CRASHREPORTER
Attachment #411805 -
Attachment is obsolete: true
Attachment #411809 -
Flags: review?(dtownsend)
Attachment #411805 -
Flags: review?(dtownsend)
Comment 7•15 years ago
|
||
Comment on attachment 411809 [details] [diff] [review] v 1.1 Working Trunk Patch >+#ifdef MOZ_CRASHREPORTER >+ // tell the crash reporter to also send the release channel >+ nsCOMPtr<nsIPrefService> prefs = do_GetService("@mozilla.org/preferences-service;1", &rv); >+ if (NS_SUCCEEDED(rv)) { >+ nsCOMPtr<nsIPrefBranch> defaultPrefBranch; >+ rv = prefs->GetDefaultBranch(nsnull, getter_AddRefs(defaultPrefBranch)); >+ >+ if (NS_SUCCEEDED(rv)){ Nit: space before the curly brace >+ nsXPIDLCString sval; >+ rv = defaultPrefBranch->GetCharPref("app.update.channel", getter_Copies(sval)); >+ if (NS_SUCCEEDED(rv)) { >+ CrashReporter::AnnotateCrashReport(NS_LITERAL_CSTRING("ReleaseChannel"), >+ nsDependentCString(sval)); Can you not just pass sval here rather than wrapping in an nsDependentCString? >+ } >+ } >+ } >+#endif
Assignee | ||
Comment 8•15 years ago
|
||
Seems to work without the nsDependantString
Attachment #411809 -
Attachment is obsolete: true
Attachment #412012 -
Flags: review?(dtownsend)
Attachment #411809 -
Flags: review?(dtownsend)
Comment 9•15 years ago
|
||
Comment on attachment 412012 [details] [diff] [review] v 1.2 Working Trunk Patch Looks good. Please keep a close eye on Ts after landing though to make sure this doesn't do any harm.
Attachment #412012 -
Flags: review?(dtownsend) → review+
Assignee | ||
Comment 10•15 years ago
|
||
thanks, will do. Sam: Perhaps we should get a confirmation on the server side of this before checkin? I can send crash reports when you are ready.
Comment 11•15 years ago
|
||
No, you can just land it, and the server will ignore it. That's fine. File a new bug in Webtools:Socorro to get the server to collect and display the data. If it doesn't need to be queryable (in the db), then it should be pretty easy.
Assignee | ||
Updated•15 years ago
|
Keywords: checkin-needed
Assignee | ||
Comment 12•15 years ago
|
||
Attachment #412035 -
Flags: review?(dtownsend)
Comment 13•15 years ago
|
||
Comment on attachment 412035 [details] [diff] [review] v 1.0 Working 1.9.2 Patch When there is basically no change in the patch like this, just different line numbers or slightly different context you generally don't need to re-request review.
Attachment #412035 -
Flags: review?(dtownsend) → review+
Comment 14•15 years ago
|
||
Pushed to trunk: http://hg.mozilla.org/mozilla-central/rev/87417297cb3c
Status: NEW → RESOLVED
Closed: 15 years ago
Keywords: checkin-needed
Resolution: --- → FIXED
Target Milestone: --- → mozilla1.9.3a1
Comment 15•15 years ago
|
||
Comment on attachment 412035 [details] [diff] [review] v 1.0 Working 1.9.2 Patch a192=beltzner
Attachment #412035 -
Flags: approval1.9.2+
Comment 16•15 years ago
|
||
Pushed http://hg.mozilla.org/releases/mozilla-1.9.2/rev/a7348573b6f8
status1.9.2:
--- → final-fixed
Marking the 14 bugs that are both: * nominated for blocking1.9.3:? * fixed on the 1.9.2 branch (according to status1.9.2) as blocking1.9.3:alpha1, so that we don't have to go through the nominations individually. They're all fixed already (so there's no work to do), and being fixed on 1.9.2 means they probably do block 1.9.3.
blocking2.0: ? → alpha1
You need to log in
before you can comment on or make changes to this bug.
Description
•