<?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>225315</bug_id>
          
          <creation_ts>2021-05-03 10:28:33 -0700</creation_ts>
          <short_desc>[ macOS/iOS Debug ] http/wpt/crypto/unwrap-rsa-key-crash.any.html (layout-test) is a flaky crash</short_desc>
          <delta_ts>2021-05-05 12:50:08 -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>New Bugs</component>
          <version>WebKit Nightly Build</version>
          <rep_platform>Unspecified</rep_platform>
          <op_sys>Unspecified</op_sys>
          <bug_status>RESOLVED</bug_status>
          <resolution>DUPLICATE</resolution>
          <dup_id>224845</dup_id>
          <see_also>https://bugs.webkit.org/show_bug.cgi?id=224845</see_also>
          <bug_file_loc></bug_file_loc>
          <status_whiteboard></status_whiteboard>
          <keywords>InRadar</keywords>
          <priority>P2</priority>
          <bug_severity>Normal</bug_severity>
          <target_milestone>---</target_milestone>
          
          
          <everconfirmed>1</everconfirmed>
          <reporter name="Robert Jenner">jenner</reporter>
          <assigned_to name="Nobody">webkit-unassigned</assigned_to>
          <cc>webkit-bot-watchers-bugzilla</cc>
    
    <cc>webkit-bug-importer</cc>
          

      

      

      

          <comment_sort_order>oldest_to_newest</comment_sort_order>  
          <long_desc isprivate="0" >
    <commentid>1756225</commentid>
    <comment_count>0</comment_count>
    <who name="Robert Jenner">jenner</who>
    <bug_when>2021-05-03 10:28:33 -0700</bug_when>
    <thetext>http/wpt/crypto/unwrap-rsa-key-crash.any.html

is a flaky crash on debug for iOS14 and Catalina+.

HISOTRY:
https://results.webkit.org/?suite=layout-tests&amp;test=http%2Fwpt%2Fcrypto%2Funwrap-rsa-key-crash.any.html

CRASH TEXT:
Thread 31 Crashed:: WebCore: Worker
0   com.apple.JavaScriptCore      	0x0000000105e9e2fe WTFCrash + 14 (Assertions.cpp:305)
1   com.apple.WebCore             	0x0000000128c1afeb WTFCrashWithInfo(int, char const*, char const*, int) + 27
2   com.apple.WebCore             	0x000000012b947a6b WebCore::SubtleCrypto::unwrapKey(JSC::JSGlobalObject&amp;, WebCore::CryptoKeyFormat, WebCore::BufferSource&amp;&amp;, WebCore::CryptoKey&amp;, WTF::Variant&lt;JSC::Strong&lt;JSC::JSObject, (JSC::ShouldStrongDestructorGrabLock)0&gt;, WTF::String&gt;&amp;&amp;, WTF::Variant&lt;JSC::Strong&lt;JSC::JSObject, (JSC::ShouldStrongDestructorGrabLock)0&gt;, WTF::String&gt;&amp;&amp;, bool, WTF::Vector&lt;WebCore::CryptoKeyUsage, 0ul, WTF::CrashOnOverflow, 16ul, WTF::FastMalloc&gt;&amp;&amp;, WTF::Ref&lt;WebCore::DeferredPromise, WTF::RawPtrTraits&lt;WebCore::DeferredPromise&gt; &gt;&amp;&amp;) + 331
3   com.apple.WebCore             	0x000000012a388589 WebCore::jsSubtleCryptoPrototypeFunction_unwrapKeyBody(JSC::JSGlobalObject*, JSC::CallFrame*, WebCore::JSSubtleCrypto*, WTF::Ref&lt;WebCore::DeferredPromise, WTF::RawPtrTraits&lt;WebCore::DeferredPromise&gt; &gt;&amp;&amp;)::&apos;lambda&apos;()::operator()() const + 281
4   com.apple.WebCore             	0x000000012a388041 JSC::JSValue WebCore::toJS&lt;WebCore::IDLPromise&lt;WebCore::IDLInterface&lt;WebCore::CryptoKey&gt; &gt;, WebCore::jsSubtleCryptoPrototypeFunction_unwrapKeyBody(JSC::JSGlobalObject*, JSC::CallFrame*, WebCore::JSSubtleCrypto*, WTF::Ref&lt;WebCore::DeferredPromise, WTF::RawPtrTraits&lt;WebCore::DeferredPromise&gt; &gt;&amp;&amp;)::&apos;lambda&apos;()&gt;(JSC::JSGlobalObject&amp;, WebCore::JSDOMGlobalObject&amp;, JSC::ThrowScope&amp;, WebCore::jsSubtleCryptoPrototypeFunction_unwrapKeyBody(JSC::JSGlobalObject*, JSC::CallFrame*, WebCore::JSSubtleCrypto*, WTF::Ref&lt;WebCore::DeferredPromise, WTF::RawPtrTraits&lt;WebCore::DeferredPromise&gt; &gt;&amp;&amp;)::&apos;lambda&apos;()&amp;&amp;) + 33
5   com.apple.WebCore             	0x000000012a387b8c WebCore::jsSubtleCryptoPrototypeFunction_unwrapKeyBody(JSC::JSGlobalObject*, JSC::CallFrame*, WebCore::JSSubtleCrypto*, WTF::Ref&lt;WebCore::DeferredPromise, WTF::RawPtrTraits&lt;WebCore::DeferredPromise&gt; &gt;&amp;&amp;) + 3228
6   com.apple.WebCore             	0x000000012a388803 long long WebCore::IDLOperationReturningPromise&lt;WebCore::JSSubtleCrypto&gt;::call&lt;&amp;(WebCore::jsSubtleCryptoPrototypeFunction_unwrapKeyBody(JSC::JSGlobalObject*, JSC::CallFrame*, WebCore::JSSubtleCrypto*, WTF::Ref&lt;WebCore::DeferredPromise, WTF::RawPtrTraits&lt;WebCore::DeferredPromise&gt; &gt;&amp;&amp;)), (WebCore::CastedThisErrorBehavior)2&gt;(JSC::JSGlobalObject&amp;, JSC::CallFrame&amp;, char const*)::&apos;lambda&apos;(JSC::JSGlobalObject&amp;, JSC::CallFrame&amp;, WTF::Ref&lt;WebCore::DeferredPromise, WTF::RawPtrTraits&lt;WebCore::DeferredPromise&gt; &gt;&amp;&amp;)::operator()(JSC::JSGlobalObject&amp;, JSC::CallFrame&amp;, WTF::Ref&lt;WebCore::DeferredPromise, WTF::RawPtrTraits&lt;WebCore::DeferredPromise&gt; &gt;&amp;&amp;) const + 579
7   com.apple.WebCore             	0x000000012a387dff JSC::JSValue WebCore::callPromiseFunction&lt;long long WebCore::IDLOperationReturningPromise&lt;WebCore::JSSubtleCrypto&gt;::call&lt;&amp;(WebCore::jsSubtleCryptoPrototypeFunction_unwrapKeyBody(JSC::JSGlobalObject*, JSC::CallFrame*, WebCore::JSSubtleCrypto*, WTF::Ref&lt;WebCore::DeferredPromise, WTF::RawPtrTraits&lt;WebCore::DeferredPromise&gt; &gt;&amp;&amp;)), (WebCore::CastedThisErrorBehavior)2&gt;(JSC::JSGlobalObject&amp;, JSC::CallFrame&amp;, char const*)::&apos;lambda&apos;(JSC::JSGlobalObject&amp;, JSC::CallFrame&amp;, WTF::Ref&lt;WebCore::DeferredPromise, WTF::RawPtrTraits&lt;WebCore::DeferredPromise&gt; &gt;&amp;&amp;)&gt;(JSC::JSGlobalObject&amp;, JSC::CallFrame&amp;, &amp;(WebCore::jsSubtleCryptoPrototypeFunction_unwrapKeyBody(JSC::JSGlobalObject*, JSC::CallFrame*, WebCore::JSSubtleCrypto*, WTF::Ref&lt;WebCore::DeferredPromise, WTF::RawPtrTraits&lt;WebCore::DeferredPromise&gt; &gt;&amp;&amp;))) + 399
8   com.apple.WebCore             	0x000000012a386edd long long WebCore::IDLOperationReturningPromise&lt;WebCore::JSSubtleCrypto&gt;::call&lt;&amp;(WebCore::jsSubtleCryptoPrototypeFunction_unwrapKeyBody(JSC::JSGlobalObject*, JSC::CallFrame*, WebCore::JSSubtleCrypto*, WTF::Ref&lt;WebCore::DeferredPromise, WTF::RawPtrTraits&lt;WebCore::DeferredPromise&gt; &gt;&amp;&amp;)), (WebCore::CastedThisErrorBehavior)2&gt;(JSC::JSGlobalObject&amp;, JSC::CallFrame&amp;, char const*) + 45
9   com.apple.WebCore             	0x000000012a379dd4 WebCore::jsSubtleCryptoPrototypeFunction_unwrapKey(JSC::JSGlobalObject*, JSC::CallFrame*) + 36
10  ???                           	0x000035f26f1a8018 0 + 59315362365464
11  com.apple.JavaScriptCore      	0x00000001064b5510 llint_entry + 138518
12  com.apple.JavaScriptCore      	0x00000001064b55b8 llint_entry + 138686
13  com.apple.JavaScriptCore      	0x0000000106493500 vmEntryToJavaScript + 289
14  com.apple.JavaScriptCore      	0x00000001073fa0fb JSC::JITCode::execute(JSC::VM*, JSC::ProtoCallFrame*) + 235
15  com.apple.JavaScriptCore      	0x00000001073fa85c JSC::Interpreter::executeCall(JSC::JSGlobalObject*, JSC::JSObject*, JSC::CallData const&amp;, JSC::JSValue, JSC::ArgList const&amp;) + 1724
16  com.apple.JavaScriptCore      	0x0000000107797abd JSC::call(JSC::JSGlobalObject*, JSC::JSValue, JSC::CallData const&amp;, JSC::JSValue, JSC::ArgList const&amp;) + 221
17  com.apple.JavaScriptCore      	0x0000000107797d93 JSC::profiledCall(JSC::JSGlobalObject*, JSC::ProfilingReason, JSC::JSValue, JSC::CallData const&amp;, JSC::JSValue, JSC::ArgList const&amp;) + 115
18  com.apple.JavaScriptCore      	0x0000000107a11bf1 JSC::JSMicrotask::run(JSC::JSGlobalObject*) + 657
19  com.apple.WebCore             	0x000000012b76332e WebCore::JSExecState::runTask(JSC::JSGlobalObject*, JSC::Microtask&amp;) + 46
20  com.apple.WebCore             	0x000000012b76a09b WebCore::JSMicrotaskCallback::call() + 235
21  com.apple.WebCore             	0x000000012b85579d WebCore::JSWorkerGlobalScopeBase::queueMicrotaskToEventLoop(JSC::JSGlobalObject&amp;, WTF::Ref&lt;JSC::Microtask, WTF::RawPtrTraits&lt;JSC::Microtask&gt; &gt;&amp;&amp;)::$_0::operator()() + 29
22  com.apple.WebCore             	0x000000012b8556ce WTF::Detail::CallableWrapper&lt;WebCore::JSWorkerGlobalScopeBase::queueMicrotaskToEventLoop(JSC::JSGlobalObject&amp;, WTF::Ref&lt;JSC::Microtask, WTF::RawPtrTraits&lt;JSC::Microtask&gt; &gt;&amp;&amp;)::$_0, void&gt;::call() + 30
23  com.apple.WebCore             	0x0000000128c2fb02 WTF::Function&lt;void ()&gt;::operator()() const + 130 (Function.h:83)
24  com.apple.WebCore             	0x000000012bed347e WebCore::EventLoopFunctionDispatchTask::execute() + 30
25  com.apple.WebCore             	0x000000012bf1d24b WebCore::MicrotaskQueue::performMicrotaskCheckpoint() + 347
26  com.apple.WebCore             	0x000000012bec8151 WebCore::EventLoop::performMicrotaskCheckpoint() + 33
27  com.apple.WebCore             	0x000000012bec96ad WebCore::EventLoopTaskGroup::performMicrotaskCheckpoint() + 77
28  com.apple.WebCore             	0x000000012b71535e WebCore::JSExecState::didLeaveScriptContext(JSC::JSGlobalObject*) + 62
29  com.apple.WebCore             	0x000000012b71ffa2 WebCore::JSExecState::~JSExecState() + 242
30  com.apple.WebCore             	0x000000012b71fdc5 WebCore::JSExecState::~JSExecState() + 21
31  com.apple.WebCore             	0x000000012b7b2019 WebCore::JSExecState::profiledEvaluate(JSC::JSGlobalObject*, JSC::ProfilingReason, JSC::SourceCode const&amp;, JSC::JSValue, WTF::NakedPtr&lt;JSC::Exception&gt;&amp;) + 89
32  com.apple.WebCore             	0x000000012dfdc0db WebCore::WorkerOrWorkletScriptController::evaluate(WebCore::ScriptSourceCode const&amp;, WTF::NakedPtr&lt;JSC::Exception&gt;&amp;, WTF::String*) + 219
33  com.apple.WebCore             	0x000000012dfe4441 WebCore::WorkerOrWorkletScriptController::evaluate(WebCore::ScriptSourceCode const&amp;, WTF::String*) + 97
34  com.apple.WebCore             	0x000000012e0221cb WebCore::WorkerThread::evaluateScriptIfNecessary(WTF::String&amp;) + 283
35  com.apple.WebCore             	0x000000012dfe7f53 WebCore::WorkerOrWorkletThread::workerOrWorkletThread() + 419
36  com.apple.WebCore             	0x000000012e0350bb WebCore::WorkerThread::createThread()::$_1::operator()() const + 27
37  com.apple.WebCore             	0x000000012e03504e WTF::Detail::CallableWrapper&lt;WebCore::WorkerThread::createThread()::$_1, void&gt;::call() + 30
38  com.apple.JavaScriptCore      	0x0000000105eca052 WTF::Function&lt;void ()&gt;::operator()() const + 130 (Function.h:83)
39  com.apple.JavaScriptCore      	0x0000000105f927a8 WTF::Thread::entryPoint(WTF::Thread::NewThreadContext*) + 424 (Threading.cpp:186)
40  com.apple.JavaScriptCore      	0x0000000105fa0668 WTF::wtfThreadEntryPoint(void*) + 24 (ThreadingPOSIX.cpp:241)
41  libsystem_pthread.dylib       	0x00007fff6cc22109 _pthread_start + 148
42  libsystem_pthread.dylib       	0x00007fff6cc1db8b thread_start + 15</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>1756239</commentid>
    <comment_count>1</comment_count>
    <who name="Robert Jenner">jenner</who>
    <bug_when>2021-05-03 11:02:48 -0700</bug_when>
    <thetext>Updated test expectations to Pass Crash here:

https://trac.webkit.org/changeset/276909/webkit</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>1756255</commentid>
    <comment_count>2</comment_count>
    <who name="Robert Jenner">jenner</who>
    <bug_when>2021-05-03 11:52:32 -0700</bug_when>
    <thetext>This test was also flaky failing on EWS, and was causing a slow down, seen here:
https://ews-build.webkit.org/#/builders/56/builds/6934</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>1756256</commentid>
    <comment_count>3</comment_count>
    <who name="Radar WebKit Bug Importer">webkit-bug-importer</who>
    <bug_when>2021-05-03 11:52:48 -0700</bug_when>
    <thetext>&lt;rdar://problem/77465604&gt;</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>1757052</commentid>
    <comment_count>4</comment_count>
    <who name="Alexey Proskuryakov">ap</who>
    <bug_when>2021-05-05 12:50:08 -0700</bug_when>
    <thetext>

*** This bug has been marked as a duplicate of bug 224845 ***</thetext>
  </long_desc>
      
      

    </bug>

</bugzilla>