Bug 183903

Summary: [GTK] http/tests/media/video-buffered-range-contains-currentTime.html is flaky
Product: WebKit Reporter: Miguel Gomez <magomez>
Component: WebKitGTKAssignee: Nobody <webkit-unassigned>
Status: RESOLVED FIXED    
Severity: Normal CC: bugs-noreply, dpino
Priority: P2    
Version: WebKit Nightly Build   
Hardware: Unspecified   
OS: Unspecified   

Description Miguel Gomez 2018-03-22 08:11:04 PDT
It doesn't happen very often, but this test crashes every now and then.
The full trace is https://build.webkit.org/results/GTK%20Linux%2064-bit%20Release%20(Tests)/r229847%20(5939)/http/tests/media/video-buffered-range-contains-currentTime-crash-log.txt

We're having an XError, as this is the stderr

WebKitWebProcess:5785): Gdk-ERROR **: The program 'WebKitWebProcess' received an X Window System error.
This probably reflects a bug in the program.
The error was 'BadAccess (attempt to access private resource denied)'.
  (Details: serial 834 error_code 10 request_code 130 (MIT-SHM) minor_code 1)
  (Note to programmers: normally, X errors are reported asynchronously;
   that is, you will receive the error a while after causing it.
   To debug your program, run it with the GDK_SYNCHRONIZE environment
   variable to change this behavior. You can then get a meaningful
   backtrace from your debugger if you break on the gdk_x_error() function.)


And this seems to be the problematic thread of the trace
Thread 26 (Thread 0x7f9af97f2700 (LWP 5876)):
#0  pthread_cond_wait@@GLIBC_2.3.2 () at ../sysdeps/unix/sysv/linux/x86_64/pthread_cond_wait.S:185
#1  0x00007f9b90fe8730 in ?? () from /usr/lib/x86_64-linux-gnu/libX11.so.6
#2  0x00007f9b90fe8bc9 in ?? () from /usr/lib/x86_64-linux-gnu/libX11.so.6
#3  0x00007f9b90ff0080 in XPutImage () from /usr/lib/x86_64-linux-gnu/libX11.so.6
#4  0x00007f9b9a43a6c9 in swrastPutImage2 () at /home/slave/webkitgtk/gtk-linux-64-release-tests/build/WebKitBuild/DependenciesGTK/Source/Mesa/src/glx/drisw_glx.c:166
#5  0x00007f9b9a43a703 in swrastPutImage () at /home/slave/webkitgtk/gtk-linux-64-release-tests/build/WebKitBuild/DependenciesGTK/Source/Mesa/src/glx/drisw_glx.c:176
#6  0x00007f9b07ce36b6 in put_image () at /home/slave/webkitgtk/gtk-linux-64-release-tests/build/WebKitBuild/DependenciesGTK/Source/Mesa/src/gallium/state_trackers/dri/drisw.c:72
#7  drisw_put_image () at /home/slave/webkitgtk/gtk-linux-64-release-tests/build/WebKitBuild/DependenciesGTK/Source/Mesa/src/gallium/state_trackers/dri/drisw.c:142
#8  0x00007f9b07ce3dee in drisw_present_texture () at /home/slave/webkitgtk/gtk-linux-64-release-tests/build/WebKitBuild/DependenciesGTK/Source/Mesa/src/gallium/state_trackers/dri/drisw.c:165
#9  drisw_copy_to_front () at /home/slave/webkitgtk/gtk-linux-64-release-tests/build/WebKitBuild/DependenciesGTK/Source/Mesa/src/gallium/state_trackers/dri/drisw.c:182
#10 drisw_swap_buffers () at /home/slave/webkitgtk/gtk-linux-64-release-tests/build/WebKitBuild/DependenciesGTK/Source/Mesa/src/gallium/state_trackers/dri/drisw.c:209
#11 0x00007f9b9a43a115 in driswSwapBuffers () at /home/slave/webkitgtk/gtk-linux-64-release-tests/build/WebKitBuild/DependenciesGTK/Source/Mesa/src/glx/drisw_glx.c:558
#12 0x00007f9b97fd816b in _ZN6WebKit18ThreadedCompositor15renderLayerTreeEv () from /home/slave/webkitgtk/gtk-linux-64-release/build/WebKitBuild/Release/lib/libwebkit2gtk-4.0.so.37
#13 0x00007f9b97fd6cb1 in _ZN6WebKit18CompositingRunLoop16updateTimerFiredEv () from /home/slave/webkitgtk/gtk-linux-64-release/build/WebKitBuild/Release/lib/libwebkit2gtk-4.0.so.37
#14 0x00007f9b95d86b93 in _ZZN3WTF7RunLoop9TimerBaseC4ERS0_ENUlPvE_4_FUNES3_ () from /home/slave/webkitgtk/gtk-linux-64-release/build/WebKitBuild/Release/lib/libjavascriptcoregtk-4.0.so.18
#15 0x00007f9b918a081a in g_main_dispatch () at /home/slave/webkitgtk/gtk-linux-64-release-tests/build/WebKitBuild/DependenciesGTK/Source/glib-2.54.2/glib/gmain.c:3148
#16 g_main_context_dispatch () at /home/slave/webkitgtk/gtk-linux-64-release-tests/build/WebKitBuild/DependenciesGTK/Source/glib-2.54.2/glib/gmain.c:3813
#17 0x00007f9b918a0ba8 in g_main_context_iterate () at /home/slave/webkitgtk/gtk-linux-64-release-tests/build/WebKitBuild/DependenciesGTK/Source/glib-2.54.2/glib/gmain.c:3886
#18 0x00007f9b918a0ec2 in g_main_loop_run () at /home/slave/webkitgtk/gtk-linux-64-release-tests/build/WebKitBuild/DependenciesGTK/Source/glib-2.54.2/glib/gmain.c:4082
#19 0x00007f9b95d86fc0 in _ZN3WTF7RunLoop3runEv () from /home/slave/webkitgtk/gtk-linux-64-release/build/WebKitBuild/Release/lib/libjavascriptcoregtk-4.0.so.18
#20 0x00007f9b95d51feb in _ZN3WTF6Thread10entryPointEPNS0_16NewThreadContextE () from /home/slave/webkitgtk/gtk-linux-64-release/build/WebKitBuild/Release/lib/libjavascriptcoregtk-4.0.so.18
#21 0x00007f9b95d853a9 in _ZN3WTFL19wtfThreadEntryPointEPv () from /home/slave/webkitgtk/gtk-linux-64-release/build/WebKitBuild/Release/lib/libjavascriptcoregtk-4.0.so.18
#22 0x00007f9b93059494 in start_thread (arg=0x7f9af97f2700) at pthread_create.c:333
#23 0x00007f9b8ef1793f in clone () at ../sysdeps/unix/sysv/linux/x86_64/clone.S:97
Comment 1 Diego Pino 2020-06-18 23:17:11 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>