<?xml version="1.0" encoding="UTF-8" standalone="yes" ?>
<!DOCTYPE bugzilla SYSTEM "https://bugs.webkit.org/page.cgi?id=bugzilla.dtd">

<bugzilla version="5.0.4.1"
          urlbase="https://bugs.webkit.org/"
          
          maintainer="admin@webkit.org"
>

    <bug>
          <bug_id>210390</bug_id>
          
          <creation_ts>2020-04-11 12:58:36 -0700</creation_ts>
          <short_desc>[GTK] imported/w3c/web-platform-tests/encrypted-media/clearkey-mp4-setmediakeys-again-after-resetting-src.https.html is sometimes crashing</short_desc>
          <delta_ts>2023-01-10 07:47:33 -0800</delta_ts>
          <reporter_accessible>1</reporter_accessible>
          <cclist_accessible>1</cclist_accessible>
          <classification_id>1</classification_id>
          <classification>Unclassified</classification>
          <product>WebKit</product>
          <component>Media</component>
          <version>WebKit Nightly Build</version>
          <rep_platform>Unspecified</rep_platform>
          <op_sys>Unspecified</op_sys>
          <bug_status>RESOLVED</bug_status>
          <resolution>FIXED</resolution>
          
          <see_also>https://bugs.webkit.org/show_bug.cgi?id=210970</see_also>
    
    <see_also>https://bugs.webkit.org/show_bug.cgi?id=204670</see_also>
          <bug_file_loc></bug_file_loc>
          <status_whiteboard></status_whiteboard>
          <keywords>InRadar</keywords>
          <priority>P2</priority>
          <bug_severity>Normal</bug_severity>
          <target_milestone>---</target_milestone>
          
          
          <everconfirmed>1</everconfirmed>
          <reporter name="Diego Pino">dpino</reporter>
          <assigned_to name="Nobody">webkit-unassigned</assigned_to>
          <cc>calvaris</cc>
    
    <cc>webkit-bug-importer</cc>
          

      

      

      

          <comment_sort_order>oldest_to_newest</comment_sort_order>  
          <long_desc isprivate="0" >
    <commentid>1640595</commentid>
    <comment_count>0</comment_count>
    <who name="Diego Pino">dpino</who>
    <bug_when>2020-04-11 12:58:36 -0700</bug_when>
    <thetext>The test started to sporadically crash in:

r259842-r259844]             NOERROR
[r259845-r259846]             UNKNOWN
r259847                       NOERROR
[r259848-r259850]             UNKNOWN
[r259851-r259852]             CRASH (Expected: PASS)
[r259853-r259857]             UNKNOWN
r259858                       NOERROR

See https://build.webkit.org/results/GTK%20Linux%2064-bit%20Release%20(Tests)/r259851%20(13275)/media/encrypted-media/clearKey/clearKey-webm-video-playback-mse-crash-log.txt

Thread 1 (Thread 0x7fba836a89c0 (LWP 10352)):
#0  0x00007fba8f406ff4 in WebCore::MediaPlayer::waitingForKeyChanged() () from /home/slave/webkitgtk/gtk-linux-64-release/build/WebKitBuild/Release/lib/libwebkit2gtk-4.0.so.37
#1  0x00007fba8bae3155 in WTF::dispatchFunctionsFromMainThread() () from /home/slave/webkitgtk/gtk-linux-64-release/build/WebKitBuild/Release/lib/libjavascriptcoregtk-4.0.so.18
#2  0x00007fba8badfd33 in WTF::RunLoop::TimerBase::TimerBase(WTF::RunLoop&amp;)::{lambda(void*)#1}::_FUN(void*) () from /home/slave/webkitgtk/gtk-linux-64-release/build/WebKitBuild/Release/lib/libjavascriptcoregtk-4.0.so.18
#3  0x00007fba856bd6b8 in g_main_dispatch () at ../../Source/glib-2.58.1/glib/gmain.c:3182
#4  g_main_context_dispatch () at ../../Source/glib-2.58.1/glib/gmain.c:3847
#5  0x00007fba856bda78 in g_main_context_iterate () at ../../Source/glib-2.58.1/glib/gmain.c:3920
#6  0x00007fba856bdd62 in g_main_loop_run () at ../../Source/glib-2.58.1/glib/gmain.c:4116
#7  0x00007fba8bae0170 in WTF::RunLoop::run() () from /home/slave/webkitgtk/gtk-linux-64-release/build/WebKitBuild/Release/lib/libjavascriptcoregtk-4.0.so.18
#8  0x00007fba8e30e4dd in int WebKit::AuxiliaryProcessMain&lt;WebKit::WebProcess, WebKit::WebProcessMainGtk&gt;(int, char**) () from /home/slave/webkitgtk/gtk-linux-64-release/build/WebKitBuild/Release/lib/libwebkit2gtk-4.0.so.37
#9  0x00007fba8517009b in __libc_start_main (main=0x558603a2ac10 &lt;main&gt;, argc=4, argv=0x7fff19333758, init=&lt;optimized out&gt;, fini=&lt;optimized out&gt;, rtld_fini=&lt;optimized out&gt;, stack_end=0x7fff19333748) at ../csu/libc-start.c:308
#10 0x0000558603a2ac8a in _start ()</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>1641740</commentid>
    <comment_count>1</comment_count>
    <who name="Diego Pino">dpino</who>
    <bug_when>2020-04-15 05:18:29 -0700</bug_when>
    <thetext>Another test with a similar stacktrace:

  streams/clone-array-buffer.html

See: https://ews-build.webkit-uat.org/results/GTK-WK2-Tests-EWS/r396230-493-rerun/streams/clone-array-buffer-crash-log.txt

Thread 1 (Thread 0x7f3791f509c0 (LWP 40591)):
#0  0x00007f379d896bb7 in WebCore::MediaPlayer::waitingForKeyChanged() () from /home/ews/worker/GTK-Build-EWS/build/WebKitBuild/Release/lib/libwebkit2gtk-4.0.so.37
#1  0x00007f3799f671f5 in WTF::dispatchFunctionsFromMainThread() () from /home/ews/worker/GTK-Build-EWS/build/WebKitBuild/Release/lib/libjavascriptcoregtk-4.0.so.18
#2  0x00007f3799f63dd3 in WTF::RunLoop::TimerBase::TimerBase(WTF::RunLoop&amp;)::{lambda(void*)#1}::_FUN(void*) () from /home/ews/worker/GTK-Build-EWS/build/WebKitBuild/Release/lib/libjavascriptcoregtk-4.0.so.18
#3  0x00007f3793f646b8 in g_main_dispatch () at ../../Source/glib-2.58.1/glib/gmain.c:3182
#4  g_main_context_dispatch () at ../../Source/glib-2.58.1/glib/gmain.c:3847
#5  0x00007f3793f64a78 in g_main_context_iterate () at ../../Source/glib-2.58.1/glib/gmain.c:3920
#6  0x00007f3793f64d62 in g_main_loop_run () at ../../Source/glib-2.58.1/glib/gmain.c:4116
#7  0x00007f3799f64210 in WTF::RunLoop::run() () from /home/ews/worker/GTK-Build-EWS/build/WebKitBuild/Release/lib/libjavascriptcoregtk-4.0.so.18
#8  0x00007f379c79b84d in int WebKit::AuxiliaryProcessMain&lt;WebKit::WebProcess, WebKit::WebProcessMainGtk&gt;(int, char**) () from /home/ews/worker/GTK-Build-EWS/build/WebKitBuild/Release/lib/libwebkit2gtk-4.0.so.37
#9  0x00007f3793a1709b in __libc_start_main (main=0x556170c8fc00 &lt;main&gt;, argc=4, argv=0x7ffe0ddd3b68, init=&lt;optimized out&gt;, fini=&lt;optimized out&gt;, rtld_fini=&lt;optimized out&gt;, stack_end=0x7ffe0ddd3b58) at ../csu/libc-start.c:308
#10 0x0000556170c8fc7a in _start ()</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>1641742</commentid>
    <comment_count>2</comment_count>
    <who name="Diego Pino">dpino</who>
    <bug_when>2020-04-15 05:30:40 -0700</bug_when>
    <thetext>Another test failure with the same stacktrace:

  storage/domstorage/localstorage/access-storage-after-window-close.html

See: https://ews-build.webkit-uat.org/results/GTK-WK2-Tests-EWS/r396471-625-rerun/storage/domstorage/localstorage/access-storage-after-window-close-crash-log.txt

Stacktrace:

Thread 1 (Thread 0x7efcbea2b9c0 (LWP 33092)):
#0  0x00007efcca3760d4 in WebCore::MediaPlayer::waitingForKeyChanged() () from /home/ews/worker/GTK-Build-EWS/build/WebKitBuild/Release/lib/libwebkit2gtk-4.0.so.37
#1  0x00007efcc6a41fa5 in WTF::dispatchFunctionsFromMainThread() () from /home/ews/worker/GTK-Build-EWS/build/WebKitBuild/Release/lib/libjavascriptcoregtk-4.0.so.18
#2  0x00007efcc6a3eb83 in WTF::RunLoop::TimerBase::TimerBase(WTF::RunLoop&amp;)::{lambda(void*)#1}::_FUN(void*) () from /home/ews/worker/GTK-Build-EWS/build/WebKitBuild/Release/lib/libjavascriptcoregtk-4.0.so.18
#3  0x00007efcc0a3f6b8 in g_main_dispatch () at ../../Source/glib-2.58.1/glib/gmain.c:3182
#4  g_main_context_dispatch () at ../../Source/glib-2.58.1/glib/gmain.c:3847
#5  0x00007efcc0a3fa78 in g_main_context_iterate () at ../../Source/glib-2.58.1/glib/gmain.c:3920
#6  0x00007efcc0a3fd62 in g_main_loop_run () at ../../Source/glib-2.58.1/glib/gmain.c:4116
#7  0x00007efcc6a3efc0 in WTF::RunLoop::run() () from /home/ews/worker/GTK-Build-EWS/build/WebKitBuild/Release/lib/libjavascriptcoregtk-4.0.so.18
#8  0x00007efcc927b36d in int WebKit::AuxiliaryProcessMain&lt;WebKit::WebProcess, WebKit::WebProcessMainGtk&gt;(int, char**) () from /home/ews/worker/GTK-Build-EWS/build/WebKitBuild/Release/lib/libwebkit2gtk-4.0.so.37
#9  0x00007efcc04f209b in __libc_start_main (main=0x559aeffc0c00 &lt;main&gt;, argc=4, argv=0x7ffc399a6618, init=&lt;optimized out&gt;, fini=&lt;optimized out&gt;, rtld_fini=&lt;optimized out&gt;, stack_end=0x7ffc399a6608) at ../csu/libc-start.c:308
#10 0x0000559aeffc0c7a in _start ()</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>1641747</commentid>
    <comment_count>3</comment_count>
    <who name="Diego Pino">dpino</who>
    <bug_when>2020-04-15 05:40:41 -0700</bug_when>
    <thetext>Two other test failures with similar stacktrace:

  storage/domstorage/sessionstorage/blocked-file-access.html
  storage/websql/change-version-handle-reuse.html

See: https://ews-build.webkit-uat.org/results/GTK-WK2-Tests-EWS/r396444-608/storage/domstorage/sessionstorage/blocked-file-access-crash-log.txt

Thread 1 (Thread 0x7f35ece399c0 (LWP 8427)):
#0  0x00007f35f8783637 in WebCore::MediaPlayer::waitingForKeyChanged() () from /home/ews/worker/GTK-Build-EWS/build/WebKitBuild/Release/lib/libwebkit2gtk-4.0.so.37
#1  0x00007f35f4e4ffa5 in WTF::dispatchFunctionsFromMainThread() () from /home/ews/worker/GTK-Build-EWS/build/WebKitBuild/Release/lib/libjavascriptcoregtk-4.0.so.18
#2  0x00007f35f4e4cb83 in WTF::RunLoop::TimerBase::TimerBase(WTF::RunLoop&amp;)::{lambda(void*)#1}::_FUN(void*) () from /home/ews/worker/GTK-Build-EWS/build/WebKitBuild/Release/lib/libjavascriptcoregtk-4.0.so.18
#3  0x00007f35eee4d6b8 in g_main_dispatch () at ../../Source/glib-2.58.1/glib/gmain.c:3182
#4  g_main_context_dispatch () at ../../Source/glib-2.58.1/glib/gmain.c:3847
#5  0x00007f35eee4da78 in g_main_context_iterate () at ../../Source/glib-2.58.1/glib/gmain.c:3920
#6  0x00007f35eee4dd62 in g_main_loop_run () at ../../Source/glib-2.58.1/glib/gmain.c:4116
#7  0x00007f35f4e4cfc0 in WTF::RunLoop::run() () from /home/ews/worker/GTK-Build-EWS/build/WebKitBuild/Release/lib/libjavascriptcoregtk-4.0.so.18
#8  0x00007f35f7688a2d in int WebKit::AuxiliaryProcessMain&lt;WebKit::WebProcess, WebKit::WebProcessMainGtk&gt;(int, char**) () from /home/ews/worker/GTK-Build-EWS/build/WebKitBuild/Release/lib/libwebkit2gtk-4.0.so.37
#9  0x00007f35ee90009b in __libc_start_main (main=0x5627167f1c00 &lt;main&gt;, argc=4, argv=0x7ffde47dd508, init=&lt;optimized out&gt;, fini=&lt;optimized out&gt;, rtld_fini=&lt;optimized out&gt;, stack_end=0x7ffde47dd4f8) at ../csu/libc-start.c:308
#10 0x00005627167f1c7a in _start ()


See: https://ews-build.webkit-uat.org/results/GTK-WK2-Tests-EWS/r396362-568/storage/websql/change-version-handle-reuse-crash-log.txt

Stacktrace:

Thread 1 (Thread 0x7f02ad04a9c0 (LWP 87226)):
#0  0x0000000000000000 in ?? ()
#1  0x00007f02b5060fa5 in WTF::dispatchFunctionsFromMainThread() () from /home/ews/worker/GTK-Build-EWS/build/WebKitBuild/Release/lib/libjavascriptcoregtk-4.0.so.18
#2  0x00007f02b505db83 in WTF::RunLoop::TimerBase::TimerBase(WTF::RunLoop&amp;)::{lambda(void*)#1}::_FUN(void*) () from /home/ews/worker/GTK-Build-EWS/build/WebKitBuild/Release/lib/libjavascriptcoregtk-4.0.so.18
#3  0x00007f02af05e6b8 in g_main_dispatch () at ../../Source/glib-2.58.1/glib/gmain.c:3182
#4  g_main_context_dispatch () at ../../Source/glib-2.58.1/glib/gmain.c:3847
#5  0x00007f02af05ea78 in g_main_context_iterate () at ../../Source/glib-2.58.1/glib/gmain.c:3920
#6  0x00007f02af05ed62 in g_main_loop_run () at ../../Source/glib-2.58.1/glib/gmain.c:4116
#7  0x00007f02b505dfc0 in WTF::RunLoop::run() () from /home/ews/worker/GTK-Build-EWS/build/WebKitBuild/Release/lib/libjavascriptcoregtk-4.0.so.18
#8  0x00007f02b78969dd in int WebKit::AuxiliaryProcessMain&lt;WebKit::WebProcess, WebKit::WebProcessMainGtk&gt;(int, char**) () from /home/ews/worker/GTK-Build-EWS/build/WebKitBuild/Release/lib/libwebkit2gtk-4.0.so.37
#9  0x00007f02aeb1109b in __libc_start_main (main=0x561d725acc00 &lt;main&gt;, argc=4, argv=0x7ffc21416de8, init=&lt;optimized out&gt;, fini=&lt;optimized out&gt;, rtld_fini=&lt;optimized out&gt;, stack_end=0x7ffc21416dd8) at ../csu/libc-start.c:308
#10 0x0000561d725acc7a in _start ()

In the case of change-version-handle-reuse.html, the name of the crashing function could not be resolved. There&apos;s a chance it was not WebCore::MediaPlayer::waitingForKeyChanged().</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>1641752</commentid>
    <comment_count>4</comment_count>
    <who name="Diego Pino">dpino</who>
    <bug_when>2020-04-15 05:51:34 -0700</bug_when>
    <thetext>More tests with the same stacktrace:

  svg/animated-svgImage-scroll.html
  svg/animations/accumulate-values-width-animation.html
  svg/W3C-I18N/g-dirLTR-ubNone.svg

https://ews-build.webkit-uat.org/results/GTK-WK2-Tests-EWS/r396449-611/svg/animated-svgImage-scroll-crash-log.txt

https://ews-build.webkit-uat.org/results/GTK-WK2-Tests-EWS/r396463-621/svg/animations/accumulate-values-width-animation-crash-log.txt

https://ews-build.webkit-uat.org/results/GTK-WK2-Tests-EWS/r396191-478/svg/W3C-I18N/g-dirLTR-ubNone-crash-log.txt

Thread 1 (Thread 0x7efef5ada9c0 (LWP 50266)):
#0  0x00007eff01469d67 in WebCore::MediaPlayer::waitingForKeyChanged() () from /home/ews-gtk/worker/GTK-Build-EWS/build/WebKitBuild/Release/lib/libwebkit2gtk-4.0.so.37
#1  0x00007efefdb20acd in WTF::dispatchFunctionsFromMainThread() () from /home/ews-gtk/worker/GTK-Build-EWS/build/WebKitBuild/Release/lib/libjavascriptcoregtk-4.0.so.18
#2  0x00007efefdb1d2e3 in WTF::RunLoop::TimerBase::TimerBase(WTF::RunLoop&amp;)::{lambda(void*)#1}::_FUN(void*) () from /home/ews-gtk/worker/GTK-Build-EWS/build/WebKitBuild/Release/lib/libjavascriptcoregtk-4.0.so.18
#3  0x00007efef7aee6b8 in g_main_dispatch () at ../../Source/glib-2.58.1/glib/gmain.c:3182
#4  g_main_context_dispatch () at ../../Source/glib-2.58.1/glib/gmain.c:3847
#5  0x00007efef7aeea78 in g_main_context_iterate () at ../../Source/glib-2.58.1/glib/gmain.c:3920
#6  0x00007efef7aeed62 in g_main_loop_run () at ../../Source/glib-2.58.1/glib/gmain.c:4116
#7  0x00007efefdb1d6e8 in WTF::RunLoop::run() () from /home/ews-gtk/worker/GTK-Build-EWS/build/WebKitBuild/Release/lib/libjavascriptcoregtk-4.0.so.18
#8  0x00007eff00348255 in WebKit::WebProcessMain(int, char**) () from /home/ews-gtk/worker/GTK-Build-EWS/build/WebKitBuild/Release/lib/libwebkit2gtk-4.0.so.37
#9  0x00007efef75a109b in __libc_start_main (main=0x561f5908ec00 &lt;main&gt;, argc=4, argv=0x7fffb0474b98, init=&lt;optimized out&gt;, fini=&lt;optimized out&gt;, rtld_fini=&lt;optimized out&gt;, stack_end=0x7fffb0474b88) at ../csu/libc-start.c:308
#10 0x0000561f5908ec7a in _start ()</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>1660570</commentid>
    <comment_count>5</comment_count>
    <who name="Diego Pino">dpino</who>
    <bug_when>2020-06-08 21:47:41 -0700</bug_when>
    <thetext>imported/w3c/web-platform-tests/encrypted-media/clearkey-mp4-setmediakeys-again-after-resetting-src.https.html [ Crash ]

Crash-log: https://build.webkit.org/results/GTK%20Linux%2064-bit%20Release%20(Tests)/r262751%20(14006)/imported/w3c/web-platform-tests/encrypted-media/clearkey-mp4-setmediakeys-again-after-resetting-src.https-crash-log.txt

Thread 1 (Thread 0x7fcec0d822c0 (LWP 71215)):
#0  0x00007fcecb62f9b7 in WebCore::MediaPlayer::waitingForKeyChanged() () at /app/webkit/WebKitBuild/Release/lib/libwebkit2gtk-4.0.so.37
#1  0x00007fcec748f375 in WTF::dispatchFunctionsFromMainThread() () at /app/webkit/WebKitBuild/Release/lib/libjavascriptcoregtk-4.0.so.18
#2  0x00007fcec748bef4 in WTF::RunLoop::TimerBase::TimerBase(WTF::RunLoop&amp;)::{lambda(void*)#1}::_FUN(void*) () at /app/webkit/WebKitBuild/Release/lib/libjavascriptcoregtk-4.0.so.18
#3  0x00007fcec2fc2c3e in g_main_dispatch (context=0x558c08736440) at ../glib/gmain.c:3309
#4  0x00007fcec2fc2c3e in g_main_context_dispatch (context=context@entry=0x558c08736440) at ../glib/gmain.c:3974
#5  0x00007fcec2fc2ff0 in g_main_context_iterate (context=0x558c08736440, block=block@entry=1, dispatch=dispatch@entry=1, self=&lt;optimized out&gt;) at ../glib/gmain.c:4047
#6  0x00007fcec2fc32e3 in g_main_loop_run (loop=0x558c08763d80) at ../glib/gmain.c:4241
#7  0x00007fcec748c330 in WTF::RunLoop::run() () at /app/webkit/WebKitBuild/Release/lib/libjavascriptcoregtk-4.0.so.18
#8  0x00007fceca0ac01f in WebKit::WebProcessMain(int, char**) () at /app/webkit/WebKitBuild/Release/lib/libwebkit2gtk-4.0.so.37
#9  0x00007fcec1bf6183 in __libc_start_main (main=0x558c068b3c00 &lt;main&gt;, argc=4, argv=0x7ffcb110b5a8, init=&lt;optimized out&gt;, fini=&lt;optimized out&gt;, rtld_fini=&lt;optimized out&gt;, stack_end=0x7ffcb110b598) at ../csu/libc-start.c:308
#10 0x0000558c068b3c8e in _start () at ../sysdeps/x86_64/start.S:120</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>1710061</commentid>
    <comment_count>6</comment_count>
    <who name="Xabier Rodríguez Calvar">calvaris</who>
    <bug_when>2020-11-25 08:04:59 -0800</bug_when>
    <thetext>This is clearly a problem of the test not being properly tear down because it does not make sense to see waitingForKey in a test that is absolutely not related to EME.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>1742843</commentid>
    <comment_count>7</comment_count>
    <who name="Xabier Rodríguez Calvar">calvaris</who>
    <bug_when>2021-03-23 09:27:40 -0700</bug_when>
    <thetext>I am not seeing this crash anymore. Should we unflag this?</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>1744188</commentid>
    <comment_count>8</comment_count>
    <who name="Xabier Rodríguez Calvar">calvaris</who>
    <bug_when>2021-03-26 08:44:57 -0700</bug_when>
    <thetext>The test reported by this bug works and there are other two tests handled by this bug. One works and the other does not so I am renaming the bug for the one that flakily crashes and unflag the two others.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>1924434</commentid>
    <comment_count>9</comment_count>
    <who name="Diego Pino">dpino</who>
    <bug_when>2023-01-10 07:44:09 -0800</bug_when>
    <thetext>The test or tests filed under this bug are not failing anymore. Test expectations updated in https://commits.webkit.org/258724@main.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>1924465</commentid>
    <comment_count>10</comment_count>
    <who name="Radar WebKit Bug Importer">webkit-bug-importer</who>
    <bug_when>2023-01-10 07:47:33 -0800</bug_when>
    <thetext>&lt;rdar://problem/104077422&gt;</thetext>
  </long_desc>
      
      

    </bug>

</bugzilla>