Closed mina86 closed 3 years ago
I think the two other pieces of info that will help me track this down are the webkitgtk version you're on and possibly also the gnu/linux distro you're on.
bullseye/sid
$ dpkg -l |grep webkit.\*gtk
ii libwebkit2gtk-4.0-37:amd64 2.30.1-1 amd64 Web content engine library for GTK
ii libwebkit2gtk-4.0-dev:amd64 2.30.1-1 amd64 Web content engine library for GTK - development files
As a sanity check, could you also maybe run ldd webkit-module.so
if you get the chance? I'm having trouble reproducing this but some others in emacs-devel seem to be encountering a similar issue.
ldd did not show anything. I remove the -O3 option and added -Wl,--no-as-needed, and it seems to work, at least it did not crash. But Error during redisplay: (webkit--adjust-size #<frame Google - GNU Emacs at oo-VM 0x5652e3392bf0>) signaled (webkit-module-no-fixed-widget) [2 times] and it does not show.
The Error during redisplay: (webkit--adjust-size #<frame Google - GNU Emacs at oo-VM 0x5652e3392bf0>) signaled (webkit-module-no-fixed-widget)
is likely the issue in #12.
Let's see if -Wl,--no-as-needed` fixes the issue @mina86 is seeing as well. TBH linking is still a bit of black magic to me, so thanks @oochen for figuring out that flag!
$ ldd webkit-module.so
linux-vdso.so.1 (0x00007ffd65deb000)
libpthread.so.0 => /lib/x86_64-linux-gnu/libpthread.so.0 (0x00007fae83151000)
libc.so.6 => /lib/x86_64-linux-gnu/libc.so.6 (0x00007fae82f8c000)
/lib64/ld-linux-x86-64.so.2 (0x00007fae8319c000)
Yep, the following fixes the crash:
diff --git a/Makefile b/Makefile
index 984bb87..d54d4fb 100644
--- a/Makefile
+++ b/Makefile
@@ -1,4 +1,4 @@
-CFLAGS = -std=c99 -Wall -Wextra -Wno-unused-parameter -O3 -fpic
+CFLAGS = -std=c99 -Wall -Wextra -Wno-unused-parameter -Wl,--no-as-needed -fpic
CFLAGS += `pkg-config --cflags gtk+-3.0 webkit2gtk-4.0 --libs webkit2gtk-4.0`
all : webkit-module.so
But then I’m getting the error.
Great, so now I can focus my effort on seeing what I can do about #12. @oochen I assume you're using --with-x
as well and not --with-pgtk
?
Yes, I heard it from you.
The first warning is unrelated to emacs-webkit.