Closed Bug 137557 Opened 22 years ago Closed 22 years ago

Triggering assert in OnRedirect() when loading some websites

Categories

(Core :: Networking, defect, P3)

x86
Windows 2000
defect

Tracking

()

RESOLVED DUPLICATE of bug 129795

People

(Reporter: kinmoz, Assigned: darin.moz)

References

()

Details

I'm hitting this assertion:


###!!! ASSERTION: Wrong Document Channel: 'request == mDocumentRequest', file y:
\mozilla\uriloader\base\nsDocLoader.cpp, line 1287
###!!! Break: at file y:\mozilla\uriloader\base\nsDocLoader.cpp, line 1287


constantly while using my debug Win32 build from 04/14/02. It's reallly making 
it tough to use my debug build for dogfood!

On some pages like


  http://home.netscape.com
  http://www.time.com/time/
  http://www.time.com/time/magazine/archives/


I hit the assertion 6 or more times in a row, before the page is completely 
loaded, which is quite annoying when running a Win32 debug build because it 
throws up a dialog for each assertion.

Here's the snippet of code being triggered in nsDocLoader::OnRedirect():


#if defined(DEBUG)
      nsCOMPtr<nsIRequest> request(do_QueryInterface(aOldChannel));
      NS_ASSERTION(request == mDocumentRequest, "Wrong Document Channel");
#endif /* DEBUG */


Here's the stack when the assertion is thrown:


NTDLL! 77fa018c()
nsDebug::Assertion(const char * 0x0209380c, const char * 0x020937f0, const char 
* 0x020937c4, int 1287) line 291 + 13 bytes
nsDocLoaderImpl::OnRedirect(nsDocLoaderImpl * const 0x034c73e4, nsIHttpChannel * 
0x039c8a18, nsIChannel * 0x03a5b1a0) line 1287 + 49 bytes
nsHttpChannel::ProcessRedirection(unsigned int 302) line 1499 + 54 bytes
nsHttpChannel::ProcessResponse() line 508 + 12 bytes
nsHttpChannel::OnStartRequest(nsHttpChannel * const 0x039c8a1c, nsIRequest * 
0x039e2314, nsISupports * 0x00000000) line 2759 + 11 bytes
nsOnStartRequestEvent::HandleEvent() line 161 + 53 bytes
nsARequestObserverEvent::HandlePLEvent(PLEvent * 0x04eb2864) line 116
PL_HandleEvent(PLEvent * 0x04eb2864) line 596 + 10 bytes
PL_ProcessPendingEvents(PLEventQueue * 0x00faffd0) line 526 + 9 bytes
_md_EventReceiverProc(HWND__ * 0x000404d2, unsigned int 49471, unsigned int 0, 
long 16449488) line 1077 + 9 bytes
USER32! 77e12e98()
USER32! 77e130e0()
USER32! 77e15824()
nsAppShellService::Run(nsAppShellService * const 0x019653d8) line 309
main1(int 2, char * * 0x00307380, nsISupports * 0x00000000) line 1414 + 32 bytes
main(int 2, char * * 0x00307380) line 1762 + 37 bytes
mainCRTStartup() line 338 + 17 bytes
Hmmm, networking default assignments go to new-network-bugs@mail.packetgram.com, 
I'm not sure what/who exactly that is, Cc rpotts and give to darin for initial 
triage.
Assignee: new-network-bugs → darin
Summary: OnRedirect → Hitting (request == mDocumentRequest) in OnRedirect() when loading some websites
Summary: Hitting (request == mDocumentRequest) in OnRedirect() when loading some websites → Triggering assert in OnRedirect() when loading some websites
-> moz 1.0.1
Status: NEW → ASSIGNED
Priority: -- → P3
Target Milestone: --- → mozilla1.0.1
*** Bug 129259 has been marked as a duplicate of this bug. ***
*** Bug 134229 has been marked as a duplicate of this bug. ***
Target Milestone: mozilla1.0.1 → ---

*** This bug has been marked as a duplicate of 129795 ***
Status: ASSIGNED → RESOLVED
Closed: 22 years ago
Resolution: --- → DUPLICATE
You need to log in before you can comment on or make changes to this bug.