kde-frameworks/kactivities-stats makes systemsettings segfault when built with -O3
When kactivities-stats is built with -O3, it makes kde-plasma/systemsettings segfault.
This could be a regression in the package, since I am pretty sure it wasn't happening a few versions ago when I already was running global -O3.
As a workaround, compiling kactivities-stats with -O2 fixes the problem:
kde-frameworks/kactivities-stats /-O3/-O2/
Here is a debug log when analyzing the segfault with gdb: gdb.log In the backtrace gdb claims that the 'this' reference has been optimized out.
Here is my emerge --info: emerge-info.txt
Can anyone else confirm this?
Same issue here.
$ emerge --info kde-frameworks/kactivities-stats
...
kde-frameworks/kactivities-stats-5.59.0::gentoo was built with the following:
USE="-debug -doc -test" ABI_X86="(64)"
CFLAGS="-march=native -O3 -fgraphite-identity -floop-nest-optimize -fdevirtualize-at-ltrans -fipa-pta -fno-semantic-interposition -flto=4 -fuse-linker-plugin -pipe -Wl,-O1 -Wl,--as-needed -Wl,--hash-style=gnu"
CXXFLAGS="-march=native -O3 -fgraphite-identity -floop-nest-optimize -fdevirtualize-at-ltrans -fipa-pta -fno-semantic-interposition -flto=4 -fuse-linker-plugin -pipe -Wl,-O1 -Wl,--as-needed -Wl,--hash-style=gnu"
LDFLAGS="-Wl,-O1 -Wl,--as-needed -Wl,--hash-style=gnu -march=native -O3 -fgraphite-identity -floop-nest-optimize -fdevirtualize-at-ltrans -fipa-pta -fno-semantic-interposition -flto=4 -fuse-linker-plugin -pipe"
Can confirm with your original post that kde-plasma/systemsettings-9999 (5.16.1) crashes when kde-frameworks/kactivities-stats-9999 was built with -O3.
Can confirm
Currently updating KDE, will see if the issue returns.
Confirmed, thanks!