Bug 184829 - The NaturalLoops algorithm only works when the list of blocks in a loop is de-duplicated
Summary: The NaturalLoops algorithm only works when the list of blocks in a loop is de...
Status: RESOLVED FIXED
Alias: None
Product: WebKit
Classification: Unclassified
Component: WebAssembly (show other bugs)
Version: Safari Technology Preview
Hardware: Mac macOS 10.13
: P2 Normal
Assignee: Saam Barati
URL:
Keywords: InRadar
: 184830 (view as bug list)
Depends on:
Blocks:
 
Reported: 2018-04-20 10:54 PDT by Rodrigo Kumpera
Modified: 2018-07-31 15:55 PDT (History)
16 users (show)

See Also:


Attachments
Crash report from iOS 12 beta 1 (88.87 KB, text/plain)
2018-06-08 15:52 PDT, Rolf Bjarne Kvinge
no flags Details
Symbolicated crash report from iOS 12 beta 1 (107.19 KB, text/plain)
2018-06-08 15:58 PDT, Rolf Bjarne Kvinge
no flags Details
WIP (8.64 KB, patch)
2018-06-11 01:02 PDT, Saam Barati
no flags Details | Formatted Diff | Diff
patch (10.20 KB, patch)
2018-06-11 17:53 PDT, Saam Barati
no flags Details | Formatted Diff | Diff
Archive of layout-test-results from ews121 for ios-simulator-wk2 (24.92 MB, application/zip)
2018-06-11 19:52 PDT, EWS Watchlist
no flags Details

Note You need to log in before you can comment on or make changes to this bug.
Description Rodrigo Kumpera 2018-04-20 10:54:32 PDT
With Safari Tech Preview Release 54 (Safari 11.2, WebKit 13606.1.13.2)

This page crashes the browser in all sorts of places (crash logs not particularly useful): https://learningblazor.azurewebsites.net

It works with Safari 11.0.3 (13604.5.6).
Comment 1 Saam Barati 2018-04-20 14:49:44 PDT
(In reply to Rodrigo Kumpera from comment #0)
> With Safari Tech Preview Release 54 (Safari 11.2, WebKit 13606.1.13.2)
> 
> This page crashes the browser in all sorts of places (crash logs not
> particularly useful): https://learningblazor.azurewebsites.net
> 
> It works with Safari 11.0.3 (13604.5.6).

Hi Rodrigo,

Can you explain what this web page is? It'd be helpful if this bug had a title different than "crash". It'd also be helpful to attach the crashlog even if it doesn't seem useful to you.

Thanks.
Comment 2 Saam Barati 2018-04-20 15:16:49 PDT
Time Awake Since Boot: 25000 seconds
Time Since Wake:       11000 seconds

System Integrity Protection: enabled

Crashed Thread:        19  WTF::AutomaticThread

Exception Type:        EXC_BREAKPOINT (SIGTRAP)
Exception Codes:       0x0000000000000002, 0x0000000000000000
Exception Note:        EXC_CORPSE_NOTIFY

Termination Signal:    Trace/BPT trap: 5
Termination Reason:    Namespace SIGNAL, Code 0x5
Terminating Process:   exc handler [0]

Thread 0:: Dispatch queue: com.apple.main-thread
0   ???                           	0x0000043a86fa84ef 0 + 4649419179247
1   ???                           	0x0000043a86f6045c 0 + 4649418884188
2   ???                           	0x0000043a86b9f460 0 + 4649414947936
3   ???                           	0x0000043a86d64a9c 0 + 4649416805020
4   ???                           	0x0000043a86d64804 0 + 4649416804356
5   ???                           	0x0000043a86c0d14c 0 + 4649415397708
6   ???                           	0x0000043a86d8fcfc 0 + 4649416981756
7   ???                           	0x0000043a86c0d184 0 + 4649415397764
8   ???                           	0x0000043a86b9d264 0 + 4649414939236
9   ???                           	0x0000043a86bdd720 0 + 4649415202592
10  ???                           	0x0000043a86ddd164 0 + 4649417298276
11  ???                           	0x0000043a86de0430 0 + 4649417311280
12  ???                           	0x0000043a86f59228 0 + 4649418854952
13  ???                           	0x0000043a86d887ac 0 + 4649416951724
14  ???                           	0x0000043a86d8889c 0 + 4649416951964
15  com.apple.JavaScriptCore      	0x0000000252f2017a vmEntryToJavaScript + 304
16  com.apple.JavaScriptCore      	0x000000025394bdc9 JSC::callWebAssemblyFunction(JSC::ExecState*) + 3353
17  ???                           	0x0000043a86b5c185 0 + 4649414672773
18  com.apple.JavaScriptCore      	0x0000000252f27f16 llint_entry + 31668
19  com.apple.JavaScriptCore      	0x0000000252f27f16 llint_entry + 31668
20  com.apple.JavaScriptCore      	0x0000000252f27ab6 llint_entry + 30548
21  com.apple.JavaScriptCore      	0x0000000252f27ab6 llint_entry + 30548
22  com.apple.JavaScriptCore      	0x0000000252f27ab6 llint_entry + 30548
23  com.apple.JavaScriptCore      	0x0000000252f27ab6 llint_entry + 30548
24  com.apple.JavaScriptCore      	0x0000000252f27ab6 llint_entry + 30548
25  com.apple.JavaScriptCore      	0x0000000252f27ab6 llint_entry + 30548
26  com.apple.JavaScriptCore      	0x0000000252f27a37 llint_entry + 30421
27  com.apple.JavaScriptCore      	0x0000000252f27a37 llint_entry + 30421
28  com.apple.JavaScriptCore      	0x0000000252f27a37 llint_entry + 30421
29  com.apple.JavaScriptCore      	0x0000000252f27ab6 llint_entry + 30548
30  com.apple.JavaScriptCore      	0x0000000252f27ab6 llint_entry + 30548
31  com.apple.JavaScriptCore      	0x0000000252f27ab6 llint_entry + 30548
32  com.apple.JavaScriptCore      	0x0000000252f2017a vmEntryToJavaScript + 304
33  com.apple.JavaScriptCore      	0x00000002535cd779 JSC::JITCode::execute(JSC::VM*, JSC::ProtoCallFrame*) + 89
34  com.apple.JavaScriptCore      	0x0000000252d56594 JSC::Interpreter::executeCall(JSC::ExecState*, JSC::JSObject*, JSC::CallType, JSC::CallData const&, JSC::JSValue, JSC::ArgList const&) + 548
35  com.apple.JavaScriptCore      	0x000000025372d1d5 JSC::profiledCall(JSC::ExecState*, JSC::ProfilingReason, JSC::JSValue, JSC::CallType, JSC::CallData const&, JSC::JSValue, JSC::ArgList const&, WTF::NakedPtr<JSC::Exception>&) + 165
36  com.apple.WebCore             	0x0000000250aeaef0 WebCore::JSEventListener::handleEvent(WebCore::ScriptExecutionContext&, WebCore::Event&) + 1216
37  com.apple.WebCore             	0x0000000250d216a1 WebCore::EventTarget::fireEventListeners(WebCore::Event&, WTF::Vector<WTF::RefPtr<WebCore::RegisteredEventListener, WTF::DumbPtrTraits<WebCore::RegisteredEventListener> >, 1ul, WTF::CrashOnOverflow, 16ul, WTF::FastMalloc>) + 801
38  com.apple.WebCore             	0x0000000250d1e0ed WebCore::EventTarget::fireEventListeners(WebCore::Event&) + 525
39  com.apple.WebCore             	0x0000000250d2136c WebCore::EventTarget::dispatchEvent(WebCore::Event&) + 108
40  com.apple.WebCore             	0x0000000251559e14 WebCore::XMLHttpRequestProgressEventThrottle::dispatchProgressEvent(WTF::AtomicString const&) + 164
41  com.apple.WebCore             	0x00000002500aeb15 WebCore::XMLHttpRequest::callReadyStateChangeListener() + 229
42  com.apple.WebCore             	0x000000025155c91a WebCore::XMLHttpRequest::didFinishLoading(unsigned long) + 202
43  com.apple.WebCore             	0x0000000250fc910f WebCore::DocumentThreadableLoader::didFinishLoading(unsigned long) + 415
44  com.apple.WebCore             	0x00000002500774fd WebCore::CachedResource::checkNotify() + 205
45  com.apple.WebCore             	0x0000000251028e59 WebCore::CachedRawResource::finishLoading(WebCore::SharedBuffer*) + 409
46  com.apple.WebCore             	0x00000002510043ff WebCore::SubresourceLoader::didFinishLoading(WebCore::NetworkLoadMetrics const&) + 1199
47  com.apple.WebKit              	0x0000000102445c1a WebKit::WebResourceLoader::didFinishResourceLoad(WebCore::NetworkLoadMetrics const&) + 220
48  com.apple.WebKit              	0x000000010244690e void IPC::handleMessage<Messages::WebResourceLoader::DidFinishResourceLoad, WebKit::WebResourceLoader, void (WebKit::WebResourceLoader::*)(WebCore::NetworkLoadMetrics const&)>(IPC::Decoder&, WebKit::WebResourceLoader*, void (WebKit::WebResourceLoader::*)(WebCore::NetworkLoadMetrics const&)) + 93
49  com.apple.WebKit              	0x0000000102241215 WebKit::NetworkProcessConnection::didReceiveMessage(IPC::Connection&, IPC::Decoder&) + 455
50  com.apple.WebKit              	0x00000001021b9ec9 IPC::Connection::dispatchMessage(std::__1::unique_ptr<IPC::Decoder, std::__1::default_delete<IPC::Decoder> >) + 119
51  com.apple.WebKit              	0x00000001021bca20 IPC::Connection::dispatchOneMessage() + 176
52  com.apple.JavaScriptCore      	0x0000000252f002fc WTF::RunLoop::performWork() + 236
53  com.apple.JavaScriptCore      	0x0000000252f00592 WTF::RunLoop::performWork(void*) + 34
54  com.apple.CoreFoundation      	0x00007fff35cf5a61 __CFRUNLOOP_IS_CALLING_OUT_TO_A_SOURCE0_PERFORM_FUNCTION__ + 17
55  com.apple.CoreFoundation      	0x00007fff35daf47c __CFRunLoopDoSource0 + 108
56  com.apple.CoreFoundation      	0x00007fff35cd84c0 __CFRunLoopDoSources0 + 208
57  com.apple.CoreFoundation      	0x00007fff35cd793d __CFRunLoopRun + 1293
58  com.apple.CoreFoundation      	0x00007fff35cd71a3 CFRunLoopRunSpecific + 483
59  com.apple.HIToolbox           	0x00007fff34fbfd96 RunCurrentEventLoopInMode + 286
60  com.apple.HIToolbox           	0x00007fff34fbfb06 ReceiveNextEventCommon + 613
61  com.apple.HIToolbox           	0x00007fff34fbf884 _BlockUntilNextEventMatchingListInModeWithFilter + 64
62  com.apple.AppKit              	0x00007fff33272a73 _DPSNextEvent + 2085
63  com.apple.AppKit              	0x00007fff33a08e34 -[NSApplication(NSEvent) _nextEventMatchingEventMask:untilDate:inMode:dequeue:] + 3044
64  com.apple.AppKit              	0x00007fff33267885 -[NSApplication run] + 764
65  com.apple.AppKit              	0x00007fff33236a72 NSApplicationMain + 804
66  libxpc.dylib                  	0x00007fff5e4c3f57 _xpc_objc_main + 580
67  libxpc.dylib                  	0x00007fff5e4c2baa xpc_main + 417
68  com.apple.WebKit.WebContent   	0x00000001021016a1 0x102100000 + 5793
69  libdyld.dylib                 	0x00007fff5e169015 start + 1

Thread 1:
0   libsystem_kernel.dylib        	0x00007fff5e2ba292 __workq_kernreturn + 10
1   libsystem_pthread.dylib       	0x00007fff5e481009 _pthread_wqthread + 1035
2   libsystem_pthread.dylib       	0x00007fff5e480be9 start_wqthread + 13

Thread 2:
0   libsystem_kernel.dylib        	0x00007fff5e2ba292 __workq_kernreturn + 10
1   libsystem_pthread.dylib       	0x00007fff5e481009 _pthread_wqthread + 1035
2   libsystem_pthread.dylib       	0x00007fff5e480be9 start_wqthread + 13

Thread 3:
0   libsystem_kernel.dylib        	0x00007fff5e2ba292 __workq_kernreturn + 10
1   libsystem_pthread.dylib       	0x00007fff5e481009 _pthread_wqthread + 1035
2   libsystem_pthread.dylib       	0x00007fff5e480be9 start_wqthread + 13

Thread 4:
0   libsystem_kernel.dylib        	0x00007fff5e2ba292 __workq_kernreturn + 10
1   libsystem_pthread.dylib       	0x00007fff5e481009 _pthread_wqthread + 1035
2   libsystem_pthread.dylib       	0x00007fff5e480be9 start_wqthread + 13

Thread 5:: com.apple.NSEventThread
0   libsystem_kernel.dylib        	0x00007fff5e2b020a mach_msg_trap + 10
1   libsystem_kernel.dylib        	0x00007fff5e2af724 mach_msg + 60
2   com.apple.CoreFoundation      	0x00007fff35cd87d5 __CFRunLoopServiceMachPort + 341
3   com.apple.CoreFoundation      	0x00007fff35cd7b27 __CFRunLoopRun + 1783
4   com.apple.CoreFoundation      	0x00007fff35cd71a3 CFRunLoopRunSpecific + 483
5   com.apple.AppKit              	0x00007fff333affc4 _NSEventThread + 184
6   libsystem_pthread.dylib       	0x00007fff5e481661 _pthread_body + 340
7   libsystem_pthread.dylib       	0x00007fff5e48150d _pthread_start + 377
8   libsystem_pthread.dylib       	0x00007fff5e480bf9 thread_start + 13

Thread 6:
0   libsystem_kernel.dylib        	0x00007fff5e2b9a1e __psynch_cvwait + 10
1   libsystem_pthread.dylib       	0x00007fff5e482589 _pthread_cond_wait + 732
2   libc++.1.dylib                	0x00007fff5c0c7d43 std::__1::condition_variable::__do_timed_wait(std::__1::unique_lock<std::__1::mutex>&, std::__1::chrono::time_point<std::__1::chrono::system_clock, std::__1::chrono::duration<long long, std::__1::ratio<1l, 1000000000l> > >) + 93
3   com.apple.JavaScriptCore      	0x0000000252f16245 std::__1::cv_status std::__1::condition_variable::wait_until<std::__1::chrono::steady_clock, std::__1::chrono::duration<long long, std::__1::ratio<1l, 1000000000l> > >(std::__1::unique_lock<std::__1::mutex>&, std::__1::chrono::time_point<std::__1::chrono::steady_clock, std::__1::chrono::duration<long long, std::__1::ratio<1l, 1000000000l> > > const&) + 117
4   com.apple.JavaScriptCore      	0x0000000252f16130 std::__1::cv_status std::__1::condition_variable_any::wait_until<std::__1::unique_lock<bmalloc::Mutex>, std::__1::chrono::steady_clock, std::__1::chrono::duration<long long, std::__1::ratio<1l, 1000000000l> > >(std::__1::unique_lock<bmalloc::Mutex>&, std::__1::chrono::time_point<std::__1::chrono::steady_clock, std::__1::chrono::duration<long long, std::__1::ratio<1l, 1000000000l> > > const&) + 96
5   com.apple.JavaScriptCore      	0x0000000252f15b89 bmalloc::Scavenger::threadRunLoop() + 361
6   com.apple.JavaScriptCore      	0x0000000252f15919 bmalloc::Scavenger::threadEntryPoint(bmalloc::Scavenger*) + 9
7   com.apple.JavaScriptCore      	0x0000000252f15c58 void* std::__1::__thread_proxy<std::__1::tuple<std::__1::unique_ptr<std::__1::__thread_struct, std::__1::default_delete<std::__1::__thread_struct> >, void (*)(bmalloc::Scavenger*), bmalloc::Scavenger*> >(void*) + 40
8   libsystem_pthread.dylib       	0x00007fff5e481661 _pthread_body + 340
9   libsystem_pthread.dylib       	0x00007fff5e48150d _pthread_start + 377
10  libsystem_pthread.dylib       	0x00007fff5e480bf9 thread_start + 13

Thread 7:: WebCore: Scrolling
0   libsystem_kernel.dylib        	0x00007fff5e2b020a mach_msg_trap + 10
1   libsystem_kernel.dylib        	0x00007fff5e2af724 mach_msg + 60
2   com.apple.CoreFoundation      	0x00007fff35cd87d5 __CFRunLoopServiceMachPort + 341
3   com.apple.CoreFoundation      	0x00007fff35cd7b27 __CFRunLoopRun + 1783
4   com.apple.CoreFoundation      	0x00007fff35cd71a3 CFRunLoopRunSpecific + 483
5   com.apple.CoreFoundation      	0x00007fff35d15c33 CFRunLoopRun + 99
6   com.apple.WebCore             	0x000000025004326d WebCore::ScrollingThread::initializeRunLoop() + 253
7   com.apple.JavaScriptCore      	0x0000000252f0de44 WTF::Thread::entryPoint(WTF::Thread::NewThreadContext*) + 228
8   com.apple.JavaScriptCore      	0x0000000252d1eb69 WTF::wtfThreadEntryPoint(void*) + 9
9   libsystem_pthread.dylib       	0x00007fff5e481661 _pthread_body + 340
10  libsystem_pthread.dylib       	0x00007fff5e48150d _pthread_start + 377
11  libsystem_pthread.dylib       	0x00007fff5e480bf9 thread_start + 13

Thread 8:
0   libsystem_kernel.dylib        	0x00007fff5e2ba292 __workq_kernreturn + 10
1   libsystem_pthread.dylib       	0x00007fff5e481009 _pthread_wqthread + 1035
2   libsystem_pthread.dylib       	0x00007fff5e480be9 start_wqthread + 13

Thread 9:: WTF::AutomaticThread
0   libsystem_kernel.dylib        	0x00007fff5e2b9a1e __psynch_cvwait + 10
1   libsystem_pthread.dylib       	0x00007fff5e482589 _pthread_cond_wait + 732
2   com.apple.JavaScriptCore      	0x0000000252f0fbfa WTF::ThreadCondition::timedWait(WTF::Mutex&, WTF::WallTime) + 122
3   com.apple.JavaScriptCore      	0x0000000252efcbd8 WTF::ParkingLot::parkConditionallyImpl(void const*, WTF::ScopedLambda<bool ()> const&, WTF::ScopedLambda<void ()> const&, WTF::TimeWithDynamicClockType const&) + 2728
4   com.apple.JavaScriptCore      	0x0000000252ee155a bool WTF::Condition::waitUntil<WTF::Lock>(WTF::Lock&, WTF::TimeWithDynamicClockType const&) + 154
5   com.apple.JavaScriptCore      	0x0000000252ee1725 WTF::Function<void ()>::CallableWrapper<WTF::AutomaticThread::start(WTF::AbstractLocker const&)::$_0>::call() + 165
6   com.apple.JavaScriptCore      	0x0000000252f0de44 WTF::Thread::entryPoint(WTF::Thread::NewThreadContext*) + 228
7   com.apple.JavaScriptCore      	0x0000000252d1eb69 WTF::wtfThreadEntryPoint(void*) + 9
8   libsystem_pthread.dylib       	0x00007fff5e481661 _pthread_body + 340
9   libsystem_pthread.dylib       	0x00007fff5e48150d _pthread_start + 377
10  libsystem_pthread.dylib       	0x00007fff5e480bf9 thread_start + 13

Thread 10:: WTF::AutomaticThread
0   libsystem_kernel.dylib        	0x00007fff5e2b9a1e __psynch_cvwait + 10
1   libsystem_pthread.dylib       	0x00007fff5e482589 _pthread_cond_wait + 732
2   com.apple.JavaScriptCore      	0x0000000252f0fbfa WTF::ThreadCondition::timedWait(WTF::Mutex&, WTF::WallTime) + 122
3   com.apple.JavaScriptCore      	0x0000000252efcbd8 WTF::ParkingLot::parkConditionallyImpl(void const*, WTF::ScopedLambda<bool ()> const&, WTF::ScopedLambda<void ()> const&, WTF::TimeWithDynamicClockType const&) + 2728
4   com.apple.JavaScriptCore      	0x0000000252ee155a bool WTF::Condition::waitUntil<WTF::Lock>(WTF::Lock&, WTF::TimeWithDynamicClockType const&) + 154
5   com.apple.JavaScriptCore      	0x0000000252ee1725 WTF::Function<void ()>::CallableWrapper<WTF::AutomaticThread::start(WTF::AbstractLocker const&)::$_0>::call() + 165
6   com.apple.JavaScriptCore      	0x0000000252f0de44 WTF::Thread::entryPoint(WTF::Thread::NewThreadContext*) + 228
7   com.apple.JavaScriptCore      	0x0000000252d1eb69 WTF::wtfThreadEntryPoint(void*) + 9
8   libsystem_pthread.dylib       	0x00007fff5e481661 _pthread_body + 340
9   libsystem_pthread.dylib       	0x00007fff5e48150d _pthread_start + 377
10  libsystem_pthread.dylib       	0x00007fff5e480bf9 thread_start + 13

Thread 11:: WTF::AutomaticThread
0   libsystem_kernel.dylib        	0x00007fff5e2b9a1e __psynch_cvwait + 10
1   libsystem_pthread.dylib       	0x00007fff5e482589 _pthread_cond_wait + 732
2   com.apple.JavaScriptCore      	0x0000000252f0fbfa WTF::ThreadCondition::timedWait(WTF::Mutex&, WTF::WallTime) + 122
3   com.apple.JavaScriptCore      	0x0000000252efcbd8 WTF::ParkingLot::parkConditionallyImpl(void const*, WTF::ScopedLambda<bool ()> const&, WTF::ScopedLambda<void ()> const&, WTF::TimeWithDynamicClockType const&) + 2728
4   com.apple.JavaScriptCore      	0x0000000252ee155a bool WTF::Condition::waitUntil<WTF::Lock>(WTF::Lock&, WTF::TimeWithDynamicClockType const&) + 154
5   com.apple.JavaScriptCore      	0x0000000252ee1725 WTF::Function<void ()>::CallableWrapper<WTF::AutomaticThread::start(WTF::AbstractLocker const&)::$_0>::call() + 165
6   com.apple.JavaScriptCore      	0x0000000252f0de44 WTF::Thread::entryPoint(WTF::Thread::NewThreadContext*) + 228
7   com.apple.JavaScriptCore      	0x0000000252d1eb69 WTF::wtfThreadEntryPoint(void*) + 9
8   libsystem_pthread.dylib       	0x00007fff5e481661 _pthread_body + 340
9   libsystem_pthread.dylib       	0x00007fff5e48150d _pthread_start + 377
10  libsystem_pthread.dylib       	0x00007fff5e480bf9 thread_start + 13

Thread 12:: WTF::AutomaticThread
0   libsystem_kernel.dylib        	0x00007fff5e2b9a1e __psynch_cvwait + 10
1   libsystem_pthread.dylib       	0x00007fff5e482589 _pthread_cond_wait + 732
2   com.apple.JavaScriptCore      	0x0000000252f0fbfa WTF::ThreadCondition::timedWait(WTF::Mutex&, WTF::WallTime) + 122
3   com.apple.JavaScriptCore      	0x0000000252efcbd8 WTF::ParkingLot::parkConditionallyImpl(void const*, WTF::ScopedLambda<bool ()> const&, WTF::ScopedLambda<void ()> const&, WTF::TimeWithDynamicClockType const&) + 2728
4   com.apple.JavaScriptCore      	0x0000000252ee155a bool WTF::Condition::waitUntil<WTF::Lock>(WTF::Lock&, WTF::TimeWithDynamicClockType const&) + 154
5   com.apple.JavaScriptCore      	0x0000000252ee1725 WTF::Function<void ()>::CallableWrapper<WTF::AutomaticThread::start(WTF::AbstractLocker const&)::$_0>::call() + 165
6   com.apple.JavaScriptCore      	0x0000000252f0de44 WTF::Thread::entryPoint(WTF::Thread::NewThreadContext*) + 228
7   com.apple.JavaScriptCore      	0x0000000252d1eb69 WTF::wtfThreadEntryPoint(void*) + 9
8   libsystem_pthread.dylib       	0x00007fff5e481661 _pthread_body + 340
9   libsystem_pthread.dylib       	0x00007fff5e48150d _pthread_start + 377
10  libsystem_pthread.dylib       	0x00007fff5e480bf9 thread_start + 13

Thread 13:: WTF::AutomaticThread
0   libsystem_kernel.dylib        	0x00007fff5e2b9a1e __psynch_cvwait + 10
1   libsystem_pthread.dylib       	0x00007fff5e482589 _pthread_cond_wait + 732
2   com.apple.JavaScriptCore      	0x0000000252f0fbfa WTF::ThreadCondition::timedWait(WTF::Mutex&, WTF::WallTime) + 122
3   com.apple.JavaScriptCore      	0x0000000252efcbd8 WTF::ParkingLot::parkConditionallyImpl(void const*, WTF::ScopedLambda<bool ()> const&, WTF::ScopedLambda<void ()> const&, WTF::TimeWithDynamicClockType const&) + 2728
4   com.apple.JavaScriptCore      	0x0000000252ee155a bool WTF::Condition::waitUntil<WTF::Lock>(WTF::Lock&, WTF::TimeWithDynamicClockType const&) + 154
5   com.apple.JavaScriptCore      	0x0000000252ee1725 WTF::Function<void ()>::CallableWrapper<WTF::AutomaticThread::start(WTF::AbstractLocker const&)::$_0>::call() + 165
6   com.apple.JavaScriptCore      	0x0000000252f0de44 WTF::Thread::entryPoint(WTF::Thread::NewThreadContext*) + 228
7   com.apple.JavaScriptCore      	0x0000000252d1eb69 WTF::wtfThreadEntryPoint(void*) + 9
8   libsystem_pthread.dylib       	0x00007fff5e481661 _pthread_body + 340
9   libsystem_pthread.dylib       	0x00007fff5e48150d _pthread_start + 377
10  libsystem_pthread.dylib       	0x00007fff5e480bf9 thread_start + 13

Thread 14:: WTF::AutomaticThread
0   libsystem_kernel.dylib        	0x00007fff5e2b9a1e __psynch_cvwait + 10
1   libsystem_pthread.dylib       	0x00007fff5e482589 _pthread_cond_wait + 732
2   com.apple.JavaScriptCore      	0x0000000252f0fbfa WTF::ThreadCondition::timedWait(WTF::Mutex&, WTF::WallTime) + 122
3   com.apple.JavaScriptCore      	0x0000000252efcbd8 WTF::ParkingLot::parkConditionallyImpl(void const*, WTF::ScopedLambda<bool ()> const&, WTF::ScopedLambda<void ()> const&, WTF::TimeWithDynamicClockType const&) + 2728
4   com.apple.JavaScriptCore      	0x0000000252ee155a bool WTF::Condition::waitUntil<WTF::Lock>(WTF::Lock&, WTF::TimeWithDynamicClockType const&) + 154
5   com.apple.JavaScriptCore      	0x0000000252ee1725 WTF::Function<void ()>::CallableWrapper<WTF::AutomaticThread::start(WTF::AbstractLocker const&)::$_0>::call() + 165
6   com.apple.JavaScriptCore      	0x0000000252f0de44 WTF::Thread::entryPoint(WTF::Thread::NewThreadContext*) + 228
7   com.apple.JavaScriptCore      	0x0000000252d1eb69 WTF::wtfThreadEntryPoint(void*) + 9
8   libsystem_pthread.dylib       	0x00007fff5e481661 _pthread_body + 340
9   libsystem_pthread.dylib       	0x00007fff5e48150d _pthread_start + 377
10  libsystem_pthread.dylib       	0x00007fff5e480bf9 thread_start + 13

Thread 15:: WTF::AutomaticThread
0   libsystem_kernel.dylib        	0x00007fff5e2b9a1e __psynch_cvwait + 10
1   libsystem_pthread.dylib       	0x00007fff5e482589 _pthread_cond_wait + 732
2   com.apple.JavaScriptCore      	0x0000000252f0fbfa WTF::ThreadCondition::timedWait(WTF::Mutex&, WTF::WallTime) + 122
3   com.apple.JavaScriptCore      	0x0000000252efcbd8 WTF::ParkingLot::parkConditionallyImpl(void const*, WTF::ScopedLambda<bool ()> const&, WTF::ScopedLambda<void ()> const&, WTF::TimeWithDynamicClockType const&) + 2728
4   com.apple.JavaScriptCore      	0x0000000252ee155a bool WTF::Condition::waitUntil<WTF::Lock>(WTF::Lock&, WTF::TimeWithDynamicClockType const&) + 154
5   com.apple.JavaScriptCore      	0x0000000252ee1725 WTF::Function<void ()>::CallableWrapper<WTF::AutomaticThread::start(WTF::AbstractLocker const&)::$_0>::call() + 165
6   com.apple.JavaScriptCore      	0x0000000252f0de44 WTF::Thread::entryPoint(WTF::Thread::NewThreadContext*) + 228
7   com.apple.JavaScriptCore      	0x0000000252d1eb69 WTF::wtfThreadEntryPoint(void*) + 9
8   libsystem_pthread.dylib       	0x00007fff5e481661 _pthread_body + 340
9   libsystem_pthread.dylib       	0x00007fff5e48150d _pthread_start + 377
10  libsystem_pthread.dylib       	0x00007fff5e480bf9 thread_start + 13

Thread 16:: WTF::AutomaticThread
0   libsystem_kernel.dylib        	0x00007fff5e2b9a1e __psynch_cvwait + 10
1   libsystem_pthread.dylib       	0x00007fff5e482589 _pthread_cond_wait + 732
2   com.apple.JavaScriptCore      	0x0000000252f0fbfa WTF::ThreadCondition::timedWait(WTF::Mutex&, WTF::WallTime) + 122
3   com.apple.JavaScriptCore      	0x0000000252efcbd8 WTF::ParkingLot::parkConditionallyImpl(void const*, WTF::ScopedLambda<bool ()> const&, WTF::ScopedLambda<void ()> const&, WTF::TimeWithDynamicClockType const&) + 2728
4   com.apple.JavaScriptCore      	0x0000000252ee155a bool WTF::Condition::waitUntil<WTF::Lock>(WTF::Lock&, WTF::TimeWithDynamicClockType const&) + 154
5   com.apple.JavaScriptCore      	0x0000000252ee1725 WTF::Function<void ()>::CallableWrapper<WTF::AutomaticThread::start(WTF::AbstractLocker const&)::$_0>::call() + 165
6   com.apple.JavaScriptCore      	0x0000000252f0de44 WTF::Thread::entryPoint(WTF::Thread::NewThreadContext*) + 228
7   com.apple.JavaScriptCore      	0x0000000252d1eb69 WTF::wtfThreadEntryPoint(void*) + 9
8   libsystem_pthread.dylib       	0x00007fff5e481661 _pthread_body + 340
9   libsystem_pthread.dylib       	0x00007fff5e48150d _pthread_start + 377
10  libsystem_pthread.dylib       	0x00007fff5e480bf9 thread_start + 13

Thread 17:: WTF::AutomaticThread
0   libsystem_kernel.dylib        	0x00007fff5e2b9a1e __psynch_cvwait + 10
1   libsystem_pthread.dylib       	0x00007fff5e482589 _pthread_cond_wait + 732
2   com.apple.JavaScriptCore      	0x0000000252f0fbfa WTF::ThreadCondition::timedWait(WTF::Mutex&, WTF::WallTime) + 122
3   com.apple.JavaScriptCore      	0x0000000252efcbd8 WTF::ParkingLot::parkConditionallyImpl(void const*, WTF::ScopedLambda<bool ()> const&, WTF::ScopedLambda<void ()> const&, WTF::TimeWithDynamicClockType const&) + 2728
4   com.apple.JavaScriptCore      	0x0000000252ee155a bool WTF::Condition::waitUntil<WTF::Lock>(WTF::Lock&, WTF::TimeWithDynamicClockType const&) + 154
5   com.apple.JavaScriptCore      	0x0000000252ee1725 WTF::Function<void ()>::CallableWrapper<WTF::AutomaticThread::start(WTF::AbstractLocker const&)::$_0>::call() + 165
6   com.apple.JavaScriptCore      	0x0000000252f0de44 WTF::Thread::entryPoint(WTF::Thread::NewThreadContext*) + 228
7   com.apple.JavaScriptCore      	0x0000000252d1eb69 WTF::wtfThreadEntryPoint(void*) + 9
8   libsystem_pthread.dylib       	0x00007fff5e481661 _pthread_body + 340
9   libsystem_pthread.dylib       	0x00007fff5e48150d _pthread_start + 377
10  libsystem_pthread.dylib       	0x00007fff5e480bf9 thread_start + 13

Thread 18:: WTF::AutomaticThread
0   com.apple.JavaScriptCore      	0x0000000252febfe5 JSC::B3::Value::key() const + 373
1   com.apple.JavaScriptCore      	0x0000000252f886fb JSC::B3::moveConstants(JSC::B3::Procedure&) + 6363
2   com.apple.JavaScriptCore      	0x0000000252f7e117 JSC::B3::generateToAir(JSC::B3::Procedure&) + 311
3   com.apple.JavaScriptCore      	0x0000000252f7dfb9 JSC::B3::prepareForGeneration(JSC::B3::Procedure&) + 41
4   com.apple.JavaScriptCore      	0x00000002538dd30f JSC::Wasm::parseAndCompile(JSC::Wasm::CompilationContext&, unsigned char const*, unsigned long, JSC::Wasm::Signature const&, WTF::Vector<JSC::Wasm::UnlinkedWasmToWasmCall, 0ul, WTF::CrashOnOverflow, 16ul, WTF::FastMalloc>&, JSC::Wasm::ModuleInformation const&, JSC::Wasm::MemoryMode, JSC::Wasm::CompilationMode, unsigned int, JSC::Wasm::TierUpCount*, void* (*)(JSC::ExecState*, JSC::Wasm::ExceptionType, JSC::Wasm::Instance*)) + 991
5   com.apple.JavaScriptCore      	0x000000025391b3fc JSC::Wasm::OMGPlan::work(JSC::Wasm::Plan::CompilationEffort) + 220
6   com.apple.JavaScriptCore      	0x000000025393b844 JSC::Wasm::Worklist::Thread::work() + 52
7   com.apple.JavaScriptCore      	0x0000000252ee17a8 WTF::Function<void ()>::CallableWrapper<WTF::AutomaticThread::start(WTF::AbstractLocker const&)::$_0>::call() + 296
8   com.apple.JavaScriptCore      	0x0000000252f0de44 WTF::Thread::entryPoint(WTF::Thread::NewThreadContext*) + 228
9   com.apple.JavaScriptCore      	0x0000000252d1eb69 WTF::wtfThreadEntryPoint(void*) + 9
10  libsystem_pthread.dylib       	0x00007fff5e481661 _pthread_body + 340
11  libsystem_pthread.dylib       	0x00007fff5e48150d _pthread_start + 377
12  libsystem_pthread.dylib       	0x00007fff5e480bf9 thread_start + 13

Thread 19 Crashed:: WTF::AutomaticThread
0   com.apple.JavaScriptCore      	0x0000000252fd8d3c WTF::NaturalLoops<JSC::B3::CFG>::NaturalLoops(JSC::B3::CFG&, WTF::Dominators<JSC::B3::CFG>&, bool) + 4396
1   com.apple.JavaScriptCore      	0x0000000252fc502a JSC::B3::Procedure::naturalLoops() + 74
2   com.apple.JavaScriptCore      	0x0000000252f6f8bc JSC::B3::ensureLoopPreHeaders(JSC::B3::Procedure&) + 28
3   com.apple.JavaScriptCore      	0x0000000252f7e225 JSC::B3::hoistLoopInvariantValues(JSC::B3::Procedure&) + 53
4   com.apple.JavaScriptCore      	0x0000000252f7e0a4 JSC::B3::generateToAir(JSC::B3::Procedure&) + 196
5   com.apple.JavaScriptCore      	0x0000000252f7dfb9 JSC::B3::prepareForGeneration(JSC::B3::Procedure&) + 41
6   com.apple.JavaScriptCore      	0x00000002538dd30f JSC::Wasm::parseAndCompile(JSC::Wasm::CompilationContext&, unsigned char const*, unsigned long, JSC::Wasm::Signature const&, WTF::Vector<JSC::Wasm::UnlinkedWasmToWasmCall, 0ul, WTF::CrashOnOverflow, 16ul, WTF::FastMalloc>&, JSC::Wasm::ModuleInformation const&, JSC::Wasm::MemoryMode, JSC::Wasm::CompilationMode, unsigned int, JSC::Wasm::TierUpCount*, void* (*)(JSC::ExecState*, JSC::Wasm::ExceptionType, JSC::Wasm::Instance*)) + 991
7   com.apple.JavaScriptCore      	0x000000025391b3fc JSC::Wasm::OMGPlan::work(JSC::Wasm::Plan::CompilationEffort) + 220
8   com.apple.JavaScriptCore      	0x000000025393b844 JSC::Wasm::Worklist::Thread::work() + 52
9   com.apple.JavaScriptCore      	0x0000000252ee17a8 WTF::Function<void ()>::CallableWrapper<WTF::AutomaticThread::start(WTF::AbstractLocker const&)::$_0>::call() + 296
10  com.apple.JavaScriptCore      	0x0000000252f0de44 WTF::Thread::entryPoint(WTF::Thread::NewThreadContext*) + 228
11  com.apple.JavaScriptCore      	0x0000000252d1eb69 WTF::wtfThreadEntryPoint(void*) + 9
12  libsystem_pthread.dylib       	0x00007fff5e481661 _pthread_body + 340
13  libsystem_pthread.dylib       	0x00007fff5e48150d _pthread_start + 377
14  libsystem_pthread.dylib       	0x00007fff5e480bf9 thread_start + 13

Thread 20:: WTF::AutomaticThread
0   libsystem_kernel.dylib        	0x00007fff5e2b0306 swtch_pri + 10
1   libsystem_pthread.dylib       	0x00007fff5e48222e sched_yield + 11
2   com.apple.JavaScriptCore      	0x0000000252f1f475 bmalloc::StaticMutex::lockSlowCase() + 101
3   com.apple.JavaScriptCore      	0x0000000252f1a14a bmalloc::Deallocator::deallocateSlowCase(void*) + 170
4   com.apple.JavaScriptCore      	0x0000000252fe08ae WTF::HashTable<JSC::B3::ValueKey, WTF::KeyValuePair<JSC::B3::ValueKey, WTF::Vector<JSC::B3::Value*, 1ul, WTF::CrashOnOverflow, 16ul, WTF::FastMalloc> >, WTF::KeyValuePairKeyExtractor<WTF::KeyValuePair<JSC::B3::ValueKey, WTF::Vector<JSC::B3::Value*, 1ul, WTF::CrashOnOverflow, 16ul, WTF::FastMalloc> > >, JSC::B3::ValueKeyHash, WTF::HashMap<JSC::B3::ValueKey, WTF::Vector<JSC::B3::Value*, 1ul, WTF::CrashOnOverflow, 16ul, WTF::FastMalloc>, JSC::B3::ValueKeyHash, WTF::HashTraits<JSC::B3::ValueKey>, WTF::HashTraits<WTF::Vector<JSC::B3::Value*, 1ul, WTF::CrashOnOverflow, 16ul, WTF::FastMalloc> > >::KeyValuePairTraits, WTF::HashTraits<JSC::B3::ValueKey> >::rehash(unsigned int, WTF::KeyValuePair<JSC::B3::ValueKey, WTF::Vector<JSC::B3::Value*, 1ul, WTF::CrashOnOverflow, 16ul, WTF::FastMalloc> >*) + 654
5   com.apple.JavaScriptCore      	0x0000000252fc646f WTF::HashTableAddResult<WTF::HashTableIterator<JSC::B3::ValueKey, WTF::KeyValuePair<JSC::B3::ValueKey, WTF::Vector<JSC::B3::Value*, 1ul, WTF::CrashOnOverflow, 16ul, WTF::FastMalloc> >, WTF::KeyValuePairKeyExtractor<WTF::KeyValuePair<JSC::B3::ValueKey, WTF::Vector<JSC::B3::Value*, 1ul, WTF::CrashOnOverflow, 16ul, WTF::FastMalloc> > >, JSC::B3::ValueKeyHash, WTF::HashMap<JSC::B3::ValueKey, WTF::Vector<JSC::B3::Value*, 1ul, WTF::CrashOnOverflow, 16ul, WTF::FastMalloc>, JSC::B3::ValueKeyHash, WTF::HashTraits<JSC::B3::ValueKey>, WTF::HashTraits<WTF::Vector<JSC::B3::Value*, 1ul, WTF::CrashOnOverflow, 16ul, WTF::FastMalloc> > >::KeyValuePairTraits, WTF::HashTraits<JSC::B3::ValueKey> > > WTF::HashMap<JSC::B3::ValueKey, WTF::Vector<JSC::B3::Value*, 1ul, WTF::CrashOnOverflow, 16ul, WTF::FastMalloc>, JSC::B3::ValueKeyHash, WTF::HashTraits<JSC::B3::ValueKey>, WTF::HashTraits<WTF::Vector<JSC::B3::Value*, 1ul, WTF::CrashOnOverflow, 16ul, WTF::FastMalloc> > >::add<WTF::Vector<JSC::B3::Value*, 1ul, WTF::CrashOnOverflow, 16ul, WTF::FastMalloc> >(JSC::B3::ValueKey const&, WTF::Vector<JSC::B3::Value*, 1ul, WTF::CrashOnOverflow, 16ul, WTF::FastMalloc>&&) + 895
6   com.apple.JavaScriptCore      	0x0000000252fc5fb3 JSC::B3::PureCSE::process(JSC::B3::Value*, JSC::B3::Dominators&) + 147
7   com.apple.JavaScriptCore      	0x0000000252fc8e79 JSC::B3::reduceStrength(JSC::B3::Procedure&) + 3785
8   com.apple.JavaScriptCore      	0x0000000252f7e09c JSC::B3::generateToAir(JSC::B3::Procedure&) + 188
9   com.apple.JavaScriptCore      	0x0000000252f7dfb9 JSC::B3::prepareForGeneration(JSC::B3::Procedure&) + 41
10  com.apple.JavaScriptCore      	0x00000002538dd30f JSC::Wasm::parseAndCompile(JSC::Wasm::CompilationContext&, unsigned char const*, unsigned long, JSC::Wasm::Signature const&, WTF::Vector<JSC::Wasm::UnlinkedWasmToWasmCall, 0ul, WTF::CrashOnOverflow, 16ul, WTF::FastMalloc>&, JSC::Wasm::ModuleInformation const&, JSC::Wasm::MemoryMode, JSC::Wasm::CompilationMode, unsigned int, JSC::Wasm::TierUpCount*, void* (*)(JSC::ExecState*, JSC::Wasm::ExceptionType, JSC::Wasm::Instance*)) + 991
11  com.apple.JavaScriptCore      	0x000000025391b3fc JSC::Wasm::OMGPlan::work(JSC::Wasm::Plan::CompilationEffort) + 220
12  com.apple.JavaScriptCore      	0x000000025393b844 JSC::Wasm::Worklist::Thread::work() + 52
13  com.apple.JavaScriptCore      	0x0000000252ee17a8 WTF::Function<void ()>::CallableWrapper<WTF::AutomaticThread::start(WTF::AbstractLocker const&)::$_0>::call() + 296
14  com.apple.JavaScriptCore      	0x0000000252f0de44 WTF::Thread::entryPoint(WTF::Thread::NewThreadContext*) + 228
15  com.apple.JavaScriptCore      	0x0000000252d1eb69 WTF::wtfThreadEntryPoint(void*) + 9
16  libsystem_pthread.dylib       	0x00007fff5e481661 _pthread_body + 340
17  libsystem_pthread.dylib       	0x00007fff5e48150d _pthread_start + 377
18  libsystem_pthread.dylib       	0x00007fff5e480bf9 thread_start + 13

Thread 21:: WTF::AutomaticThread
0   com.apple.JavaScriptCore      	0x0000000252f70f90 WTF::VectorBuffer<JSC::B3::Value*, 1ul, WTF::FastMalloc>::swap(WTF::VectorBuffer<JSC::B3::Value*, 1ul, WTF::FastMalloc>&, unsigned long, unsigned long) + 224
1   com.apple.JavaScriptCore      	0x0000000252fe06e1 WTF::HashTable<JSC::B3::ValueKey, WTF::KeyValuePair<JSC::B3::ValueKey, WTF::Vector<JSC::B3::Value*, 1ul, WTF::CrashOnOverflow, 16ul, WTF::FastMalloc> >, WTF::KeyValuePairKeyExtractor<WTF::KeyValuePair<JSC::B3::ValueKey, WTF::Vector<JSC::B3::Value*, 1ul, WTF::CrashOnOverflow, 16ul, WTF::FastMalloc> > >, JSC::B3::ValueKeyHash, WTF::HashMap<JSC::B3::ValueKey, WTF::Vector<JSC::B3::Value*, 1ul, WTF::CrashOnOverflow, 16ul, WTF::FastMalloc>, JSC::B3::ValueKeyHash, WTF::HashTraits<JSC::B3::ValueKey>, WTF::HashTraits<WTF::Vector<JSC::B3::Value*, 1ul, WTF::CrashOnOverflow, 16ul, WTF::FastMalloc> > >::KeyValuePairTraits, WTF::HashTraits<JSC::B3::ValueKey> >::rehash(unsigned int, WTF::KeyValuePair<JSC::B3::ValueKey, WTF::Vector<JSC::B3::Value*, 1ul, WTF::CrashOnOverflow, 16ul, WTF::FastMalloc> >*) + 193
2   com.apple.JavaScriptCore      	0x0000000252fc646f WTF::HashTableAddResult<WTF::HashTableIterator<JSC::B3::ValueKey, WTF::KeyValuePair<JSC::B3::ValueKey, WTF::Vector<JSC::B3::Value*, 1ul, WTF::CrashOnOverflow, 16ul, WTF::FastMalloc> >, WTF::KeyValuePairKeyExtractor<WTF::KeyValuePair<JSC::B3::ValueKey, WTF::Vector<JSC::B3::Value*, 1ul, WTF::CrashOnOverflow, 16ul, WTF::FastMalloc> > >, JSC::B3::ValueKeyHash, WTF::HashMap<JSC::B3::ValueKey, WTF::Vector<JSC::B3::Value*, 1ul, WTF::CrashOnOverflow, 16ul, WTF::FastMalloc>, JSC::B3::ValueKeyHash, WTF::HashTraits<JSC::B3::ValueKey>, WTF::HashTraits<WTF::Vector<JSC::B3::Value*, 1ul, WTF::CrashOnOverflow, 16ul, WTF::FastMalloc> > >::KeyValuePairTraits, WTF::HashTraits<JSC::B3::ValueKey> > > WTF::HashMap<JSC::B3::ValueKey, WTF::Vector<JSC::B3::Value*, 1ul, WTF::CrashOnOverflow, 16ul, WTF::FastMalloc>, JSC::B3::ValueKeyHash, WTF::HashTraits<JSC::B3::ValueKey>, WTF::HashTraits<WTF::Vector<JSC::B3::Value*, 1ul, WTF::CrashOnOverflow, 16ul, WTF::FastMalloc> > >::add<WTF::Vector<JSC::B3::Value*, 1ul, WTF::CrashOnOverflow, 16ul, WTF::FastMalloc> >(JSC::B3::ValueKey const&, WTF::Vector<JSC::B3::Value*, 1ul, WTF::CrashOnOverflow, 16ul, WTF::FastMalloc>&&) + 895
3   com.apple.JavaScriptCore      	0x0000000252fc5fb3 JSC::B3::PureCSE::process(JSC::B3::Value*, JSC::B3::Dominators&) + 147
4   com.apple.JavaScriptCore      	0x0000000252fc8e79 JSC::B3::reduceStrength(JSC::B3::Procedure&) + 3785
5   com.apple.JavaScriptCore      	0x0000000252f7e09c JSC::B3::generateToAir(JSC::B3::Procedure&) + 188
6   com.apple.JavaScriptCore      	0x0000000252f7dfb9 JSC::B3::prepareForGeneration(JSC::B3::Procedure&) + 41
7   com.apple.JavaScriptCore      	0x00000002538dd30f JSC::Wasm::parseAndCompile(JSC::Wasm::CompilationContext&, unsigned char const*, unsigned long, JSC::Wasm::Signature const&, WTF::Vector<JSC::Wasm::UnlinkedWasmToWasmCall, 0ul, WTF::CrashOnOverflow, 16ul, WTF::FastMalloc>&, JSC::Wasm::ModuleInformation const&, JSC::Wasm::MemoryMode, JSC::Wasm::CompilationMode, unsigned int, JSC::Wasm::TierUpCount*, void* (*)(JSC::ExecState*, JSC::Wasm::ExceptionType, JSC::Wasm::Instance*)) + 991
8   com.apple.JavaScriptCore      	0x000000025391b3fc JSC::Wasm::OMGPlan::work(JSC::Wasm::Plan::CompilationEffort) + 220
9   com.apple.JavaScriptCore      	0x000000025393b844 JSC::Wasm::Worklist::Thread::work() + 52
10  com.apple.JavaScriptCore      	0x0000000252ee17a8 WTF::Function<void ()>::CallableWrapper<WTF::AutomaticThread::start(WTF::AbstractLocker const&)::$_0>::call() + 296
11  com.apple.JavaScriptCore      	0x0000000252f0de44 WTF::Thread::entryPoint(WTF::Thread::NewThreadContext*) + 228
12  com.apple.JavaScriptCore      	0x0000000252d1eb69 WTF::wtfThreadEntryPoint(void*) + 9
13  libsystem_pthread.dylib       	0x00007fff5e481661 _pthread_body + 340
14  libsystem_pthread.dylib       	0x00007fff5e48150d _pthread_start + 377
15  libsystem_pthread.dylib       	0x00007fff5e480bf9 thread_start + 13

Thread 22:: WTF::AutomaticThread
0   libsystem_kernel.dylib        	0x00007fff5e2b0306 swtch_pri + 10
1   libsystem_pthread.dylib       	0x00007fff5e48222e sched_yield + 11
2   com.apple.JavaScriptCore      	0x0000000252f1f475 bmalloc::StaticMutex::lockSlowCase() + 101
3   com.apple.JavaScriptCore      	0x0000000252f1a14a bmalloc::Deallocator::deallocateSlowCase(void*) + 170
4   com.apple.JavaScriptCore      	0x000000025302c328 WTF::Liveness<JSC::B3::Air::StackSlotLivenessAdapter>::~Liveness() + 536
5   com.apple.JavaScriptCore      	0x0000000252ff8127 JSC::B3::Air::allocateStackByGraphColoring(JSC::B3::Air::Code&) + 4791
6   com.apple.JavaScriptCore      	0x000000025304a24f JSC::B3::Air::prepareForGeneration(JSC::B3::Air::Code&) + 383
7   com.apple.JavaScriptCore      	0x0000000252f7dfc5 JSC::B3::prepareForGeneration(JSC::B3::Procedure&) + 53
8   com.apple.JavaScriptCore      	0x00000002538dd30f JSC::Wasm::parseAndCompile(JSC::Wasm::CompilationContext&, unsigned char const*, unsigned long, JSC::Wasm::Signature const&, WTF::Vector<JSC::Wasm::UnlinkedWasmToWasmCall, 0ul, WTF::CrashOnOverflow, 16ul, WTF::FastMalloc>&, JSC::Wasm::ModuleInformation const&, JSC::Wasm::MemoryMode, JSC::Wasm::CompilationMode, unsigned int, JSC::Wasm::TierUpCount*, void* (*)(JSC::ExecState*, JSC::Wasm::ExceptionType, JSC::Wasm::Instance*)) + 991
9   com.apple.JavaScriptCore      	0x000000025391b3fc JSC::Wasm::OMGPlan::work(JSC::Wasm::Plan::CompilationEffort) + 220
10  com.apple.JavaScriptCore      	0x000000025393b844 JSC::Wasm::Worklist::Thread::work() + 52
11  com.apple.JavaScriptCore      	0x0000000252ee17a8 WTF::Function<void ()>::CallableWrapper<WTF::AutomaticThread::start(WTF::AbstractLocker const&)::$_0>::call() + 296
12  com.apple.JavaScriptCore      	0x0000000252f0de44 WTF::Thread::entryPoint(WTF::Thread::NewThreadContext*) + 228
13  com.apple.JavaScriptCore      	0x0000000252d1eb69 WTF::wtfThreadEntryPoint(void*) + 9
14  libsystem_pthread.dylib       	0x00007fff5e481661 _pthread_body + 340
15  libsystem_pthread.dylib       	0x00007fff5e48150d _pthread_start + 377
16  libsystem_pthread.dylib       	0x00007fff5e480bf9 thread_start + 13

Thread 23:: WTF::AutomaticThread
0   libsystem_kernel.dylib        	0x00007fff5e2b0306 swtch_pri + 10
1   libsystem_pthread.dylib       	0x00007fff5e48222e sched_yield + 11
2   com.apple.JavaScriptCore      	0x0000000252f1f475 bmalloc::StaticMutex::lockSlowCase() + 101
3   com.apple.JavaScriptCore      	0x0000000252f1a14a bmalloc::Deallocator::deallocateSlowCase(void*) + 170
4   com.apple.JavaScriptCore      	0x0000000252fe08ae WTF::HashTable<JSC::B3::ValueKey, WTF::KeyValuePair<JSC::B3::ValueKey, WTF::Vector<JSC::B3::Value*, 1ul, WTF::CrashOnOverflow, 16ul, WTF::FastMalloc> >, WTF::KeyValuePairKeyExtractor<WTF::KeyValuePair<JSC::B3::ValueKey, WTF::Vector<JSC::B3::Value*, 1ul, WTF::CrashOnOverflow, 16ul, WTF::FastMalloc> > >, JSC::B3::ValueKeyHash, WTF::HashMap<JSC::B3::ValueKey, WTF::Vector<JSC::B3::Value*, 1ul, WTF::CrashOnOverflow, 16ul, WTF::FastMalloc>, JSC::B3::ValueKeyHash, WTF::HashTraits<JSC::B3::ValueKey>, WTF::HashTraits<WTF::Vector<JSC::B3::Value*, 1ul, WTF::CrashOnOverflow, 16ul, WTF::FastMalloc> > >::KeyValuePairTraits, WTF::HashTraits<JSC::B3::ValueKey> >::rehash(unsigned int, WTF::KeyValuePair<JSC::B3::ValueKey, WTF::Vector<JSC::B3::Value*, 1ul, WTF::CrashOnOverflow, 16ul, WTF::FastMalloc> >*) + 654
5   com.apple.JavaScriptCore      	0x0000000252fc646f WTF::HashTableAddResult<WTF::HashTableIterator<JSC::B3::ValueKey, WTF::KeyValuePair<JSC::B3::ValueKey, WTF::Vector<JSC::B3::Value*, 1ul, WTF::CrashOnOverflow, 16ul, WTF::FastMalloc> >, WTF::KeyValuePairKeyExtractor<WTF::KeyValuePair<JSC::B3::ValueKey, WTF::Vector<JSC::B3::Value*, 1ul, WTF::CrashOnOverflow, 16ul, WTF::FastMalloc> > >, JSC::B3::ValueKeyHash, WTF::HashMap<JSC::B3::ValueKey, WTF::Vector<JSC::B3::Value*, 1ul, WTF::CrashOnOverflow, 16ul, WTF::FastMalloc>, JSC::B3::ValueKeyHash, WTF::HashTraits<JSC::B3::ValueKey>, WTF::HashTraits<WTF::Vector<JSC::B3::Value*, 1ul, WTF::CrashOnOverflow, 16ul, WTF::FastMalloc> > >::KeyValuePairTraits, WTF::HashTraits<JSC::B3::ValueKey> > > WTF::HashMap<JSC::B3::ValueKey, WTF::Vector<JSC::B3::Value*, 1ul, WTF::CrashOnOverflow, 16ul, WTF::FastMalloc>, JSC::B3::ValueKeyHash, WTF::HashTraits<JSC::B3::ValueKey>, WTF::HashTraits<WTF::Vector<JSC::B3::Value*, 1ul, WTF::CrashOnOverflow, 16ul, WTF::FastMalloc> > >::add<WTF::Vector<JSC::B3::Value*, 1ul, WTF::CrashOnOverflow, 16ul, WTF::FastMalloc> >(JSC::B3::ValueKey const&, WTF::Vector<JSC::B3::Value*, 1ul, WTF::CrashOnOverflow, 16ul, WTF::FastMalloc>&&) + 895
6   com.apple.JavaScriptCore      	0x0000000252fc5fb3 JSC::B3::PureCSE::process(JSC::B3::Value*, JSC::B3::Dominators&) + 147
7   com.apple.JavaScriptCore      	0x0000000252fc8e79 JSC::B3::reduceStrength(JSC::B3::Procedure&) + 3785
8   com.apple.JavaScriptCore      	0x0000000252f7e09c JSC::B3::generateToAir(JSC::B3::Procedure&) + 188
9   com.apple.JavaScriptCore      	0x0000000252f7dfb9 JSC::B3::prepareForGeneration(JSC::B3::Procedure&) + 41
10  com.apple.JavaScriptCore      	0x00000002538dd30f JSC::Wasm::parseAndCompile(JSC::Wasm::CompilationContext&, unsigned char const*, unsigned long, JSC::Wasm::Signature const&, WTF::Vector<JSC::Wasm::UnlinkedWasmToWasmCall, 0ul, WTF::CrashOnOverflow, 16ul, WTF::FastMalloc>&, JSC::Wasm::ModuleInformation const&, JSC::Wasm::MemoryMode, JSC::Wasm::CompilationMode, unsigned int, JSC::Wasm::TierUpCount*, void* (*)(JSC::ExecState*, JSC::Wasm::ExceptionType, JSC::Wasm::Instance*)) + 991
11  com.apple.JavaScriptCore      	0x000000025391b3fc JSC::Wasm::OMGPlan::work(JSC::Wasm::Plan::CompilationEffort) + 220
12  com.apple.JavaScriptCore      	0x000000025393b844 JSC::Wasm::Worklist::Thread::work() + 52
13  com.apple.JavaScriptCore      	0x0000000252ee17a8 WTF::Function<void ()>::CallableWrapper<WTF::AutomaticThread::start(WTF::AbstractLocker const&)::$_0>::call() + 296
14  com.apple.JavaScriptCore      	0x0000000252f0de44 WTF::Thread::entryPoint(WTF::Thread::NewThreadContext*) + 228
15  com.apple.JavaScriptCore      	0x0000000252d1eb69 WTF::wtfThreadEntryPoint(void*) + 9
16  libsystem_pthread.dylib       	0x00007fff5e481661 _pthread_body + 340
17  libsystem_pthread.dylib       	0x00007fff5e48150d _pthread_start + 377
18  libsystem_pthread.dylib       	0x00007fff5e480bf9 thread_start + 13

Thread 24:: WTF::AutomaticThread
0   com.apple.JavaScriptCore      	0x00000002538ebf00 JSC::Wasm::FunctionParser<JSC::Wasm::B3IRGenerator>::parseBody() + 272
1   com.apple.JavaScriptCore      	0x00000002538dd855 JSC::Wasm::FunctionParser<JSC::Wasm::B3IRGenerator>::parse() + 661
2   com.apple.JavaScriptCore      	0x00000002538dd2be JSC::Wasm::parseAndCompile(JSC::Wasm::CompilationContext&, unsigned char const*, unsigned long, JSC::Wasm::Signature const&, WTF::Vector<JSC::Wasm::UnlinkedWasmToWasmCall, 0ul, WTF::CrashOnOverflow, 16ul, WTF::FastMalloc>&, JSC::Wasm::ModuleInformation const&, JSC::Wasm::MemoryMode, JSC::Wasm::CompilationMode, unsigned int, JSC::Wasm::TierUpCount*, void* (*)(JSC::ExecState*, JSC::Wasm::ExceptionType, JSC::Wasm::Instance*)) + 910
3   com.apple.JavaScriptCore      	0x000000025391b3fc JSC::Wasm::OMGPlan::work(JSC::Wasm::Plan::CompilationEffort) + 220
4   com.apple.JavaScriptCore      	0x000000025393b844 JSC::Wasm::Worklist::Thread::work() + 52
5   com.apple.JavaScriptCore      	0x0000000252ee17a8 WTF::Function<void ()>::CallableWrapper<WTF::AutomaticThread::start(WTF::AbstractLocker const&)::$_0>::call() + 296
6   com.apple.JavaScriptCore      	0x0000000252f0de44 WTF::Thread::entryPoint(WTF::Thread::NewThreadContext*) + 228
7   com.apple.JavaScriptCore      	0x0000000252d1eb69 WTF::wtfThreadEntryPoint(void*) + 9
8   libsystem_pthread.dylib       	0x00007fff5e481661 _pthread_body + 340
9   libsystem_pthread.dylib       	0x00007fff5e48150d _pthread_start + 377
10  libsystem_pthread.dylib       	0x00007fff5e480bf9 thread_start + 13

Thread 25:: WTF::AutomaticThread
0   com.apple.JavaScriptCore      	0x0000000252fe06d2 WTF::HashTable<JSC::B3::ValueKey, WTF::KeyValuePair<JSC::B3::ValueKey, WTF::Vector<JSC::B3::Value*, 1ul, WTF::CrashOnOverflow, 16ul, WTF::FastMalloc> >, WTF::KeyValuePairKeyExtractor<WTF::KeyValuePair<JSC::B3::ValueKey, WTF::Vector<JSC::B3::Value*, 1ul, WTF::CrashOnOverflow, 16ul, WTF::FastMalloc> > >, JSC::B3::ValueKeyHash, WTF::HashMap<JSC::B3::ValueKey, WTF::Vector<JSC::B3::Value*, 1ul, WTF::CrashOnOverflow, 16ul, WTF::FastMalloc>, JSC::B3::ValueKeyHash, WTF::HashTraits<JSC::B3::ValueKey>, WTF::HashTraits<WTF::Vector<JSC::B3::Value*, 1ul, WTF::CrashOnOverflow, 16ul, WTF::FastMalloc> > >::KeyValuePairTraits, WTF::HashTraits<JSC::B3::ValueKey> >::rehash(unsigned int, WTF::KeyValuePair<JSC::B3::ValueKey, WTF::Vector<JSC::B3::Value*, 1ul, WTF::CrashOnOverflow, 16ul, WTF::FastMalloc> >*) + 178
1   com.apple.JavaScriptCore      	0x0000000252fc646f WTF::HashTableAddResult<WTF::HashTableIterator<JSC::B3::ValueKey, WTF::KeyValuePair<JSC::B3::ValueKey, WTF::Vector<JSC::B3::Value*, 1ul, WTF::CrashOnOverflow, 16ul, WTF::FastMalloc> >, WTF::KeyValuePairKeyExtractor<WTF::KeyValuePair<JSC::B3::ValueKey, WTF::Vector<JSC::B3::Value*, 1ul, WTF::CrashOnOverflow, 16ul, WTF::FastMalloc> > >, JSC::B3::ValueKeyHash, WTF::HashMap<JSC::B3::ValueKey, WTF::Vector<JSC::B3::Value*, 1ul, WTF::CrashOnOverflow, 16ul, WTF::FastMalloc>, JSC::B3::ValueKeyHash, WTF::HashTraits<JSC::B3::ValueKey>, WTF::HashTraits<WTF::Vector<JSC::B3::Value*, 1ul, WTF::CrashOnOverflow, 16ul, WTF::FastMalloc> > >::KeyValuePairTraits, WTF::HashTraits<JSC::B3::ValueKey> > > WTF::HashMap<JSC::B3::ValueKey, WTF::Vector<JSC::B3::Value*, 1ul, WTF::CrashOnOverflow, 16ul, WTF::FastMalloc>, JSC::B3::ValueKeyHash, WTF::HashTraits<JSC::B3::ValueKey>, WTF::HashTraits<WTF::Vector<JSC::B3::Value*, 1ul, WTF::CrashOnOverflow, 16ul, WTF::FastMalloc> > >::add<WTF::Vector<JSC::B3::Value*, 1ul, WTF::CrashOnOverflow, 16ul, WTF::FastMalloc> >(JSC::B3::ValueKey const&, WTF::Vector<JSC::B3::Value*, 1ul, WTF::CrashOnOverflow, 16ul, WTF::FastMalloc>&&) + 895
2   com.apple.JavaScriptCore      	0x0000000252fc5fb3 JSC::B3::PureCSE::process(JSC::B3::Value*, JSC::B3::Dominators&) + 147
3   com.apple.JavaScriptCore      	0x0000000252fc8e79 JSC::B3::reduceStrength(JSC::B3::Procedure&) + 3785
4   com.apple.JavaScriptCore      	0x0000000252f7e09c JSC::B3::generateToAir(JSC::B3::Procedure&) + 188
5   com.apple.JavaScriptCore      	0x0000000252f7dfb9 JSC::B3::prepareForGeneration(JSC::B3::Procedure&) + 41
6   com.apple.JavaScriptCore      	0x00000002538dd30f JSC::Wasm::parseAndCompile(JSC::Wasm::CompilationContext&, unsigned char const*, unsigned long, JSC::Wasm::Signature const&, WTF::Vector<JSC::Wasm::UnlinkedWasmToWasmCall, 0ul, WTF::CrashOnOverflow, 16ul, WTF::FastMalloc>&, JSC::Wasm::ModuleInformation const&, JSC::Wasm::MemoryMode, JSC::Wasm::CompilationMode, unsigned int, JSC::Wasm::TierUpCount*, void* (*)(JSC::ExecState*, JSC::Wasm::ExceptionType, JSC::Wasm::Instance*)) + 991
7   com.apple.JavaScriptCore      	0x000000025391b3fc JSC::Wasm::OMGPlan::work(JSC::Wasm::Plan::CompilationEffort) + 220
8   com.apple.JavaScriptCore      	0x000000025393b844 JSC::Wasm::Worklist::Thread::work() + 52
9   com.apple.JavaScriptCore      	0x0000000252ee17a8 WTF::Function<void ()>::CallableWrapper<WTF::AutomaticThread::start(WTF::AbstractLocker const&)::$_0>::call() + 296
10  com.apple.JavaScriptCore      	0x0000000252f0de44 WTF::Thread::entryPoint(WTF::Thread::NewThreadContext*) + 228
11  com.apple.JavaScriptCore      	0x0000000252d1eb69 WTF::wtfThreadEntryPoint(void*) + 9
12  libsystem_pthread.dylib       	0x00007fff5e481661 _pthread_body + 340
13  libsystem_pthread.dylib       	0x00007fff5e48150d _pthread_start + 377
14  libsystem_pthread.dylib       	0x00007fff5e480bf9 thread_start + 13

Thread 26:: WTF::AutomaticThread
0   libsystem_kernel.dylib        	0x00007fff5e2b9a1e __psynch_cvwait + 10
1   libsystem_pthread.dylib       	0x00007fff5e482589 _pthread_cond_wait + 732
2   com.apple.JavaScriptCore      	0x0000000252f0fbfa WTF::ThreadCondition::timedWait(WTF::Mutex&, WTF::WallTime) + 122
3   com.apple.JavaScriptCore      	0x0000000252efcbd8 WTF::ParkingLot::parkConditionallyImpl(void const*, WTF::ScopedLambda<bool ()> const&, WTF::ScopedLambda<void ()> const&, WTF::TimeWithDynamicClockType const&) + 2728
4   com.apple.JavaScriptCore      	0x0000000252ee155a bool WTF::Condition::waitUntil<WTF::Lock>(WTF::Lock&, WTF::TimeWithDynamicClockType const&) + 154
5   com.apple.JavaScriptCore      	0x0000000252ee1725 WTF::Function<void ()>::CallableWrapper<WTF::AutomaticThread::start(WTF::AbstractLocker const&)::$_0>::call() + 165
6   com.apple.JavaScriptCore      	0x0000000252f0de44 WTF::Thread::entryPoint(WTF::Thread::NewThreadContext*) + 228
7   com.apple.JavaScriptCore      	0x0000000252d1eb69 WTF::wtfThreadEntryPoint(void*) + 9
8   libsystem_pthread.dylib       	0x00007fff5e481661 _pthread_body + 340
9   libsystem_pthread.dylib       	0x00007fff5e48150d _pthread_start + 377
10  libsystem_pthread.dylib       	0x00007fff5e480bf9 thread_start + 13

Thread 19 crashed with X86 Thread State (64-bit):
  rax: 0x0000000000000002  rbx: 0x0000000000000022  rcx: 0x000000026419ca68  rdx: 0x0000000262ef7ee0
  rdi: 0x00000000000000a0  rsi: 0x00000002642a39d8  rbp: 0x000070000411b550  rsp: 0x000070000411b460
   r8: 0x000000026419ca68   r9: 0x0000000000000000  r10: 0x0000000000000003  r11: 0x000000026419ca84
  r12: 0x0000000000000003  r13: 0x000000026419ca48  r14: 0x000000026410f410  r15: 0x00000002642a39d8
  rip: 0x0000000252fd8d3c  rfl: 0x0000000000000202  cr2: 0x00000010018b3000
  
Logical CPU:     0
Error Code:      0x00000000
Trap Number:     3

External Modification Summary:
  Calls made by other processes targeting this process:
    task_for_pid: 0
    thread_create: 0
    thread_set_state: 0
  Calls made by this process:
    task_for_pid: 0
    thread_create: 0
    thread_set_state: 0
  Calls made by all processes on this machine:
    task_for_pid: 20242
    thread_create: 0
    thread_set_state: 0

VM Region Summary:
ReadOnly portion of Libraries: Total=530.7M resident=0K(0%) swapped_out_or_unallocated=530.7M(100%)
Writable regions: Total=77.5G written=0K(0%) resident=0K(0%) swapped_out=0K(0%) unallocated=77.5G(100%)
 
                                VIRTUAL   REGION 
REGION TYPE                        SIZE    COUNT (non-coalesced) 
===========                     =======  ======= 
Activity Tracing                   256K        2 
CoreAnimation                       20K        4 
CoreUI image data                 1592K       12 
CoreUI image file                  128K        3 
Dispatch continuations            16.0M        2 
Foundation                           4K        2 
Image IO                            20K        3 
JS JIT generated code              1.0G        4 
Kernel Alloc Once                    8K        2 
MALLOC                            97.5M       25 
MALLOC guard page                   48K       12 
Memory Tag 242                      12K        2 
SQLite page cache                   64K        2 
STACK GUARD                       56.1M       28 
Stack                             21.2M       28 
VM_ALLOCATE                        108K        7 
WebKit Malloc                     36.6G       37 
WebKit Malloc (reserved)          75.7G        4         reserved VM address space (unallocated)
__DATA                            49.1M      446 
__FONT_DATA                          4K        2 
__LINKEDIT                       221.5M       15 
__TEXT                           309.3M      450 
__UNICODE                          560K        2 
mapped file                       64.9M       38 
shared memory                     2688K       10 
===========                     =======  ======= 
TOTAL                            114.0G     1117 
TOTAL, minus reserved VM space    38.4G     1117
Comment 3 Saam Barati 2018-04-20 15:17:57 PDT
We're crashing on an assert in:
WTF::NaturalLoops<JSC::B3::CFG>::NaturalLoops(JSC::B3::CFG&, WTF::Dominators<JSC::B3::CFG>&, bool) + 4396
Comment 4 Alexey Proskuryakov 2018-04-20 23:13:02 PDT
> This page crashes the browser in all sorts of places (crash logs not particularly useful): https://learningblazor.azurewebsites.net

How is this different from bug 184827?
Comment 5 Rodrigo Kumpera 2018-04-23 08:27:00 PDT
This issue actually affects the Safari in the latest OSX.

We confirmed with our users that this is a regression introduced 
between `Safari 11.0.3 (13604.5.6)` and `Safari 11.1 (13605.1.33.1.2)`.
Comment 6 Rodrigo Kumpera 2018-04-23 08:39:24 PDT
*** Bug 184830 has been marked as a duplicate of this bug. ***
Comment 7 Rolf Bjarne Kvinge 2018-06-08 15:52:38 PDT
Created attachment 342340 [details]
Crash report from iOS 12 beta 1

This still happens with iOS 12 beta 1.
Comment 8 Rolf Bjarne Kvinge 2018-06-08 15:58:33 PDT
Created attachment 342341 [details]
Symbolicated crash report from iOS 12 beta 1
Comment 9 Keith Miller 2018-06-08 17:03:29 PDT
rdar://problem/37231088
Comment 10 Saam Barati 2018-06-08 19:11:18 PDT
Keith, are you looking into this? If not, ima try to take a look this weekend
Comment 11 Keith Miller 2018-06-09 13:00:16 PDT
(In reply to Saam Barati from comment #10)
> Keith, are you looking into this? If not, ima try to take a look this weekend

I haven't looked too hard. If you want to take a look this weekend feel free.
Comment 12 Saam Barati 2018-06-10 16:40:36 PDT
(In reply to Keith Miller from comment #11)
> (In reply to Saam Barati from comment #10)
> > Keith, are you looking into this? If not, ima try to take a look this weekend
> 
> I haven't looked too hard. If you want to take a look this weekend feel free.

Cool. Looking into this now
Comment 13 Saam Barati 2018-06-10 18:43:10 PDT
Seems like a real bug in NaturalLoops.
Comment 14 Saam Barati 2018-06-10 18:55:25 PDT
(In reply to Saam Barati from comment #13)
> Seems like a real bug in NaturalLoops.

I think this is the bug:

NaturalLoops's algorithm breaks down if a loop contains the same block more than once. This can happen in a case like this:

block:header
something
something
switch (case 1: header, case 2:header, etc)
Comment 15 Saam Barati 2018-06-10 18:56:34 PDT
(In reply to Saam Barati from comment #14)
> (In reply to Saam Barati from comment #13)
> > Seems like a real bug in NaturalLoops.
> 
> I think this is the bug:
> 
> NaturalLoops's algorithm breaks down if a loop contains the same block more
> than once. This can happen in a case like this:
> 
> block:header
> something
> something
> switch (case 1: header, case 2:header, etc)

I still don't know why exactly the algorithm breaks down, but it makes this loop produce wrong things inside the m_innerMostLoopIndices map:
```
        for (unsigned loopIndex = m_loops.size(); loopIndex--;) {
            NaturalLoop<Graph>& loop = m_loops[loopIndex];
        
            for (unsigned blockIndexInLoop = loop.size(); blockIndexInLoop--;) {
                typename Graph::Node block = loop[blockIndexInLoop];
            
                for (unsigned i = 0; i < std::tuple_size<InnerMostLoopIndices>::value; ++i) {
                    unsigned thisIndex = m_innerMostLoopIndices[block][i];
                    if (thisIndex == UINT_MAX || loop.size() < m_loops[thisIndex].size()) {
                        insertIntoBoundedVector(
                            m_innerMostLoopIndices[block], std::tuple_size<InnerMostLoopIndices>::value,
                            loopIndex, i);
                        break;
                    }
                }
            }
        }
```
I need to figure out why
Comment 16 Saam Barati 2018-06-10 18:58:58 PDT
Seems mostly obvious why, actually. It'll do things for a block more than once now. That could make it compute things more than once in a way the algorithm isn't expecting for the same loop.
Comment 17 Saam Barati 2018-06-11 01:02:30 PDT
Created attachment 342413 [details]
WIP

Need to add a test
Comment 18 EWS Watchlist 2018-06-11 08:27:27 PDT
Attachment 342413 [details] did not pass style-queue:


ERROR: Source/WebCore/page/FrameView.cpp:4140:  Should have a space between // and comment  [whitespace/comments] [4]
Total errors found: 1 in 5 files


If any of these errors are false positives, please file a bug against check-webkit-style.
Comment 19 Saam Barati 2018-06-11 17:53:32 PDT
Created attachment 342494 [details]
patch
Comment 20 EWS Watchlist 2018-06-11 17:55:06 PDT
Attachment 342494 [details] did not pass style-queue:


ERROR: Source/JavaScriptCore/b3/testb3.cpp:10863:  One line control clauses should not use braces.  [whitespace/braces] [4]
ERROR: Source/JavaScriptCore/b3/testb3.cpp:10873:  Consider using CHECK_EQ instead of CHECK(a == b)  [readability/check] [2]
Total errors found: 2 in 8 files


If any of these errors are false positives, please file a bug against check-webkit-style.
Comment 21 Michael Saboff 2018-06-11 18:03:29 PDT
Comment on attachment 342494 [details]
patch

r=me
Comment 22 EWS Watchlist 2018-06-11 19:52:15 PDT
Comment on attachment 342494 [details]
patch

Attachment 342494 [details] did not pass ios-sim-ews (ios-simulator-wk2):
Output: http://webkit-queues.webkit.org/results/8140482

New failing tests:
http/tests/resourceLoadStatistics/partitioned-and-unpartitioned-cookie-with-partitioning-timeout.html
Comment 23 EWS Watchlist 2018-06-11 19:52:17 PDT
Created attachment 342504 [details]
Archive of layout-test-results from ews121 for ios-simulator-wk2

The attached test failures were seen while running run-webkit-tests on the ios-sim-ews.
Bot: ews121  Port: ios-simulator-wk2  Platform: Mac OS X 10.13.4
Comment 24 WebKit Commit Bot 2018-06-11 22:05:15 PDT
Comment on attachment 342494 [details]
patch

Clearing flags on attachment: 342494

Committed r232741: <https://trac.webkit.org/changeset/232741>
Comment 25 WebKit Commit Bot 2018-06-11 22:05:17 PDT
All reviewed patches have been landed.  Closing bug.
Comment 26 Rolf Bjarne Kvinge 2018-06-11 22:14:15 PDT
Will this fix get into iOS 12 / macOS 10.14? Or will it only be included in a later release?
Comment 27 Sergey Rubanov 2018-07-31 15:51:26 PDT
(In reply to Rolf Bjarne Kvinge from comment #26)
> Will this fix get into iOS 12 / macOS 10.14? Or will it only be included in
> a later release?

Just checked that it's fixed in Safari 12.0 (14606.1.30)
Comment 28 Sergey Rubanov 2018-07-31 15:55:32 PDT
(In reply to Sergey Rubanov from comment #27)
> (In reply to Rolf Bjarne Kvinge from comment #26)
> > Will this fix get into iOS 12 / macOS 10.14? Or will it only be included in
> > a later release?
> 
> Just checked that it's fixed in Safari 12.0 (14606.1.30)

Also works fine in Safari 12 on iOS 12 beta 5 (dev)