Bug 167237

Summary: [GTK] UIProcess from WebKitGtk+ 2.15.3 SIGSEGVs because of X Error RenderBadPicture in WebKit::AcceleratedBackingStoreX11::update(...) at Source/WebKit2/UIProcess/gtk/AcceleratedBackingStoreX11.cpp:145
Product: WebKit Reporter: Andres Gomez Garcia <agomez>
Component: WebKitGTKAssignee: Nobody <webkit-unassigned>
Status: NEW ---    
Severity: Normal CC: bugs-noreply
Priority: P2    
Version: WebKit Nightly Build   
Hardware: PC   
OS: Linux   
See Also: https://bugs.webkit.org/show_bug.cgi?id=165656
Attachments:
Description Flags
BT from gdb for the UIProcess none

Description Andres Gomez Garcia 2017-01-20 05:10:30 PST
Created attachment 299343 [details]
BT from gdb for the UIProcess

I'm using WebKitGtk+ with my own JHBuild setting:
https://github.com/tanty/jhbuild-epiphany/tree/master

Epiphany 3.20.6 and WebKit 2.15.3

I'm running Epiphany with the dconf key:

"process-model" = "shared-secondary-process"

And the env variable:

"export LIBGL_DRI3_DISABLE=1"

The compilation was done with CMake args:

'-DPORT=GTK -DCMAKE_BUILD_TYPE=Release -DENABLE_MINIBROWSER=ON -DCMAKE_C_FLAGS_RELEASE="-O0 -g -DNDEBUG -DG_DEBUG=fatal-criticals -DG_DISABLE_CAST_CHECKS" -DCMAKE_CXX_FLAGS_RELEASE="-O0 -g -DNDEBUG -DG_DEBUG=fatal-criticals -DG_DISABLE_CAST_CHECKS"'

After visiting several pages, eventually, the WebProcess hits a SIGSEV.

This bug is not reproducible in a predictable way.
Comment 1 Andres Gomez Garcia 2017-01-20 05:12:02 PST
I'm not adding this into bug 165656 since the X Error is different.

Also, this time it happened straight away, upon opening Epiphany.

This is the log spit in the UIProcess tab:

(epiphany:6367): GLib-GObject-CRITICAL **: g_object_unref: assertion 'G_IS_OBJECT (object)' failed
The program with pid 6367 received an X Window System error.
The error was 'RenderBadPicture (invalid Picture parameter)'.
  (Details: serial 1928 error_code 143 request_code 139 minor_code 8)
1   0x7ffff24768dd /home/tanty/no-backup/personal/webkit/epiphany/install/lib/libjavascriptcoregtk-4.0.so.18(WTFCrash+0x1e) [0x7ffff24768dd]
2   0x7ffff4db9dda /home/tanty/no-backup/personal/webkit/epiphany/install/lib/libwebkit2gtk-4.0.so.37(+0x219bdda) [0x7ffff4db9dda]
3   0x7ffff4db9ace /home/tanty/no-backup/personal/webkit/epiphany/install/lib/libwebkit2gtk-4.0.so.37(+0x219bace) [0x7ffff4db9ace]
4   0x7ffff4db9afa /home/tanty/no-backup/personal/webkit/epiphany/install/lib/libwebkit2gtk-4.0.so.37(+0x219bafa) [0x7ffff4db9afa]
5   0x7ffff75d746d /usr/lib/x86_64-linux-gnu/libX11.so.6(_XError+0x11d) [0x7ffff75d746d]
6   0x7ffff75d43a7 /usr/lib/x86_64-linux-gnu/libX11.so.6(+0x423a7) [0x7ffff75d43a7]
7   0x7ffff75d4465 /usr/lib/x86_64-linux-gnu/libX11.so.6(+0x42465) [0x7ffff75d4465]
8   0x7ffff75d5420 /usr/lib/x86_64-linux-gnu/libX11.so.6(_XReply+0x230) [0x7ffff75d5420]
9   0x7ffff75d0cad /usr/lib/x86_64-linux-gnu/libX11.so.6(XSync+0x4d) [0x7ffff75d0cad]
10  0x7ffff36e0be7 /home/tanty/no-backup/personal/webkit/epiphany/install/lib/libwebkit2gtk-4.0.so.37(+0xac2be7) [0x7ffff36e0be7]
11  0x7ffff36ad991 /home/tanty/no-backup/personal/webkit/epiphany/install/lib/libwebkit2gtk-4.0.so.37(+0xa8f991) [0x7ffff36ad991]
12  0x7ffff3651aab /home/tanty/no-backup/personal/webkit/epiphany/install/lib/libwebkit2gtk-4.0.so.37(+0xa33aab) [0x7ffff3651aab]
13  0x7ffff3301156 /home/tanty/no-backup/personal/webkit/epiphany/install/lib/libwebkit2gtk-4.0.so.37(+0x6e3156) [0x7ffff3301156]
14  0x7ffff3647ad5 /home/tanty/no-backup/personal/webkit/epiphany/install/lib/libwebkit2gtk-4.0.so.37(+0xa29ad5) [0x7ffff3647ad5]
15  0x7ffff36475e2 /home/tanty/no-backup/personal/webkit/epiphany/install/lib/libwebkit2gtk-4.0.so.37(+0xa295e2) [0x7ffff36475e2]
16  0x7ffff364a11b /home/tanty/no-backup/personal/webkit/epiphany/install/lib/libwebkit2gtk-4.0.so.37(+0xa2c11b) [0x7ffff364a11b]
17  0x7ffff38396bd /home/tanty/no-backup/personal/webkit/epiphany/install/lib/libwebkit2gtk-4.0.so.37(+0xc1b6bd) [0x7ffff38396bd]
18  0x7ffff3839218 /home/tanty/no-backup/personal/webkit/epiphany/install/lib/libwebkit2gtk-4.0.so.37(+0xc1b218) [0x7ffff3839218]
19  0x7ffff3838e1b /home/tanty/no-backup/personal/webkit/epiphany/install/lib/libwebkit2gtk-4.0.so.37(+0xc1ae1b) [0x7ffff3838e1b]
20  0x7ffff38388db /home/tanty/no-backup/personal/webkit/epiphany/install/lib/libwebkit2gtk-4.0.so.37(+0xc1a8db) [0x7ffff38388db]
21  0x7ffff320ce4d /home/tanty/no-backup/personal/webkit/epiphany/install/lib/libwebkit2gtk-4.0.so.37(+0x5eee4d) [0x7ffff320ce4d]
22  0x7ffff32ad6ef /home/tanty/no-backup/personal/webkit/epiphany/install/lib/libwebkit2gtk-4.0.so.37(+0x68f6ef) [0x7ffff32ad6ef]
23  0x7ffff33604dd /home/tanty/no-backup/personal/webkit/epiphany/install/lib/libwebkit2gtk-4.0.so.37(+0x7424dd) [0x7ffff33604dd]
24  0x7ffff31f6fe8 /home/tanty/no-backup/personal/webkit/epiphany/install/lib/libwebkit2gtk-4.0.so.37(+0x5d8fe8) [0x7ffff31f6fe8]
25  0x7ffff31f7152 /home/tanty/no-backup/personal/webkit/epiphany/install/lib/libwebkit2gtk-4.0.so.37(+0x5d9152) [0x7ffff31f7152]
26  0x7ffff31f7349 /home/tanty/no-backup/personal/webkit/epiphany/install/lib/libwebkit2gtk-4.0.so.37(+0x5d9349) [0x7ffff31f7349]
27  0x7ffff31f6ebe /home/tanty/no-backup/personal/webkit/epiphany/install/lib/libwebkit2gtk-4.0.so.37(+0x5d8ebe) [0x7ffff31f6ebe]
28  0x7ffff31fd75a /home/tanty/no-backup/personal/webkit/epiphany/install/lib/libwebkit2gtk-4.0.so.37(+0x5df75a) [0x7ffff31fd75a]
29  0x7ffff2481965 /home/tanty/no-backup/personal/webkit/epiphany/install/lib/libjavascriptcoregtk-4.0.so.18(_ZNK3WTF8FunctionIFvvEEclEv+0x37) [0x7ffff2481965]
30  0x7ffff2492a1c /home/tanty/no-backup/personal/webkit/epiphany/install/lib/libjavascriptcoregtk-4.0.so.18(_ZN3WTF7RunLoop11performWorkEv+0x1a2) [0x7ffff2492a1c]
31  0x7ffff24d35c6 /home/tanty/no-backup/personal/webkit/epiphany/install/lib/libjavascriptcoregtk-4.0.so.18(+0x26335c6) [0x7ffff24d35c6]

Thread 1 "epiphany" received signal SIGSEGV, Segmentation fault.
0x00007ffff24768e2 in WTFCrash () at /home/tanty/no-backup/personal/webkit/epiphany/jhbuild-checkout/webkitgtk-2.15.3/Source/WTF/wtf/Assertions.cpp:323
323         *(int *)(uintptr_t)0xbbadbeef = 0;
(gdb)