Bug 176968 - iOS: WebKitTestRunner hits an assertion in editing/pasteboard/datatransfer-items-copy-plaintext.html
Summary: iOS: WebKitTestRunner hits an assertion in editing/pasteboard/datatransfer-it...
Status: RESOLVED FIXED
Alias: None
Product: WebKit
Classification: Unclassified
Component: WebKit2 (show other bugs)
Version: WebKit Nightly Build
Hardware: Unspecified Unspecified
: P2 Normal
Assignee: Ryosuke Niwa
URL:
Keywords: InRadar
Depends on:
Blocks:
 
Reported: 2017-09-14 16:32 PDT by Ryosuke Niwa
Modified: 2017-09-15 02:20 PDT (History)
6 users (show)

See Also:


Attachments
Fixes the crash (2.65 KB, patch)
2017-09-15 00:15 PDT, Ryosuke Niwa
no flags Details | Formatted Diff | Diff
Fixes the crash (3.35 KB, patch)
2017-09-15 00:17 PDT, Ryosuke Niwa
no flags Details | Formatted Diff | Diff

Note You need to log in before you can comment on or make changes to this bug.
Description Ryosuke Niwa 2017-09-14 16:32:25 PDT
e.g.
https://build.webkit.org/results/Apple%20iOS%2010%20Simulator%20Debug%20WK2%20(Tests)/r222052%20(3965)/editing/pasteboard/datatransfer-items-copy-plaintext-crash-log.txt

Application Specific Information:
CRASHING TEST: editing/pasteboard/datatransfer-items-copy-plaintext.html
CoreSimulator 375.21 - Device: iPhone 5s WebKit Tester7 - Runtime: iOS 10.3 (14E269) - DeviceType: iPhone 5s

Thread 0 Crashed:: Dispatch queue: com.apple.main-thread
0   JavaScriptCore                	0x00000001100eced4 WTFCrash + 36
1   com.apple.WebKit              	0x00000001161f65f6 WebKit::SharedMemory::allocate(unsigned long) + 70
2   com.apple.WebKit              	0x00000001166d0fda WebKit::WebPasteboardProxy::readBufferFromPasteboard(unsigned long long, WTF::String const&, WTF::String const&, WebKit::SharedMemory::Handle&, unsigned long long&) + 234
3   com.apple.WebKit              	0x00000001166d712e void IPC::callMemberFunctionImpl<WebKit::WebPasteboardProxy, void (WebKit::WebPasteboardProxy::*)(unsigned long long, WTF::String const&, WTF::String const&, WebKit::SharedMemory::Handle&, unsigned long long&), std::__1::tuple<unsigned long long, WTF::String, WTF::String>, 0ul, 1ul, 2ul, std::__1::tuple<WebKit::SharedMemory::Handle, unsigned long long>, 0ul, 1ul>(WebKit::WebPasteboardProxy*, void (WebKit::WebPasteboardProxy::*)(unsigned long long, WTF::String const&, WTF::String const&, WebKit::SharedMemory::Handle&, unsigned long long&), std::__1::tuple<unsigned long long, WTF::String, WTF::String>&&, std::__1::tuple<WebKit::SharedMemory::Handle, unsigned long long>&, std::__1::integer_sequence<unsigned long, 0ul, 1ul, 2ul>, std::__1::integer_sequence<unsigned long, 0ul, 1ul>) + 334
4   com.apple.WebKit              	0x00000001166d6fd0 void IPC::callMemberFunction<WebKit::WebPasteboardProxy, void (WebKit::WebPasteboardProxy::*)(unsigned long long, WTF::String const&, WTF::String const&, WebKit::SharedMemory::Handle&, unsigned long long&), std::__1::tuple<unsigned long long, WTF::String, WTF::String>, std::__1::integer_sequence<unsigned long, 0ul, 1ul, 2ul>, std::__1::tuple<WebKit::SharedMemory::Handle, unsigned long long>, std::__1::integer_sequence<unsigned long, 0ul, 1ul> >(std::__1::tuple<unsigned long long, WTF::String, WTF::String>&&, std::__1::tuple<WebKit::SharedMemory::Handle, unsigned long long>&, WebKit::WebPasteboardProxy*, void (WebKit::WebPasteboardProxy::*)(unsigned long long, WTF::String const&, WTF::String const&, WebKit::SharedMemory::Handle&, unsigned long long&)) + 96
5   com.apple.WebKit              	0x00000001166d3201 void IPC::handleMessage<Messages::WebPasteboardProxy::ReadBufferFromPasteboard, WebKit::WebPasteboardProxy, void (WebKit::WebPasteboardProxy::*)(unsigned long long, WTF::String const&, WTF::String const&, WebKit::SharedMemory::Handle&, unsigned long long&)>(IPC::Decoder&, IPC::Encoder&, WebKit::WebPasteboardProxy*, void (WebKit::WebPasteboardProxy::*)(unsigned long long, WTF::String const&, WTF::String const&, WebKit::SharedMemory::Handle&, unsigned long long&)) + 417
6   com.apple.WebKit              	0x00000001166d1fd1 WebKit::WebPasteboardProxy::didReceiveSyncMessage(IPC::Connection&, IPC::Decoder&, std::__1::unique_ptr<IPC::Encoder, std::__1::default_delete<IPC::Encoder> >&) + 561
7   com.apple.WebKit              	0x0000000115f385eb IPC::MessageReceiverMap::dispatchSyncMessage(IPC::Connection&, IPC::Decoder&, std::__1::unique_ptr<IPC::Encoder, std::__1::default_delete<IPC::Encoder> >&) + 235
8   com.apple.WebKit              	0x0000000115e35bcc WebKit::ChildProcessProxy::dispatchSyncMessage(IPC::Connection&, IPC::Decoder&, std::__1::unique_ptr<IPC::Encoder, std::__1::default_delete<IPC::Encoder> >&) + 60
9   com.apple.WebKit              	0x00000001167bd552 WebKit::WebProcessProxy::didReceiveSyncMessage(IPC::Connection&, IPC::Decoder&, std::__1::unique_ptr<IPC::Encoder, std::__1::default_delete<IPC::Encoder> >&) + 66
10  com.apple.WebKit              	0x00000001167bd62c non-virtual thunk to WebKit::WebProcessProxy::didReceiveSyncMessage(IPC::Connection&, IPC::Decoder&, std::__1::unique_ptr<IPC::Encoder, std::__1::default_delete<IPC::Encoder> >&) + 60
11  com.apple.WebKit              	0x0000000115e44c90 IPC::Connection::dispatchSyncMessage(IPC::Decoder&) + 1952
12  com.apple.WebKit              	0x0000000115e3af19 IPC::Connection::dispatchMessage(std::__1::unique_ptr<IPC::Decoder, std::__1::default_delete<IPC::Decoder> >) + 649
13  com.apple.WebKit              	0x0000000115e45870 IPC::Connection::dispatchOneMessage() + 1520
14  com.apple.WebKit              	0x0000000115e5d37d IPC::Connection::enqueueIncomingMessage(std::__1::unique_ptr<IPC::Decoder, std::__1::default_delete<IPC::Decoder> >)::$_14::operator()() + 29
15  com.apple.WebKit              	0x0000000115e5d2d9 WTF::Function<void ()>::CallableWrapper<IPC::Connection::enqueueIncomingMessage(std::__1::unique_ptr<IPC::Decoder, std::__1::default_delete<IPC::Decoder> >)::$_14>::call() + 25
16  JavaScriptCore                	0x0000000110121bdb WTF::Function<void ()>::operator()() const + 139
17  JavaScriptCore                	0x0000000110142053 WTF::RunLoop::performWork() + 211
18  JavaScriptCore                	0x00000001101428d4 WTF::RunLoop::performWork(void*) + 36
19  com.apple.CoreFoundation      	0x0000000115715c01 __CFRUNLOOP_IS_CALLING_OUT_TO_A_SOURCE0_PERFORM_FUNCTION__ + 17
20  com.apple.CoreFoundation      	0x00000001156fb0cf __CFRunLoopDoSources0 + 527
21  com.apple.CoreFoundation      	0x00000001156fa5ff __CFRunLoopRun + 911
22  com.apple.CoreFoundation      	0x00000001156fa016 CFRunLoopRunSpecific + 406
23  com.apple.Foundation          	0x0000000114c15480 -[NSRunLoop(NSRunLoop) runMode:beforeDate:] + 274
24  org.webkit.WebKitTestRunnerApp	0x000000010eacb324 WTR::TestController::platformRunUntil(bool&, double) + 260
25  org.webkit.WebKitTestRunnerApp	0x000000010eaa98b9 WTR::TestController::runUntil(bool&, double) + 73
26  org.webkit.WebKitTestRunnerApp	0x000000010eace240 WTR::TestInvocation::invoke() + 1344
27  org.webkit.WebKitTestRunnerApp	0x000000010eab0b55 WTR::TestController::runTest(char const*) + 2005
28  org.webkit.WebKitTestRunnerApp	0x000000010eab1bc1 WTR::TestController::runTestingServerLoop() + 177
29  org.webkit.WebKitTestRunnerApp	0x000000010eaa4356 WTR::TestController::run() + 54
30  org.webkit.WebKitTestRunnerApp	0x000000010eaa3e13 WTR::TestController::TestController(int, char const**) + 1523
31  org.webkit.WebKitTestRunnerApp	0x000000010eaa4513 WTR::TestController::TestController(int, char const**) + 35
32  org.webkit.WebKitTestRunnerApp	0x000000010ea94a2f -[WebKitTestRunnerApp _runTestController] + 47
33  com.apple.Foundation          	0x0000000114c61e51 __NSThreadPerformPerform + 334
34  com.apple.CoreFoundation      	0x0000000115715c01 __CFRUNLOOP_IS_CALLING_OUT_TO_A_SOURCE0_PERFORM_FUNCTION__ + 17
35  com.apple.CoreFoundation      	0x00000001156fb058 __CFRunLoopDoSources0 + 408
36  com.apple.CoreFoundation      	0x00000001156fa5ff __CFRunLoopRun + 911
37  com.apple.CoreFoundation      	0x00000001156fa016 CFRunLoopRunSpecific + 406
38  com.apple.GraphicsServices    	0x0000000115beda24 GSEventRunModal + 62
39  com.apple.UIKit               	0x00000001133950d4 UIApplicationMain + 159
40  org.webkit.WebKitTestRunnerApp	0x000000010ea94bba main + 138
41  libdyld.dylib                 	0x00000001273c965d start + 1
Comment 1 Ryosuke Niwa 2017-09-14 16:43:17 PDT
Committed r222061: <http://trac.webkit.org/changeset/222061>
Comment 2 Ryosuke Niwa 2017-09-15 00:15:27 PDT
Created attachment 320874 [details]
Fixes the crash
Comment 3 Radar WebKit Bug Importer 2017-09-15 00:15:47 PDT
<rdar://problem/34454843>
Comment 4 Radar WebKit Bug Importer 2017-09-15 00:15:49 PDT
<rdar://problem/34454844>
Comment 5 Ryosuke Niwa 2017-09-15 00:17:23 PDT
Created attachment 320875 [details]
Fixes the crash
Comment 6 WebKit Commit Bot 2017-09-15 02:20:17 PDT
Comment on attachment 320875 [details]
Fixes the crash

Clearing flags on attachment: 320875

Committed r222080: <http://trac.webkit.org/changeset/222080>
Comment 7 WebKit Commit Bot 2017-09-15 02:20:19 PDT
All reviewed patches have been landed.  Closing bug.