Closed Bug 819795 Opened 12 years ago Closed 7 years ago

crash in mozilla::dom::power::PowerManagerService::PowerOff

Categories

(Core :: DOM: Device Interfaces, defect, P3)

x86
Windows NT
defect

Tracking

()

RESOLVED INCOMPLETE

People

(Reporter: martijn.martijn, Unassigned)

References

Details

(Keywords: crash, testcase)

Crash Data

Attachments

(1 file)

Attached file testcase
See testcase, which crashes on desktop when clicking on the button.
You need to have the specialpowers extension installed to see the crash:
http://people.mozilla.org/~mwargers/extensions/specialpowers/specialpowers.xpi

This bug was filed from the Socorro interface and is 
report bp-1241b536-8224-413c-839f-7c3762121209 .
============================================================= 
0 	xul.dll 	mozilla::dom::power::PowerManagerService::PowerOff 	dom/power/PowerManagerService.cpp:130
1 	xul.dll 	mozilla::dom::power::PowerManager::PowerOff 	dom/power/PowerManager.cpp:87
2 	xul.dll 	NS_InvokeByIndex_P 	xpcom/reflect/xptcall/src/md/win32/xptcinvoke.cpp:70
3 	xul.dll 	XPC_WN_CallMethod 	js/xpconnect/src/XPCWrappedNativeJSOps.cpp:1488
4 	mozjs.dll 	js::InvokeKernel 	js/src/jsinterp.cpp:369
5 	mozjs.dll 	js::Interpret 	js/src/jsinterp.cpp:2321
6 	mozjs.dll 	js::RunScript 	js/src/jsinterp.cpp:318
7 	mozjs.dll 	js::ExecuteKernel 	js/src/jsinterp.cpp:515
8 	mozjs.dll 	js::Execute 	js/src/jsinterp.cpp:553
9 	mozjs.dll 	JS::Evaluate 	js/src/jsapi.cpp:5605
10 	xul.dll 	nsJSContext::EvaluateString 	dom/base/nsJSEnvironment.cpp:1524
etc..
Component: DOM → DOM: Device Interfaces
Could you reproduce this on a Linux build? I can't reproduce on my nightly.
I got it, SpecialPowers is not working

(gdb) bt
#0  0x00007ffff3bcaf80 in mozilla::dom::power::PowerManagerService::Restart (this=0xfffffffffee1dead)
    at /home/kanru/zone2/mozilla/central/dom/power/PowerManagerService.cpp:141
#1  0x00007ffff58f49b8 in ?? ()
   from /home/kanru/zone2/mozilla/central/obj-x86_64-unknown-linux-gnu/dist/bin/libxul.so
#2  0x00007fffd0ff99a0 in ?? ()
#3  0x00007ffffffe7f90 in ?? ()
#4  0x00007ffff3bc9c78 in mozilla::dom::power::PowerManager::PowerOff (
    this=0x7ffff4689940)
    at /home/kanru/zone2/mozilla/central/dom/power/PowerManager.cpp:87
Gene could take a look?
Still crashes if I remove the StartForceQuitWatchdog line.

#0  _mm_load_si128 (__P=0x7fffcebecfe0) at /home/kanru/zone2/mozilla/central/xpcom/string/src/nsUTF8UtilsSSE2.cpp:79
#1  LossyConvertEncoding8to16::write_sse2 (this=0x7ffffffe70b8, aSource=0x7fffcebecfe0 "[Exception... \"Component returned failure code: 0xc1f30001 (NS_ERROR_NOT_INITIALIZED) [nsIDownloadManager.cleanUp]\"  nsresult: \"0xc1f30001 (NS_ERROR_NOT_INITIALIZED)\"  location: \"JS frame :: file:///h"..., aSourceLength=338) at /home/kanru/zone2/mozilla/central/xpcom/string/src/nsUTF8UtilsSSE2.cpp:79
#2  0x00007ffff38290f6 in LossyConvertEncoding8to16::write (this=0x7ffffffe70b8, aSource=0x7fffcebecfe0 "[Exception... \"Component returned failure code: 0xc1f30001 (NS_ERROR_NOT_INITIALIZED) [nsIDownloadManager.cleanUp]\"  nsresult: \"0xc1f30001 (NS_ERROR_NOT_INITIALIZED)\"  location: \"JS frame :: file:///h"..., aSourceLength=338) at ../../../dist/include/nsUTF8Utils.h:655
#3  0x00007ffff382a293 in nsCharSinkTraits<LossyConvertEncoding8to16>::write (iter=..., s=0x7fffcebecfe0 "[Exception... \"Component returned failure code: 0xc1f30001 (NS_ERROR_NOT_INITIALIZED) [nsIDownloadManager.cleanUp]\"  nsresult: \"0xc1f30001 (NS_ERROR_NOT_INITIALIZED)\"  location: \"JS frame :: file:///h"..., n=338) at ../../../dist/include/nsCharTraits.h:688
#4  0x00007ffff4835d10 in copy_string<nsReadingIterator<char>, LossyConvertEncoding8to16> (first=..., last=..., result=...) at ../../../dist/include/nsAlgorithm.h:89
#5  0x00007ffff48341da in AppendASCIItoUTF16 (aSource=..., aDest=...) at /home/kanru/zone2/mozilla/central/xpcom/string/src/nsReadableUtils.cpp:129
#6  0x00007ffff483426c in AppendASCIItoUTF16 (aSource=0x7fffcebecfe0 "[Exception... \"Component returned failure code: 0xc1f30001 (NS_ERROR_NOT_INITIALIZED) [nsIDownloadManager.cleanUp]\"  nsresult: \"0xc1f30001 (NS_ERROR_NOT_INITIALIZED)\"  location: \"JS frame :: file:///h"..., aDest=...) at /home/kanru/zone2/mozilla/central/xpcom/string/src/nsReadableUtils.cpp:144
#7  0x00007ffff31c6549 in NS_ConvertASCIItoUTF16::NS_ConvertASCIItoUTF16 (this=0x7ffffffe71d8, aCString=0x7fffcebecfe0 "[Exception... \"Component returned failure code: 0xc1f30001 (NS_ERROR_NOT_INITIALIZED) [nsIDownloadManager.cleanUp]\"  nsresult: \"0xc1f30001 (NS_ERROR_NOT_INITIALIZED)\"  location: \"JS frame :: file:///h"...) at ../../../dist/include/nsString.h:93
#8  0x00007ffff3fe6d15 in nsXPCWrappedJSClass::CheckForException (ccx=..., aPropertyName=0x7fffe6cb3f98 "observe", anInterfaceName=0x7fffccb8d8a0 "nsIObserver", aForceReport=true) at /home/kanru/zone2/mozilla/central/js/xpconnect/src/XPCWrappedJSClass.cpp:1064
#9  0x00007ffff3fe8459 in nsXPCWrappedJSClass::CallMethod (this=0x7fffe3a8f780, wrapper=0x7fffcead8380, methodIndex=3, info_=0x7fffe6cb3f78, nativeParams=0x7ffffffe7cb8) at /home/kanru/zone2/mozilla/central/js/xpconnect/src/XPCWrappedJSClass.cpp:1467
#10 0x00007ffff3fdf2b6 in nsXPCWrappedJS::CallMethod (this=0x7fffcead8380, methodIndex=3, info=0x7fffe6cb3f78, params=0x7ffffffe7cb8) at /home/kanru/zone2/mozilla/central/js/xpconnect/src/XPCWrappedJS.cpp:580
#11 0x00007ffff482fac5 in PrepareAndDispatch (self=0x7fffce067ce0, methodIndex=3, args=0x7ffffffe7e48, gpregs=0x7ffffffe7dc8, fpregs=0x7ffffffe7df8) at /home/kanru/zone2/mozilla/central/xpcom/reflect/xptcall/src/md/unix/xptcstubs_x86_64_linux.cpp:121
#12 0x00007ffff482ed23 in SharedStub () from /home/kanru/zone2/mozilla/central/obj-x86_64-unknown-linux-gnu/dist/bin/libxul.so
#13 0x00007ffff47d2657 in nsObserverList::NotifyObservers (this=0x7fffd6ab3d80, aSubject=0x0, aTopic=0x7ffff58f4ad6 "profile-change-teardown", someData=0x7ffff58f4a98) at /home/kanru/zone2/mozilla/central/xpcom/ds/nsObserverList.cpp:99
#14 0x00007ffff47d3a53 in nsObserverService::NotifyObservers (this=0x7fffe6c86500, aSubject=0x0, aTopic=0x7ffff58f4ad6 "profile-change-teardown", someData=0x7ffff58f4a98) at /home/kanru/zone2/mozilla/central/xpcom/ds/nsObserverService.cpp:161
#15 0x00007ffff3bcaeb4 in mozilla::dom::power::PowerManagerService::SyncProfile (this=0xfffffffffee1dead) at /home/kanru/zone2/mozilla/central/dom/power/PowerManagerService.cpp:108
#16 0x00007ffff3bcaf76 in mozilla::dom::power::PowerManagerService::Restart (this=0xfffffffffee1dead) at /home/kanru/zone2/mozilla/central/dom/power/PowerManagerService.cpp:143
#17 0x00007ffff58f4998 in ?? () from /home/kanru/zone2/mozilla/central/obj-x86_64-unknown-linux-gnu/dist/bin/libxul.so
#18 0x00007fffd6386bb0 in ?? ()
#19 0x00007ffffffe7f90 in ?? ()
#20 0x00007ffff3bc9c78 in mozilla::dom::power::PowerManager::PowerOff (this=0x7ffff468991a) at /home/kanru/zone2/mozilla/central/dom/power/PowerManager.cpp:87
Crash Signature: [@ mozilla::dom::power::PowerManagerService::PowerOff()] → [@ mozilla::dom::power::PowerManagerService::PowerOff()] [@ mozilla::dom::power::PowerManagerService::PowerOff]
Status: NEW → RESOLVED
Closed: 7 years ago
Resolution: --- → WORKSFORME
Status: RESOLVED → REOPENED
Resolution: WORKSFORME → ---
Priority: -- → P3
PowerManager PowerOn/Off capabilities removed in bug 1382955. Marking incomplete.
Status: REOPENED → RESOLVED
Closed: 7 years ago7 years ago
Resolution: --- → INCOMPLETE
You need to log in before you can comment on or make changes to this bug.

Attachment

General

Created:
Updated:
Size: