PF4Public / gentoo-overlay

Personal Gentoo overlay
80 stars 20 forks source link

www-client/ungoogled-chromium: segfault when trying to use Yubikey #254

Closed OceanS2000 closed 1 year ago

OceanS2000 commented 1 year ago

Chromium builds and runs (mostly) fine, but when GitHub prompts for 2FA it segfaulted.

Now I reproduce the segfault reliably by simply:

  1. visit https://webauthn.io
  2. enter a username (any will do)
  3. hit the 'Register' button
[83121:83121:0914/221802.605928:ERROR:chrome_browser_cloud_management_controller.cc(163)] Cloud management controller initialization aborted as CBCM is not enabled.
[83121:83121:0914/221802.664725:ERROR:object_proxy.cc(590)] Failed to call method: org.freedesktop.portal.Settings.Read: object_path= /org/freedesktop/portal/desktop: org.freedesktop.DBus.Error.ServiceUnknown: The name org.freedesktop.portal.Desktop was not provided by any .service files
[83121:83132:0914/221806.498780:ERROR:ev_root_ca_metadata.cc(161)] Failed to decode OID: 0
[1]    83121 segmentation fault  chromium

Upstream binary and www-client/ungoogled-chromium-bin both work without crashing.

I noted flathub/org.chromium.Chromium#11 but the issue seemed to be resolved long ago.

My best guess is there might be some miscompliation happening but I cannot sure. The system is using GentooLTO overlay but I didn't enable custom-cflags so it should not matter too much.

ungoogled-chromium USEs ``` www-client/ungoogled-chromium-116.0.5845.187_p1::pf4public was built with the following: USE="X clang official optimize-thinlto optimize-webui proprietary-codecs system-ffmpeg system-harfbuzz system-icu system-jsoncpp system-libevent system-libusb system-openh264 system-openjpeg system-png system-snappy thinlto vaapi widevine -bluetooth -cfi -convert-dict -cups -custom-cflags -debug -enable-driver -gtk4 -hangouts -headless -hevc -kerberos -nvidia -pax-kernel -pgo -pic -pulseaudio -qt5 (-qt6) -screencast (-selinux) -suid -system-abseil-cpp -system-av1 -system-brotli -system-crc32c -system-double-conversion -system-libvpx -system-re2 -system-woff2 -uazo-bromite -wayland" ABI_X86="(64)" L10N="-af -am -ar -bg -bn -ca -cs -da -de -el -en-GB -es -es-419 -et -fa -fi -fil -fr -gu -he -hi -hr -hu -id -it -ja -kn -ko -lt -lv -ml -mr -ms -nb -nl -pl -pt-BR -pt-PT -ro -ru -sk -sl -sr -sv -sw -ta -te -th -tr -uk -ur -vi -zh-CN -zh-TW" CFLAGS="-march=native -pipe -Wno-unknown-warning-option -Wno-builtin-macro-redefined" CXXFLAGS="-march=native -pipe -Wno-unknown-warning-option -Wno-builtin-macro-redefined" FEATURES="assume-digests binpkg-docompress binpkg-dostrip binpkg-logs buildpkg-live buildsyspkg ccache cgroup config-protect-if-modified distlocks ebuild-locks fixlafiles ipc-sandbox merge-sync multilib-strict network-sandbox news parallel-fetch pid-sandbox preserve-libs protect-owned qa-unresolved-soname-deps sandbox sfperms strict unknown-features-warn unmerge-logs unmerge-orphans userfetch userpriv usersandbox usersync xattr" LDFLAGS="-Wl,--as-needed -Wl,--thinlto-jobs=24" ```
emerge info ``` Portage 3.0.49 (python 3.11.5-final-0, default/linux/amd64/17.1, gcc-12, glibc-2.37-r3, 6.4.15-Satori-xanmod1 x86_64) ================================================================= System Settings ================================================================= System uname: Linux-6.4.15-Satori-xanmod1-x86_64-AMD_Ryzen_9_5900X_12-Core_Processor-with-glibc2.37 KiB Mem: 65774296 total, 11581468 free KiB Swap: 12444992 total, 12444480 free Timestamp of repository gentoo: Wed, 13 Sep 2023 19:45:01 +0000 Head commit of repository gentoo: e6c6f5df4bb363e7dc9ab7580342815d6db6dd59 Timestamp of repository audio-overlay: Tue, 12 Sep 2023 08:02:17 +0000 Head commit of repository audio-overlay: fc72ec1d12c57074e31ba17ad8234abf8564362a Timestamp of repository gentoo-zh: Tue, 12 Sep 2023 08:02:09 +0000 Head commit of repository gentoo-zh: d54ab7841e4972b7680db7d0cfa736183058f6a9 Timestamp of repository guru: Tue, 12 Sep 2023 18:46:33 +0000 Head commit of repository guru: 01240c02c2ad29daead72c2434efbb34d430b32d Timestamp of repository lto-overlay: Tue, 12 Sep 2023 08:02:17 +0000 Head commit of repository lto-overlay: 45edb0414c542bb17a0965aeb7661a47c03054b9 Timestamp of repository mv: Tue, 12 Sep 2023 08:02:09 +0000 Head commit of repository mv: feed90de02f1fd7d36c902215bee81e9ac215b7a Timestamp of repository pentoo: Tue, 12 Sep 2023 08:02:11 +0000 Head commit of repository pentoo: 48d7dc39a8c55ea0a087c688b4b96827e30f70f8 Timestamp of repository pf4public: Wed, 13 Sep 2023 21:46:32 +0000 Head commit of repository pf4public: a83617f5be17bc451469477fd4c20d352bf598a5 Timestamp of repository steam-overlay: Tue, 12 Sep 2023 08:02:12 +0000 Head commit of repository steam-overlay: 8bb1a4686c92b024175affbab813cee65ff856ea sh bash 5.1_p16-r6 ld GNU ld (Gentoo 2.40 p5) 2.40.0 ccache version 4.8.2 [disabled] app-misc/pax-utils: 1.3.5::gentoo app-shells/bash: 5.1_p16-r6::gentoo dev-java/java-config: 2.3.1-r1::gentoo dev-lang/perl: 5.38.0-r1::gentoo dev-lang/python: 3.10.13::gentoo, 3.11.5::gentoo dev-lang/rust: 1.72.0::gentoo dev-util/ccache: 4.8.2::gentoo dev-util/cmake: 3.26.5-r2::gentoo dev-util/meson: 1.1.1::gentoo sys-apps/baselayout: 2.14::gentoo sys-apps/openrc: 0.48::gentoo sys-apps/sandbox: 2.37::gentoo sys-devel/autoconf: 2.13-r7::gentoo, 2.71-r6::gentoo sys-devel/automake: 1.16.5-r1::gentoo sys-devel/binutils: 2.40-r5::gentoo sys-devel/binutils-config: 5.5::gentoo sys-devel/clang: 15.0.7-r3::gentoo, 16.0.6::gentoo sys-devel/gcc: 11.3.1_p20230427::gentoo, 12.3.1_p20230526::gentoo sys-devel/gcc-config: 2.11::gentoo sys-devel/libtool: 2.4.7-r1::gentoo sys-devel/lld: 16.0.6::gentoo sys-devel/llvm: 15.0.7-r3::gentoo, 16.0.6::gentoo sys-devel/make: 4.4.1-r1::gentoo sys-kernel/linux-headers: 6.4::gentoo (virtual/os-headers) sys-libs/glibc: 2.37-r3::gentoo Repositories: gentoo location: /var/db/repos/gentoo sync-type: rsync sync-uri: rsync://mirrors.bfsu.edu.cn/gentoo-portage priority: -1000 volatile: False sync-rsync-verify-max-age: 24 sync-rsync-verify-jobs: 1 sync-rsync-verify-metamanifest: yes sync-rsync-extra-opts: audio-overlay location: /var/db/repos/audio-overlay sync-type: git sync-uri: https://github.com/gentoo-mirror/audio-overlay.git masters: gentoo volatile: False gentoo-zh location: /var/db/repos/gentoo-zh sync-type: git sync-uri: https://github.com/gentoo-mirror/gentoo-zh.git masters: gentoo volatile: False guru location: /var/db/repos/guru sync-type: git sync-uri: https://github.com/gentoo-mirror/guru.git masters: gentoo volatile: False lto-overlay location: /var/db/repos/lto-overlay sync-type: git sync-uri: https://github.com/gentoo-mirror/lto-overlay.git masters: gentoo mv volatile: False mv location: /var/db/repos/mv sync-type: git sync-uri: https://github.com/gentoo-mirror/mv.git masters: gentoo volatile: False pentoo location: /var/db/repos/pentoo sync-type: git sync-uri: https://github.com/gentoo-mirror/pentoo.git masters: gentoo volatile: False pf4public location: /var/db/repos/pf4public sync-type: git sync-uri: https://github.com/gentoo-mirror/pf4public.git masters: gentoo volatile: False steam-overlay location: /var/db/repos/steam-overlay sync-type: git sync-uri: https://github.com/gentoo-mirror/steam-overlay.git masters: gentoo volatile: False crossdev location: /var/db/repos/localrepo-crossdev masters: gentoo priority: 10 volatile: False localrepo location: /var/db/repos/localrepo masters: gentoo priority: 10 volatile: False Installed sets: @extern-deps ACCEPT_KEYWORDS="amd64" ACCEPT_LICENSE="@FREE" CBUILD="x86_64-pc-linux-gnu" CFLAGS="-march=native -O2 -pipe" CHOST="x86_64-pc-linux-gnu" CONFIG_PROTECT="/etc /usr/share/config /usr/share/gnupg/qualified.txt" CONFIG_PROTECT_MASK="/etc/ca-certificates.conf /etc/env.d /etc/fonts/fonts.conf /etc/gconf /etc/gentoo-release /etc/revdep-rebuild /etc/sandbox.d /etc/terminfo /etc/texmf/language.dat.d /etc/texmf/language.def.d /etc/texmf/updmap.d /etc/texmf/web2c /etc/vmware-installer" CXXFLAGS="-march=native -O2 -pipe" DISTDIR="/var/cache/distfiles" EMERGE_DEFAULT_OPTS="--jobs=2 --load-average=24.0 --ask-enter-invalid" ENV_UNSET="CARGO_HOME CARGO_TARGET_DIR DBUS_SESSION_BUS_ADDRESS DISPLAY GDK_PIXBUF_MODULE_FILE GOBIN GOPATH PERL5LIB PERL5OPT PERLPREFIX PERL_CORE PERL_MB_OPT PERL_MM_OPT XAUTHORITY XDG_CACHE_HOME XDG_CONFIG_HOME XDG_DATA_HOME XDG_RUNTIME_DIR XDG_STATE_HOME" FCFLAGS="-march=native -O2 -pipe" FEATURES="assume-digests binpkg-docompress binpkg-dostrip binpkg-logs buildpkg-live buildsyspkg cgroup config-protect-if-modified distlocks ebuild-locks fixlafiles ipc-sandbox merge-sync multilib-strict network-sandbox news parallel-fetch pid-sandbox preserve-libs protect-owned qa-unresolved-soname-deps sandbox sfperms strict unknown-features-warn unmerge-logs unmerge-orphans userfetch userpriv usersandbox usersync xattr" FFLAGS="-march=native -O2 -pipe" GENTOO_MIRRORS="https://mirrors.tuna.tsinghua.edu.cn/gentoo" LANG="en_US.UTF-8" LDFLAGS="-Wl,-O1 -Wl,--as-needed" LEX="flex" MAKEOPTS="--jobs=24 --load-average=24.0" PKGDIR="/var/cache/binpkgs" PORTAGE_CONFIGROOT="/" PORTAGE_RSYNC_OPTS="--recursive --links --safe-links --perms --times --omit-dir-times --compress --force --whole-file --delete --stats --human-readable --timeout=180 --exclude=/distfiles --exclude=/local --exclude=/packages --exclude=/.git" PORTAGE_TMPDIR="/var/tmp" SHELL="/bin/zsh" USE="X acl alsa amd64 bzip2 cairo cdda cli crypt cuda dri dvd eselect-ldso fontconfig fortran gdbm gif iconv icu ipv6 jack jpeg lcms libtirpc multilib ncurses nls nptl opengl openmp pam pcre png readline seccomp split-usr ssl test-rust unicode vaapi vdpau vim-syntax vulkan webp xattr zlib zsh-completion" ABI_X86="64" ADA_TARGET="gnat_2021" APACHE2_MODULES="authn_core authz_core socache_shmcb unixd actions alias auth_basic authn_alias authn_anon authn_dbm authn_default authn_file authz_dbm authz_default authz_groupfile authz_host authz_owner authz_user autoindex cache cgi cgid dav dav_fs dav_lock deflate dir disk_cache env expires ext_filter file_cache filter headers include info log_config logio mem_cache mime mime_magic negotiation rewrite setenvif speling status unique_id userdir usertrack vhost_alias" CALLIGRA_FEATURES="karbon sheets words" COLLECTD_PLUGINS="df interface irq load memory rrdtool swap syslog" CPU_FLAGS_X86="aes avx avx2 f16c fma3 mmx mmxext pclmul popcnt rdrand sha sse sse2 sse3 sse4_1 sse4_2 sse4a ssse3" ELIBC="glibc" GPSD_PROTOCOLS="ashtech aivdm earthmate evermore fv18 garmin garmintxt gpsclock greis isync itrax mtk3301 nmea ntrip navcom oceanserver oldstyle oncore rtcm104v2 rtcm104v3 sirf skytraq superstar2 timing tsip tripmate tnt ublox ubx" INPUT_DEVICES="libinput wacom joystick" KERNEL="linux" L10N="en zh zh-CN" LCD_DEVICES="bayrad cfontz cfontz633 glk hd44780 lb216 lcdm001 mtxorb ncurses text" LIBREOFFICE_EXTENSIONS="presenter-console presenter-minimizer" LUA_SINGLE_TARGET="lua5-1" LUA_TARGETS="lua5-1" OFFICE_IMPLEMENTATION="libreoffice" PHP_TARGETS="php8-1" POSTGRES_TARGETS="postgres15" PYTHON_SINGLE_TARGET="python3_11" PYTHON_TARGETS="python3_10 python3_11 pypy3" RUBY_TARGETS="ruby31" VIDEO_CARDS="nvidia" XTABLES_ADDONS="quota2 psd pknock lscan length2 ipv4options ipset ipp2p iface geoip fuzzy condition tee tarpit sysrq proto steal rawnat logmark ipmark dhcpmac delude chaos account" Unset: ADDR2LINE, AR, ARFLAGS, AS, ASFLAGS, CC, CCLD, CONFIG_SHELL, CPP, CPPFLAGS, CTARGET, CXX, CXXFILT, ELFEDIT, EXTRA_ECONF, F77FLAGS, FC, GCOV, GPROF, INSTALL_MASK, LC_ALL, LD, LFLAGS, LIBTOOL, LINGUAS, MAKE, MAKEFLAGS, NM, OBJCOPY, OBJDUMP, PORTAGE_BINHOST, PORTAGE_BUNZIP2_COMMAND, PORTAGE_COMPRESS, PORTAGE_COMPRESS_FLAGS, PORTAGE_RSYNC_EXTRA_OPTS, RANLIB, READELF, RUSTFLAGS, SIZE, STRINGS, STRIP, YACC, YFLAGS ================================================================= Package Settings ================================================================= www-client/ungoogled-chromium-116.0.5845.187_p1::pf4public was built with the following: USE="X clang official optimize-thinlto optimize-webui proprietary-codecs system-ffmpeg system-harfbuzz system-icu system-jsoncpp system-libevent system-libusb system-openh264 system-openjpeg system-png system-snappy thinlto vaapi widevine -bluetooth -cfi -convert-dict -cups -custom-cflags -debug -enable-driver -gtk4 -hangouts -headless -hevc -kerberos -nvidia -pax-kernel -pgo -pic -pulseaudio -qt5 (-qt6) -screencast (-selinux) -suid -system-abseil-cpp -system-av1 -system-brotli -system-crc32c -system-double-conversion -system-libvpx -system-re2 -system-woff2 -uazo-bromite -wayland" ABI_X86="(64)" L10N="-af -am -ar -bg -bn -ca -cs -da -de -el -en-GB -es -es-419 -et -fa -fi -fil -fr -gu -he -hi -hr -hu -id -it -ja -kn -ko -lt -lv -ml -mr -ms -nb -nl -pl -pt-BR -pt-PT -ro -ru -sk -sl -sr -sv -sw -ta -te -th -tr -uk -ur -vi -zh-CN -zh-TW" CFLAGS="-march=native -pipe -Wno-unknown-warning-option -Wno-builtin-macro-redefined" CXXFLAGS="-march=native -pipe -Wno-unknown-warning-option -Wno-builtin-macro-redefined" FEATURES="assume-digests binpkg-docompress binpkg-dostrip binpkg-logs buildpkg-live buildsyspkg ccache cgroup config-protect-if-modified distlocks ebuild-locks fixlafiles ipc-sandbox merge-sync multilib-strict network-sandbox news parallel-fetch pid-sandbox preserve-libs protect-owned qa-unresolved-soname-deps sandbox sfperms strict unknown-features-warn unmerge-logs unmerge-orphans userfetch userpriv usersandbox usersync xattr" LDFLAGS="-Wl,--as-needed -Wl,--thinlto-jobs=24" ```
PF4Public commented 1 year ago

Did it work before?

www-client/ungoogled-chromium-bin was built as follows:

www-client/ungoogled-chromium-116.0.5845.187_p1::pf4public was built with the following:
USE="X bluetooth clang convert-dict cups official optimize-thinlto optimize-webui pgo proprietary-codecs
 pulseaudio thinlto vaapi widevine -cfi -custom-cflags -debug -enable-driver -gtk4
 -hangouts -headless -hevc -kerberos -nvidia -pax-kernel -pic -qt5 -qt6 -screencast (-selinux)
 -suid -system-abseil-cpp -system-av1 -system-brotli -system-crc32c -system-double-conversion
 -system-ffmpeg -system-harfbuzz -system-icu -system-jsoncpp -system-libevent -system-libusb
 -system-libvpx -system-openh264 -system-openjpeg -system-png -system-re2 -system-snappy
 -system-woff2 -uazo-bromite -wayland" 
ABI_X86="(64)" 
L10N="af am ar bg bn ca cs da de el en-GB es es-419 et fa fi fil fr gu he hi hr hu id it ja kn ko lt lv ml mr ms nb nl pl pt-BR pt-PT ro ru sk sl sr sv sw ta te th tr uk ur vi zh-CN zh-TW"
CFLAGS="-march=x86-64 -pipe -Wno-unknown-warning-option -Wno-builtin-macro-redefined"
CXXFLAGS="-march=x86-64 -pipe -Wno-unknown-warning-option -Wno-builtin-macro-redefined"

Have you tried enabling bluetooth and/or cups? I would suspect bluetooth.

If this doesn't help, you should build a debug version and collect a backtrace.

OceanS2000 commented 1 year ago

I enabled bluetooth and now it works!

Since my issue is solved I'm closing this. Thank you for your help!