Bug 223921 - Crash in webgl/1.0.x/conformance/ogles/GL/build/build_009_to_016.html ANGLE+METAL
Summary: Crash in webgl/1.0.x/conformance/ogles/GL/build/build_009_to_016.html ANGLE+M...
Status: ASSIGNED
Alias: None
Product: WebKit
Classification: Unclassified
Component: ANGLE (show other bugs)
Version: WebKit Local Build
Hardware: Unspecified Unspecified
: P2 Normal
Assignee: Kyle Piddington
URL:
Keywords: InRadar
Depends on: 223988
Blocks: anglemetal
  Show dependency treegraph
 
Reported: 2021-03-30 04:40 PDT by Kimmo Kinnunen
Modified: 2021-04-06 04:41 PDT (History)
3 users (show)

See Also:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Kimmo Kinnunen 2021-03-30 04:40:19 PDT
Crash in webgl/1.0.x/conformance/ogles/GL/build/build_009_to_016.html ANGLE+METAL

Process:               com.apple.WebKit.WebContent.Development [15487]
Path:                  /Users/USER/*/com.apple.WebKit.WebContent.Development
Identifier:            com.apple.WebKit.WebContent
Version:               612+ (612.1.9+)
Code Type:             X86-64 (Native)
Parent Process:        ??? [1]
Responsible:           WebKitTestRunner [15484]
User ID:               501

PlugIn Path:             /Users/USER/*/libANGLE-shared.dylib
PlugIn Identifier:       libANGLE-shared.dylib
PlugIn Version:          ??? (0)

Date/Time:             2021-03-30 14:30:12.603 +0300
OS Version:            macOS 11.3 (20E201)
Report Version:        12
Bridge OS Version:     5.3 (18P4544)
Anonymous UUID:        ADEB2724-109F-6379-8A4B-657A6A37BBA8

Sleep/Wake UUID:       D48EB9D4-6C73-426F-AF12-26DC79BB8DC1

Time Awake Since Boot: 110000 seconds
Time Since Wake:       5900 seconds

System Integrity Protection: enabled

Crashed Thread:        0  Dispatch queue: com.apple.main-thread

Exception Type:        EXC_BAD_INSTRUCTION (SIGILL)
Exception Codes:       0x0000000000000001, 0x0000000000000000
Exception Note:        EXC_CORPSE_NOTIFY

Termination Signal:    Illegal instruction: 4
Termination Reason:    Namespace SIGNAL, Code 0x4
Terminating Process:   exc handler [15487]

Application Specific Information:
CRASHING TEST: webgl/1.0.x/conformance/ogles/GL/build/build_009_to_016.html

Thread 0 Crashed:: Dispatch queue: com.apple.main-thread
0   libANGLE-shared.dylib         	0x00000007f5b411de gl::LogMessage::~LogMessage() + 238 (debug.cpp:199)
1   libANGLE-shared.dylib         	0x00000007f5b40ab5 gl::LogMessage::~LogMessage() + 21 (debug.cpp:175)
2   libANGLE-shared.dylib         	0x00000007f611ce4c (anonymous namespace)::Separator::visitDeclarationPost(sh::TIntermDeclaration&) + 668 (SeparateCompoundExpressions.cpp:334)
3   libANGLE-shared.dylib         	0x00000007f5e1cb2b sh::TIntermRebuild::traversePost(sh::NodeType, sh::TIntermNode const&, sh::TIntermNode&, sh::TIntermRebuild::VisitBits) + 1755 (IntermRebuild.cpp:511)
4   libANGLE-shared.dylib         	0x00000007f5e1b1b9 sh::TIntermRebuild::traverseAny(sh::TIntermNode&) + 585 (IntermRebuild.cpp:328)
5   libANGLE-shared.dylib         	0x00000007f5e1b4d9 sh::TIntermRebuild::traverseAggregateBaseChildren(sh::TIntermAggregateBase&) + 761 (IntermRebuild.cpp:266)
6   libANGLE-shared.dylib         	0x00000007f5e1e5c6 sh::TIntermRebuild::traverseBlockChildren(sh::TIntermBlock&) + 38 (IntermRebuild.cpp:532)
7   libANGLE-shared.dylib         	0x00000007f5e1c305 sh::TIntermRebuild::traverseChildren(sh::NodeType, sh::TIntermNode const&, sh::TIntermNode&, sh::TIntermRebuild::VisitBits) + 1093 (IntermRebuild.cpp:438)
8   libANGLE-shared.dylib         	0x00000007f5e1b15e sh::TIntermRebuild::traverseAny(sh::TIntermNode&) + 494 (IntermRebuild.cpp:322)
9   libANGLE-shared.dylib         	0x00000007f5e1f151 sh::TIntermBlock* sh::TIntermRebuild::traverseAnyAs<sh::TIntermBlock>(sh::TIntermNode&) + 33 (IntermRebuild.cpp:233)
10  libANGLE-shared.dylib         	0x00000007f5e1e47c sh::TIntermRebuild::traverseFunctionDefinitionChildren(sh::TIntermFunctionDefinition&) + 796 (IntermRebuild.cpp:736)
11  libANGLE-shared.dylib         	0x00000007f5e1c2a7 sh::TIntermRebuild::traverseChildren(sh::NodeType, sh::TIntermNode const&, sh::TIntermNode&, sh::TIntermRebuild::VisitBits) + 999 (IntermRebuild.cpp:434)
12  libANGLE-shared.dylib         	0x00000007f5e1b15e sh::TIntermRebuild::traverseAny(sh::TIntermNode&) + 494 (IntermRebuild.cpp:322)
13  libANGLE-shared.dylib         	0x00000007f5e1b4d9 sh::TIntermRebuild::traverseAggregateBaseChildren(sh::TIntermAggregateBase&) + 761 (IntermRebuild.cpp:266)
14  libANGLE-shared.dylib         	0x00000007f5e1e5c6 sh::TIntermRebuild::traverseBlockChildren(sh::TIntermBlock&) + 38 (IntermRebuild.cpp:532)
15  libANGLE-shared.dylib         	0x00000007f5e1c305 sh::TIntermRebuild::traverseChildren(sh::NodeType, sh::TIntermNode const&, sh::TIntermNode&, sh::TIntermRebuild::VisitBits) + 1093 (IntermRebuild.cpp:438)
16  libANGLE-shared.dylib         	0x00000007f5e1b15e sh::TIntermRebuild::traverseAny(sh::TIntermNode&) + 494 (IntermRebuild.cpp:322)
17  libANGLE-shared.dylib         	0x00000007f5e1f151 sh::TIntermBlock* sh::TIntermRebuild::traverseAnyAs<sh::TIntermBlock>(sh::TIntermNode&) + 33 (IntermRebuild.cpp:233)
18  libANGLE-shared.dylib         	0x00000007f5e1ae00 bool sh::TIntermRebuild::rebuildInPlaceImpl<sh::TIntermBlock>(sh::TIntermBlock&) + 32 (IntermRebuild.cpp:209)
19  libANGLE-shared.dylib         	0x00000007f5e1ad0d sh::TIntermRebuild::rebuildInPlace(sh::TIntermBlock&) + 29 (IntermRebuild.cpp:198)
20  libANGLE-shared.dylib         	0x00000007f5e1acb4 sh::TIntermRebuild::rebuildRoot(sh::TIntermBlock&) + 36 (IntermRebuild.cpp:184)
21  libANGLE-shared.dylib         	0x00000007f6118df4 sh::SeparateCompoundExpressions(sh::TCompiler&, sh::SymbolEnv&, sh::IdGen&, sh::TIntermBlock&) + 260 (SeparateCompoundExpressions.cpp:649)
22  libANGLE-shared.dylib         	0x00000007f622fe85 sh::TranslatorMetalDirect::translateImpl(sh::TIntermBlock&, unsigned long long) + 6149 (TranslatorMetalDirect.cpp:1475)
23  libANGLE-shared.dylib         	0x00000007f6232c0c sh::TranslatorMetalDirect::translate(sh::TIntermBlock*, unsigned long long, sh::PerformanceDiagnostics*) + 316 (TranslatorMetalDirect.cpp:1552)
24  libANGLE-shared.dylib         	0x00000007f5a70efe sh::TCompiler::compile(char const* const*, unsigned long, unsigned long long) + 286 (Compiler.cpp:981)
25  libANGLE-shared.dylib         	0x00000007f61492a4 sh::Compile(void*, char const* const*, unsigned long, unsigned long long) + 340 (ShaderLang.cpp:336)
26  libANGLE-shared.dylib         	0x00000007f614716a rx::TranslateTask::operator()() + 266 (ShaderImpl.cpp:52)
27  libANGLE-shared.dylib         	0x00000007f62f4f3f angle::SingleThreadedWorkerPool::postWorkerTask(std::__1::shared_ptr<angle::Closure>) + 47 (WorkerThread.cpp:68)
28  libANGLE-shared.dylib         	0x00000007f62f62a4 angle::WorkerThreadPool::PostWorkerTask(std::__1::shared_ptr<angle::WorkerThreadPool>, std::__1::shared_ptr<angle::Closure>) + 84 (WorkerThread.cpp:348)
29  libANGLE-shared.dylib         	0x00000007f614c5c7 rx::ShaderMtl::compileImplMtl(gl::Context const*, gl::ShCompilerInstance*, std::__1::basic_string<char, std::__1::char_traits<char>, std::__1::allocator<char> > const&, unsigned long long) + 263 (ShaderMtl.mm:97)
30  libANGLE-shared.dylib         	0x00000007f614ca70 rx::ShaderMtl::compile(gl::Context const*, gl::ShCompilerInstance*, unsigned long long) + 464 (ShaderMtl.mm:140)
31  libANGLE-shared.dylib         	0x00000007f612ea3f gl::Shader::compile(gl::Context const*) + 1663 (Shader.cpp:367)
32  libANGLE-shared.dylib         	0x00000007f5aaec19 gl::Context::compileShader(gl::ShaderProgramID) + 73 (Context.cpp:6183)
33  libANGLE-shared.dylib         	0x00000007f5c03a96 gl::CompileShader(unsigned int) + 134 (entry_points_gles_2_0_autogen.cpp:541)
34  com.apple.WebCore             	0x00000007d0d64794 WebCore::GraphicsContextGLOpenGL::compileShader(unsigned int) + 148 (GraphicsContextGLANGLE.cpp:917)
35  com.apple.WebCore             	0x00000007d40682de WebCore::WebGLRenderingContextBase::compileShader(WebCore::WebGLShader&) + 126 (WebGLRenderingContextBase.cpp:1752)
36  com.apple.WebCore             	0x00000007d22555c2 WebCore::jsWebGLRenderingContextPrototypeFunction_compileShaderBody(JSC::JSGlobalObject*, JSC::CallFrame*, WebCore::JSWebGLRenderingContext*)::'lambda'()::operator()() const + 34 (JSWebGLRenderingContext.cpp:5015)
37  com.apple.WebCore             	0x00000007d225542d JSC::JSValue WebCore::toJS<WebCore::IDLUndefined, WebCore::jsWebGLRenderingContextPrototypeFunction_compileShaderBody(JSC::JSGlobalObject*, JSC::CallFrame*, WebCore::JSWebGLRenderingContext*)::'lambda'()>(JSC::JSGlobalObject&, JSC::ThrowScope&, WebCore::jsWebGLRenderingContextPrototypeFunction_compileShaderBody(JSC::JSGlobalObject*, JSC::CallFrame*, WebCore::JSWebGLRenderingContext*)::'lambda'()&&) + 29 (JSDOMConvertBase.h:165)
38  com.apple.WebCore             	0x00000007d225534c WebCore::jsWebGLRenderingContextPrototypeFunction_compileShaderBody(JSC::JSGlobalObject*, JSC::CallFrame*, WebCore::JSWebGLRenderingContext*) + 812 (JSWebGLRenderingContext.cpp:5015)
39  com.apple.WebCore             	0x00000007d2254fec long long WebCore::IDLOperation<WebCore::JSWebGLRenderingContext>::call<&(WebCore::jsWebGLRenderingContextPrototypeFunction_compileShaderBody(JSC::JSGlobalObject*, JSC::CallFrame*, WebCore::JSWebGLRenderingContext*)), (WebCore::CastedThisErrorBehavior)0>(JSC::JSGlobalObject&, JSC::CallFrame&, char const*) + 700 (JSDOMOperation.h:55)
40  com.apple.WebCore             	0x00000007d22478c4 WebCore::jsWebGLRenderingContextPrototypeFunction_compileShader(JSC::JSGlobalObject*, JSC::CallFrame*) + 36 (JSWebGLRenderingContext.cpp:5020)
41  ???                           	0x0000438e90a011d8 0 + 74279590826456
42  com.apple.JavaScriptCore      	0x00000007ee777a45 llint_entry + 138563 (LowLevelInterpreter.asm:1093)
43  com.apple.JavaScriptCore      	0x00000007ee777a45 llint_entry + 138563 (LowLevelInterpreter.asm:1093)
44  com.apple.JavaScriptCore      	0x00000007ee777a45 llint_entry + 138563 (LowLevelInterpreter.asm:1093)
45  com.apple.JavaScriptCore      	0x00000007ee755a10 vmEntryToJavaScript + 289 (LowLevelInterpreter64.asm:316)
46  com.apple.JavaScriptCore      	0x00000007ef618e3b JSC::JITCode::execute(JSC::VM*, JSC::ProtoCallFrame*) + 235 (JITCodeInlines.h:42)
47  com.apple.JavaScriptCore      	0x00000007ef6195f7 JSC::Interpreter::executeCall(JSC::JSGlobalObject*, JSC::JSObject*, JSC::CallData const&, JSC::JSValue, JSC::ArgList const&) + 1815 (Interpreter.cpp:907)
48  com.apple.JavaScriptCore      	0x00000007ef9878ad JSC::call(JSC::JSGlobalObject*, JSC::JSValue, JSC::CallData const&, JSC::JSValue, JSC::ArgList const&) + 221 (CallData.cpp:57)
49  com.apple.JavaScriptCore      	0x00000007ef98798f JSC::call(JSC::JSGlobalObject*, JSC::JSValue, JSC::CallData const&, JSC::JSValue, JSC::ArgList const&, WTF::NakedPtr<JSC::Exception>&) + 207 (CallData.cpp:64)
50  com.apple.JavaScriptCore      	0x00000007ef987c72 JSC::profiledCall(JSC::JSGlobalObject*, JSC::ProfilingReason, JSC::JSValue, JSC::CallData const&, JSC::JSValue, JSC::ArgList const&, WTF::NakedPtr<JSC::Exception>&) + 130 (CallData.cpp:85)
51  com.apple.WebCore             	0x00000007d3335cae WebCore::JSExecState::profiledCall(JSC::JSGlobalObject*, JSC::ProfilingReason, JSC::JSValue, JSC::CallData const&, JSC::JSValue, JSC::ArgList const&, WTF::NakedPtr<JSC::Exception>&) + 110 (JSExecState.h:73)
52  com.apple.WebCore             	0x00000007d3353c2b WebCore::JSEventListener::handleEvent(WebCore::ScriptExecutionContext&, WebCore::Event&) + 2171 (JSEventListener.cpp:186)
53  com.apple.WebCore             	0x00000007d3a79147 WebCore::EventTarget::innerInvokeEventListeners(WebCore::Event&, WTF::Vector<WTF::RefPtr<WebCore::RegisteredEventListener, WTF::RawPtrTraits<WebCore::RegisteredEventListener>, WTF::DefaultRefDerefTraits<WebCore::RegisteredEventListener> >, 1ul, WTF::CrashOnOverflow, 16ul, WTF::FastMalloc>, WebCore::EventTarget::EventInvokePhase) + 1063 (EventTarget.cpp:344)
54  com.apple.WebCore             	0x00000007d3a78ba4 WebCore::EventTarget::fireEventListeners(WebCore::Event&, WebCore::EventTarget::EventInvokePhase) + 356 (EventTarget.cpp:276)
55  com.apple.WebCore             	0x00000007d3a78a25 WebCore::EventTarget::dispatchEvent(WebCore::Event&) + 357 (EventTarget.cpp:234)
56  com.apple.WebCore             	0x00000007d59d896b WebCore::XMLHttpRequest::dispatchEvent(WebCore::Event&) + 347 (XMLHttpRequest.cpp:1079)
57  com.apple.WebCore             	0x00000007d59d9312 WebCore::XMLHttpRequestProgressEventThrottle::dispatchEventWhenPossible(WebCore::Event&) + 114 (XMLHttpRequestProgressEventThrottle.cpp:86)
58  com.apple.WebCore             	0x00000007d59d2c1b WebCore::XMLHttpRequestProgressEventThrottle::dispatchReadyStateChangeEvent(WebCore::Event&, WebCore::ProgressEventAction) + 59 (XMLHttpRequestProgressEventThrottle.cpp:78)
59  com.apple.WebCore             	0x00000007d59d2b5c WebCore::XMLHttpRequest::callReadyStateChangeListener() + 284 (XMLHttpRequest.cpp:313)
60  com.apple.WebCore             	0x00000007d59d2906 WebCore::XMLHttpRequest::changeState(WebCore::XMLHttpRequest::State) + 246 (XMLHttpRequest.cpp:300)
61  com.apple.WebCore             	0x00000007d59d79cf WebCore::XMLHttpRequest::didFinishLoading(unsigned long) + 287 (XMLHttpRequest.cpp:928)
62  com.apple.WebCore             	0x00000007d44ff463 WebCore::DocumentThreadableLoader::didFinishLoading(unsigned long) + 1043 (DocumentThreadableLoader.cpp:496)
63  com.apple.WebCore             	0x00000007d44fee5f WebCore::DocumentThreadableLoader::notifyFinished(WebCore::CachedResource&, WebCore::NetworkLoadMetrics const&) + 383 (DocumentThreadableLoader.cpp:468)
64  com.apple.WebCore             	0x00000007d46377ba WebCore::CachedResource::checkNotify(WebCore::NetworkLoadMetrics const&) + 138 (CachedResource.cpp:379)
65  com.apple.WebCore             	0x00000007d46332ac WebCore::CachedResource::finishLoading(WebCore::SharedBuffer*, WebCore::NetworkLoadMetrics const&) + 60 (CachedResource.cpp:395)
66  com.apple.WebCore             	0x00000007d463482c WebCore::CachedRawResource::finishLoading(WebCore::SharedBuffer*, WebCore::NetworkLoadMetrics const&) + 332 (CachedRawResource.cpp:123)
67  com.apple.WebCore             	0x00000007d45badb4 WebCore::SubresourceLoader::didFinishLoading(WebCore::NetworkLoadMetrics const&) + 1684 (SubresourceLoader.cpp:736)
68  com.apple.WebKit              	0x00000007c1d7d64a WebKit::WebResourceLoader::didFinishResourceLoad(WebCore::NetworkLoadMetrics const&) + 778 (WebResourceLoader.cpp:227)
69  com.apple.WebKit              	0x00000007c2378e30 void IPC::callMemberFunctionImpl<WebKit::WebResourceLoader, void (WebKit::WebResourceLoader::*)(WebCore::NetworkLoadMetrics const&), std::__1::tuple<WebCore::NetworkLoadMetrics>, 0ul>(WebKit::WebResourceLoader*, void (WebKit::WebResourceLoader::*)(WebCore::NetworkLoadMetrics const&), std::__1::tuple<WebCore::NetworkLoadMetrics>&&, std::__1::integer_sequence<unsigned long, 0ul>) + 160 (HandleMessage.h:43)
70  com.apple.WebKit              	0x00000007c2378d80 void IPC::callMemberFunction<WebKit::WebResourceLoader, void (WebKit::WebResourceLoader::*)(WebCore::NetworkLoadMetrics const&), std::__1::tuple<WebCore::NetworkLoadMetrics>, std::__1::integer_sequence<unsigned long, 0ul> >(std::__1::tuple<WebCore::NetworkLoadMetrics>&&, WebKit::WebResourceLoader*, void (WebKit::WebResourceLoader::*)(WebCore::NetworkLoadMetrics const&)) + 112 (HandleMessage.h:49)
71  com.apple.WebKit              	0x00000007c2376b2e void IPC::handleMessage<Messages::WebResourceLoader::DidFinishResourceLoad, WebKit::WebResourceLoader, void (WebKit::WebResourceLoader::*)(WebCore::NetworkLoadMetrics const&)>(IPC::Decoder&, WebKit::WebResourceLoader*, void (WebKit::WebResourceLoader::*)(WebCore::NetworkLoadMetrics const&)) + 190 (HandleMessage.h:121)
72  com.apple.WebKit              	0x00000007c237649e WebKit::WebResourceLoader::didReceiveWebResourceLoaderMessage(IPC::Connection&, IPC::Decoder&) + 494 (WebResourceLoaderMessageReceiver.cpp:56)
73  com.apple.WebKit              	0x00000007c1d3e930 WebKit::NetworkProcessConnection::didReceiveMessage(IPC::Connection&, IPC::Decoder&) + 144 (NetworkProcessConnection.cpp:94)
74  com.apple.WebKit              	0x00000007c0084024 IPC::Connection::dispatchMessage(IPC::Decoder&) + 516 (Connection.cpp:1020)
75  com.apple.WebKit              	0x00000007c00847ec IPC::Connection::dispatchMessage(std::__1::unique_ptr<IPC::Decoder, std::__1::default_delete<IPC::Decoder> >) + 636 (Connection.cpp:1065)
76  com.apple.WebKit              	0x00000007c0084e10 IPC::Connection::dispatchOneIncomingMessage() + 208 (Connection.cpp:1134)
77  com.apple.WebKit              	0x00000007c00a3368 IPC::Connection::enqueueIncomingMessage(std::__1::unique_ptr<IPC::Decoder, std::__1::default_delete<IPC::Decoder> >)::$_9::operator()() + 88 (Connection.cpp:989)
78  com.apple.WebKit              	0x00000007c00a325e WTF::Detail::CallableWrapper<IPC::Connection::enqueueIncomingMessage(std::__1::unique_ptr<IPC::Decoder, std::__1::default_delete<IPC::Decoder> >)::$_9, void>::call() + 30 (Function.h:52)
79  com.apple.JavaScriptCore      	0x00000007ee1aec62 WTF::Function<void ()>::operator()() const + 130 (Function.h:83)
80  com.apple.JavaScriptCore      	0x00000007ee226de5 WTF::RunLoop::performWork() + 341 (RunLoop.cpp:133)
81  com.apple.JavaScriptCore      	0x00000007ee22a761 WTF::RunLoop::performWork(void*) + 33 (RunLoopCF.cpp:46)
82  com.apple.CoreFoundation      	0x00007fff2045be2c __CFRUNLOOP_IS_CALLING_OUT_TO_A_SOURCE0_PERFORM_FUNCTION__ + 17
83  com.apple.CoreFoundation      	0x00007fff2045bd94 __CFRunLoopDoSource0 + 180
84  com.apple.CoreFoundation      	0x00007fff2045bb14 __CFRunLoopDoSources0 + 242
85  com.apple.CoreFoundation      	0x00007fff2045a53c __CFRunLoopRun + 893
86  com.apple.CoreFoundation      	0x00007fff20459afc CFRunLoopRunSpecific + 563
87  com.apple.Foundation          	0x00007fff211e3bb7 -[NSRunLoop(NSRunLoop) runMode:beforeDate:] + 212
88  com.apple.Foundation          	0x00007fff21271a81 -[NSRunLoop(NSRunLoop) run] + 76
89  libxpc.dylib                  	0x00007fff200b138d _xpc_objc_main + 825
90  libxpc.dylib                  	0x00007fff200b0cd3 xpc_main + 116
91  com.apple.WebKit              	0x00000007c0d628e1 WebKit::XPCServiceMain(int, char const**) + 1025 (XPCServiceMain.mm:209)
92  com.apple.WebKit              	0x00000007c2404c6b WKXPCServiceMain + 27 (WKMain.mm:33)
93  com.apple.WebKit.WebContent   	0x0000000104b6aea2 main + 34 (AuxiliaryProcessMain.cpp:30)
94  libdyld.dylib                 	0x00007fff2037df3d start + 1
Comment 1 Kimmo Kinnunen 2021-03-31 02:38:51 PDT
Apparently the test is missing from repo until bug 223934
Comment 2 Kimmo Kinnunen 2021-03-31 02:39:59 PDT
Meant to write bug 223988
Comment 3 Radar WebKit Bug Importer 2021-04-06 04:41:12 PDT
<rdar://problem/76262070>