Closed Bug 13736 Opened 26 years ago Closed 26 years ago

MLK:- 336 bytes leaked- nsHTMLTokenizer::ConsumeNewline()

Categories

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

defect

Tracking

()

VERIFIED FIXED

People

(Reporter: bruce, Assigned: harishd)

References

Details

(Whiteboard: 11/29 - requested verification from reporter)

Solaris 2.6, gcc 2.7.2.3. Build from September 13, 1999. Opened viewer, loaded initial page, went to www.visa.com, selected the 'back to school' specials link, quit. MLK: 336 bytes leaked in 3 blocks * This memory was allocated from: malloc [rtlib.o] __bUiLtIn_nEw [libraptorgfx.so] __builtin_new [rtlib.o] CTokenRecycler::CreateTokenOfType(eHTMLTokenTypes,nsHTMLTag) [nsDTDUtils.cpp:541] nsHTMLTokenizer::ConsumeNewline(unsigned short,CToken*&,nsScanner&) [nsHTMLTokenizer.cpp:658] nsHTMLTokenizer::ConsumeToken(nsScanner&) [nsHTMLTokenizer.cpp:287] nsParser::Tokenize(int) [nsParser.cpp:1395] nsParser::ResumeParse(nsIDTD*,int) [nsParser.cpp:886] nsParser::OnStopRequest(nsIChannel*,nsISupports*,unsigned int,const unsigned short*) [nsParser.cpp:1325] nsDocumentBindInfo::OnStopRequest(nsIChannel*,nsISupports*,unsigned int,const unsigned short*) [nsDocLoader.cpp:2072] nsChannelListener::OnStopRequest(nsIChannel*,nsISupports*,unsigned int,const unsigned short*) [nsDocLoader.cpp:2257] nsFileChannel::OnStopRequest(nsIChannel*,nsISupports*,unsigned int,const unsigned short*) [nsFileChannel.cpp:831] nsOnStopRequestEvent::HandleEvent() [nsAsyncStreamListener.cpp:268] nsStreamListenerEvent::HandlePLEvent(PLEvent*) [nsAsyncStreamListener.cpp:144] PL_HandleEvent [plevent.c:509] PL_ProcessPendingEvents [plevent.c:470] nsEventQueueImpl::ProcessPendingEvents() [nsEventQueue.cpp:118] event_processor_callback(void*,int,GdkInputCondition) [nsAppShell.cpp:153] gdk_io_invoke [gdkevents.c:868] g_io_unix_dispatch [giounix.c:131] g_main_dispatch [gmain.c:647] g_main_iterate [gmain.c:854] g_main_run [gmain.c:912] gtk_main [gtkmain.c:475] nsAppShell::Run() [nsAppShell.cpp:379] nsNativeViewerApp::Run() [nsGtkMain.cpp:42] main [nsGtkMain.cpp:116] _start [crt1.o] * Block of 112 bytes (3 times); last block at 0x92ec40
another purify stack trace: MLK: 240 bytes leaked in 2 blocks * This memory was allocated from: malloc [rtlib.o] __bUiLtIn_nEw [libraptorgfx.so] __builtin_new [rtlib.o] CTokenRecycler::CreateTokenOfType(eHTMLTokenTypes,nsHTMLTag) [nsDTDUtils.cpp:535] nsHTMLTokenizer::ConsumeStartTag(unsigned short,CToken*&,nsScanner&) [nsHTMLTokenizer.cpp:462] nsHTMLTokenizer::ConsumeTag(unsigned short,CToken*&,nsScanner&) [nsHTMLTokenizer.cpp:351] nsHTMLTokenizer::ConsumeToken(nsScanner&) [nsHTMLTokenizer.cpp:279] nsParser::Tokenize(int) [nsParser.cpp:1395] nsParser::ResumeParse(nsIDTD*,int) [nsParser.cpp:886] nsParser::OnStopRequest(nsIChannel*,nsISupports*,unsigned int,const unsigned short*) [nsParser.cpp:1325] nsDocumentBindInfo::OnStopRequest(nsIChannel*,nsISupports*,unsigned int,const unsigned short*) [nsDocLoader.cpp:2072] nsChannelListener::OnStopRequest(nsIChannel*,nsISupports*,unsigned int,const unsigned short*) [nsDocLoader.cpp:2257] nsFileChannel::OnStopRequest(nsIChannel*,nsISupports*,unsigned int,const unsigned short*) [nsFileChannel.cpp:831] nsOnStopRequestEvent::HandleEvent() [nsAsyncStreamListener.cpp:268] nsStreamListenerEvent::HandlePLEvent(PLEvent*) [nsAsyncStreamListener.cpp:144] PL_HandleEvent [plevent.c:509] PL_ProcessPendingEvents [plevent.c:470] nsEventQueueImpl::ProcessPendingEvents() [nsEventQueue.cpp:118] event_processor_callback(void*,int,GdkInputCondition) [nsAppShell.cpp:153] gdk_io_invoke [gdkevents.c:868] g_io_unix_dispatch [giounix.c:131] g_main_dispatch [gmain.c:647] g_main_iterate [gmain.c:854] g_main_run [gmain.c:912] gtk_main [gtkmain.c:475] nsAppShell::Run() [nsAppShell.cpp:379] nsNativeViewerApp::Run() [nsGtkMain.cpp:42] main [nsGtkMain.cpp:116] _start [crt1.o] * Block of 120 bytes (2 times); last block at 0x919d70
Build [1999091409] bruce, I am unable to reproduce this crash on WinNT, Win98, Mac, or Linux. You have the Platform and OS of this bug set to "All." Was that your intention, or a mistake? Also, can you reproduce this bug on the 9/14 build?
Um, this isn't a crash, it's a memory leak (hence the MLK).
Bruce says anyone could analyze http://www.cybersight.com/~bruce/apprunner.19990921.log and possibly close this bug, if harishd's changes fix it. /be
Summary: MLK: nsHTMLTokenizer::ConsumeNewline() → MLK:- 336 bytes leaked- nsHTMLTokenizer::ConsumeNewline()
Assignee: rickg → harishd
Status: NEW → ASSIGNED
Priority: P3 → P1
Target Milestone: M11
Blocks: 14516
Status: ASSIGNED → RESOLVED
Closed: 26 years ago
Resolution: --- → FIXED
This should be FIXED by now. Bruce, could you please verify this? Thanx.
Whiteboard: 11/29 - requested verification from reporter
I don't have the time to verify .. this should be easily verifiable with the other leak work that has been done with bloaty, etc.
Status: RESOLVED → VERIFIED
You need to log in before you can comment on or make changes to this bug.