Bug 270116 - www/webkit2-gtk4: crash right after the start
Summary: www/webkit2-gtk4: crash right after the start
Status: New
Alias: None
Product: Ports & Packages
Classification: Unclassified
Component: Individual Port(s) (show other bugs)
Version: Latest
Hardware: Any Any
: --- Affects Only Me
Assignee: freebsd-gnome (Nobody)
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2023-03-11 15:59 UTC by shamaz.mazum
Modified: 2023-03-22 12:10 UTC (History)
0 users

See Also:
bugzilla: maintainer-feedback? (gnome)


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description shamaz.mazum 2023-03-11 15:59:51 UTC
Hi!

My FreeBSD version is

vasily@vonbraun:~ % uname -a
FreeBSD vonbraun.local 13.2-BETA3 FreeBSD 13.2-BETA3 releng/13.2-n254537-d0e8ce556627 MYKERNEL amd64

webkit2-gtk4-2.38.3_1 (for example, MiniBrowser-5) crashes right after the start.

vasily@vonbraun:~ % MiniBrowser-5
Аварийное завершение(core dumped)

vasily@vonbraun:~ % lldb
(lldb) target create /usr/local/bin/MiniBrowser-5 --core MiniBrowser.core
Core file '/home/vasily/MiniBrowser.core' (x86_64) was loaded.
(lldb) bt
This version of LLDB has no plugin for the language "assembler". Inspection of frame variables will be limited.
* thread #1, name = 'MiniBrowser', stop reason = signal SIGABRT
  * frame #0: 0x000000084a5d2c5a libc.so.7`__sys_thr_kill at thr_kill.S:4
    frame #1: 0x000000084a54b6d4 libc.so.7`__raise(s=6) at raise.c:52:10
    frame #2: 0x000000084a5fca59 libc.so.7`abort at abort.c:67:8
    frame #3: 0x0000000825afd799 libwebkit2gtk-5.0.so.0`___lldb_unnamed_symbol15020 + 9
    frame #4: 0x0000000825afd789 libwebkit2gtk-5.0.so.0`___lldb_unnamed_symbol15019 + 9
    frame #5: 0x00000008274d0c50 libwebkit2gtk-5.0.so.0`___lldb_unnamed_symbol115138 + 608
    frame #6: 0x0000000825e1bc4f libwebkit2gtk-5.0.so.0`___lldb_unnamed_symbol30306 + 175
    frame #7: 0x0000000825e211b7 libwebkit2gtk-5.0.so.0`___lldb_unnamed_symbol30415 + 23
    frame #8: 0x0000000825e21183 libwebkit2gtk-5.0.so.0`___lldb_unnamed_symbol30414 + 51
    frame #9: 0x0000000825e284cd libwebkit2gtk-5.0.so.0`___lldb_unnamed_symbol30552 + 45
    frame #10: 0x0000000825cd491f libwebkit2gtk-5.0.so.0`___lldb_unnamed_symbol23197 + 143
    frame #11: 0x0000000825d6f1ad libwebkit2gtk-5.0.so.0`___lldb_unnamed_symbol27152 + 109
    frame #12: 0x0000000843da7794 libgobject-2.0.so.0`g_type_create_instance + 516
    frame #13: 0x0000000843d91f23 libgobject-2.0.so.0`___lldb_unnamed_symbol916 + 51
    frame #14: 0x0000000843d913e4 libgobject-2.0.so.0`g_object_new + 276
    frame #15: 0x0000000825d664f6 libwebkit2gtk-5.0.so.0`webkit_settings_new + 70
    frame #16: 0x000000000041873b MiniBrowser-5`___lldb_unnamed_symbol1325 + 91
    frame #17: 0x000000000040eeb0 MiniBrowser-5`___lldb_unnamed_symbol1348 + 256

I cannot provide a backtrace with debugging symbols (look at https://bugs.freebsd.org/bugzilla/show_bug.cgi?id=243767).

I am trying to launch MiniBrowser in a sway session (Wayland).

Port options:
	DEBUG          : on
	GEOIP          : on
	GSTREAMER      : on
	WAYLAND        : on

Is this port usable at all?
Comment 1 Jan Beich freebsd_committer freebsd_triage 2023-03-13 13:21:45 UTC
> Is this port usable at all?

Works fine in 13.1 amd64 jail under Sway. Tested with DEBUG=off (default, binary package).

$ pkg rquery %ro webkit2-gtk4
deskutils/gnome-initial-setup
x11/yelp

$ pkg install yelp
$ env -u WAYLAND_DISPLAY yelp # force X11
$ env -u DISPLAY yelp # force Wayland
Comment 2 Jan Beich freebsd_committer freebsd_triage 2023-03-13 13:25:34 UTC
(In reply to Jan Beich from comment #1)
Nevermind. MiniBrowser-5 crashes. x11/yelp actually links against libwebkit2gtk-4.0.so from www/webkit2-gtk3
Comment 3 shamaz.mazum 2023-03-22 12:10:06 UTC
Is there any tutorial explaining how I can run jailed GUI applications if my host (unjailed system) runs sway? All I can find is related to Xorg.

The last version which runs without segfault is 2.35.3 but it compiles only on a modified system. See here for more info:
https://github.com/shamazmazum/freebsd-ports/tree/master/www

I would like to bisect to find a commit where this segfault is introduced but I want a way to run MiniBrowser in a jail. Can you help?