###!!! ASSERTION: This is not supposed to fail!: 'Error', file r:/mozilla/js/src/xpconnect/src/nsXPConnect.cpp, line 413

NEW
Assigned to

Status

()

Core
DOM: Core & HTML
P5
critical
13 years ago
9 years ago

People

(Reporter: timeless, Assigned: jst)

Tracking

(Blocks: 1 bug, {crash})

Trunk
x86
Windows XP
crash
Points:
---

Firefox Tracking Flags

(Not tracked)

Details

(Reporter)

Description

13 years ago
steps:
JS_RUNTIME_SIZE=15
run winembed
visit http://www.cspan.org (?)

You are embedded, man!

******************************************************************
*                                                                *
*  IMPORTANT NOTE:                                               *
*                                                                *
*  WinEmbed is not supported!!! Do not raise bugs on it unless   *
*  it is badly broken (e.g. crash on start/exit, build errors)   *
*  or you have the patch to make it better! MFCEmbed is now our  *
*  embedding test application on Win32 and all testing should    *
*  be done on that.                                              *
*                                                                *
******************************************************************


Type Manifest File: R:\mozilla\all-i686-pc-cygwin\dist\bin\components\xpti.dat
+++ JavaScript debugging hooks installed.
nsNativeComponentLoader: autoregistering begins.
nsNativeComponentLoader: autoregistering succeeded
nsNativeComponentLoader: registering deferred (0)
!!! XPConnect won't warn about Shadowed Members of...
   Window, HTMLInputElement, HTMLDocument, HTMLCollection, Event, ChromeWindow
WARNING: NS_ENSURE_TRUE(NS_SUCCEEDED(rv)) failed, file
r:/mozilla/extensions/cookie/nsPermissionManager.cpp, line 624
JavaScript error: http://www.cspan.org/, line 86: {repeated 4 times}
JavaScript error: , line 0:
WARNING: NS_ENSURE_TRUE(NS_SUCCEEDED(result)) failed, file
r:/mozilla/parser/htmlparser/src/nsHTMLTokenizer.cpp, line 947
JavaScript error: , line 0:
WARNING: NS_ENSURE_TRUE(scount != 0) failed, file
r:/mozilla/parser/htmlparser/src/nsDTDUtils.cpp, line 294 {repeated 7 times}
JavaScript error: , line 0:
JavaScript error: , line 0:
JavaScript error: http://www.cspan.org/, line 566: missing variable name
JavaScript error: , line 0:
JavaScript error: , line 0:
JavaScript error: , line 0:
WARNING: Couldn't add reflow command, so splitting.
WARNING: Deleting out of flow without tearing down placeholder relationship,
file r:/mozilla/layout/generic/nsFrame.cpp, line 641 {repeated 15 times}
{...}
JavaScript error: , line 0:
WARNING: NS_ENSURE_TRUE(NS_SUCCEEDED(rv)) failed, file
r:/mozilla/dom/src/base/nsDOMClassInfo.cpp, line 1277
WARNING: NS_ENSURE_TRUE(NS_SUCCEEDED(result)) failed, file
r:/mozilla/content/events/src/nsEventListenerManager.cpp, line 1430
{repeated 45 times}
WARNING: NS_ENSURE_TRUE(NS_SUCCEEDED(rv)) failed, file
r:/mozilla/dom/src/base/nsDOMClassInfo.cpp, line 5757
JavaScript error: , line 0:
JavaScript error: , line 0:
{}
WARNING: NS_ENSURE_TRUE(NS_SUCCEEDED(rv)) failed, file
r:/mozilla/dom/src/base/nsDOMClassInfo.cpp, line 5757
JavaScript error: , line 0:
JavaScript error: , line 0:
JavaScript error: , line 0:
{repeated 24 times}
WARNING: NS_ENSURE_TRUE(NS_SUCCEEDED(rv)) failed, file
r:/mozilla/dom/src/base/nsDOMClassInfo.cpp, line 5757
JavaScript error: , line 0:
++WEBSHELL == 2
++DOMWINDOW == 2
###!!! ASSERTION: Can't get globalObject.Object.prototype: 'Error', file
r:/mozilla/js/src/xpconnect/src/xpcwrappednativescope.cpp, line 196
WARNING: Global is not an nsISupports., file
r:/mozilla/dom/src/base/nsJSEnvironment.cpp, line 1476
JavaScript error: , line 0:
###!!! ASSERTION: This is not supposed to fail!: 'Error', file
r:/mozilla/js/src/xpconnect/src/nsXPConnect.cpp, line 413
###!!! ASSERTION: This is not supposed to fail!: 'Error', file
r:/mozilla/js/src/xpconnect/src/nsXPConnect.cpp, line 413
WARNING: NS_ENSURE_TRUE(NS_SUCCEEDED(rv)) failed, file
r:/mozilla/dom/src/base/nsJSEnvironment.cpp, line 1557
WARNING: NS_ENSURE_TRUE(NS_SUCCEEDED(rv)) failed, file
r:/mozilla/dom/src/base/nsJSEnvironment.cpp, line 2219
WARNING: NS_ENSURE_TRUE(context) failed, file
r:/mozilla/docshell/base/nsDocShell.cpp, line 7004
###!!! ASSERTION: Can't get globalObject.Object.prototype: 'Error', file
r:/mozilla/js/src/xpconnect/src/xpcwrappednativescope.cpp, line 196
WARNING: Global is not an nsISupports., file
r:/mozilla/dom/src/base/nsJSEnvironment.cpp, line 1476
JavaScript error: , line 0:
###!!! ASSERTION: This is not supposed to fail!: 'Error', file
r:/mozilla/js/src/xpconnect/src/nsXPConnect.cpp, line 413
###!!! ASSERTION: This is not supposed to fail!: 'Error', file
r:/mozilla/js/src/xpconnect/src/nsXPConnect.cpp, line 413
WARNING: NS_ENSURE_TRUE(NS_SUCCEEDED(rv)) failed, file
r:/mozilla/dom/src/base/nsJSEnvironment.cpp, line 1557
WARNING: NS_ENSURE_TRUE(NS_SUCCEEDED(rv)) failed, file
r:/mozilla/dom/src/base/nsJSEnvironment.cpp, line 2219
WARNING: NS_ENSURE_TRUE(context) failed, file
r:/mozilla/docshell/base/nsDocShell.cpp, line 7004
WARNING: NS_ENSURE_TRUE(scriptContext) failed, file
r:/mozilla/content/html/document/src/nsHTMLContentSink.cpp, line 1975


+	gsp	0x00000000 {map=??? slots=??? }	JSObject *

  JSObject *gsp = oldPolluter;

  ::JS_BeginRequest(cx);
  if (!gsp) {
    gsp = ::JS_NewObject(cx, &sGlobalScopePolluterClass, nsnull, obj);

The code will just as soon crash in JS_NewObject as JS_BeginRequest.

+	aDocument	0x0301e530 {mChannel=??? mCompatMode=??? mImageMaps=??? ...}
nsIDOMDocument *
+	mDocument	{mRawPtr=0x0301e530 {mChannel=??? mCompatMode=??? mImageMaps=???
...} }	nsCOMPtr<nsIDOMDocument>
	cx	0x00000000	JSContext *
+	mContext	{mRawPtr=0x00000000 }	nsCOMPtr<nsIScriptContext>
+	mJSObject	0x00000000 {map=??? slots=??? }	JSObject *
+	mNavigator	{mRawPtr=0x00000000 {mRefCnt={mValue=??? }
_mOwningThread={mThread=??? } mMimeTypes={mRawPtr=??? } ...} }	nsRefPtr<nsNavigator>
+	mDocumentPrincipal	{mRawPtr=0x00000000 }	nsCOMPtr<nsIPrincipal>
	mFirstDocumentLoad	0x00	unsigned char
+	internal	0x017bf554 {mRefCnt={mValue=0x00000005 }
_mOwningThread={mThread=0x003d48a8 } mFirstDocumentLoad=0x00 ...}
nsIDOMWindowInternal *
+	html_doc	{mRawPtr=0x0301e670 {mChannel={mRawPtr=0x0315e6e8 {mOriginalURI={...}
mURI={...} mDocumentURI={...} ...} } mCompatMode=eCompatibility_NavQuirks
mImageMaps={...} ...} }	nsCOMPtr<nsIHTMLDocument>

 	js3250.dll!JS_BeginRequest(JSContext * cx=0x00000000)  Line 803 + 0x3	C
 	gklayout.dll!nsWindowSH::InstallGlobalScopePolluter(JSContext * cx=0x00000000,
JSObject * obj=0x00000000, JSObject * oldPolluter=0x00000000, nsIHTMLDocument *
doc=0x0301e670)  Line 3704 + 0xa	C++
>	gklayout.dll!nsGlobalWindow::SetNewDocument(nsIDOMDocument *
aDocument=0x0301e530, int aRemoveEventListeners=0x00000001, int
aClearScopeHint=0x00000001)  Line 527 + 0x1e	C++
 	gklayout.dll!DocumentViewerImpl::InitInternal(nsIWidget *
aParentWidget=0x031a5a0c, nsIDeviceContext * aDeviceContext=0x031ae1b0, const
nsRect & aBounds={...}, int aDoCreation=0x00000001, int
aInPrintPreview=0x00000000)  Line 837	C++
 	gklayout.dll!DocumentViewerImpl::Init(nsIWidget * aParentWidget=0x031a5a0c,
nsIDeviceContext * aDeviceContext=0x031ae1b0, const nsRect & aBounds={...}) 
Line 620	C++
 	docshell.dll!nsDocShell::SetupNewViewer(nsIContentViewer *
aNewViewer=0x031b4890)  Line 5057 + 0x48	C++
 	docshell.dll!nsDocShell::Embed(nsIContentViewer * aContentViewer=0x031b4890,
const char * aCommand=0x02ad2dad, nsISupports * aExtraInfo=0x00000000)  Line
4371 + 0x1a	C++
 	docshell.dll!nsDocShell::CreateContentViewer(const char *
aContentType=0x01771010, nsIRequest * request=0x0315e6e8, nsIStreamListener * *
aContentHandler=0x030da3d0)  Line 4792 + 0x26	C++
 	docshell.dll!nsDSURIContentListener::DoContent(const char *
aContentType=0x01771010, int aIsContentPreferred=0x00000001, nsIRequest *
request=0x0315e6e8, nsIStreamListener * * aContentHandler=0x030da3d0, int *
aAbortProcess=0x0012f30c)  Line 130 + 0x1e	C++
 	docshell.dll!nsDocumentOpenInfo::TryContentListener(nsIURIContentListener *
aListener=0x017b62c0, nsIChannel * aChannel=0x0315e6e8)  Line 737 + 0x42	C++
 	docshell.dll!nsDocumentOpenInfo::DispatchContent(nsIRequest *
request=0x0315e6e8, nsISupports * aCtxt=0x00000000)  Line 468 + 0x39	C++
 	docshell.dll!nsDocumentOpenInfo::OnStartRequest(nsIRequest *
request=0x0315e6e8, nsISupports * aCtxt=0x00000000)  Line 328 + 0x10	C++
 	necko.dll!nsHttpChannel::CallOnStartRequest()  Line 694 + 0x42	C++
 	necko.dll!nsHttpChannel::ProcessNormal()  Line 855 + 0x8	C++
 	necko.dll!nsHttpChannel::ProcessResponse()  Line 741 + 0x8	C++
 	necko.dll!nsHttpChannel::OnStartRequest(nsIRequest * request=0x017bf2b0,
nsISupports * ctxt=0x00000000)  Line 3726 + 0xb	C++
 	necko.dll!nsInputStreamPump::OnStateStart()  Line 381 + 0x2a	C++
 	necko.dll!nsInputStreamPump::OnInputStreamReady(nsIAsyncInputStream *
stream=0x017bf108)  Line 337 + 0xb	C++
 	xpcom_core.dll!nsInputStreamReadyEvent::EventHandler(PLEvent *
plevent=0x0312bee4)  Line 120	C++
 	xpcom_core.dll!PL_HandleEvent(PLEvent * self=0x0312bee4)  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=0x00000101, unsigned
int wParam=0x00000049, long lParam=0xc0170001, long * aRetValue=0x0012fd8c) 
Line 4442	C++
 	gkwidget.dll!nsWindow::WindowProc(HWND__ * hWnd=0x001b032e, unsigned int
msg=0x00000101, unsigned int wParam=0x00000049, long lParam=0xc0170001)  Line
1473 + 0x1b	C++
 	user32.dll!77d48734() 	
 	user32.dll!77d48816() 	
 	user32.dll!77d489cd() 	
 	user32.dll!77d4ca67() 	
 	user32.dll!77d496c7() 	
 	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!7c816d4f() 	
 	kernel32.dll!7c8399f3()
(Reporter)

Comment 1

13 years ago
‡	nsWindowSH::InstallGlobalScopePolluter returned	0x8007000e	unsigned int

note that nsGlobalWindow::SetNewDocument does not check the result from
nsWindowSH::InstallGlobalScopePolluter, see:
http://bonsai.mozilla.org/cvsblame.cgi?file=mozilla/dom/src/base/nsGlobalWindow.cpp&rev=1.735&mark=530,618,683
this is almost certainly a bad idea.
(Reporter)

Comment 2

13 years ago
i'm not sure what link i clicked, but after crashing twice (well, crashing,
uncrashing, walking carefully, repeat), i ended up at http://www.supremecourtus.gov/
(Reporter)

Updated

13 years ago
Blocks: 294420
(Reporter)

Updated

13 years ago
Status: UNCONFIRMED → NEW
Ever confirmed: true
Priority: -- → P5
QA Contact: ian → general
You need to log in before you can comment on or make changes to this bug.