<html>
    <head>
      <base href="https://bugs.webkit.org/" />
    </head>
    <body><table border="1" cellspacing="0" cellpadding="8">
        <tr>
          <th>Bug ID</th>
          <td><a class="bz_bug_link 
          bz_status_NEW "
   title="NEW - REGRESSION(r212283): [SOUP] Crash in WebCore::stopObservingCookieChanges"
   href="https://bugs.webkit.org/show_bug.cgi?id=168375">168375</a>
          </td>
        </tr>

        <tr>
          <th>Summary</th>
          <td>REGRESSION(r212283): [SOUP] Crash in WebCore::stopObservingCookieChanges
          </td>
        </tr>

        <tr>
          <th>Classification</th>
          <td>Unclassified
          </td>
        </tr>

        <tr>
          <th>Product</th>
          <td>WebKit
          </td>
        </tr>

        <tr>
          <th>Version</th>
          <td>WebKit Nightly Build
          </td>
        </tr>

        <tr>
          <th>Hardware</th>
          <td>PC
          </td>
        </tr>

        <tr>
          <th>OS</th>
          <td>Linux
          </td>
        </tr>

        <tr>
          <th>Status</th>
          <td>NEW
          </td>
        </tr>

        <tr>
          <th>Severity</th>
          <td>Normal
          </td>
        </tr>

        <tr>
          <th>Priority</th>
          <td>P2
          </td>
        </tr>

        <tr>
          <th>Component</th>
          <td>WebKit Gtk
          </td>
        </tr>

        <tr>
          <th>Assignee</th>
          <td>webkit-unassigned&#64;lists.webkit.org
          </td>
        </tr>

        <tr>
          <th>Reporter</th>
          <td>mcatanzaro&#64;igalia.com
          </td>
        </tr>

        <tr>
          <th>CC</th>
          <td>bugs-noreply&#64;webkitgtk.org
          </td>
        </tr></table>
      <p>
        <div>
        <pre>I hit this crash in when closing Epiphany. I'm not sure, but I presume it's a regression from r212283 &quot;CookieManager only works with the default session&quot; as I've updated recently and never seen this before.

#0  0x00007f5801621fac in WTFCrash ()
    at ../../Source/WTF/wtf/Assertions.cpp:323
No locals.
#1  0x00007f580b2384aa in (anonymous namespace)::stopObservingCookieChanges (
    storageSession=...)
    at ../../Source/WebCore/platform/network/soup/CookieStorageSoup.cpp:54
        jar = 0x2197540
        __PRETTY_FUNCTION__ = &quot;void WebCore::stopObservingCookieChanges(const WebCore::NetworkStorageSession&amp;)&quot;
#2  0x00007f580978a12b in (anonymous namespace)::WebCookieManager::stopObservingCookieChanges (this=0x2181820, sessionID=...)
    at ../../Source/WebKit2/WebProcess/Cookies/WebCookieManager.cpp:105
        storageSession = 0x7f57eebae820
#3  0x00007f5809c10873 in IPC::callMemberFunctionImpl&lt;WebKit::WebCookieManager, void (WebKit::WebCookieManager::*)(WebCore::SessionID), std::tuple&lt;WebCore::SessionID&gt;, 0ul&gt;((anonymous namespace)::WebCookieManager *, void ((anonymous namespace)::WebCookieManager::*)((anonymous namespace)::WebCookieManager * const, (anonymous namespace)::SessionID), &lt;unknown type in /home/mcatanzaro/Projects/GNOME/install/lib/libwebkit2gtk-4.0.so.37, CU 0x0, DIE 0x1bc02&gt;, std::index_sequence)
    (object=0x2181820, function=
    (void ((anonymous namespace)::WebCookieManager::*)((anonymous namespace)::WebCookieManager * const, (anonymous namespace)::SessionID)) 0x7f580978a0f8 &lt;(anonymous namespace)::WebCookieManager::stopObservingCookieChanges((anonymous namespace)::SessionID)&gt;, 
    args=&lt;unknown type in /home/mcatanzaro/Projects/GNOME/install/lib/libwebkit2gtk-4.0.so.37, CU 0x0, DIE 0x1bc02&gt;)
    at ../../Source/WebKit2/Platform/IPC/HandleMessage.h:40
No locals.
#4  0x00007f5809c1030e in IPC::callMemberFunction&lt;WebKit::WebCookieManager, void (WebKit::WebCookieManager::*)(WebCore::SessionID), std::tuple&lt;WebCore::SessionID&gt; &gt;(&lt;unknown type in /home/mcatanzaro/Projects/GNOME/install/lib/libwebkit2gtk-4.0.so.37, CU 0x0, DIE 0x1bc02&gt;, (anonymous namespace)::WebCookieManager *, void ((anonymous namespace)::WebCookieManager::*)((anonymous namespace)::WebCookieManager * const, (anonymous namespace)::SessionID)) (
    args=&lt;unknown type in /home/mcatanzaro/Projects/GNOME/install/lib/libwebkit2gtk-4.0.so.37, CU 0x0, DIE 0x1bc02&gt;, object=0x2181820, function=
    (void ((anonymous namespace)::WebCookieManager::*)((anonymous namespace)::WebCookieManager * const, (anonymous namespace)::SessionID)) 0x7f580978a0f8 &lt;(anonymous namespace)::WebCookieManager::stopObservingCookieChanges((anonymous namespace)::SessionID)&gt;) at ../../Source/WebKit2/Platform/IPC/HandleMessage.h:46
No locals.
#5  0x00007f5809c1010a in IPC::handleMessage&lt;Messages::WebCookieManager::StopObservingCookieChanges, WebKit::WebCookieManager, void (WebKit::WebCookieManager::*)(WebCore::SessionID)&gt; (decoder=..., object=0x2181820, function=
    (void ((anonymous namespace)::WebCookieManager::*)((anonymous namespace)::WebCookieManager * const, (anonymous namespace)::SessionID)) 0x7f580978a0f8 &lt;(anonymous namespace)::WebCookieManager::stopObservingCookieChanges((anonymous namespace)::SessionID)&gt;) at ../../Source/WebKit2/Platform/IPC/HandleMessage.h:126
        __PRETTY_FUNCTION__ = &quot;void IPC::handleMessage(IPC::Decoder&amp;, C*, MF) [with T = Messages::WebCookieManager::StopObservingCookieChanges; C = WebKit::WebCookieManager; MF = void (WebKit::WebCookieManager::*)(WebCore::SessionI&quot;...
        arguments = std::tuple containing = {[1] = {m_sessionID = 1}}
#6  0x00007f5809c0f730 in (anonymous namespace)::WebCookieManager::didReceiveMessage (this=0x2181820, connection=..., decoder=...)
    at DerivedSources/WebKit2/WebCookieManagerMessageReceiver.cpp:76
        __PRETTY_FUNCTION__ = &quot;virtual void WebKit::WebCookieManager::didReceiveMessage(IPC::Connection&amp;, IPC::Decoder&amp;)&quot;
#7  0x00007f58094fc765 in IPC::MessageReceiverMap::dispatchMessage (
    this=0x7f580fd166d0 &lt;WebKit::NetworkProcess::singleton()::networkProcess+112&gt;, connection=..., decoder=...)
    at ../../Source/WebKit2/Platform/IPC/MessageReceiverMap.cpp:118
        messageReceiver = 0x2181830
        __PRETTY_FUNCTION__ = &quot;bool IPC::MessageReceiverMap::dispatchMessage(IPC::Connection&amp;, IPC::Decoder&amp;)&quot;
#8  0x00007f5809908f30 in (anonymous namespace)::NetworkProcess::didReceiveMessage (this=0x7f580fd16660 &lt;WebKit::NetworkProcess::singleton()::networkProcess&gt;, 
    connection=..., decoder=...)
    at ../../Source/WebKit2/NetworkProcess/NetworkProcess.cpp:149
No locals.
#9  0x00007f58094e3052 in IPC::Connection::dispatchMessage (
    this=0x7f57eebf6000, decoder=...)
    at ../../Source/WebKit2/Platform/IPC/Connection.cpp:897
No locals.
#10 0x00007f58094e31bc in IPC::Connection::dispatchMessage (
    this=0x7f57eebf6000, 
    message=std::unique_ptr&lt;IPC::Decoder&gt; containing 0x7f57eebec060)
    at ../../Source/WebKit2/Platform/IPC/Connection.cpp:924
        oldDidReceiveInvalidMessage = false
#11 0x00007f58094e33ae in IPC::Connection::dispatchOneMessage (
    this=0x7f57eebf6000)
    at ../../Source/WebKit2/Platform/IPC/Connection.cpp:955
        message = std::unique_ptr&lt;IPC::Decoder&gt; containing 0x0
#12 0x00007f58094e2f38 in IPC::Connection::&lt;lambda()&gt;::operator()(void) (
    __closure=0x7f57eebed028)
    at ../../Source/WebKit2/Platform/IPC/Connection.cpp:891
        protectedThis = {static isRef = &lt;optimized out&gt;, 
          m_ptr = 0x7f57eebf6000}
#13 0x00007f58094e8f94 in WTF::Function&lt;void()&gt;::CallableWrapper&lt;IPC::Connection::enqueueIncomingMessage(std::unique_ptr&lt;IPC::Decoder&gt;)::&lt;lambda()&gt; &gt;::call(void) (this=0x7f57eebed020) at ../../Source/WTF/wtf/Function.h:89
No locals.
#14 0x00007f58094af141 in WTF::Function&lt;void()&gt;::operator()(void) const (
    this=0x7ffc03efa420) at ../../Source/WTF/wtf/Function.h:50
No locals.
#15 0x00007f58016855f6 in WTF::RunLoop::performWork (this=0x7f57eebf9180)
    at ../../Source/WTF/wtf/RunLoop.cpp:105
        function = {
          m_callableWrapper = std::unique_ptr&lt;WTF::Function&lt;void()&gt;::CallableWrapperBase&gt; containing 0x7f57eebed020}
        functionsToHandle = 3
#16 0x00007f5801682bce in WTF::RunLoop::&lt;lambda(gpointer)&gt;::operator()(gpointer) const (__closure=0x0, userData=0x7f57eebf9180)
    at ../../Source/WTF/wtf/glib/RunLoopGLib.cpp:66
No locals.
#17 0x00007f5801682bf2 in WTF::RunLoop::&lt;lambda(gpointer)&gt;::_FUN(gpointer) ()
    at ../../Source/WTF/wtf/glib/RunLoopGLib.cpp:68
No locals.
#18 0x00007f5801682b6e in WTF::&lt;lambda(GSource*, GSourceFunc, gpointer)&gt;::operator()(GSource *, GSourceFunc, gpointer) const (__closure=0x0, source=0x2181600, 
    callback=0x7f5801682bd5 &lt;WTF::RunLoop::&lt;lambda(gpointer)&gt;::_FUN(gpointer)&gt;, userData=0x7f57eebf9180) at ../../Source/WTF/wtf/glib/RunLoopGLib.cpp:44
No locals.
#19 0x00007f5801682b9d in WTF::&lt;lambda(GSource*, GSourceFunc, gpointer)&gt;::_FUN(GSource *, GSourceFunc, gpointer) ()
    at ../../Source/WTF/wtf/glib/RunLoopGLib.cpp:45
No locals.
#20 0x00007f57f9a1633e in g_main_dispatch (context=0x2180c80)
    at /home/mcatanzaro/Projects/GNOME/glib/glib/gmain.c:3203
        dispatch = 0x7f5801682b70 &lt;WTF::&lt;lambda(GSource*, GSourceFunc, gpointer)&gt;::_FUN(GSource *, GSourceFunc, gpointer)&gt;
        prev_source = 0x0
        was_in_call = 0
        user_data = 0x7f57eebf9180
        callback = 0x7f5801682bd5 &lt;WTF::RunLoop::&lt;lambda(gpointer)&gt;::_FUN(gpointer)&gt;
        cb_funcs = 0x7f57f9ceca40 &lt;g_source_callback_funcs&gt;
        cb_data = 0x2180dd0
        need_destroy = 0
        source = 0x2181600
        current = 0x216a730
        i = 0
        __func__ = &quot;g_main_dispatch&quot;
#21 0x00007f57f9a171c0 in g_main_context_dispatch (context=0x2180c80)
    at /home/mcatanzaro/Projects/GNOME/glib/glib/gmain.c:3856
No locals.
#22 0x00007f57f9a173a4 in g_main_context_iterate (context=0x2180c80, block=1, 
    dispatch=1, self=0x2184600)
    at /home/mcatanzaro/Projects/GNOME/glib/glib/gmain.c:3929
        max_priority = 0
        timeout = 0
        some_ready = 1
        nfds = 2
        allocated_nfds = 2
        fds = 0x29bf020
#23 0x00007f57f9a177ca in g_main_loop_run (loop=0x2180d90)
    at /home/mcatanzaro/Projects/GNOME/glib/glib/gmain.c:4125
        self = 0x2184600
        __func__ = &quot;g_main_loop_run&quot;
#24 0x00007f580168309d in WTF::RunLoop::run ()
    at ../../Source/WTF/wtf/glib/RunLoopGLib.cpp:94
        runLoop = 
    &#64;0x7f57eebf9180: {&lt;WTF::FunctionDispatcher&gt; = {&lt;WTF::ThreadSafeRefCounted&lt;WTF::FunctionDispatcher&gt;&gt; = {&lt;WTF::ThreadSafeRefCountedBase&gt; = {
                m_refCount = {&lt;std::__atomic_base&lt;unsigned int&gt;&gt; = {
                    static _S_alignment = 4, 
                    _M_i = 1}, &lt;No data fields&gt;}}, &lt;No data fields&gt;}, 
            _vptr.FunctionDispatcher = 0x7f5802612ac8 &lt;vtable for WTF::RunLoop+16&gt;}, m_functionQueueLock = {m_mutex = {__data = {__lock = 0, __count = 0, 
                __owner = 0, __nusers = 0, __kind = 512, __spins = 0, 
                __elision = 0, __list = {__prev = 0x0, __next = 0x0}}, 
              __size = '\000' &lt;repeats 17 times&gt;, &quot;\002&quot;, '\000' &lt;repeats 21 times&gt;, __align = 0}}, m_functionQueue = {m_start = 2, m_end = 4, 
            m_buffer = {&lt;WTF::VectorBufferBase&lt;WTF::Function&lt;void()&gt; &gt;&gt; = {
                m_buffer = 0x7f57eebf1180, m_capacity = 16, 
                m_size = 0}, &lt;No data fields&gt;}, m_iterators = 0x0}, 
          m_mainContext = {m_ptr = 0x2180c80}, 
          m_mainLoops = {&lt;WTF::VectorBuffer&lt;WTF::GRefPtr&lt;_GMainLoop&gt;, 0ul&gt;&gt; = {&lt;WTF::VectorBufferBase&lt;WTF::GRefPtr&lt;_GMainLoop&gt; &gt;&gt; = {
                m_buffer = 0x7f57eebf9200, m_capacity = 16, 
                m_size = 1}, &lt;No data fields&gt;}, &lt;No data fields&gt;}, m_source = {
            m_ptr = 0x2181600}}
        mainContext = 0x2180c80
        __PRETTY_FUNCTION__ = &quot;static void WTF::RunLoop::run()&quot;
        innermostLoop = 0x2180d90
        nestedMainLoop = 0x0
#25 0x00007f580999862e in (anonymous namespace)::ChildProcessMain&lt;WebKit::NetworkProcess, WebKit::ChildProcessMainBase&gt; (argc=2, argv=0x7ffc03efa828)
    at ../../Source/WebKit2/Shared/unix/ChildProcessMain.h:61
        childMain = &lt;incomplete type&gt;
#26 0x00007f58099985a5 in (anonymous namespace)::NetworkProcessMainUnix (
    argc=2, argv=0x7ffc03efa828)
    at ../../Source/WebKit2/NetworkProcess/soup/NetworkProcessMainSoup.cpp:37
No locals.
#27 0x0000000000400bea in main (argc=2, argv=0x7ffc03efa828)
    at ../../Source/WebKit2/NetworkProcess/EntryPoint/unix/NetworkProcessMain.cpp:44
No locals.</pre>
        </div>
      </p>
      <hr>
      <span>You are receiving this mail because:</span>
      
      <ul>
          <li>You are the assignee for the bug.</li>
      </ul>
    </body>
</html>