Bug 19582

Summary: layout test fast/js/string-concatenate-outofmemory.html hangs, should be disabled
Product: WebKit Reporter: Jean-Charles Verdié <jcverdie>
Component: Layout and RenderingAssignee: Nobody <webkit-unassigned>
Status: RESOLVED INVALID    
Severity: Normal CC: mrowe
Priority: P3    
Version: 528+ (Nightly build)   
Hardware: Mac   
OS: OS X 10.5   
Bug Depends on:    
Bug Blocks: 19569    

Description Jean-Charles Verdié 2008-06-16 09:44:21 PDT
hang report :
Call graph:
    934 Thread_2603
      934 start
        934 main
          934 dumpRenderTree(int, char const**)
            934 runTestingServerLoop()
              880 fgets
                880 __srefill
                  880 read
                    880 read
              54 runTest(char const*)
                54 -[NSRunLoop(NSRunLoop) runMode:beforeDate:]
                  54 CFRunLoopRunInMode
                    54 CFRunLoopRunSpecific
                      54 muxerSourcePerform
                        54 _CFURLConnectionSendCallbacks
                          54 sendDidFinishLoadingCallback
                            54 _NSURLConnectionDidFinishLoading
                              54 -[NSURLConnection(NSURLConnectionReallyInternal) sendDidFinishLoading]
                                54 -[WebCoreResourceHandleAsDelegate connectionDidFinishLoading:]
                                  54 WebCore::ResourceLoader::didFinishLoading(WebCore::ResourceHandle*)
                                    54 WebCore::SubresourceLoader::didFinishLoading()
                                      53 WebCore::Loader::Host::didFinishLoading(WebCore::SubresourceLoader*)
                                        53 WebCore::CachedScript::data(WTF::PassRefPtr<WebCore::SharedBuffer>, bool)
                                          53 WebCore::CachedScript::checkNotify()
                                            53 WebCore::HTMLTokenizer::notifyFinished(WebCore::CachedResource*)
                                              53 WebCore::HTMLTokenizer::scriptExecution(WebCore::String const&, WebCore::HTMLTokenizer::State, WebCore::String const&, int)
                                                53 WebCore::FrameLoader::executeScript(WebCore::String const&, int, WebCore::String const&)
                                                  53 WebCore::ScriptController::evaluate(WebCore::String const&, int, WebCore::String const&)
                                                    53 KJS::Interpreter::evaluate(KJS::ExecState*, KJS::ScopeChain&, KJS::UString const&, int, WTF::PassRefPtr<KJS::SourceProvider>, KJS::JSValue*)
                                                      53 KJS::Machine::execute(KJS::ProgramNode*, KJS::ExecState*, KJS::ScopeChainNode*, KJS::JSObject*, KJS::RegisterFileStack*, KJS::JSValue**)
                                                        53 KJS::Machine::privateExecute(KJS::Machine::ExecutionFlag, KJS::ExecState*, KJS::RegisterFile*, KJS::Register*, KJS::ScopeChainNode*, KJS::CodeBlock*, KJS::JSValue**)
                                                          53 KJS::PrototypeFunction::callAsFunction(KJS::ExecState*, KJS::JSObject*, KJS::ArgList const&)
                                                            53 KJS::arrayProtoFuncJoin(KJS::ExecState*, KJS::JSObject*, KJS::ArgList const&)
                                                              53 void WTF::Vector<unsigned short, 256ul>::append<unsigned short>(unsigned short const*, unsigned long)
                                                                40 void WTF::Vector<unsigned short, 256ul>::append<unsigned short>(unsigned short const*, unsigned long)
                                                                12 operator new(unsigned long, void*)
                                                                  12 operator new(unsigned long, void*)
                                                                1 WTF::Vector<unsigned short, 256ul>::expandCapacity(unsigned long, unsigned short const*)
                                                                  1 WTF::Vector<unsigned short, 256ul>::expandCapacity(unsigned long)
                                                                    1 WTF::Vector<unsigned short, 256ul>::reserveCapacity(unsigned long)
                                                                      1 WTF::VectorBuffer<unsigned short, 256ul>::deallocateBuffer(unsigned short*)
                                                                        1 WTF::VectorBufferBase<unsigned short>::deallocateBuffer(unsigned short*)
                                                                          1 WTF::fastFree(void*)
                                                                            1 free
                                                                              1 munmap$UNIX2003
                                                                                1 munmap$UNIX2003
                                      1 WebCore::DocumentLoader::removeSubresourceLoader(WebCore::ResourceLoader*)
                                        1 WebCore::FrameLoader::checkLoadComplete()
                                          1 WebCore::FrameLoader::recursiveCheckLoadComplete()
                                            1 WebCore::FrameLoader::checkLoadCompleteForThisFrame()
                                              1 WebFrameLoaderClient::dispatchDidFinishLoad()
                                                1 CallFrameLoadDelegate(objc_object* (*)(objc_object*, objc_selector*, ...), WebView*, objc_selector*, objc_object*)
                                                  1 CallDelegate(objc_object* (*)(objc_object*, objc_selector*, ...), WebView*, objc_object*, objc_selector*, objc_object*)
                                                    1 -[FrameLoadDelegate webView:didFinishLoadForFrame:]
                                                      1 -[NSView displayIfNeeded]
                                                        1 -[NSView _displayRectIgnoringOpacity:isVisibleRect:rectIsVisibleRectForView:]
                                                          1 -[NSNextStepFrame _recursiveDisplayRectIfNeededIgnoringOpacity:isVisibleRect:rectIsVisibleRectForView:topView:]
                                                            1 -[NSView _recursiveDisplayRectIfNeededIgnoringOpacity:isVisibleRect:rectIsVisibleRectForView:topView:]
                                                              1 -[NSView _recursiveDisplayAllDirtyWithLockFocus:visRect:]
                                                                1 -[NSView _recursiveDisplayAllDirtyWithLockFocus:visRect:]
                                                                  1 -[NSView _recursiveDisplayAllDirtyWithLockFocus:visRect:]
                                                                    1 -[NSView _recursiveDisplayAllDirtyWithLockFocus:visRect:]
                                                                      1 -[NSView _recursiveDisplayAllDirtyWithLockFocus:visRect:]
                                                                        1 -[NSView _recursiveDisplayAllDirtyWithLockFocus:visRect:]
                                                                          1 -[WebHTMLView(WebPrivate) _recursiveDisplayAllDirtyWithLockFocus:visRect:]
                                                                            1 -[NSView _recursiveDisplayAllDirtyWithLockFocus:visRect:]
                                                                              1 -[NSView _drawRect:clip:]
                                                                                1 -[WebHTMLView drawRect:]
                                                                                  1 -[WebHTMLView drawSingleRect:]
                                                                                    1 -[WebFrame(WebInternal) _drawRect:]
                                                                                      1 WebCore::Frame::paint(WebCore::GraphicsContext*, WebCore::IntRect const&)
                                                                                        1 WebCore::RenderLayer::paint(WebCore::GraphicsContext*, WebCore::IntRect const&, WebCore::PaintRestriction, WebCore::RenderObject*)
                                                                                          1 WebCore::RenderLayer::paintLayer(WebCore::RenderLayer*, WebCore::GraphicsContext*, WebCore::IntRect const&, bool, WebCore::PaintRestriction, WebCore::RenderObject*, bool)
                                                                                            1 WebCore::RenderLayer::paintLayer(WebCore::RenderLayer*, WebCore::GraphicsContext*, WebCore::IntRect const&, bool, WebCore::PaintRestriction, WebCore::RenderObject*, bool)
                                                                                              1 WebCore::RenderBlock::paint(WebCore::RenderObject::PaintInfo&, int, int)
                                                                                                1 WebCore::RenderBlock::paintObject(WebCore::RenderObject::PaintInfo&, int, int)
                                                                                                  1 WebCore::RenderBlock::paintContents(WebCore::RenderObject::PaintInfo&, int, int)
                                                                                                    1 WebCore::RenderBlock::paintChildren(WebCore::RenderObject::PaintInfo&, int, int)
                                                                                                      1 WebCore::RenderBlock::paint(WebCore::RenderObject::PaintInfo&, int, int)
                                                                                                        1 WebCore::RenderBlock::paintObject(WebCore::RenderObject::PaintInfo&, int, int)
                                                                                                          1 WebCore::RenderBlock::paintContents(WebCore::RenderObject::PaintInfo&, int, int)
                                                                                                            1 WebCore::RenderBlock::paintChildren(WebCore::RenderObject::PaintInfo&, int, int)
                                                                                                              1 WebCore::RenderBlock::paint(WebCore::RenderObject::PaintInfo&, int, int)
                                                                                                                1 WebCore::RenderBlock::paintObject(WebCore::RenderObject::PaintInfo&, int, int)
                                                                                                                  1 WebCore::RenderBlock::paintContents(WebCore::RenderObject::PaintInfo&, int, int)
                                                                                                                    1 WebCore::RenderFlow::paintLines(WebCore::RenderObject::PaintInfo&, int, int)
                                                                                                                      1 WebCore::RootInlineBox::paint(WebCore::RenderObject::PaintInfo&, int, int)
                                                                                                                        1 WebCore::InlineFlowBox::paint(WebCore::RenderObject::PaintInfo&, int, int)
                                                                                                                          1 WebCore::InlineFlowBox::paint(WebCore::RenderObject::PaintInfo&, int, int)
                                                                                                                            1 WebCore::InlineFlowBox::paint(WebCore::RenderObject::PaintInfo&, int, int)
                                                                                                                              1 WebCore::InlineFlowBox::paint(WebCore::RenderObject::PaintInfo&, int, int)
                                                                                                                                1 WebCore::InlineTextBox::paint(WebCore::RenderObject::PaintInfo&, int, int)
                                                                                                                                  1 WebCore::paintTextWithShadows(WebCore::GraphicsContext*, WebCore::TextRun const&, int, int, WebCore::IntPoint const&, int, int, int, int, WebCore::ShadowData*, bool)
                                                                                                                                    1 WebCore::GraphicsContext::drawText(WebCore::TextRun const&, WebCore::IntPoint const&, int, int)
                                                                                                                                      1 WebCore::Font::drawText(WebCore::GraphicsContext*, WebCore::TextRun const&, WebCore::FloatPoint const&, int, int) const
                                                                                                                                        1 WebCore::Font::drawSimpleText(WebCore::GraphicsContext*, WebCore::TextRun const&, WebCore::FloatPoint const&, int, int) const
                                                                                                                                          1 WebCore::Font::drawGlyphBuffer(WebCore::GraphicsContext*, WebCore::GlyphBuffer const&, WebCore::TextRun const&, WebCore::FloatPoint const&) const
                                                                                                                                            1 WebCore::Font::drawGlyphs(WebCore::GraphicsContext*, WebCore::SimpleFontData const*, WebCore::GlyphBuffer const&, int, int, WebCore::FloatPoint const&) const
                                                                                                                                              1 CGContextShowGlyphsWithAdvances
                                                                                                                                                1 draw_glyphs
                                                                                                                                                  1 ripc_DrawGlyphs
                                                                                                                                                    1 ripl_BltGlyph
                                                                                                                                                      1 ripd_Lock
                                                                                                                                                        1 CGSDeviceLock
                                                                                                                                                          1 _CGSLockWindow
                                                                                                                                                            1 CGSRMWLockEnterCritialSectionLock
                                                                                                                                                              1 CGSRMWLockEnterCritialSectionLock
    934 Thread_2703
      934 thread_start
        934 _pthread_start
          934 CFURLCacheWorkerThread(void*)
            934 CFRunLoopRunInMode
              934 CFRunLoopRunSpecific
                934 mach_msg
                  934 mach_msg_trap
                    934 mach_msg_trap
    934 Thread_2803
      934 thread_start
        934 _pthread_start
          934 __NSThread__main__
            934 -[NSThread main]
              934 +[NSURLConnection(NSURLConnectionReallyInternal) _resourceLoadLoop:]
                934 CFRunLoopRunInMode
                  934 CFRunLoopRunSpecific
                    934 mach_msg
                      934 mach_msg_trap
                        934 mach_msg_trap
    934 Thread_2903
      934 thread_start
        934 _pthread_start
          934 select$DARWIN_EXTSN
            934 select$DARWIN_EXTSN

Total number in stack (recursive counted multiple, when >=5):
        7       -[NSView _recursiveDisplayAllDirtyWithLockFocus:visRect:]

Sort by top of stack, same collapsed (when >= 5):
        mach_msg_trap        1868
        select$DARWIN_EXTSN        934
        read        880
        void WTF::Vector<unsigned short, 256ul>::append<unsigned short>(unsigned short const*, unsigned long)        40
        operator new(unsigned long, void*)        12
Comment 1 Mark Rowe (bdash) 2008-06-16 13:28:37 PDT
I don't understand the purpose of this bug report.  fast/js/string-concatenate-outofmemory.html is already disabled.
Comment 2 Jean-Charles Verdié 2008-06-16 13:32:23 PDT
I mismatched in the reports, this bug is an error, should be closed