<?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>123029</bug_id>
          
          <creation_ts>2013-10-18 10:56:34 -0700</creation_ts>
          <short_desc>platform/mac/editing/attributed-string tests all flakily assert</short_desc>
          <delta_ts>2025-11-21 07:46:07 -0800</delta_ts>
          <reporter_accessible>1</reporter_accessible>
          <cclist_accessible>1</cclist_accessible>
          <classification_id>1</classification_id>
          <classification>Unclassified</classification>
          <product>WebKit</product>
          <component>WebCore Misc.</component>
          <version>528+ (Nightly build)</version>
          <rep_platform>Unspecified</rep_platform>
          <op_sys>Unspecified</op_sys>
          <bug_status>RESOLVED</bug_status>
          <resolution>CONFIGURATION CHANGED</resolution>
          
          
          <bug_file_loc></bug_file_loc>
          <status_whiteboard></status_whiteboard>
          <keywords>InRadar, LayoutTestFailure</keywords>
          <priority>P2</priority>
          <bug_severity>Normal</bug_severity>
          <target_milestone>---</target_milestone>
          
          
          <everconfirmed>1</everconfirmed>
          <reporter name="Alexey Proskuryakov">ap</reporter>
          <assigned_to name="Nobody">webkit-unassigned</assigned_to>
          <cc>darin</cc>
    
    <cc>ggaren</cc>
    
    <cc>jbedard</cc>
    
    <cc>mhahnenberg</cc>
    
    <cc>rniwa</cc>
    
    <cc>simon.fraser</cc>
    
    <cc>thorton</cc>
          

      

      

      

          <comment_sort_order>oldest_to_newest</comment_sort_order>  
          <long_desc isprivate="0" >
    <commentid>941269</commentid>
    <comment_count>0</comment_count>
    <who name="Alexey Proskuryakov">ap</who>
    <bug_when>2013-10-18 10:56:34 -0700</bug_when>
    <thetext>This is an extremely common assertion on bots.

http://webkit-test-results.appspot.com/dashboards/flakiness_dashboard.html#tests=attributed-string

Thread 0 Crashed:: Dispatch queue: com.apple.main-thread
0   com.apple.JavaScriptCore      	0x0000000104ee85ca WTFCrash + 42 (Assertions.cpp:342)
1   com.apple.WebCore             	0x0000000106881ca3 JSC::Bindings::Instance::createRuntimeObject(JSC::ExecState*) + 163 (BridgeJSC.cpp:74)
2   com.apple.WebCore             	0x000000010795da73 JSC::Bindings::convertObjcValueToValue(JSC::ExecState*, void*, JSC::Bindings::ObjcValueType, JSC::Bindings::RootObject*) + 1571 (objc_utility.mm:202)
3   com.apple.WebCore             	0x0000000107959864 JSC::Bindings::ObjcInstance::invokeObjcMethod(JSC::ExecState*, JSC::Bindings::ObjcMethod*) + 2356 (objc_instance.mm:343)
4   com.apple.WebCore             	0x0000000107958f08 JSC::Bindings::ObjcInstance::invokeMethod(JSC::ExecState*, JSC::RuntimeMethod*) + 312 (objc_instance.mm:233)
5   com.apple.WebCore             	0x0000000107d44e67 JSC::callRuntimeMethod(JSC::ExecState*) + 503 (runtime_method.cpp:100)
6   com.apple.JavaScriptCore      	0x0000000104d571c2 JSC::LLInt::handleHostCall(JSC::ExecState*, JSC::Instruction*, JSC::JSValue, JSC::CodeSpecializationKind) + 306 (LLIntSlowPaths.cpp:960)
7   com.apple.JavaScriptCore      	0x0000000104d57f9c JSC::LLInt::setUpCall(JSC::ExecState*, JSC::Instruction*, JSC::CodeSpecializationKind, JSC::JSValue, JSC::LLIntCallLinkInfo*) + 92 (LLIntSlowPaths.cpp:1004)</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>941656</commentid>
    <comment_count>1</comment_count>
    <who name="Alexey Proskuryakov">ap</who>
    <bug_when>2013-10-19 21:57:12 -0700</bug_when>
    <thetext>&lt;rdar://problem/15196388&gt;</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>941659</commentid>
    <comment_count>2</comment_count>
    <who name="Alexey Proskuryakov">ap</who>
    <bug_when>2013-10-19 22:04:25 -0700</bug_when>
    <thetext>It was very difficult for me to reproduce this locally. I managed to hit it once with

run-webkit-tests platform/mac/editing/attributed-string/ --iter 1000 -v -gf</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>941664</commentid>
    <comment_count>3</comment_count>
    <who name="Ryosuke Niwa">rniwa</who>
    <bug_when>2013-10-19 22:41:53 -0700</bug_when>
    <thetext>This isn&apos;t this the same assertion we&apos;re hitting on other layout tests?</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>941666</commentid>
    <comment_count>4</comment_count>
    <who name="Alexey Proskuryakov">ap</who>
    <bug_when>2013-10-19 23:01:29 -0700</bug_when>
    <thetext>I don&apos;t know which assertion you have in mind, but the answer is likely no. It&apos;s only a small subset of tests that have a code path through ObjcInstance::invokeMethod.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>943771</commentid>
    <comment_count>5</comment_count>
    <who name="Simon Fraser (smfr)">simon.fraser</who>
    <bug_when>2013-10-25 14:55:26 -0700</bug_when>
    <thetext>Still seeing this quite often
http://build.webkit.org/results/Apple%20MountainLion%20Debug%20WK1%20(Tests)/r158041%20(10993)/platform/mac/editing/attributed-string/font-size-crash-log.txt</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>944476</commentid>
    <comment_count>6</comment_count>
    <who name="Simon Fraser (smfr)">simon.fraser</who>
    <bug_when>2013-10-29 10:48:47 -0700</bug_when>
    <thetext>Still seeing it a few times a day:

http://build.webkit.org/results/Apple%20Mavericks%20Debug%20WK1%20(Tests)/r158194%20(146)/platform/mac/editing/attributed-string/font-size-crash-log.txt</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>950931</commentid>
    <comment_count>7</comment_count>
    <who name="Tim Horton">thorton</who>
    <bug_when>2013-11-14 19:04:17 -0800</bug_when>
    <thetext>And still!</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>961419</commentid>
    <comment_count>8</comment_count>
    <who name="Alexey Proskuryakov">ap</who>
    <bug_when>2013-12-19 10:01:53 -0800</bug_when>
    <thetext>Looks like there are at least two problems here:

- Somehow, s_instanceWrapperCache contains an entry with an invalidated root object, which makes no sense.

- The cache should not be global, because Objective C instances can be used in multiple pages at once, and they need separate ObjcInstances then.

Both are pretty bad bugs I think.


This was failing extremely frequently lately - most of the time, multiple bots were red because of this issue alone. Marked as flakily crashing in debug in &lt;http://trac.webkit.org/r160840&gt;.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>961440</commentid>
    <comment_count>9</comment_count>
    <who name="Ryosuke Niwa">rniwa</who>
    <bug_when>2013-12-19 10:51:37 -0800</bug_when>
    <thetext>Looks like this is a bug in Objective-C binding code?</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>961445</commentid>
    <comment_count>10</comment_count>
    <who name="Darin Adler">darin</who>
    <bug_when>2013-12-19 11:05:23 -0800</bug_when>
    <thetext>This lurked for four years before we noticed!?</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>961453</commentid>
    <comment_count>11</comment_count>
    <who name="Alexey Proskuryakov">ap</who>
    <bug_when>2013-12-19 11:19:06 -0800</bug_when>
    <thetext>Yes, it appears so.

These attributed string tests were added this August, and I guess we didn&apos;t cover this aspect of Objective-C bindings in tests before. Also, these crashes became more frequent over the last few months, presumably because of some timing differences in loading, GC, or just different hardware on bots.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>1001011</commentid>
    <comment_count>12</comment_count>
    <who name="Alexey Proskuryakov">ap</who>
    <bug_when>2014-04-15 16:09:51 -0700</bug_when>
    <thetext>platform/mac/plugins/jsobjc-simple.html is affected too.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>2160571</commentid>
    <comment_count>13</comment_count>
    <who name="Jonathan Bedard">jbedard</who>
    <bug_when>2025-11-21 07:45:52 -0800</bug_when>
    <thetext>I don&apos;t see this happening any more:
https://results.webkit.org/?suite=layout-tests&amp;suite=layout-tests&amp;suite=layout-tests&amp;suite=layout-tests&amp;suite=layout-tests&amp;suite=layout-tests&amp;suite=layout-tests&amp;suite=layout-tests&amp;suite=layout-tests&amp;suite=layout-tests&amp;test=editing%2Fmac%2Fattributed-string%2Fattributed-string-across-shadow-boundaries-with-style-1.html&amp;test=editing%2Fmac%2Fattributed-string%2Fattributed-string-across-shadow-boundaries-5.html&amp;test=editing%2Fmac%2Fattributed-string%2Fattributed-string-across-shadow-boundaries-4.html&amp;test=editing%2Fmac%2Fattributed-string%2Fattributed-string-across-shadow-boundaries-3.html&amp;test=editing%2Fmac%2Fattributed-string%2Fattributed-string-across-shadow-boundaries-2.html&amp;test=editing%2Fmac%2Fattributed-string%2Fattributed-string-across-shadow-boundaries-1.html&amp;test=editing%2Fmac%2Fattributed-string%2Fattribute-string-for-copy-with-color-filter.html&amp;test=editing%2Fmac%2Fattributed-string%2Fattrib-string-range-with-color-filter.html&amp;test=editing%2Fmac%2Fattributed-string%2Fattrib-string-colors-with-color-filter.html&amp;test=editing%2Fmac%2Fattributed-string%2Fanchor-element.html

Closing this as &quot;Configuration Changed&quot;</thetext>
  </long_desc>
      
      

    </bug>

</bugzilla>