Closed Bug 563664 Opened 14 years ago Closed 10 years ago

crash [@ nsWindowWatcher::OpenWindowJSInternal] when do_GetService("@mozilla.org/content/contentutils;1") fails

Categories

(Core Graveyard :: Embedding: APIs, defect)

x86
macOS
defect
Not set
critical

Tracking

(Not tracked)

RESOLVED DUPLICATE of bug 594699

People

(Reporter: timeless, Unassigned)

Details

(Keywords: crash)

Crash Data

nsNativeModuleLoader::LoadModule("/Users/timeless/devel/mozilla.org/dbg-firefox-x86_64-apple-darwin10.3.0/dist/MinefieldDebug.app/Contents/MacOS/components/libgklayout.dylib") - load FAILED, rv: 80004005, error:
	<unknown; can't get error from NSPR>
###!!! ASSERTION: You can't dereference a NULL nsCOMPtr with operator->().: 'mRawPtr != 0', file ../../../../dist/include/nsCOMPtr.h, line 796

Program received signal EXC_BAD_ACCESS, Could not access memory.
Reason: KERN_INVALID_ADDRESS at address: 0x0000000000000000
in nsWindowWatcher::OpenWindowJSInternal (... "chrome://global/content/commonDialog.xul", ...) at nsWindowWatcher.cpp:523
523	  if (!utils->IsSafeToRunScript()) {
(gdb) p utils
$1 = {
  mRawPtr = 0x0
}
(gdb) bt
#0  nsWindowWatcher::OpenWindowJSInternal (... "chrome://global/content/commonDialog.xul", ...) at nsWindowWatcher.cpp:523
#1  nsWindowWatcher::OpenWindow at nsWindowWatcher.cpp:423
#2  nsPromptService::DoDialog at nsPromptService.cpp:794
#3  nsPromptService::ConfirmEx at nsPromptService.cpp:401
dialogTitle = "Close Firefox"
button0Title = "Close Firefox"
#4  ProfileLockedDialog at nsAppRunner.cpp:1857
#5  SelectProfile at nsAppRunner.cpp:2242
#6  XRE_main at nsAppRunner.cpp:3236
#7  main at nsBrowserApp.cpp:158

nsWindowWatcher::OpenWindowJSInternal
> 521	  nsCOMPtr<nsIContentUtils> utils =
> 522	    do_GetService("@mozilla.org/content/contentutils;1");
> 523	  if (!utils->IsSafeToRunScript()) {
>             ^ we crash here.
Crash Signature: [@ nsWindowWatcher::OpenWindowJSInternal]
Status: UNCONFIRMED → RESOLVED
Closed: 10 years ago
Resolution: --- → DUPLICATE
Product: Core → Core Graveyard
You need to log in before you can comment on or make changes to this bug.