Bug 182050

Summary: [WPE][GTK] http/wpt/fetch/response-opaque-clone.html crashes
Product: WebKit Reporter: Ms2ger (he/him; ⌚ UTC+1/+2) <Ms2ger>
Component: Service WorkersAssignee: Nobody <webkit-unassigned>
Status: RESOLVED FIXED    
Severity: Normal CC: aboya, dpino, Hironori.Fujii, mcatanzaro, webkit-bug-importer, youennf
Priority: P2 Keywords: InRadar
Version: WebKit Nightly Build   
Hardware: Unspecified   
OS: Unspecified   

Description Ms2ger (he/him; ⌚ UTC+1/+2) 2018-01-24 08:04:15 PST
Since the test change in r227339, LayoutTests/http/wpt/fetch/response-opaque-clone.html is failing on WPE and GTK:

--- /http/wpt/fetch/response-opaque-clone-expected.txt
+++ /http/wpt/fetch/response-opaque-clone-actual.txt
@@ -1,3 +1,4 @@
+CONSOLE MESSAGE: Cache API operation failed: Quota exceeded
 
-PASS Check opaque response can be cloned and cached correctly 
+FAIL Check opaque response can be cloned and cached correctly promise_test: Unhandled rejection with value: object "QuotaExceededError: Quota exceeded"
Comment 1 Fujii Hironori 2018-02-04 18:28:25 PST
Crash seems to happen only in release builds.

https://build.webkit.org/builders/GTK%20Linux%2064-bit%20Release%20(Tests)/builds/5346

> Thread 1 (Thread 0x7fcd719d3480 (LWP 29087)):
> #0  0x00007fcd8096bdc0 in WebCore::FetchResponse::consumeBodyReceivedByChunk(WTF::Function<void (WebCore::ExceptionOr<WebCore::ReadableStreamChunk*>&&)>&&) () from /home/slave/webkitgtk/gtk-linux-64-release/build/WebKitBuild/Release/lib/libwebkit2gtk-4.0.so.37
> #1  0x00007fcd8094ee13 in WebCore::DOMCache::put(WTF::Variant<WTF::RefPtr<WebCore::FetchRequest, WTF::DumbPtrTraits<WebCore::FetchRequest> >, WTF::String>&&, WTF::Ref<WebCore::FetchResponse, WTF::DumbPtrTraits<WebCore::FetchResponse> >&&, WebCore::DOMPromiseDeferred<void>&&) () from /home/slave/webkitgtk/gtk-linux-64-release/build/WebKitBuild/Release/lib/libwebkit2gtk-4.0.so.37
> #2  0x00007fcd81810b0a in WebCore::jsDOMCachePrototypeFunctionPut(JSC::ExecState*) () from /home/slave/webkitgtk/gtk-linux-64-release/build/WebKitBuild/Release/lib/libwebkit2gtk-4.0.so.37
> #3  0x00007fcd299ff178 in ?? ()
> #4  0x00007ffead18b650 in ?? ()
> #5  0x00007fcd7dd72547 in llint_entry () from /home/slave/webkitgtk/gtk-linux-64-release/build/WebKitBuild/Release/lib/libjavascriptcoregtk-4.0.so.18
> Backtrace stopped: frame did not save the PC
Comment 2 Alicia Boya García 2018-02-14 04:19:29 PST
Sometimes fails, sometimes crashes (especially in recent builds, but it may be because of chance). I'll update expectations.
Comment 3 Michael Catanzaro 2018-06-15 10:26:08 PDT
(In reply to Alicia Boya García from comment #2)
> Sometimes fails, sometimes crashes (especially in recent builds, but it may
> be because of chance). I'll update expectations.

Passing since https://trac.webkit.org/changeset/232863/webkit, but I doubt the crash is gone, so leaving this open.
Comment 4 Diego Pino 2020-06-18 23:16:44 PDT
The test(s) filed under this bug have been consistently passing for the last 4000 revisions. Marking bug as fixed.

Committed r263254: <https://trac.webkit.org/changeset/263254>
Comment 5 Radar WebKit Bug Importer 2020-06-18 23:17:20 PDT
<rdar://problem/64520251>