Closed Bug 68910 Opened 24 years ago Closed 24 years ago

parser/string crash loading nonexistent FTP url

Categories

(Core :: DOM: HTML Parser, defect)

x86
Linux
defect
Not set
critical

Tracking

()

VERIFIED WORKSFORME

People

(Reporter: dbaron, Assigned: harishd)

References

()

Details

When I load the nonexistent FTP url: ftp://ftp.mozilla.org/pub/data/crash-data/n6analysis I see the following crash: #4 <signal handler called> #5 0x0805cb0c in nsReadingIterator<unsigned wchar_t>::normalize_forward ( this=0xbffff018) at ../../dist/include/nsAReadableString.h:463 #6 0x0805ce0c in nsReadingIterator<unsigned wchar_t>::advance ( this=0xbffff018, n=325254372) at ../../dist/include/nsAReadableString.h:214 #7 0x0805cc57 in nsCharSourceTraits<nsReadingIterator<unsigned wchar_t> >::advance (s=@0xbffff018, n=325254372) at ../../dist/include/nsCharTraits.h:503 #8 0x4015d145 in CalculateLength<unsigned wchar_t> & copy_string<nsReadingIterator<unsigned wchar_t>, CalculateLength<unsigned wchar_t> > (first=@0xbffff018, last=@0x8380f30, result=@0xbffff044) at /builds/seamonkey/mozilla/xpcom/ds/nsAlgorithm.h:78 #9 0x4015bed3 in unsigned int Distance_Impl<unsigned wchar_t> ( aStart=@0x8380f44, aEnd=@0x8380f30) at /builds/seamonkey/mozilla/xpcom/ds/nsReadableUtils.cpp:52 #10 0x400dd879 in Distance (aStart=@0x8380f44, aEnd=@0x8380f30) at /builds/seamonkey/mozilla/xpcom/ds/nsReadableUtils.cpp:60 #11 0x418b3d1c in nsScanner::RewindToMark (this=0x8380f28) at /builds/seamonkey/mozilla/htmlparser/src/nsScanner.cpp:230 #12 0x418afe57 in nsParser::Tokenize (this=0x8370618, aIsFinalChunk=0) at /builds/seamonkey/mozilla/htmlparser/src/nsParser.cpp:2466 #13 0x418aee4a in nsParser::ResumeParse (this=0x8370618, allowIteration=1, aIsFinalChunk=0) at /builds/seamonkey/mozilla/htmlparser/src/nsParser.cpp:1908 #14 0x418afb8e in nsParser::OnDataAvailable (this=0x8370618, channel=0x836f680, aContext=0x0, pIStream=0x424c6290, sourceOffset=0, aLength=0) at /builds/seamonkey/mozilla/htmlparser/src/nsParser.cpp:2355 #15 0x40f9926c in nsDocumentOpenInfo::OnDataAvailable (this=0x83576a8, aChannel=0x836f680, aCtxt=0x0, inStr=0x424c6290, sourceOffset=0, count=0) at /builds/seamonkey/mozilla/uriloader/base/nsURILoader.cpp:259 #16 0x40db41bb in nsUnknownDecoder::FireListenerNotifications (this=0x836fa58, aChannel=0x836f680, aCtxt=0x0) at /builds/seamonkey/mozilla/netwerk/streamconv/converters/nsUnknownDecoder.cpp:357 #17 0x40db3b14 in nsUnknownDecoder::OnStopRequest (this=0x836fa58, aChannel=0x836f680, aCtxt=0x0, aStatus=2147500037, aStatusArg=0x4017b164) at /builds/seamonkey/mozilla/netwerk/streamconv/converters/nsUnknownDecoder.cpp:226 #18 0x40f99311 in nsDocumentOpenInfo::OnStopRequest (this=0x836f5f0, aChannel=0x836f680, aCtxt=0x0, aStatus=2147500037, errorMsg=0x4017b164) at /builds/seamonkey/mozilla/uriloader/base/nsURILoader.cpp:274 #19 0x421b2d7a in nsFTPChannel::OnStopRequest (this=0x836f680, aChannel=0x83573ec, aContext=0x0, aStatus=2147500037, aStatusArg=0x4017b164) at /builds/seamonkey/mozilla/netwerk/protocol/ftp/src/nsFTPChannel.cpp:607 #20 0x40d8e320 in nsOnStopRequestEvent::HandleEvent (this=0x41f0e590) at /builds/seamonkey/mozilla/netwerk/base/src/nsStreamObserverProxy.cpp:177 #21 0x40d8e053 in nsStreamObserverEvent::HandlePLEvent (aEvent=0x41f0e590) at /builds/seamonkey/mozilla/netwerk/base/src/nsStreamObserverProxy.cpp:77 #22 0x401222f8 in PL_HandleEvent (self=0x41f0e590) at /builds/seamonkey/mozilla/xpcom/threads/plevent.c:576 #23 0x40122119 in PL_ProcessPendingEvents (self=0x80a7028) at /builds/seamonkey/mozilla/xpcom/threads/plevent.c:509 #24 0x4012405a in nsEventQueueImpl::ProcessPendingEvents (this=0x80a7000) at /builds/seamonkey/mozilla/xpcom/threads/nsEventQueue.cpp:361 ... #35 0x0805467b in main (argc=1, argv=0xbffff73c) at /builds/seamonkey/mozilla/xpfe/bootstrap/nsAppRunner.cpp:1274 #36 0x40346f31 in __libc_start_main (main=0x8054474 <main>, argc=1, ubp_av=0xbffff73c, init=0x804ed64 <_init>, fini=0x805e4d0 <_fini>, rtld_fini=0x4000e274 <_dl_fini>, stack_end=0xbffff734) at ../sysdeps/generic/libc-start.c:129 (gdb) frame 5 #5 0x0805cb0c in nsReadingIterator<unsigned wchar_t>::normalize_forward ( this=0xbffff018) at ../../dist/include/nsAReadableString.h:463 463 while ( mPosition == mFragment.mEnd (gdb) p mPosition $1 = (PRUnichar *) 0x0 (gdb) p mFragment.mEnd $2 = (PRUnichar *) 0x0 (gdb) p mOwningString $3 = (basic_nsAReadableString<__wchar_t> *) 0x74662f2f (gdb) p *mOwningString Cannot access memory at address 0x74662f2f I'm using a debug build on Linux from midday yesterday.
Hmmm, maybe this is just something in my tree, since I don't see it in a release build. (Like the changes in bug 65431? But they don't really seem that related...)
David, were you able to reproduce the problem? I'm not seeing this crash.
Status: NEW → ASSIGNED
I don't see the crash. Marking WFM.
Status: ASSIGNED → RESOLVED
Closed: 24 years ago
Resolution: --- → WORKSFORME
updated qa contact.
QA Contact: janc → bsharma
The same bug seems to have been filed as bug 71498.
Verified on build: 2001-05-17-04-Trunk platform: Win NT The site is not reachable, so a dialog box appears and when I click OK on the dialog, the control goes back to the browser.
Status: RESOLVED → VERIFIED
You need to log in before you can comment on or make changes to this bug.