Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!

Bug 907367

Summary: net-libs/webkit-gtk:6: -O3 causes crashes on runtime with complex websites
Product: Gentoo Linux Reporter: Maciej Barć <xgqt>
Component: Current packagesAssignee: Gentoo Linux Gnome Desktop Team <gnome>
Status: CONFIRMED ---    
Severity: normal    
Priority: Normal    
Version: unspecified   
Hardware: All   
OS: Linux   
See Also: https://bugs.gentoo.org/show_bug.cgi?id=915230
Whiteboard:
Package list:
Runtime testing required: ---
Attachments: emerge --info

Description Maciej Barć gentoo-dev 2023-05-29 13:25:03 UTC
Today after reboot I noticed Tangram could not load many websites. After installing Epiphany it was crashing on those websites.

There is no backtrace, only this info:
> (epiphany:7295): Adwaita-WARNING **: 15:20:19.598: Using GtkSettings:gtk-application-prefer-dark-theme with libadwaita is unsupported. Please use AdwStyleManager:color-scheme instead.
> (epiphany:7295): epiphany-WARNING **: 15:20:19.834: Cannot fetch source for filter e3b0c44298fc1c149afbf4c8996fb92427ae41e4649b934ca495991b7852b855 from <>: The URL can’t be shown
> (epiphany:7295): epiphany-WARNING **: 15:20:23.043: Web process crashed

The website that always crashes for me is https://fosstodon.org after it almost finishes loading.
Comment 1 Maciej Barć gentoo-dev 2023-05-29 13:26:58 UTC
Created attachment 862816 [details]
emerge --info

emerge --info net-libs/webkit-gtk > net-libs.webkit-gtk.emerge.info.txt
Comment 3 Maciej Barć gentoo-dev 2023-05-30 00:02:53 UTC
This looks like a CFLAGS bug, I have recompiled net-libs/webkit-gtk with safer CFLAGS="-march=native -O2 -pipe" and it woks correctly.
Comment 4 Matt Turner gentoo-dev 2023-05-30 17:54:08 UTC
Do you think it's -O2 vs -O3 that's responsible, or some of the other CFLAGS?
Comment 5 Maciej Barć gentoo-dev 2023-05-31 17:05:47 UTC
Looks like the fault of "-O3".
Fails on runtime when compiled with "-march=native -pipe -O3".
Comment 6 Maciej Barć gentoo-dev 2023-12-27 23:31:30 UTC
> Fails on runtime when compiled with "-march=native -pipe -O3".

Anybody was able to reproduce?
Comment 7 Mart Raudsepp gentoo-dev 2023-12-28 12:38:19 UTC
Works fine for me, but mine's -O3 compiled with clang
Comment 8 Sam James archtester Gentoo Infrastructure gentoo-dev Security 2024-01-05 12:34:19 UTC
try ubsan?