ASSERTION FAILURE: ASSERT_NOT_REACHED() in Connection::writeEventHandler() after...
authorjberlin@webkit.org <jberlin@webkit.org@268f45cc-cd09-0410-ab3c-d52691b4dbfc>
Tue, 8 Feb 2011 16:28:16 +0000 (16:28 +0000)
committerjberlin@webkit.org <jberlin@webkit.org@268f45cc-cd09-0410-ab3c-d52691b4dbfc>
Tue, 8 Feb 2011 16:28:16 +0000 (16:28 +0000)
Process crashes.
https://bugs.webkit.org/show_bug.cgi?id=54005

Reviewed by Adam Roben.

* Platform/CoreIPC/win/ConnectionWin.cpp:
(CoreIPC::Connection::writeEventHandler):
Handle ERROR_BROKEN_PIPE by calling connectionDidClose() and returning early.

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

Source/WebKit2/ChangeLog
Source/WebKit2/Platform/CoreIPC/win/ConnectionWin.cpp

index 6895699..a838f77 100644 (file)
@@ -1,3 +1,15 @@
+2011-02-08  Jessie Berlin  <jberlin@apple.com>
+
+        Reviewed by Adam Roben.
+
+        ASSERTION FAILURE: ASSERT_NOT_REACHED() in Connection::writeEventHandler() after the Web
+        Process crashes.
+        https://bugs.webkit.org/show_bug.cgi?id=54005
+
+        * Platform/CoreIPC/win/ConnectionWin.cpp:
+        (CoreIPC::Connection::writeEventHandler):
+        Handle ERROR_BROKEN_PIPE by calling connectionDidClose() and returning early.
+
 2011-02-08  Adam Roben  <aroben@apple.com>
 
         Handle WM_TIMER messages for stopped timers
 2011-02-08  Adam Roben  <aroben@apple.com>
 
         Handle WM_TIMER messages for stopped timers
index 9d2232c..ab44658 100644 (file)
@@ -242,6 +242,10 @@ void Connection::writeEventHandler()
             // FIXME: We should figure out why we're getting this error.
             return;
         }
             // FIXME: We should figure out why we're getting this error.
             return;
         }
+        if (error == ERROR_BROKEN_PIPE) {
+            connectionDidClose();
+            return;
+        }
         ASSERT_NOT_REACHED();
     }
 
         ASSERT_NOT_REACHED();
     }