Title: [241986] trunk/Source/WebCore
- Revision
- 241986
- Author
- [email protected]
- Date
- 2019-02-22 21:05:03 -0800 (Fri, 22 Feb 2019)
Log Message
Crash in SWServerJobQueue::runNextJobSynchronously
https://bugs.webkit.org/show_bug.cgi?id=194974
Reviewed by Geoffrey Garen.
We suspect the crash is happening due to m_jobQueue being empty in runNextJobSynchronously
or there is a timer heap corruption again :(
Exit early when m_jobQueue is empty. Also add a debug assert that this should never happen
but convert an existing release assert to a debug assert since this appears to be hitting
too frequently in wild.
* workers/service/server/SWServerJobQueue.cpp:
(WebCore::SWServerJobQueue::runNextJobSynchronously):
Modified Paths
Diff
Modified: trunk/Source/WebCore/ChangeLog (241985 => 241986)
--- trunk/Source/WebCore/ChangeLog 2019-02-23 04:50:56 UTC (rev 241985)
+++ trunk/Source/WebCore/ChangeLog 2019-02-23 05:05:03 UTC (rev 241986)
@@ -1,3 +1,20 @@
+2019-02-22 Ryosuke Niwa <[email protected]>
+
+ Crash in SWServerJobQueue::runNextJobSynchronously
+ https://bugs.webkit.org/show_bug.cgi?id=194974
+
+ Reviewed by Geoffrey Garen.
+
+ We suspect the crash is happening due to m_jobQueue being empty in runNextJobSynchronously
+ or there is a timer heap corruption again :(
+
+ Exit early when m_jobQueue is empty. Also add a debug assert that this should never happen
+ but convert an existing release assert to a debug assert since this appears to be hitting
+ too frequently in wild.
+
+ * workers/service/server/SWServerJobQueue.cpp:
+ (WebCore::SWServerJobQueue::runNextJobSynchronously):
+
2019-02-22 Simon Fraser <[email protected]>
Clean up the setScrollPosition/setScrollPositionWithoutContentEdgeConstraints confusion in the scrolling tree nodes
Modified: trunk/Source/WebCore/workers/service/server/SWServerJobQueue.cpp (241985 => 241986)
--- trunk/Source/WebCore/workers/service/server/SWServerJobQueue.cpp 2019-02-23 04:50:56 UTC (rev 241985)
+++ trunk/Source/WebCore/workers/service/server/SWServerJobQueue.cpp 2019-02-23 05:05:03 UTC (rev 241986)
@@ -234,6 +234,10 @@
void SWServerJobQueue::runNextJobSynchronously()
{
+ ASSERT(!m_jobQueue.isEmpty());
+ if (m_jobQueue.isEmpty())
+ return;
+
auto& job = firstJob();
switch (job.type) {
case ServiceWorkerJobType::Register:
@@ -247,7 +251,7 @@
return;
}
- RELEASE_ASSERT_NOT_REACHED();
+ ASSERT_NOT_REACHED();
}
// https://w3c.github.io/ServiceWorker/#register-algorithm
_______________________________________________
webkit-changes mailing list
[email protected]
https://lists.webkit.org/mailman/listinfo/webkit-changes