Add some more crash reporter information to diagnose a failed mach_msg
authorandersca@apple.com <andersca@apple.com@268f45cc-cd09-0410-ab3c-d52691b4dbfc>
Mon, 30 Jan 2017 23:37:57 +0000 (23:37 +0000)
committerandersca@apple.com <andersca@apple.com@268f45cc-cd09-0410-ab3c-d52691b4dbfc>
Mon, 30 Jan 2017 23:37:57 +0000 (23:37 +0000)
https://bugs.webkit.org/show_bug.cgi?id=167610

Reviewed by Dean Jackson.

Include the receive port name as well.

* Platform/IPC/mac/ConnectionMac.mm:
(IPC::readFromMachPort):

git-svn-id: https://svn.webkit.org/repository/webkit/trunk@211390 268f45cc-cd09-0410-ab3c-d52691b4dbfc

Source/WebKit2/ChangeLog
Source/WebKit2/Platform/IPC/mac/ConnectionMac.mm

index 045432e..65216e3 100644 (file)
@@ -1,3 +1,15 @@
+2017-01-30  Anders Carlsson  <andersca@apple.com>
+
+        Add some more crash reporter information to diagnose a failed mach_msg
+        https://bugs.webkit.org/show_bug.cgi?id=167610
+
+        Reviewed by Dean Jackson.
+
+        Include the receive port name as well.
+
+        * Platform/IPC/mac/ConnectionMac.mm:
+        (IPC::readFromMachPort):
+
 2017-01-30  Simon Fraser  <simon.fraser@apple.com>
 
         [iOS] position:fixed inside touch-scrollable overflow is mispositioned
index d523398..72b3aa8 100644 (file)
@@ -498,7 +498,7 @@ static mach_msg_header_t* readFromMachPort(mach_port_t machPort, ReceiveBuffer&
 
     if (kr != MACH_MSG_SUCCESS) {
 #if !ASSERT_DISABLED
-        WKSetCrashReportApplicationSpecificInformation((CFStringRef)[NSString stringWithFormat:@"Unhandled error code %x from mach_msg", kr]);
+        WKSetCrashReportApplicationSpecificInformation((CFStringRef)[NSString stringWithFormat:@"Unhandled error code %x from mach_msg, receive port is %x", kr, machPort]);
 #endif
         ASSERT_NOT_REACHED();
         return 0;