Bug 154446 - [GTK] WebProcess from WebKitGtk+ 2.10.7 hangs in wait() at WTF's ThreadingPthreads.cpp
Summary: [GTK] WebProcess from WebKitGtk+ 2.10.7 hangs in wait() at WTF's ThreadingPth...
Status: RESOLVED DUPLICATE of bug 152316
Alias: None
Product: WebKit
Classification: Unclassified
Component: WebKitGTK (show other bugs)
Version: WebKit Local Build
Hardware: PC Linux
: P2 Normal
Assignee: Nobody
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2016-02-19 04:40 PST by Andres Gomez Garcia
Modified: 2016-02-22 05:40 PST (History)
4 users (show)

See Also:


Attachments
BT from gdb (98.25 KB, text/plain)
2016-02-19 04:40 PST, Andres Gomez Garcia
no flags Details
Log from GST_DEBUG=3 (136.14 KB, text/x-log)
2016-02-19 04:42 PST, Andres Gomez Garcia
no flags Details
Log from GST_DEBUG=3 as spit in the terminal using tail -f (124.78 KB, text/x-log)
2016-02-19 04:45 PST, Andres Gomez Garcia
no flags Details
Another similar BT from gdb (32.32 KB, text/plain)
2016-02-22 05:26 PST, Andres Gomez Garcia
no flags Details
BT from gdb, when closing epiphany (gently), and receiving a SIGTRAP in the WebProcess (68.92 KB, text/plain)
2016-02-22 05:37 PST, Andres Gomez Garcia
no flags Details

Note You need to log in before you can comment on or make changes to this bug.
Description Andres Gomez Garcia 2016-02-19 04:40:49 PST
Created attachment 271744 [details]
BT from gdb

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

Epiphany 3.18.0, WebKit 2.10.7 and GStreamer 1.4.4

I'm running Epiphany with the dconf key:

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

The compilation was done with CMake args:

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

---

Running epiphany like:
$ GST_DEBUG_FILE=./gst.log GST_DEBUG=3 epiphany

When visiting several pages, eventually, WebKitWebProcess hangs. Epiphany is still responsive (I, actually, can close the program gently).

This bug is not reproducible in a predictable way.
Comment 1 Andres Gomez Garcia 2016-02-19 04:42:41 PST
Created attachment 271745 [details]
Log from GST_DEBUG=3

I've not been suffering this until I turned GST_DEBUG on.

Since then, I get these hangs every now and then, which seem very related to the GStreamer debugging log, as it can be checked in the BT from GDB.

Also, you can see that the logging file is kind of corrupted.
Comment 2 Andres Gomez Garcia 2016-02-19 04:45:47 PST
Created attachment 271746 [details]
Log from GST_DEBUG=3 as spit in the terminal using tail -f

Since these hangs have already happened to me before and I have also observed the corrupted log file, this time I also decided to track the output with tail.

This log shows all the output that is missing in the corrupted file.
Comment 3 Andres Gomez Garcia 2016-02-22 05:26:59 PST
Created attachment 271918 [details]
Another similar BT from gdb

Confirmed also in:

Epiphany 3.18.0, WebKit 2.11.90
I'm running Epiphany with the dconf key:

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

The compilation was done with CMake args:

'-DPORT=GTK -DCMAKE_BUILD_TYPE=Release -DENABLE_MINIBROWSER=ON -DCMAKE_C_FLAGS_RELEASE="-O0 -g1 -DNDEBUG -DG_DISABLE_CAST_CHECKS" -DCMAKE_CXX_FLAGS_RELEASE="-O0 -g1 -DNDEBUG -DNDEBUG -DG_DISABLE_CAST_CHECKS"'

---

This time, there was no GStreamer logging involved.
Comment 4 Carlos Garcia Campos 2016-02-22 05:32:02 PST
And the UI process is responsive while that happens? The problem is that the UI process is not replying to a sync messages sent from the web process.
Comment 5 Andres Gomez Garcia 2016-02-22 05:37:44 PST
Created attachment 271919 [details]
BT from gdb, when closing epiphany (gently), and receiving a SIGTRAP in the WebProcess

After the SIGTRAP, continuing in GDB finishes the WebProcess normally.
Comment 6 Andres Gomez Garcia 2016-02-22 05:40:40 PST
(In reply to comment #5)
> Created attachment 271919 [details]
> BT from gdb, when closing epiphany (gently), and receiving a SIGTRAP in the
> WebProcess
> 
> After the SIGTRAP, continuing in GDB finishes the WebProcess normally.

Reading in the BT:

        msg = 0x7ffec80197c0 "Creating pipes for GWakeup: Too many open files\n"
        msg_alloc = 0x7ffec80197c0 "Creating pipes for GWakeup: Too many open files\n"

Closing as DUPLICATED.

*** This bug has been marked as a duplicate of bug 152316 ***