Closed Bug 22778 Opened 25 years ago Closed 25 years ago

assertion in nsExpatTokenizer on startup

Categories

(Core :: DOM: HTML Parser, defect, P3)

Other
BSDI
defect

Tracking

()

VERIFIED WORKSFORME

People

(Reporter: lidl, Assigned: nisheeth_mozilla)

Details

Attachments

(1 file)

I did a cvs update of the SeaMonkey tree today (28-Dec-1999), and rebuilt
it (the browser) from scratch, after destroying my object tree and re-running
configure.  I am seeing the same problem that I noticed a couple
of days ago (the 26th?).  Since it hasn't been fixed, and it has been a couple
of days, I figured I should report the problem.

At any rate, when I start the browser (which has worked for me
in previous builds, I see the following):

lidl@sloar-37: ./mozilla
.//run-mozilla.sh ./mozilla-bin
MOZILLA_FIVE_HOME=/scratch/lidl/mozilla/obj/dist/bin
  LD_LIBRARY_PATH=/scratch/lidl/mozilla/obj/dist/bin:/homes/elves/lidl/nspr/lib
       SHLIB_PATH=/scratch/lidl/mozilla/obj/dist/bin
          LIBPATH=/scratch/lidl/mozilla/obj/dist/bin
      MOZ_PROGRAM=./mozilla-bin
      MOZ_TOOLKIT=
        moz_debug=0
     moz_debugger=
nsNativeComponentLoader: autoregistering begins.
nsNativeComponentLoader: autoregistering succeeded
nNCL: registering deferred (0)
initialized appshell
ProfileName : mozProfile
ProfileDir  : /homes/elves/lidl/.mozilla/mozProfile
GFX: dpi=96 t2p=0.0666667 p2t=15 depth=15
WEBSHELL+ = 1
Opening file cookperm.txt failed
Initialized app shell component {4a85a5d0-cddd-11d2-b7f6-00805f05ffa5},
rv=0x00000000
Initialized app shell component {18c2f989-b09f-11d2-bcde-00805f0e1353},
rv=0x00000000
WEBSHELL+ = 2
Note: styleverifytree is disabled
Note: frameverifytree is disabled
Note: verifyreflow is disabled
Assertion failure: aOffset > 0 && aOffset < aLength, at
/scratch/lidl/mozilla/htmlparser/src/nsExpatTokenizer.cpp:221
Abort trap - core dumped

-Kurt

In case it matters, gdb shows the following backtrace:

Core was generated by `mozilla-bin'.
Program terminated with signal 6, Aborted.
#0  0x10506fbd in kill ()
(gdb) where
#0  0x10506fbd in kill ()
#1  0x105531b9 in abort ()
#2  0x10225d40 in PR_Assert (s=0x114c9860 "aOffset > 0 && aOffset < aLength",
    file=0x114c97d0 "/scratch/lidl/mozilla/htmlparser/src/nsExpatTokenizer.cpp",
ln=221) at prlog.c:448
#3  0x114688b0 in nsExpatTokenizer::GetLine (this=0x8315000,
    aSourceBuffer=0x831b000 "\n", aLength=2, aOffset=0, aLine=@0x8315054)
    at /scratch/lidl/mozilla/htmlparser/src/nsExpatTokenizer.cpp:221
#4  0x11468cc9 in nsExpatTokenizer::ParseXMLBuffer (this=0x8315000,
    aBuffer=0x831b000 "\n", aLength=2, aIsFinal=0)
    at /scratch/lidl/mozilla/htmlparser/src/nsExpatTokenizer.cpp:318
#5  0x11468d7f in nsExpatTokenizer::ConsumeToken (this=0x8315000,
    aScanner=@0x8183a00)
    at /scratch/lidl/mozilla/htmlparser/src/nsExpatTokenizer.cpp:355
#6  0x11486765 in nsParser::Tokenize (this=0x8246400, aIsFinalChunk=0)
    at /scratch/lidl/mozilla/htmlparser/src/nsParser.cpp:1438
#7  0x114858e0 in nsParser::ResumeParse (this=0x8246400, aDefaultDTD=0x0,
    aIsFinalChunk=0) at /scratch/lidl/mozilla/htmlparser/src/nsParser.cpp:962
#8  0x114864d2 in nsParser::OnDataAvailable (this=0x8246400,
    channel=0x82f2900, aContext=0x0, pIStream=0x830dbc0, sourceOffset=2048,
    aLength=1) at /scratch/lidl/mozilla/htmlparser/src/nsParser.cpp:1333
#9  0x10a35c3a in rdf_BlockingParse (aURL=0x82e4f00, aConsumer=0x8246404)
    at /scratch/lidl/mozilla/rdf/base/src/nsRDFXMLDataSource.cpp:604
#10 0x10a36bab in RDFXMLDataSourceImpl::Refresh (this=0x8184980, aBlocking=1)
    at /scratch/lidl/mozilla/rdf/base/src/nsRDFXMLDataSource.cpp:906
#11 0x10aee41e in LocalStoreImpl::Refresh (this=0x82ded60, sync=1)
    at /scratch/lidl/mozilla/rdf/datasource/src/nsLocalStore.cpp:315
#12 0x10aedf68 in NS_NewLocalStore (aResult=0x8046eb4)
    at /scratch/lidl/mozilla/rdf/datasource/src/nsLocalStore.cpp:232
#13 0x10a16ead in CreateNewLocalStore (aOuter=0x0, aIID=@0x10b06844,
    aResult=0x8046f54) at /scratch/lidl/mozilla/rdf/build/nsRDFModule.cpp:130
#14 0x101be03e in nsGenericFactory::CreateInstance (this=0x83037f0,
    aOuter=0x0, aIID=@0x10b06844, aResult=0x8046f54)
    at /scratch/lidl/mozilla/xpcom/components/nsGenericFactory.cpp:42
#15 0x101b9073 in nsComponentManagerImpl::CreateInstance (this=0x806a080,
    aClass=@0x10b01c24, aDelegate=0x0, aIID=@0x10b06844, aResult=0x8046f54)
    at /scratch/lidl/mozilla/xpcom/components/nsComponentManager.cpp:1245
#16 0x101c6de0 in nsComponentManager::CreateInstance (aClass=@0x10b01c24,
    aDelegate=0x0, aIID=@0x10b06844, aResult=0x8046f54)
    at /scratch/lidl/mozilla/xpcom/components/nsRepository.cpp:81
#17 0x101c7e7e in nsServiceManagerImpl::GetService (this=0x8057260,
    aClass=@0x10b01c24, aIID=@0x10b06844, result=0x8046ff0,
    shutdownListener=0x0)
    at /scratch/lidl/mozilla/xpcom/components/nsServiceManager.cpp:293
#18 0x101c8608 in nsServiceManager::GetService (aClass=@0x10b01c24,
    aIID=@0x10b06844, result=0x8046ff0, shutdownListener=0x0)
    at /scratch/lidl/mozilla/xpcom/components/nsServiceManager.cpp:502
#19 0x10a9b78a in nsXULDocument::Init (this=0x82e6800)
    at /scratch/lidl/mozilla/rdf/content/src/nsXULDocument.cpp:3270
#20 0x10a9259c in NS_NewXULDocument (result=0x8047078)
    at /scratch/lidl/mozilla/rdf/content/src/nsXULDocument.cpp:511
#21 0x10a16a39 in CreateNewXULDocument (aOuter=0x0, aIID=@0x11355d64,
    aResult=0x8047188) at /scratch/lidl/mozilla/rdf/build/nsRDFModule.cpp:124
#22 0x101be03e in nsGenericFactory::CreateInstance (this=0x8162f60,
    aOuter=0x0, aIID=@0x11355d64, aResult=0x8047188)
    at /scratch/lidl/mozilla/xpcom/components/nsGenericFactory.cpp:42
#23 0x101b9073 in nsComponentManagerImpl::CreateInstance (this=0x806a080,
    aClass=@0x11355da4, aDelegate=0x0, aIID=@0x11355d64, aResult=0x8047188)
    at /scratch/lidl/mozilla/xpcom/components/nsComponentManager.cpp:1245
#24 0x101c6de0 in nsComponentManager::CreateInstance (aClass=@0x11355da4,
    aDelegate=0x0, aIID=@0x11355d64, aResult=0x8047188)
    at /scratch/lidl/mozilla/xpcom/components/nsRepository.cpp:81
#25 0x10fd58c3 in nsLayoutDLF::CreateRDFDocument (this=0x8162f50,
    aExtraInfo=0x0, doc=0x8047188, docv=0x8047184)
    at /scratch/lidl/mozilla/layout/build/nsLayoutDLF.cpp:414
#26 0x10fd59ad in nsLayoutDLF::CreateRDFDocument (this=0x8162f50,
    aCommand=0x8162ed0 "view", aChannel=0x819dc80, aLoadGroup=0x8216180,
    aContentType=0x8047504 "text/xul", aContainer=0x817f6b0, aExtraInfo=0x0,
    aDocListener=0x8047548, aDocViewer=0x8047414)
    at /scratch/lidl/mozilla/layout/build/nsLayoutDLF.cpp:440
#27 0x10fd5299 in nsLayoutDLF::CreateInstance (this=0x8162f50,
    aCommand=0x8162ed0 "view", aChannel=0x819dc80, aLoadGroup=0x8216180,
    aContentType=0x8047504 "text/xul", aContainer=0x817f6b0, aExtraInfo=0x0,
    aDocListener=0x8047548, aDocViewer=0x8047414)
    at /scratch/lidl/mozilla/layout/build/nsLayoutDLF.cpp:269
#28 0x10b8a652 in nsWebShell::CreateViewer (this=0x817f600,
    aChannel=0x819dc80, aContentType=0x8047504 "text/xul",
    aCommand=0x8162ed0 "view", aResult=0x8047548)
    at /scratch/lidl/mozilla/webshell/src/nsWebShell.cpp:1792
#29 0x10b8a4af in nsWebShell::DoContent (this=0x817f600,
    aContentType=0x8047504 "text/xul", aCommand=0,
    aWindowTarget=0x101f77e4 "", aOpenedChannel=0x819dc80,
    aContentHandler=0x8047548, aAbortProcess=0x8047544)
    at /scratch/lidl/mozilla/webshell/src/nsWebShell.cpp:1744
#30 0x10c8d764 in nsDocumentOpenInfo::DispatchContent (this=0x82163c0,
    aChannel=0x819dc80, aCtxt=0x0)
    at /scratch/lidl/mozilla/uriloader/base/nsURILoader.cpp:276
#31 0x10c8d2d9 in nsDocumentOpenInfo::OnStartRequest (this=0x82163c0,
    aChannel=0x819dc80, aCtxt=0x0)
    at /scratch/lidl/mozilla/uriloader/base/nsURILoader.cpp:218
#32 0x1085ffa2 in nsResChannel::OnStartRequest (this=0x819dc80,
    transportChannel=0x823e080, context=0x0)
    at /scratch/lidl/mozilla/netwerk/protocol/res/src/nsResChannel.cpp:569
#33 0x10873da9 in nsFileChannel::OnStartRequest (this=0x823e080,
    transportChannel=0x829bf80, context=0x0)
    at /scratch/lidl/mozilla/netwerk/protocol/file/src/nsFileChannel.cpp:479
#34 0x1081b7c7 in nsOnStartRequestEvent::HandleEvent (this=0x82a9ae0)
    at /scratch/lidl/mozilla/netwerk/base/src/nsAsyncStreamListener.cpp:198
#35 0x1081b0ff in nsStreamListenerEvent::HandlePLEvent (aEvent=0x82a9b00)
    at /scratch/lidl/mozilla/netwerk/base/src/nsAsyncStreamListener.cpp:93
#36 0x1020f377 in PL_HandleEvent (self=0x82a9b00) at plevent.c:522
#37 0x1020f289 in PL_ProcessPendingEvents (self=0x8093e80) at plevent.c:483
#38 0x101cb5e5 in nsEventQueueImpl::ProcessPendingEvents (this=0x80cf340)
    at /scratch/lidl/mozilla/xpcom/threads/nsEventQueue.cpp:198
#39 0x108f04f0 in event_processor_callback (data=0x80cf340, source=5,
    condition=GDK_INPUT_READ)
    at /scratch/lidl/mozilla/widget/src/gtk/nsAppShell.cpp:141
#40 0x108f016f in our_gdk_io_invoke (source=0x823bfe0, condition=G_IO_IN,
    data=0x823bfd0) at /scratch/lidl/mozilla/widget/src/gtk/nsAppShell.cpp:54
#41 0x103a14fe in g_io_unix_dispatch (source_data=0x82a9d00,
    current_time=0x8047768, user_data=0x823bfd0)
    at /usr/src/pubnix/usr.local/lib/glib/giounix.c:135
#42 0x103a2c0b in g_main_dispatch (current_time=0x8047768)
    at /usr/src/pubnix/usr.local/lib/glib/gmain.c:652
#43 0x103a31f3 in g_main_iterate (block=1, dispatch=1)
    at /usr/src/pubnix/usr.local/lib/glib/gmain.c:870
#44 0x103a3375 in g_main_run (loop=0x823bff0)
    at /usr/src/pubnix/usr.local/lib/glib/gmain.c:928
#45 0x102d8467 in gtk_main ()
    at /usr/src/pubnix/usr.local/lib/gtk+/gtk/gtkmain.c:475
#46 0x108f0b16 in nsAppShell::Run (this=0x8100530)
    at /scratch/lidl/mozilla/widget/src/gtk/nsAppShell.cpp:304
#47 0x1078f991 in nsAppShellService::Run (this=0x8093e00)
    at /scratch/lidl/mozilla/xpfe/appshell/src/nsAppShellService.cpp:481
#48 0x804d137 in main1 (argc=1, argv=0x8047978)
    at /scratch/lidl/mozilla/xpfe/bootstrap/nsAppRunner.cpp:609
#49 0x804d5f4 in main (argc=1, argv=0x8047978)
    at /scratch/lidl/mozilla/xpfe/bootstrap/nsAppRunner.cpp:696
#50 0x804b8e4 in __start ()
As it turns out, nuking my .mozilla directory and letting the newly built
browser rebuild it causes the problem to go away.
Assignee: rickg → nisheeth
Nisheeth -- one for you. Happy New year!
Severity: blocker → normal
Status: NEW → ASSIGNED
Target Milestone: M17
Updating severity to normal.  Can you use your earlier bookmarks file with the
latest builds or does nsExpatTokenizer still assert?

Accepting bug and setting target milestone as M17.
Status: ASSIGNED → RESOLVED
Closed: 25 years ago
Resolution: --- → WORKSFORME
Running a new build of the browser (cvs update run last night,

Jan 7, 2000) with the bookmarks.html file that was causing

the abort now works.  So, something changed that makes the

broswer no longer assert.
Status: RESOLVED → VERIFIED
verified per reporter.
You need to log in before you can comment on or make changes to this bug.

Attachment

General

Creator:
Created:
Updated:
Size: