<html>
    <head>
      <base href="https://bugs.webkit.org/" />
    </head>
    <body><table border="1" cellspacing="0" cellpadding="8">
        <tr>
          <th>Bug ID</th>
          <td><a class="bz_bug_link 
          bz_status_NEW "
   title="NEW - ASSERT in platform/graphics/mac/ComplexTextController.cpp::capitalize()"
   href="https://bugs.webkit.org/show_bug.cgi?id=154875">154875</a>
          </td>
        </tr>

        <tr>
          <th>Summary</th>
          <td>ASSERT in platform/graphics/mac/ComplexTextController.cpp::capitalize()
          </td>
        </tr>

        <tr>
          <th>Classification</th>
          <td>Unclassified
          </td>
        </tr>

        <tr>
          <th>Product</th>
          <td>WebKit
          </td>
        </tr>

        <tr>
          <th>Version</th>
          <td>WebKit Nightly Build
          </td>
        </tr>

        <tr>
          <th>Hardware</th>
          <td>Unspecified
          </td>
        </tr>

        <tr>
          <th>OS</th>
          <td>Unspecified
          </td>
        </tr>

        <tr>
          <th>Status</th>
          <td>NEW
          </td>
        </tr>

        <tr>
          <th>Severity</th>
          <td>Normal
          </td>
        </tr>

        <tr>
          <th>Priority</th>
          <td>P2
          </td>
        </tr>

        <tr>
          <th>Component</th>
          <td>WebCore Misc.
          </td>
        </tr>

        <tr>
          <th>Assignee</th>
          <td>webkit-unassigned&#64;lists.webkit.org
          </td>
        </tr>

        <tr>
          <th>Reporter</th>
          <td>msaboff&#64;apple.com
          </td>
        </tr></table>
      <p>
        <div>
        <pre>In platform/graphics/mac/ComplexTextController.cpp::capitalize() the ASSERT is firing for a baseCharacter value of 66639 (\u{1044f}) which has a u_toupper() value of 66599 (\u{10427}).

static inline Optional&lt;UChar32&gt; capitalized(UChar32 baseCharacter)
{
    if (U_GET_GC_MASK(baseCharacter) &amp; U_GC_M_MASK)
        return Nullopt;

    UChar32 uppercaseCharacter = u_toupper(baseCharacter);
    ASSERT(uppercaseCharacter == baseCharacter || uppercaseCharacter &lt;= 0xFFFF);
    if (uppercaseCharacter != baseCharacter)
        return uppercaseCharacter;
    return Nullopt;
}

The ASSERT checks that the upper case value is in the BMP.  If we care about the whether or not the upper case character stays in the same plane, a better ASSERT would be:
    ASSERT(uppercaseCharacter == baseCharacter || (U_IS_BMP(baseCharacter) == U_IS_BMP(uppercaseCharacter)));
If we don't care about the same plane, we could eliminate the ASSERT altogether.

Here is the crash trace:
ASSERTION FAILED: uppercaseCharacter == baseCharacter || uppercaseCharacter &lt;= 0xFFFF
/Volumes/Data/src/webkit/Source/WebCore/platform/graphics/mac/ComplexTextController.cpp(301) : Optional&lt;UChar32&gt; WebCore::capitalized(UChar32)
1   0x104b78ad0 WTFCrash
2   0x1098a5aa2 WebCore::capitalized(int)
3   0x1098a3219 WebCore::ComplexTextController::collectComplexTextRuns()
4   0x1098a2aaf WebCore::ComplexTextController::ComplexTextController(WebCore::FontCascade const&amp;, WebCore::TextRun const&amp;, bool, WTF::HashSet&lt;WebCore::Font const*, WTF::PtrHash&lt;WebCore::Font const*&gt;, WTF::HashTraits&lt;WebCore::Font const*&gt; &gt;*, bool)
5   0x1098a4c04 WebCore::ComplexTextController::ComplexTextController(WebCore::FontCascade const&amp;, WebCore::TextRun const&amp;, bool, WTF::HashSet&lt;WebCore::Font const*, WTF::PtrHash&lt;WebCore::Font const*&gt;, WTF::HashTraits&lt;WebCore::Font const*&gt; &gt;*, bool)
6   0x109efb58f WebCore::FontCascade::floatWidthForComplexText(WebCore::TextRun const&amp;, WTF::HashSet&lt;WebCore::Font const*, WTF::PtrHash&lt;WebCore::Font const*&gt;, WTF::HashTraits&lt;WebCore::Font const*&gt; &gt;*, WebCore::GlyphOverflow*) const
7   0x109ee8488 WebCore::FontCascade::width(WebCore::TextRun const&amp;, WTF::HashSet&lt;WebCore::Font const*, WTF::PtrHash&lt;WebCore::Font const*&gt;, WTF::HashTraits&lt;WebCore::Font const*&gt; &gt;*, WebCore::GlyphOverflow*) const
8   0x10b34f90c WebCore::RenderText::widthFromCache(WebCore::FontCascade const&amp;, int, int, float, WTF::HashSet&lt;WebCore::Font const*, WTF::PtrHash&lt;WebCore::Font const*&gt;, WTF::HashTraits&lt;WebCore::Font const*&gt; &gt;*, WebCore::GlyphOverflow*, WebCore::RenderStyle const&amp;) const
9   0x10b34cc3a WebCore::RenderText::width(unsigned int, unsigned int, WebCore::FontCascade const&amp;, float, WTF::HashSet&lt;WebCore::Font const*, WTF::PtrHash&lt;WebCore::Font const*&gt;, WTF::HashTraits&lt;WebCore::Font const*&gt; &gt;*, WebCore::GlyphOverflow*) const
10  0x10b34c9a5 WebCore::RenderText::width(unsigned int, unsigned int, float, bool, WTF::HashSet&lt;WebCore::Font const*, WTF::PtrHash&lt;WebCore::Font const*&gt;, WTF::HashTraits&lt;WebCore::Font const*&gt; &gt;*, WebCore::GlyphOverflow*) const
11  0x10b08cfde WebCore::setLogicalWidthForTextRun(WebCore::RootInlineBox*, WebCore::BidiRun*, WebCore::RenderText&amp;, float, WebCore::LineInfo const&amp;, WTF::HashMap&lt;WebCore::InlineTextBox const*, std::__1::pair&lt;WTF::Vector&lt;WebCore::Font const*, 0ul, WTF::CrashOnOverflow, 16ul&gt;, WebCore::GlyphOverflow&gt;, WTF::PtrHash&lt;WebCore::InlineTextBox const*&gt;, WTF::HashTraits&lt;WebCore::InlineTextBox const*&gt;, WTF::HashTraits&lt;std::__1::pair&lt;WTF::Vector&lt;WebCore::Font const*, 0ul, WTF::CrashOnOverflow, 16ul&gt;, WebCore::GlyphOverflow&gt; &gt; &gt;&amp;, WebCore::VerticalPositionCache&amp;, WTF::Vector&lt;WebCore::WordMeasurement, 64ul, WTF::CrashOnOverflow, 16ul&gt;&amp;)
12  0x10b08ba6e WebCore::RenderBlockFlow::computeInlineDirectionPositionsForSegment(WebCore::RootInlineBox*, WebCore::LineInfo const&amp;, WebCore::ETextAlign, float&amp;, float&amp;, WebCore::BidiRun*, WebCore::BidiRun*, WTF::HashMap&lt;WebCore::InlineTextBox const*, std::__1::pair&lt;WTF::Vector&lt;WebCore::Font const*, 0ul, WTF::CrashOnOverflow, 16ul&gt;, WebCore::GlyphOverflow&gt;, WTF::PtrHash&lt;WebCore::InlineTextBox const*&gt;, WTF::HashTraits&lt;WebCore::InlineTextBox const*&gt;, WTF::HashTraits&lt;std::__1::pair&lt;WTF::Vector&lt;WebCore::Font const*, 0ul, WTF::CrashOnOverflow, 16ul&gt;, WebCore::GlyphOverflow&gt; &gt; &gt;&amp;, WebCore::VerticalPositionCache&amp;, WTF::Vector&lt;WebCore::WordMeasurement, 64ul, WTF::CrashOnOverflow, 16ul&gt;&amp;)
13  0x10b08b171 WebCore::RenderBlockFlow::computeInlineDirectionPositionsForLine(WebCore::RootInlineBox*, WebCore::LineInfo const&amp;, WebCore::BidiRun*, WebCore::BidiRun*, bool, WTF::HashMap&lt;WebCore::InlineTextBox const*, std::__1::pair&lt;WTF::Vector&lt;WebCore::Font const*, 0ul, WTF::CrashOnOverflow, 16ul&gt;, WebCore::GlyphOverflow&gt;, WTF::PtrHash&lt;WebCore::InlineTextBox const*&gt;, WTF::HashTraits&lt;WebCore::InlineTextBox const*&gt;, WTF::HashTraits&lt;std::__1::pair&lt;WTF::Vector&lt;WebCore::Font const*, 0ul, WTF::CrashOnOverflow, 16ul&gt;, WebCore::GlyphOverflow&gt; &gt; &gt;&amp;, WebCore::VerticalPositionCache&amp;, WTF::Vector&lt;WebCore::WordMeasurement, 64ul, WTF::CrashOnOverflow, 16ul&gt;&amp;)
14  0x10b08da37 WebCore::RenderBlockFlow::createLineBoxesFromBidiRuns(unsigned int, WebCore::BidiRunList&lt;WebCore::BidiRun&gt;&amp;, WebCore::InlineIterator const&amp;, WebCore::LineInfo&amp;, WebCore::VerticalPositionCache&amp;, WebCore::BidiRun*, WTF::Vector&lt;WebCore::WordMeasurement, 64ul, WTF::CrashOnOverflow, 16ul&gt;&amp;)
15  0x10b08fb11 WebCore::RenderBlockFlow::layoutRunsAndFloatsInRange(WebCore::LineLayoutState&amp;, WebCore::BidiResolverWithIsolate&lt;WebCore::InlineIterator, WebCore::BidiRun, WebCore::BidiIsolatedRun&gt;&amp;, WebCore::InlineIterator const&amp;, WebCore::BidiStatus const&amp;, unsigned int)
16  0x10b08dffb WebCore::RenderBlockFlow::layoutRunsAndFloats(WebCore::LineLayoutState&amp;, bool)
17  0x10b092caa WebCore::RenderBlockFlow::layoutLineBoxes(bool, WebCore::LayoutUnit&amp;, WebCore::LayoutUnit&amp;)
18  0x10b06ae82 WebCore::RenderBlockFlow::layoutInlineChildren(bool, WebCore::LayoutUnit&amp;, WebCore::LayoutUnit&amp;)
19  0x10b069eff WebCore::RenderBlockFlow::layoutBlock(bool, WebCore::LayoutUnit)
20  0x10b034f89 WebCore::RenderBlock::layout()
21  0x10b06d6ec WebCore::RenderBlockFlow::layoutBlockChild(WebCore::RenderBox&amp;, WebCore::RenderBlockFlow::MarginInfo&amp;, WebCore::LayoutUnit&amp;, WebCore::LayoutUnit&amp;)
22  0x10b06b0e6 WebCore::RenderBlockFlow::layoutBlockChildren(bool, WebCore::LayoutUnit&amp;)
23  0x10b069f22 WebCore::RenderBlockFlow::layoutBlock(bool, WebCore::LayoutUnit)
24  0x10b034f89 WebCore::RenderBlock::layout()
25  0x10b06d6ec WebCore::RenderBlockFlow::layoutBlockChild(WebCore::RenderBox&amp;, WebCore::RenderBlockFlow::MarginInfo&amp;, WebCore::LayoutUnit&amp;, WebCore::LayoutUnit&amp;)
26  0x10b06b0e6 WebCore::RenderBlockFlow::layoutBlockChildren(bool, WebCore::LayoutUnit&amp;)
27  0x10b069f22 WebCore::RenderBlockFlow::layoutBlock(bool, WebCore::LayoutUnit)
28  0x10b034f89 WebCore::RenderBlock::layout()
29  0x10b06d6ec WebCore::RenderBlockFlow::layoutBlockChild(WebCore::RenderBox&amp;, WebCore::RenderBlockFlow::MarginInfo&amp;, WebCore::LayoutUnit&amp;, WebCore::LayoutUnit&amp;)
30  0x10b06b0e6 WebCore::RenderBlockFlow::layoutBlockChildren(bool, WebCore::LayoutUnit&amp;)
31  0x10b069f22 WebCore::RenderBlockFlow::layoutBlock(bool, WebCore::LayoutUnit)</pre>
        </div>
      </p>
      <hr>
      <span>You are receiving this mail because:</span>
      
      <ul>
          <li>You are the assignee for the bug.</li>
      </ul>
    </body>
</html>