ladybird: Seg Fault on Some Fedora 42 GNOME/KDE on Master Branch
Summary
Following build instructions, I receive seg faults when attempting to build or run Ladybird. This occurs both on a brand new clone of the repo and on older repos pulling updates from master.
Operating system
Linux
Steps to reproduce
As described in the build instructions:
- run
sudo dnf install autoconf-archive automake ccache cmake curl liberation-sans-fonts libglvnd-devel nasm ninja-build perl-FindBin perl-IPC-Cmd perl-lib qt6-qtbase-devel qt6-qtmultimedia-devel qt6-qttools-devel qt6-qtwayland-devel tar unzip zip zlib-ng-compat-staticto update prerequisites. - clone the repo with
git clone https://github.com/LadybirdBrowser/ladybird.gitandcd ladybird/ - build and run with
./Meta/ladybird.sh run
Expected behavior
Expected browser to open as usual
Actual behavior
When following the steps above:
matthew@192-168-1-117 ~/D/R/ladybird (master)> ./Meta/ladybird.sh run
ninja: Entering directory `/home/matthew/Documents/Repos/ladybird/Build/release'
[0/2] Re-checking globbed directories...
ninja: no work to do.
./Meta/ladybird.sh: line 192: 171922 Segmentation fault (core dumped) "$BUILD_DIR/bin/$lagom_target" "${lagom_args[@]}"
after running cd Build/release/bin/ and gdb ./Ladybird:
matthew@192-168-1-117 ~/D/R/l/B/r/bin (master) [SIGSEGV]> gdb ./Ladybird
GNU gdb (Fedora Linux) 16.2-3.fc42
...
Reading symbols from ./Ladybird...
(gdb) run
Starting program: /home/matthew/Documents/Repos/ladybird/Build/release/bin/Ladybird
...
Program received signal SIGSEGV, Segmentation fault.
0x00007ffff0c002cc in ?? ()
(gdb) bt
#0 0x00007ffff0c002cc in ?? ()
#1 0x00007ffff7fcb4f0 in call_init (l=0x7ffff5bab660, argc=1, argv=0x7fffffffe268, env=0x7fffffffe278) at dl-init.c:60
#2 call_init (l=0x7ffff5bab660, argc=1, argv=0x7fffffffe268, env=0x7fffffffe278) at dl-init.c:26
#3 0x00007ffff7fcb60d in _dl_init (main_map=0x7ffff7ffe310, argc=1, argv=0x7fffffffe268, env=0x7fffffffe278) at dl-init.c:121
#4 0x00007ffff7fe38e0 in _dl_start_user () from /lib64/ld-linux-x86-64.so.2
#5 0x0000000000000001 in ?? ()
#6 0x00007fffffffe631 in ?? ()
#7 0x0000000000000000 in ?? ()
(gdb)
running it with LD_DEBUG=libs produces this error with the last few lines shown:
178019: calling init: /home/matthew/Documents/Repos/ladybird/Build/release/vcpkg_installed/x64-linux-dynamic/lib/libfontconfig.so.1
178019:
178019:
178019: calling init: /home/matthew/Documents/Repos/ladybird/Build/release/vcpkg_installed/x64-linux-dynamic/lib/libskia.so
178019:
fish: Job 1, 'LD_DEBUG=libs ./Ladybird' terminated by signal SIGSEGV (Address boundary error)
Lastly running with BUILD_PRESET=Debug gives:
matthew@192-168-1-117 ~/D/R/l/B/r/bin (master) [SIGSEGV]> BUILD_PRESET=Debug ./Ladybird
fish: Job 1, 'BUILD_PRESET=Debug ./Ladybird' terminated by signal SIGSEGV (Address boundary error)
As an additional note, I have checked this using bash to make sure this is not a fish issue.
URL for a reduced test case
N/A
HTML/SVG/etc. source for a reduced test case
N/A
Log output and (if possible) backtrace
N/A
Screenshots or screen recordings
No response
Build flags or config settings
No response
Contribute a patch?
- I’ll contribute a patch for this myself.
About this issue
- Original URL
- State: closed
- Created 2 years ago
- Reactions: 10
- Comments: 24 (7 by maintainers)
Can confirm, have the same issue, on Fedora 42 KDE.
Between https://github.com/microsoft/vcpkg/pull/45417 and #4642 this issue should be resolved.
The action to take for developers on Fedora 42 wanting to build ladybird is to
dnf install patchelfto ensure that patchelf 0.18.0 is installed instead of the old 0.14.5 version used by vcpkg by default.Yeah, it happens in a fresh fedora:42 dockerfile as well. We don’t need any more +1s on this issue, I think 😅
I have this same issue on the Fedora 42 Sway spin. The issue affects 2 of my machines with different hardware. Both machines started at version 40 and were updated over time to 41 and then 42 using dnf instead of clean installs. I ran across a person online that thought they fixed a build problem (on another code base) by reinstalling Fedora from scratch. I hope this isn’t a Fedora system-upgrade problem leaving something old around. I’ve tried adding Mesa libraries (thinking libSkia needs them) and building with clang with no change in outcome. I haven’t tried using a clean install of Fedora 42.
I’m at Fedora 42 GNOME and I have same issue