[Webkit-unassigned] [Bug 274964] New: [WPE][GTK] g_variant_builder_add_value: assertion 'GVSB(builder)->offset < GVSB(builder)->max_items' failed when encoding session state

bugzilla-daemon at webkit.org bugzilla-daemon at webkit.org
Fri May 31 06:46:29 PDT 2024


https://bugs.webkit.org/show_bug.cgi?id=274964

            Bug ID: 274964
           Summary: [WPE][GTK] g_variant_builder_add_value: assertion
                    'GVSB(builder)->offset < GVSB(builder)->max_items'
                    failed when encoding session state
           Product: WebKit
           Version: Other
          Hardware: Unspecified
                OS: Unspecified
            Status: NEW
          Severity: Normal
          Priority: P2
         Component: WebKitGTK
          Assignee: webkit-unassigned at lists.webkit.org
          Reporter: mcatanzaro at redhat.com
                CC: bugs-noreply at webkitgtk.org

Created attachment 471555

  --> https://bugs.webkit.org/attachment.cgi?id=471555&action=review

Full backtrace

My Epiphany Tech Preview (WebKitGTK 2.45.3) UI process just crashed twice here:

#0  g_logv (log_domain=0x7f0de3b9100e "GLib", log_level=G_LOG_LEVEL_CRITICAL, format=<optimized out>, args=args at entry=0x7f0d373ff480)
    at ../glib/gmessages.c:1277
#1  0x00007f0de3b37a93 in g_log (log_domain=<optimized out>, log_level=<optimized out>, format=<optimized out>) at ../glib/gmessages.c:1315
#2  0x00007f0de3b7b7a1 in g_variant_builder_add (builder=0x7f0d373ff750, format_string=<optimized out>) at ../glib/gvariant.c:5647
#3  0x00007f0dde5e2f8c in encodeHTTPBody (sessionBuilder=0x7f0d373ff750, httpBody=<optimized out>)
    at /buildstream/gnome/sdk/webkitgtk-6.0.bst/Source/WebKit/UIProcess/API/glib/WebKitWebViewSessionState.cpp:130
#4  encodeFrameState (sessionBuilder=sessionBuilder at entry=0x7f0d373ff750, frameState=...)
    at /buildstream/gnome/sdk/webkitgtk-6.0.bst/Source/WebKit/UIProcess/API/glib/WebKitWebViewSessionState.cpp:196
#5  0x00007f0dde5e10c5 in encodePageState (sessionBuilder=0x7f0d373ff750, pageState=...)
    at /buildstream/gnome/sdk/webkitgtk-6.0.bst/Source/WebKit/UIProcess/API/glib/WebKitWebViewSessionState.cpp:213
#6  encodeBackForwardListItemState (sessionBuilder=0x7f0d373ff750, item=...)
    at /buildstream/gnome/sdk/webkitgtk-6.0.bst/Source/WebKit/UIProcess/API/glib/WebKitWebViewSessionState.cpp:221
#7  encodeBackForwardListState (sessionBuilder=0x7f0d373ff750, backForwardListState=...)
    at /buildstream/gnome/sdk/webkitgtk-6.0.bst/Source/WebKit/UIProcess/API/glib/WebKitWebViewSessionState.cpp:229
#8  encodeSessionState (sessionState=...) at /buildstream/gnome/sdk/webkitgtk-6.0.bst/Source/WebKit/UIProcess/API/glib/WebKitWebViewSessionState.cpp:243
#9  webkit_web_view_session_state_serialize (state=0x7f0dce078120)
    at /buildstream/gnome/sdk/webkitgtk-6.0.bst/Source/WebKit/UIProcess/API/glib/WebKitWebViewSessionState.cpp:523
#10 0x00007f0de3d53c38 in write_tab (tab=0x5566306e02c0, writer=0x7f0cd8019870) at ../src/ephy-session.c:751
#11 write_tab (writer=0x7f0cd8019870, tab=0x5566306e02c0) at ../src/ephy-session.c:702
#12 0x00007f0de3d54fc9 in write_ephy_window (window=<optimized out>, writer=<optimized out>) at ../src/ephy-session.c:830
#13 save_session_sync (task=0x55663075c170 [GTask], source_object=<optimized out>, task_data=<optimized out>, cancellable=<optimized out>)
    at ../src/ephy-session.c:954
#14 0x00007f0de399c4d6 in g_task_thread_pool_thread (thread_data=0x55663075c170, pool_data=<optimized out>) at ../gio/gtask.c:1583
#15 0x00007f0de3b5eb82 in g_thread_pool_thread_proxy (data=<optimized out>) at ../glib/gthreadpool.c:336
#16 0x00007f0de3b5dfe9 in g_thread_proxy (data=0x7f0dd0002310) at ../glib/gthread.c:835
#17 0x00007f0de293ce39 in start_thread (arg=<optimized out>) at pthread_create.c:444
#18 0x00007f0de29c49c4 in clone () at ../sysdeps/unix/sysv/linux/x86_64/clone.S:100

It's a g_critical(), and playing with gdb I was able to print the error message:

g_variant_builder_add_value: assertion 'GVSB(builder)->offset < GVSB(builder)->max_items' failed when encoding session state

It happened after I added two attachments to bug #274802 and might be related to the presence of those attachments in the back/forward list, but I'm not sure. I'm also not sure whether it's a GLib bug or a WebKit bug.

-- 
You are receiving this mail because:
You are the assignee for the bug.
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.webkit.org/pipermail/webkit-unassigned/attachments/20240531/edc8ece3/attachment.htm>


More information about the webkit-unassigned mailing list