Subject: Re: bug#52883: xwidget-webkit webinspector segfaults emacs on sway

From: Akira Kyle <[email-masked]>
Date: Wed, 29 Dec 2021 21:09:44 -0700

still segfaults

emacs a4893515c2, webkitgtk 3.24.3, gtk+ 3.24.30

#0  0x0000ffff9857e428 in raise () from
/nix/store/0y64vbl8hc0xqq5ag6wwj5r3pr0l6z2s-glibc-2.33-56/lib/libpthread.so.0
#1  0x0000000000585bc8 in terminate_due_to_signal (sig=11,
backtrace_limit=40) at emacs.c:443
#2  0x00000000005b5318 in handle_fatal_signal (sig=11) at sysdep.c:1780
#3  0x00000000005b52e4 in deliver_thread_signal (sig=11,
handler=0x5b5300 <handle_fatal_signal>) at sysdep.c:1772
#4  0x00000000005b535c in deliver_fatal_thread_signal (sig=11) at sysdep.c:1792
#5  0x00000000005b5578 in handle_sigsegv (sig=11,
siginfo=0xffffe67ce800, arg=0xffffe67ce880) at sysdep.c:1885
#6  0x0000ffff9a230518 in WTF::jscSignalHandler(int, siginfo_t*,
void*) () from /nix/store/69hwcjpw69chmrdsirx5bh6pmvfz10xf-webkitgtk-2.34.3/lib/libjavascriptcoregtk-4.0.so.18
#7  <signal handler called>
#8  0x0000ffff9b1d7744 in
WebKit::WebInspectorUIProxy::closeFrontendPageAndWindow() () from
/nix/store/69hwcjpw69chmrdsirx5bh6pmvfz10xf-webkitgtk-2.34.3/lib/libwebkit2gtk-4.0.so.37
#9  0x0000ffff9b1d78e4 in WebKit::WebInspectorUIProxy::invalidate() ()
from /nix/store/69hwcjpw69chmrdsirx5bh6pmvfz10xf-webkitgtk-2.34.3/lib/libwebkit2gtk-4.0.so.37
#10 0x0000ffff9b0bcfb8 in WebKit::WebPageProxy::close() () from
/nix/store/69hwcjpw69chmrdsirx5bh6pmvfz10xf-webkitgtk-2.34.3/lib/libwebkit2gtk-4.0.so.37
#11 0x0000ffff9b19fbcc in webkitWebViewBaseDispose(_GObject*) () from
/nix/store/69hwcjpw69chmrdsirx5bh6pmvfz10xf-webkitgtk-2.34.3/lib/libwebkit2gtk-4.0.so.37
#12 0x0000ffff9b1793ec in webkitWebViewDispose(_GObject*) () from
/nix/store/69hwcjpw69chmrdsirx5bh6pmvfz10xf-webkitgtk-2.34.3/lib/libwebkit2gtk-4.0.so.37
#13 0x0000ffff9ebd97cc in g_object_run_dispose () from
/nix/store/k8d3sjmp7mkmblilk85nl6m0ds0kkykz-glib-2.70.1/lib/libgobject-2.0.so.0
#14 0x00000000006eb788 in kill_xwidget (xw=0x3edc7c30) at xwidget.c:3458
#15 0x00000000006eb910 in kill_buffer_xwidgets (buffer=0x3edc77c5) at
xwidget.c:3496
#16 0x00000000005bfafc in Fkill_buffer (buffer_or_name=0x3ed25104) at
buffer.c:1891
#17 0x0000000000653490 in funcall_subr (subr=0xb1a7e8 <Skill_buffer>,
numargs=1, args=0xffffe67d0010) at eval.c:3153
#18 0x0000000000653068 in Ffuncall (nargs=2, args=0xffffe67d0008) at eval.c:3078
#19 0x0000000000648e6c in Ffuncall_interactively (nargs=2,
args=0xffffe67d0008) at callint.c:260
#20 0x0000000000653364 in funcall_subr (subr=0xb1f0a8
<Sfuncall_interactively>, numargs=2, args=0xffffe67d0008) at
eval.c:3133
#21 0x0000000000653068 in Ffuncall (nargs=3, args=0xffffe67d0000) at eval.c:3078
#22 0x000000000064aee0 in Fcall_interactively
(function=0xffff92a6fce8, record_flag=0x0, keys=0x3ec6e03d) at
callint.c:798
#23 0x00000000006534f4 in funcall_subr (subr=0xb1f0d8
<Scall_interactively>, numargs=3, args=0xffffe67d03d0) at eval.c:3158
#24 0x0000000000653068 in Ffuncall (nargs=4, args=0xffffe67d03c8) at eval.c:3078
#25 0x00000000006a3f74 in exec_byte_code (bytestr=0xffff936cdfdc,
vector=0xffff936cdc45, maxdepth=0x36, args_template=0x1006, nargs=1,
args=0xffffe67d0958) at bytecode.c:632
#26 0x0000000000653780 in fetch_and_exec_byte_code
(fun=0xffff936cdc15, syms_left=0x1006, nargs=1, args=0xffffe67d0950)
at eval.c:3202
#27 0x0000000000653b80 in funcall_lambda (fun=0xffff936cdc15, nargs=1,
arg_vector=0xffffe67d0950) at eval.c:3283
#28 0x00000000006530c4 in Ffuncall (nargs=2, args=0xffffe67d0948) at eval.c:3082
#29 0x00000000006527d8 in call1 (fn=0x4680, arg1=0xffff92a6fce8) at eval.c:2938
#30 0x000000000058e1ac in command_loop_1 () at keyboard.c:1507
#31 0x000000000064eecc in internal_condition_case (bfun=0x58d86c
<command_loop_1>, handlers=0x90, hfun=0x58cd00 <cmd_error>) at
eval.c:1492
#32 0x000000000058d488 in command_loop_2 (handlers=0x90) at keyboard.c:1135
#33 0x000000000064e5bc in internal_catch (tag=0xecd0, func=0x58d460
<command_loop_2>, arg=0x90) at eval.c:1223
#34 0x000000000058d41c in command_loop () at keyboard.c:1113
#35 0x000000000058c780 in recursive_edit_1 () at keyboard.c:722
#36 0x000000000058c954 in Frecursive_edit () at keyboard.c:805
#37 0x0000000000588a3c in main (argc=2, argv=0xffffe67d0ea8) at emacs.c:2422

On Wed, Dec 29, 2021 at 8:28 PM Po Lu <[email-masked]> wrote:
>
> Akira Kyle <[email-masked]> writes:
>
> > This was on emacs from current master, under webkitgtk 2.32.1, and gkt+ 3.24.27
>
> > WebKit::WebInspectorProxy::closeFrontendPageAndWindow() () from
> > /nix/store/kc6gkrrkrk2icp4pd76h3rrca6rmjc4v-webkitgtk-2.32.1/lib/libwebkit2gtk-4.0.so.37
> > #9  0x0000ffffb06e77ac in WebKit::WebInspectorProxy::invalidate() ()
>
> Thanks, but that's a bug in WebKitGTK 2.32; you should upgrade to
> 2.34.3 and rebuild Emacs.