Closed Bug 289068 Opened 19 years ago Closed 19 years ago

ASSERTION: WriteToBuffer called with count of zero: 'count', file r:/mozilla/netwerk/cache/src/nsDiskCacheStreams.cpp, line 710

Categories

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

x86
Windows XP
defect
Not set
minor

Tracking

()

RESOLVED FIXED

People

(Reporter: timeless, Assigned: timeless)

Details

(Keywords: assertion)

Attachments

(1 obsolete file)

###!!! ASSERTION: WriteToBuffer called with count of zero: 'count', file 
r:/mozilla/netwerk/cache/src/nsDiskCacheStreams.cpp, line 710

 	xpcom_core.dll!nsDebug::Assertion(const char * aStr=0x014ff214, const 
char * aExpr=0x014ff20c, const char * aFile=0x014ff1d8, int aLine=0x000002c6)  
Line 109	C++
 	necko.dll!nsDiskCacheStreamIO::WriteToBuffer(const char * 
buffer=0x01137e88, unsigned int count=0x00000000)  Line 710 + 0x20	C++
 	necko.dll!nsDiskCacheStreamIO::Write(const char * buffer=0x01137e88, 
unsigned int count=0x00000000, unsigned int * bytesWritten=0x0012e75c)  Line 
561 + 0x10	C++
 	necko.dll!nsDiskCacheOutputStream::Write(const char * buf=0x01137e88, 
unsigned int count=0x00000000, unsigned int * bytesWritten=0x0012e75c)  Line 260
	C++
 	necko.dll!nsCacheEntryDescriptor::nsOutputStreamWrapper::Write(const 
char * buf=0x01137e88, unsigned int count=0x00000000, unsigned int * 
result=0x0012e75c)  Line 630	C++
 	gklayout.dll!nsWyciwygChannel::WriteToCacheEntry(const nsAString & 
aData={...})  Line 371 + 0x4e	C++
 	gklayout.dll!nsHTMLDocument::WriteCommon(const nsAString & aText={...}, 
int aNewlineTerminate=0x00000001)  Line 2186	C++
 	gklayout.dll!nsHTMLDocument::ScriptWriteCommon(int 
aNewlineTerminate=0x00000001)  Line 2290 + 0x16	C++
 	gklayout.dll!nsHTMLDocument::Writeln()  Line 2325	C++
 	xpcom_core.dll!XPTC_InvokeByIndex(nsISupports * that=0x0588863c, 
unsigned int methodIndex=0x00000015, unsigned int paramCount=0x00000000, 
nsXPTCVariant * params=0x0012ea90)  Line 102	C++
 	xpc3250.dll!XPCWrappedNative::CallMethod(XPCCallContext & ccx={...}, 
XPCWrappedNative::CallMode mode=CALL_METHOD)  Line 2068 + 0x1e	C++
 	xpc3250.dll!XPC_WN_CallMethod(JSContext * cx=0x065bd020, JSObject * 
obj=0x03f7d518, unsigned int argc=0x00000001, long * argv=0x05ef6fac, long * 
vp=0x0012ed64)  Line 1311 + 0xb	C++
 	js3250.dll!js_Invoke(JSContext * cx=0x065bd020, unsigned int 
argc=0x00000001, unsigned int flags=0x00000000)  Line 1293 + 0x20	C
 	js3250.dll!js_Interpret(JSContext * cx=0x065bd020, unsigned char * 
pc=0x040e6825, long * result=0x0012f800)  Line 3566 + 0xf	C
 	js3250.dll!js_Execute(JSContext * cx=0x065bd020, JSObject * 
chain=0x04f35228, JSScript * script=0x040e67d0, JSStackFrame * down=0x00000000, 
unsigned int flags=0x00000000, long * result=0x0012f908)  Line 1523 + 0x13
	C
 	js3250.dll!JS_EvaluateUCScriptForPrincipals(JSContext * cx=0x065bd020, 
JSObject * obj=0x04f35228, JSPrincipals * principals=0x053007cc, const unsigned 
short * chars=0x06551d88, unsigned int length=0x00000b5d, const char * 
filename=0x052b23c8, unsigned int lineno=0x00000001, long * rval=0x0012f908)  
Line 3766 + 0x19	C
 	gklayout.dll!nsJSContext::EvaluateString(const nsAString & aScript=
{...}, void * aScopeObject=0x04f35228, nsIPrincipal * aPrincipal=0x053007c8, 
const char * aURL=0x052b23c8, unsigned int aLineNo=0x00000001, const char * 
aVersion=0x01333854, nsAString * aRetValue=0x00000000, int * 
aIsUndefined=0x0012f9d8)  Line 1038 + 0x43	C++
 	gklayout.dll!nsScriptLoader::EvaluateScript(nsScriptLoadRequest * 
aRequest=0x0540a5c8, const nsString & aScript={...})  Line 723	C++
 	gklayout.dll!nsScriptLoader::ProcessRequest(nsScriptLoadRequest * 
aRequest=0x0540a5c8)  Line 629 + 0x13	C++
 	gklayout.dll!nsScriptLoader::OnStreamComplete(nsIStreamLoader * 
aLoader=0x052b2a90, nsISupports * aContext=0x0540a5c8, unsigned int 
aStatus=0x00000000, unsigned int stringLen=0xffffffff, const unsigned char * 
string=0x05427dce)  Line 975	C++
 	necko.dll!nsStreamLoader::OnStopRequest(nsIRequest * 
request=0x052b2458, nsISupports * ctxt=0x0540a5c8, unsigned int 
aStatus=0x00000000)  Line 137	C++
 	necko.dll!nsStreamListenerTee::OnStopRequest(nsIRequest * 
request=0x052b2458, nsISupports * context=0x0540a5c8, unsigned int 
status=0x00000000)  Line 66	C++
 	necko.dll!nsHttpChannel::OnStopRequest(nsIRequest * request=0x052c1928, 
nsISupports * ctxt=0x00000000, unsigned int status=0x00000000)  Line 3828
	C++
 	necko.dll!nsInputStreamPump::OnStateStop()  Line 507	C++
 	necko.dll!nsInputStreamPump::OnInputStreamReady(nsIAsyncInputStream * 
stream=0x052c16d0)  Line 343 + 0xb	C++
 	xpcom_core.dll!nsInputStreamReadyEvent::EventHandler(PLEvent * 
plevent=0x052c1f1c)  Line 120	C++
 	xpcom_core.dll!PL_HandleEvent(PLEvent * self=0x052c1f1c)  Line 698 + 0xa
	C
 	xpcom_core.dll!PL_ProcessPendingEvents(PLEventQueue * self=0x01143078)  
Line 633 + 0x9	C
 	xpcom_core.dll!_md_TimerProc(HWND__ * hwnd=0x000e12b6, unsigned int 
uMsg=0x00000113, unsigned int idEvent=0x00000000, unsigned long 
dwTime=0x7d8405ca)  Line 1034 + 0x9	C
 	user32.dll!_InternalCallWinProc@20()  + 0x28	
 	user32.dll!_UserCallWinProc@24()  + 0xa1	
 	user32.dll!_DispatchMessageWorker@8()  + 0xcc6	
 	user32.dll!_DispatchMessageA@4()  + 0xf	
 	mfc71d.dll!AfxInternalPumpMessage()  Line 188	C++
 	mfc71d.dll!CWinThread::PumpMessage()  Line 916	C++
 	mfc71d.dll!CWinThread::Run()  Line 637 + 0xb	C++
 	mfc71d.dll!CWinApp::Run()  Line 701	C++
 	mfc71d.dll!AfxWinMain(HINSTANCE__ * hInstance=0x00400000, HINSTANCE__ * 
hPrevInstance=0x00000000, char * lpCmdLine=0x00142384, int 
nCmdShow=0x0000000a)  Line 49 + 0xb	C++
 	mfcembed.exe!WinMain(HINSTANCE__ * hInstance=0x00400000, HINSTANCE__ * 
hPrevInstance=0x00000000, char * lpCmdLine=0x00142384, int 
nCmdShow=0x0000000a)  Line 25	C++
 	mfcembed.exe!WinMainCRTStartup()  Line 390 + 0x39	C
 	kernel32.dll!_BaseProcessStart@4()  + 0x23	

-	aText	{mVTable=0x00ee15b8 const nsObsoleteAStringThunk::`vftable' 
mData=0x01137e88 "" mLength=0x00000000 ...}	const nsAString &
|	mVTable	0x00ee15b8 const nsObsoleteAStringThunk::`vftable'	const 
void *
|+	mData	0x01137e88 ""	unsigned short *
|	mLength	0x00000000	unsigned int
\	mFlags	0x00000001	unsigned int

we shouldn't call
    mWyciwygChannel->WriteToCacheEntry(aText);

unless !aText.IsEmpty()

the script seems to be;
http://z1.adserver.com/w/cp.x;rid=35;tid=17;ev=1;dt=1;ac=68;c=46;
http://z1.adserver.com/w/cp.x;rid=35;tid=17;ev=1;dt=1;ac=68;c=46;;nc=1

but i can't find js code which actually triggered it.

the referrer is listed as:
http://psx.gamezone.com/gamesell/p20204.htm
Assignee: general → timeless
Status: NEW → ASSIGNED
Attachment #179729 - Flags: superreview?(jst)
Attachment #179729 - Flags: review?(jst)
Comment on attachment 179729 [details] [diff] [review]
only dive down the rabbit hole if we have something to do

r+sr=jst
Attachment #179729 - Flags: superreview?(jst)
Attachment #179729 - Flags: superreview+
Attachment #179729 - Flags: review?(jst)
Attachment #179729 - Flags: review+
Attachment #179729 - Flags: approval1.8b3?
Comment on attachment 179729 [details] [diff] [review]
only dive down the rabbit hole if we have something to do

a=shaver
Attachment #179729 - Flags: approval1.8b3? → approval1.8b3+
Comment on attachment 179729 [details] [diff] [review]
only dive down the rabbit hole if we have something to do

mozilla/content/html/document/src/nsHTMLDocument.cpp	3.603
Attachment #179729 - Attachment is obsolete: true
Status: ASSIGNED → RESOLVED
Closed: 19 years ago
Resolution: --- → FIXED
You need to log in before you can comment on or make changes to this bug.

Attachment

General

Creator:
Created:
Updated:
Size: