Closed Bug 294420 Opened 19 years ago Closed 5 years ago

ASSERTION: You can't dereference a NULL nsCOMPtr with operator->() [@ nsGlobalWindow::OpenInternal]

Categories

(Core :: DOM: Core & HTML, defect, P5)

x86
Windows XP
defect

Tracking

()

RESOLVED WONTFIX

People

(Reporter: timeless, Assigned: jst)

References

Details

(Keywords: assertion, crash)

Crash Data

steps:
JS_RUNTIME_SIZE=15
run winembed
visit http://www.cspan.org
click some link to the supreme court site (see bug 294418)
click some links there which don't crash.
click something which triggers a new window (?)

WARNING: NS_ENSURE_TRUE(scriptContext) failed, file
r:/mozilla/content/html/document/src/nsHTMLContentSink.cpp, line 1975
WARNING: NS_ENSURE_TRUE(scriptContext) failed, file
r:/mozilla/content/base/src/nsDocument.cpp, line 4213
###!!! ASSERTION: You can't dereference a NULL nsCOMPtr with operator->().:
'mRawPtr != 0', file ../../../dist/include/xpcom\nsCOMPtr.h, line 849
Break: at file ../../../dist/include/xpcom\nsCOMPtr.h, line 849

 	gklayout.dll!nsCOMPtr<nsIScriptContext>::operator->()  Line 849 + 0x22	C++
 	gklayout.dll!nsGlobalWindow::OpenInternal(const nsAString & aUrl={...}, const
nsAString & aName={...}, const nsAString & aOptions={...}, int
aDialog=0x00000000, long * argv=0x00000000, unsigned int argc=0x00000000,
nsISupports * aExtraArgument=0x00000000, nsIDOMWindow * * aReturn=0x0012f3f8) 
Line 4858 + 0xb	C++
 	gklayout.dll!nsGlobalWindow::Open(const nsAString & aUrl={...}, const
nsAString & aName={...}, const nsAString & aOptions={...}, nsIDOMWindow * *
_retval=0x0012f3f8)  Line 3291 + 0x28	C++
 	docshell.dll!nsDocShell::FindTarget(const unsigned short *
aWindowTarget=0x0012f544, int * aIsNewWindow=0x0012f528, nsIDocShell * *
aResult=0x0012f5cc)  Line 1151 + 0x53	C++
>	docshell.dll!nsDocShell::InternalLoad(nsIURI * aURI=0x03033188, nsIURI *
aReferrer=0x0315b118, nsISupports * aOwner=0x00000000, unsigned int
aFlags=0x00000001, const unsigned short * aWindowTarget=0x0012f778, const char *
aTypeHint=0x01751fd8, nsIInputStream * aPostData=0x00000000, nsIInputStream *
aHeadersData=0x00000000, unsigned int aLoadType=0x00200001, nsISHEntry *
aSHEntry=0x00000000, int aFirstParty=0x00000001, nsIDocShell * *
aDocShell=0x00000000, nsIRequest * * aRequest=0x00000000)  Line 5397 + 0x3c	C++
 	docshell.dll!nsWebShell::OnLinkClickSync(nsIContent * aContent=0x031af028,
nsLinkVerb aVerb=eLinkVerb_Replace, nsIURI * aURI=0x03033188, const unsigned
short * aTargetSpec=0x0303d248, nsIInputStream * aPostDataStream=0x00000000,
nsIInputStream * aHeadersDataStream=0x00000000, nsIDocShell * *
aDocShell=0x00000000, nsIRequest * * aRequest=0x00000000)  Line 552 + 0x63	C++
 	docshell.dll!OnLinkClickEvent::HandleEvent()  Line 348	C++
 	docshell.dll!HandlePLEvent(OnLinkClickEvent * aEvent=0x0313c948)  Line 363	C++
 	xpcom_core.dll!PL_HandleEvent(PLEvent * self=0x0313c948)  Line 698 + 0xa	C
 	xpcom_core.dll!PL_ProcessPendingEvents(PLEventQueue * self=0x00ad8d58)  Line
633 + 0x9	C
 	xpcom_core.dll!nsEventQueueImpl::ProcessPendingEvents()  Line 417 + 0xc	C++
 	gkwidget.dll!nsWindow::DispatchPendingEvents()  Line 4245	C++
 	gkwidget.dll!nsWindow::ProcessMessage(unsigned int msg=0x00000202, unsigned
int wParam=0x00000000, long lParam=0x005c0218, long * aRetValue=0x0012fd8c) 
Line 4556	C++
 	gkwidget.dll!nsWindow::WindowProc(HWND__ * hWnd=0x001204f0, unsigned int
msg=0x00000202, unsigned int wParam=0x00000000, long lParam=0x005c0218)  Line
1473 + 0x1b	C++
 	user32.dll!_InternalCallWinProc@20()  + 0x28	
 	user32.dll!_UserCallWinProcCheckWow@32()  + 0xb7	
 	user32.dll!_DispatchMessageWorker@8()  + 0xdc	
 	user32.dll!_DispatchMessageA@4()  + 0xf	
 	winEmbed.exe!AppCallbacks::RunEventLoop(int & aRunCondition=0x00000001) 
Line 1198	C++
 	winEmbed.exe!main(int argc=0x00000001, char * * argv=0x003d7b80)  Line 188 +
0x9	C++
 	winEmbed.exe!mainCRTStartup()  Line 398 + 0x11	C
 	kernel32.dll!_BaseProcessStart@4()  + 0x23
the window being opened was http://www.abanet.org/publiced/preview/briefs/home.html
Status: UNCONFIRMED → NEW
Ever confirmed: true
Priority: -- → P5
QA Contact: ian → general
Crash Signature: [@ nsGlobalWindow::OpenInternal]
Closing because no crashes reported for 12 weeks.
Status: NEW → RESOLVED
Closed: 5 years ago
Resolution: --- → WONTFIX
You need to log in before you can comment on or make changes to this bug.