Closed
Bug 725568
Opened 12 years ago
Closed 12 years ago
MozillaMaintenance service can crash after applying updates
Categories
(Toolkit :: Application Update, defect)
Tracking
()
VERIFIED
FIXED
mozilla12
Tracking | Status | |
---|---|---|
firefox11 | --- | unaffected |
firefox12 | --- | verified |
firefox13 | --- | verified |
People
(Reporter: gcp, Assigned: bbondy)
References
Details
(Whiteboard: [qa-])
Attachments
(3 files)
I installed a Nightly on this machine, which already had an Aurora build on it that I'm using. After some very brief usage, I uninstalled the Nightly. Every time I start Firefox now, I get a "Nightly: This application has stopped responding and has been closed". Checking the event log shows: Faulting application maintenanceservice.exe, version 13.0.0.4419, time stamp 0x4f2fcdba, faulting module ntdll.dll, version 6.0.6002.18541, time stamp 0x4ec3e39f, exception code 0xc0000374, fault offset 0x000abc4f, process id 0xc08, application start time 0x01cce6efe87d2a61. This means that: 1) Uninstalling Nightly failed because it left behind this Mozilla Maintenance Service. 2) This leftover service is launching with Firefox Aurora and crashing.
Comment 1•12 years ago
|
||
Bug 720521 is for uninstalling the maintenance service and you likely don't have the fix from that bug. Since there are two different problems reported with one of them likely fixed I am removing the not uninstalled issue from this bug. If it is still present a new bug would need to be submitted anyways.
Summary: Maintenance service is not properly uninstalled, crashes on startup → Maintenance service crashes on startup
Reporter | ||
Comment 2•12 years ago
|
||
I'll uninstall the Maintenance service, reinstall Nightly, and see if I get a crash when launching Aurora.
Reporter | ||
Comment 3•12 years ago
|
||
No crash in that use case. I also added a dummy entry to HKEY_LOCAL_MACHINE\SOFTWARE\Mozilla\MaintenanceService, uninstalled Nightly, verified that the Maintenance Service stays around, and then launched Aurora. No crash. We're good.
Status: NEW → RESOLVED
Closed: 12 years ago
Resolution: --- → INVALID
Reporter | ||
Comment 4•12 years ago
|
||
Reporter | ||
Updated•12 years ago
|
Status: RESOLVED → REOPENED
Resolution: INVALID → ---
Reporter | ||
Comment 5•12 years ago
|
||
It did happen again. I have Nightly installed (from yesterday), and with it MaintenanceService. I started Aurora, and got an error "Nightly has caused an error and had to be closed".
Assignee | ||
Comment 6•12 years ago
|
||
For the most recent time you reproduced, is it happening each time you open? Or did it just happen once?
Reporter | ||
Comment 7•12 years ago
|
||
So far only seems to have happened once. I'm 80% sure this was just after updating Aurora.
Assignee | ||
Updated•12 years ago
|
Assignee: nobody → netzen
Assignee | ||
Comment 8•12 years ago
|
||
I'll add crash reporting this week and send you a new maintenancesevice.exe binary. Likely it will just put the crash report to your hard drive and you can send me that.
Reporter | ||
Comment 9•12 years ago
|
||
Okay. If the crash is reproducible on the next update, is there anything I can do to help you already? This Windows box has development tools on it (but I didn't get offered a chance to jump in the debugger when that service went down).
Assignee | ||
Comment 10•12 years ago
|
||
Let's see if we can reproduce this consistently. When you go to the About dialog, and it says there is an update available... Before applying the update, could you go to: C:\Users\<username>\AppData\Local\Mozilla\Firefox and create a zip of the "Nightly" folder? Then hopefully when you apply the update it'll crash on the restart. Then you should be able to unzip that folder again to reproduce it again. If you can reproduce it consistently that way then perhaps we could do a gotomeeting, or logmein, or I could just send you some binaries with some logged output that would tell me where it crashes.
Assignee | ||
Comment 11•12 years ago
|
||
Also if you have no update staged, one thing you can try quickly is to open up a command prompt and type: net start MozillaMaintenance. If it says "The process terminated unexpectedly then it is crashes really early on". If it says "The Mozilla minatenance Service service is starting. The Mozilla Maintenance service could not be started. The service did not report an error." Then that is normal and the crash doesn't happen that early on.
Reporter | ||
Comment 12•12 years ago
|
||
Assignee | ||
Comment 13•12 years ago
|
||
SO from the logs I can see that the update completes successfully but it crashes after that. (snip)... > Process was started... waiting on result. > Process finished with return code 0. > updater.exe returned status: succeeded > > Launching post update process as the service in session 0. > updater.exe was launched and run successfully! But you should have a couple extra lines at the end like this: (snip)... > Process was started... waiting on result. > Process finished with return code 0. > updater.exe returned status: succeeded > > Launching post update process as the service in session 0. > updater.exe was launched and run successfully! > Service command software-update complete. > service command MozillaMaintenance complete with result: Success.
Assignee | ||
Updated•12 years ago
|
Summary: Maintenance service crashes on startup → Maintenance service can crashes after applying updates
Assignee | ||
Comment 14•12 years ago
|
||
I caught up with gcp on IRC and added logging between each line after updates. He tested it and reported back the results. The crash happened at the very end when trying to free the buffer in this patch. This buffer used to be freed because we allocated it on the heap after parsing the command line arguments from the work item file. But later we stopped using work item files and just used the argc and argv directly, so it should no longer be freed.
Attachment #596333 -
Flags: review?(robert.bugzilla)
Assignee | ||
Comment 15•12 years ago
|
||
gcp confirmed on irc that the fixed build no longer crashes by manually staging an update first and doing the reproducible steps.
Updated•12 years ago
|
Attachment #596333 -
Flags: review?(robert.bugzilla) → review+
Assignee | ||
Updated•12 years ago
|
Summary: Maintenance service can crashes after applying updates → Maintenance service can crash after applying updates
Assignee | ||
Updated•12 years ago
|
Summary: Maintenance service can crash after applying updates → MozillaMaintenance service can crash after applying updates
Assignee | ||
Comment 16•12 years ago
|
||
Thanks for the quick review, pushed to inbound: http://hg.mozilla.org/integration/mozilla-inbound/rev/7e3d5c2879a8
Assignee | ||
Updated•12 years ago
|
Target Milestone: --- → mozilla13
Comment 17•12 years ago
|
||
https://hg.mozilla.org/mozilla-central/rev/7e3d5c2879a8
Status: REOPENED → RESOLVED
Closed: 12 years ago → 12 years ago
Resolution: --- → FIXED
Assignee | ||
Comment 18•12 years ago
|
||
http://hg.mozilla.org/releases/mozilla-aurora/rev/18840d884c97
status-firefox11:
--- → unaffected
status-firefox12:
--- → fixed
status-firefox13:
--- → fixed
Target Milestone: mozilla13 → mozilla12
Comment 19•12 years ago
|
||
Gian-Carlo, can you verify if this works for you now in Firefox 12b3 and Firefox 13.0a2?
Whiteboard: [qa-]
Reporter | ||
Comment 20•12 years ago
|
||
No more crashes with Aurora. Beta doesn't seem to crash either.
Comment 21•12 years ago
|
||
Marking verified based on comment 20 -- thanks Gian-Carlo
You need to log in
before you can comment on or make changes to this bug.
Description
•