<?xml version="1.0" encoding="UTF-8" standalone="yes" ?>
<!DOCTYPE bugzilla SYSTEM "https://bugs.webkit.org/page.cgi?id=bugzilla.dtd">

<bugzilla version="5.0.4.1"
          urlbase="https://bugs.webkit.org/"
          
          maintainer="admin@webkit.org"
>

    <bug>
          <bug_id>136948</bug_id>
          
          <creation_ts>2014-09-19 03:23:34 -0700</creation_ts>
          <short_desc>Crash in WebCore::FontGlyphs::primarySimpleFontData</short_desc>
          <delta_ts>2016-08-03 17:12:52 -0700</delta_ts>
          <reporter_accessible>1</reporter_accessible>
          <cclist_accessible>1</cclist_accessible>
          <classification_id>1</classification_id>
          <classification>Unclassified</classification>
          <product>WebKit</product>
          <component>Layout and Rendering</component>
          <version>528+ (Nightly build)</version>
          <rep_platform>Unspecified</rep_platform>
          <op_sys>Unspecified</op_sys>
          <bug_status>RESOLVED</bug_status>
          <resolution>WORKSFORME</resolution>
          
          
          <bug_file_loc></bug_file_loc>
          <status_whiteboard></status_whiteboard>
          <keywords></keywords>
          <priority>P2</priority>
          <bug_severity>Normal</bug_severity>
          <target_milestone>---</target_milestone>
          
          <blocked>116980</blocked>
          <everconfirmed>1</everconfirmed>
          <reporter name="Renata Hodovan">rhodovan.u-szeged</reporter>
          <assigned_to name="Nobody">webkit-unassigned</assigned_to>
          <cc>bfulgham</cc>
    
    <cc>kling</cc>
    
    <cc>koivisto</cc>
    
    <cc>mitz</cc>
    
    <cc>mmaxfield</cc>
          

      

      

      

          <comment_sort_order>oldest_to_newest</comment_sort_order>  
          <long_desc isprivate="0" >
    <commentid>1036102</commentid>
    <comment_count>0</comment_count>
      <attachid>238367</attachid>
    <who name="Renata Hodovan">rhodovan.u-szeged</who>
    <bug_when>2014-09-19 03:23:34 -0700</bug_when>
    <thetext>Created attachment 238367
Test case

The crashing test case (if you put more line breaks into it then the crash disappears):

&lt;!DOCTYPE html&gt;
&lt;font&gt;a&lt;style&gt; * {
    font:small-caps normal 800% Minion;
}
&lt;/style&gt;&lt;source&gt;


Backtrace:

Program received signal SIGSEGV, Segmentation fault.

0x00007ffff33729a2 in WebCore::FontGlyphs::primarySimpleFontData (this=0x8343b0, description=...) at ../../Source/WebCore/platform/graphics/FontGlyphs.h:127
127	        m_cachedPrimarySimpleFontData = primaryFontData(description)-&gt;fontDataForCharacter(&apos; &apos;);
#0  0x00007ffff33729a2 in WebCore::FontGlyphs::primarySimpleFontData (this=0x8343b0, description=...) at ../../Source/WebCore/platform/graphics/FontGlyphs.h:127
#1  0x00007ffff3372a5c in WebCore::Font::primaryFont (this=0x99ea88) at ../../Source/WebCore/platform/graphics/Font.h:362
#2  0x00007ffff33729ee in WebCore::Font::fontMetrics (this=0x99ea88) at ../../Source/WebCore/platform/graphics/Font.h:175
#3  0x00007ffff397270f in WebCore::requiresLineBoxForContent (flow=..., lineInfo=...) at ../../Source/WebCore/rendering/line/LineInlineHeaders.h:59
#4  0x00007ffff3b4cabd in WebCore::BreakingContext::handleEmptyInline (this=0x7fffffffa910) at ../../Source/WebCore/rendering/line/BreakingContextInlineHeaders.h:386
#5  0x00007ffff3b4a9f0 in WebCore::LineBreaker::nextSegmentBreak (this=0x7fffffffac70, resolver=..., lineInfo=..., renderTextInfo=..., lastFloatFromPreviousLine=0x0, consecutiveHyphenatedLines=0x0, wordMeasurements=...) at ../../Source/WebCore/rendering/line/LineBreaker.cpp:111
#6  0x00007ffff3b4a6ff in WebCore::LineBreaker::nextLineBreak (this=0x7fffffffac70, resolver=..., lineInfo=..., renderTextInfo=..., lastFloatFromPreviousLine=0x0, consecutiveHyphenatedLines=0x0, wordMeasurements=...) at ../../Source/WebCore/rendering/line/LineBreaker.cpp:82
#7  0x00007ffff396b130 in WebCore::RenderBlockFlow::layoutRunsAndFloatsInRange (this=0xaa6ae0, layoutState=..., resolver=..., cleanLineStart=..., cleanLineBidiStatus=..., consecutiveHyphenatedLines=0x0) at ../../Source/WebCore/rendering/RenderBlockLineLayout.cpp:1087
#8  0x00007ffff396aca3 in WebCore::RenderBlockFlow::layoutRunsAndFloats (this=0xaa6ae0, layoutState=..., hasInlineChild=0x1) at ../../Source/WebCore/rendering/RenderBlockLineLayout.cpp:1031
#9  0x00007ffff396d520 in WebCore::RenderBlockFlow::layoutLineBoxes (this=0xaa6ae0, relayoutChildren=0x1, repaintLogicalTop=..., repaintLogicalBottom=...) at ../../Source/WebCore/rendering/RenderBlockLineLayout.cpp:1448
#10 0x00007ffff394e2d4 in WebCore::RenderBlockFlow::layoutInlineChildren (this=0xaa6ae0, relayoutChildren=0x1, repaintLogicalTop=..., repaintLogicalBottom=...) at ../../Source/WebCore/rendering/RenderBlockFlow.cpp:653
#11 0x00007ffff394d5ca in WebCore::RenderBlockFlow::layoutBlock (this=0xaa6ae0, relayoutChildren=0x1, pageLogicalHeight=...) at ../../Source/WebCore/rendering/RenderBlockFlow.cpp:484
#12 0x00007ffff392285f in WebCore::RenderBlock::layout (this=0xaa6ae0) at ../../Source/WebCore/rendering/RenderBlock.cpp:1019
#13 0x00007ffff394e6b0 in WebCore::RenderBlockFlow::layoutBlockChild (this=0xaa6380, child=..., marginInfo=..., previousFloatLogicalBottom=..., maxFloatLogicalBottom=...) at ../../Source/WebCore/rendering/RenderBlockFlow.cpp:712
#14 0x00007ffff394e1d1 in WebCore::RenderBlockFlow::layoutBlockChildren (this=0xaa6380, relayoutChildren=0x1, maxFloatLogicalBottom=...) at ../../Source/WebCore/rendering/RenderBlockFlow.cpp:633
#15 0x00007ffff394d5ee in WebCore::RenderBlockFlow::layoutBlock (this=0xaa6380, relayoutChildren=0x1, pageLogicalHeight=...) at ../../Source/WebCore/rendering/RenderBlockFlow.cpp:486
#16 0x00007ffff392285f in WebCore::RenderBlock::layout (this=0xaa6380) at ../../Source/WebCore/rendering/RenderBlock.cpp:1019
#17 0x00007ffff394e6b0 in WebCore::RenderBlockFlow::layoutBlockChild (this=0x8a7d20, child=..., marginInfo=..., previousFloatLogicalBottom=..., maxFloatLogicalBottom=...) at ../../Source/WebCore/rendering/RenderBlockFlow.cpp:712
#18 0x00007ffff394e1d1 in WebCore::RenderBlockFlow::layoutBlockChildren (this=0x8a7d20, relayoutChildren=0x1, maxFloatLogicalBottom=...) at ../../Source/WebCore/rendering/RenderBlockFlow.cpp:633
#19 0x00007ffff394d5ee in WebCore::RenderBlockFlow::layoutBlock (this=0x8a7d20, relayoutChildren=0x1, pageLogicalHeight=...) at ../../Source/WebCore/rendering/RenderBlockFlow.cpp:486
#20 0x00007ffff392285f in WebCore::RenderBlock::layout (this=0x8a7d20) at ../../Source/WebCore/rendering/RenderBlock.cpp:1019
#21 0x00007ffff3b1aaa9 in WebCore::RenderView::layoutContent (this=0x8a7d20, state=...) at ../../Source/WebCore/rendering/RenderView.cpp:230
#22 0x00007ffff3b1b179 in WebCore::RenderView::layout (this=0x8a7d20) at ../../Source/WebCore/rendering/RenderView.cpp:355
#23 0x00007ffff369240f in WebCore::FrameView::layout (this=0xa390f0, allowSubtree=0x1) at ../../Source/WebCore/page/FrameView.cpp:1301
#24 0x00007ffff30613d5 in WebCore::Document::implicitClose (this=0xabf430) at ../../Source/WebCore/dom/Document.cpp:2441
#25 0x00007ffff3540b63 in WebCore::FrameLoader::checkCallImplicitClose (this=0xa83bc8) at ../../Source/WebCore/loader/FrameLoader.cpp:898
#26 0x00007ffff35408cb in WebCore::FrameLoader::checkCompleted (this=0xa83bc8) at ../../Source/WebCore/loader/FrameLoader.cpp:844
#27 0x00007ffff3540634 in WebCore::FrameLoader::finishedParsing (this=0xa83bc8) at ../../Source/WebCore/loader/FrameLoader.cpp:764
#28 0x00007ffff3069e57 in WebCore::Document::finishedParsing (this=0xabf430) at ../../Source/WebCore/dom/Document.cpp:4524
#29 0x00007ffff33bd667 in WebCore::HTMLConstructionSite::finishedParsing (this=0x85a618) at ../../Source/WebCore/html/parser/HTMLConstructionSite.cpp:395
#30 0x00007ffff33fb1dd in WebCore::HTMLTreeBuilder::finished (this=0x85a600) at ../../Source/WebCore/html/parser/HTMLTreeBuilder.cpp:2997
#31 0x00007ffff33c60d0 in WebCore::HTMLDocumentParser::end (this=0x85a760) at ../../Source/WebCore/html/parser/HTMLDocumentParser.cpp:439
#32 0x00007ffff33c61bb in WebCore::HTMLDocumentParser::attemptToRunDeferredScriptsAndEnd (this=0x85a760) at ../../Source/WebCore/html/parser/HTMLDocumentParser.cpp:450
#33 0x00007ffff33c4c69 in WebCore::HTMLDocumentParser::prepareToStopParsing (this=0x85a760) at ../../Source/WebCore/html/parser/HTMLDocumentParser.cpp:165
#34 0x00007ffff33c61fe in WebCore::HTMLDocumentParser::attemptToEnd (this=0x85a760) at ../../Source/WebCore/html/parser/HTMLDocumentParser.cpp:462
#35 0x00007ffff33c62b5 in WebCore::HTMLDocumentParser::finish (this=0x85a760) at ../../Source/WebCore/html/parser/HTMLDocumentParser.cpp:490
#36 0x00007ffff35322d1 in WebCore::DocumentWriter::end (this=0xabac90) at ../../Source/WebCore/loader/DocumentWriter.cpp:246
#37 0x00007ffff351d9ad in WebCore::DocumentLoader::finishedLoading (this=0xababf0, finishTime=0) at ../../Source/WebCore/loader/DocumentLoader.cpp:441
#38 0x00007ffff351d716 in WebCore::DocumentLoader::notifyFinished (this=0xababf0, resource=0x882ab0) at ../../Source/WebCore/loader/DocumentLoader.cpp:375
#39 0x00007ffff35d47c4 in WebCore::CachedResource::checkNotify (this=0x882ab0) at ../../Source/WebCore/loader/cache/CachedResource.cpp:347
#40 0x00007ffff35d48ce in WebCore::CachedResource::finishLoading (this=0x882ab0) at ../../Source/WebCore/loader/cache/CachedResource.cpp:363
#41 0x00007ffff35d11f4 in WebCore::CachedRawResource::finishLoading (this=0x882ab0, data=0xa840c0) at ../../Source/WebCore/loader/cache/CachedRawResource.cpp:101
#42 0x00007ffff3580a50 in WebCore::SubresourceLoader::didFinishLoading (this=0x883020, finishTime=0) at ../../Source/WebCore/loader/SubresourceLoader.c</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>1217284</commentid>
    <comment_count>1</comment_count>
    <who name="Brent Fulgham">bfulgham</who>
    <bug_when>2016-08-03 17:12:52 -0700</bug_when>
    <thetext>This problem does not reproduce under GuardMalloc or ASAN under r204037. If you believe there is still a problem, please reopen this bug and provide an updated test case.</thetext>
  </long_desc>
      
          <attachment
              isobsolete="0"
              ispatch="0"
              isprivate="0"
          >
            <attachid>238367</attachid>
            <date>2014-09-19 03:23:34 -0700</date>
            <delta_ts>2014-09-19 03:23:34 -0700</delta_ts>
            <desc>Test case</desc>
            <filename>crash.html</filename>
            <type>text/html</type>
            <size>93</size>
            <attacher name="Renata Hodovan">rhodovan.u-szeged</attacher>
            
              <data encoding="base64">PCFET0NUWVBFIGh0bWw+Cjxmb250PmE8c3R5bGU+ICogewogICAgZm9udDpzbWFsbC1jYXBzIG5v
cm1hbCA4MDAlIE1pbmlvbjsKfQo8L3N0eWxlPjxzb3VyY2U+
</data>

          </attachment>
      

    </bug>

</bugzilla>