``` $ chromium /usr/lib/gcc/x86_64-pc-linux-gnu/12/include/g++-v12/bits/random.h:4004: std::geometric_distribution<unsigned int>::param_type::param_type(double) [_IntType = unsigned int]: Assertion '(_M_p > 0.0) && (_M_p < 1.0)' failed. Aborted ``` ``` /usr/lib/gcc/x86_64-pc-linux-gnu/12/include/g++-v12/bits/random.h:4004: std::geometric_distribution<unsigned int>::param_type::param_type(double) [_IntType = unsigned int]: Assertion '(_M_p > 0.0) && (_M_p < 1.0)' failed. Thread 1 "chrome" received signal SIGABRT, Aborted. __pthread_kill_implementation (threadid=<optimized out>, signo=signo@entry=6, no_tid=no_tid@entry=0) at pthread_kill.c:44 44 return INTERNAL_SYSCALL_ERROR_P (ret) ? INTERNAL_SYSCALL_ERRNO (ret) : 0; (gdb) bt #0 __pthread_kill_implementation (threadid=<optimized out>, signo=signo@entry=6, no_tid=no_tid@entry=0) at pthread_kill.c:44 #1 0x00007ffff5b467c3 in __pthread_kill_internal (signo=6, threadid=<optimized out>) at pthread_kill.c:78 #2 0x00007ffff5af6806 in __GI_raise (sig=sig@entry=6) at ../sysdeps/posix/raise.c:26 #3 0x00007ffff5ae07fc in __GI_abort () at abort.c:79 #4 0x00007ffff5d90b4f in std::__glibcxx_assert_fail(char const*, int, char const*, char const*) (file=<optimized out>, line=<optimized out>, function=<optimized out>, condition=<optimized out>) at /usr/src/debug/sys-devel/gcc-12.2.1_p20221203/gcc-12-20221203/libstdc++-v3/src/c++11/debug.cc:60 #5 0x000055555a297d53 in IdentifiabilityStudyState::IdentifiabilityStudyState(PrefService*) () #6 0x000055555ab83b4e in ChromeMetricsServiceClient::Initialize() () #7 0x00005555608ba8a6 in metrics_services_manager::MetricsServicesManager::GetMetricsServiceClient() () #8 0x000055555aad8c21 in ChromeBrowserMainParts::PreCreateThreads() () #9 0x0000555558aa1788 in content::BrowserMainLoop::PreCreateThreads() () #10 0x00005555591bab94 in content::StartupTaskRunner::RunAllTasksNow() () #11 0x0000555558aa1d31 in content::BrowserMainLoop::CreateStartupTasks() () #12 0x0000555558aa5451 in content::BrowserMainRunnerImpl::Initialize(content::MainFunctionParams) () #13 0x0000555558a9fb7b in content::BrowserMain(content::MainFunctionParams) () #14 0x000055555aa9614c in content::ContentMainRunnerImpl::RunBrowser(content::MainFunctionParams, bool) () #15 0x000055555aa95cf3 in content::ContentMainRunnerImpl::Run() () #16 0x000055555aa91f9c in content::ContentMain(content::ContentMainParams) () #17 0x000055555692498c in ChromeMain () #18 0x00007ffff5ae1650 in __libc_start_call_main (main=main@entry=0x555556924810 <main>, argc=argc@entry=1, argv=0x7fffffffd688, argv@entry=0x3af8002d9880) at ../sysdeps/nptl/libc_start_call_main.h:58 #19 0x00007ffff5ae1709 in __libc_start_main_impl (main=0x555556924810 <main>, argc=1, argv=0x3af8002d9880, init=<optimized out>, fini=<optimized out>, rtld_fini=<optimized out>, stack_end=0x7fffffffd678) at ../csu/libc-start.c:381 #20 0x0000555556601025 in _start () (gdb) ``` I think this started fairly recently (at least about 2-3 months ago, I could run Chromium on the same system).
There's a mention of this issue at https://bugs.chromium.org/p/chromium/issues/detail?id=1189788#c17 but it's from a year ago, and I've definitely opened Chromium successfully in the last year. I'm not sure if this blanket affects systems with GLIBCXX_ASSERTIONS or if there's something special about my machine which causes it. I've tried moving away ~/.config/chromium but that didn't make a difference. --- Portage 3.0.41 (python 3.11.0-final-0, default/linux/amd64/17.1/hardened, gcc-12, glibc-2.36-r6, 5.15.81-adry x86_64) ================================================================= System uname: Linux-5.15.81-adry-x86_64-11th_Gen_Intel-R-_Core-TM-_i7-11800H_@_2.30GHz-with-glibc2.36 KiB Mem: 32596188 total, 9490272 free KiB Swap: 8388604 total, 8388348 free Timestamp of repository gentoo: Mon, 05 Dec 2022 04:02:04 +0000 Head commit of repository gentoo: 532821cf46713f020b645aef7239ac4d581dfc89 Timestamp of repository emacs: Wed, 30 Nov 2022 18:31:44 +0000 Head commit of repository emacs: 658256583da797618d7291fa4f9fc3800e087596 Timestamp of repository kde: Sun, 04 Dec 2022 17:46:43 +0000 Head commit of repository kde: 863984f4ef9db9d0f447b4d9738ecc4971430b27 Timestamp of repository qt: Sun, 04 Dec 2022 18:31:42 +0000 Head commit of repository qt: 9379092defc728701d8b67bd74eb86651829e08c sh dash 0.5.11.5 ld GNU ld (Gentoo 2.39 p5) 2.39.0 ccache version 4.7.4 [disabled] app-misc/pax-utils: 1.3.5::gentoo app-shells/bash: 5.2_p12::gentoo dev-java/java-config: 2.3.1::gentoo dev-lang/perl: 5.36.0-r1::gentoo dev-lang/python: 3.8.15_p3::gentoo, 3.9.15_p3::gentoo, 3.10.8_p3::gentoo, 3.11.0_p2::gentoo dev-lang/rust-bin: 1.65.0::gentoo dev-util/ccache: 4.7.4::gentoo dev-util/cmake: 3.25.1::gentoo dev-util/meson: 0.64.1::gentoo sys-apps/baselayout: 2.9::gentoo sys-apps/openrc: 0.45.2-r2::gentoo sys-apps/sandbox: 2.29::gentoo sys-devel/autoconf: 2.71-r5::gentoo sys-devel/automake: 1.16.5::gentoo sys-devel/binutils: 2.39-r4::gentoo sys-devel/binutils-config: 5.4.1::gentoo sys-devel/clang: 14.0.6-r1::gentoo, 15.0.6::gentoo sys-devel/gcc: 11.3.1_p20221202::gentoo, 12.2.1_p20221203::gentoo sys-devel/gcc-config: 2.8::gentoo sys-devel/libtool: 2.4.7::gentoo sys-devel/lld: 15.0.6::gentoo sys-devel/llvm: 14.0.6-r2::gentoo, 15.0.6::gentoo sys-devel/make: 4.4::gentoo sys-kernel/linux-headers: 6.0::gentoo (virtual/os-headers) sys-libs/glibc: 2.36-r6::gentoo Repositories: gentoo location: /var/db/repos/gentoo sync-type: git sync-uri: https://github.com/gentoo-mirror/gentoo.git priority: -1000 sync-git-verify-commit-signature: yes sync-git-clone-extra-opts: -b stable -c gc.reflogExpire=0 -c gc.reflogExpireUnreachable=0 -c gc.rerereresolved=0 -c gc.rerereunresolved=0 -c gc.pruneExpire=now emacs location: /var/db/repos/emacs sync-type: git sync-uri: https://github.com/gentoo-mirror/emacs.git masters: gentoo kde location: /var/db/repos/kde sync-type: git sync-uri: https://github.com/gentoo-mirror/kde.git masters: gentoo local location: /var/db/repos/local masters: gentoo qt location: /var/db/repos/qt sync-type: git sync-uri: https://github.com/gentoo-mirror/qt.git masters: gentoo sam_c location: /home/sjames/git/overlay masters: gentoo ACCEPT_KEYWORDS="amd64 ~amd64" ACCEPT_LICENSE="*" CBUILD="x86_64-pc-linux-gnu" CFLAGS="-O2 -pipe -march=native -fdiagnostics-color=always -frecord-gcc-switches -ggdb3" CHOST="x86_64-pc-linux-gnu" CONFIG_PROTECT="//var/lib/redmine/config /etc /etc/stunnel/stunnel.conf /usr/lib64/libreoffice/program/sofficerc /usr/share/config /usr/share/gnupg/qualified.txt" CONFIG_PROTECT_MASK="//var/lib/redmine/config/locales //var/lib/redmine/config/settings.yml /etc/ca-certificates.conf /etc/dconf /etc/env.d /etc/fonts/fonts.conf /etc/gconf /etc/gentoo-release /etc/revdep-rebuild /etc/sandbox.d /etc/terminfo" CXXFLAGS="-O2 -pipe -march=native -fdiagnostics-color=always -frecord-gcc-switches -D_GLIBCXX_ASSERTIONS -ggdb3" DISTDIR="/var/cache/distfiles" EMERGE_DEFAULT_OPTS="--keep-going=y --complete-graph --deep --changed-deps-report=y --usepkg=n --usepkg-exclude sys-fs/zfs --usepkg-exclude sys-fs/zfs-kmod --usepkg-exclude nvidia-drivers --usepkg-exclude gentoo-kernel --implicit-system-deps=n" ENV_UNSET="CARGO_HOME DBUS_SESSION_BUS_ADDRESS DISPLAY 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="-O2 -pipe -march=native -fdiagnostics-color=always -frecord-gcc-switches" FEATURES="assume-digests binpkg-docompress binpkg-dostrip binpkg-logs binpkg-multi-instance buildpkg buildpkg-live compressdebug config-protect-if-modified distlocks downgrade-backup ebuild-locks fixlafiles installsources ipc-sandbox mount-sandbox multilib-strict network-sandbox news parallel-fetch parallel-install pid-sandbox preserve-libs protect-owned qa-unresolved-soname-deps sandbox sfperms splitdebug strict unknown-features-warn unmerge-logs unmerge-orphans userfetch userpriv usersandbox usersync xattr" FFLAGS="-O2 -pipe -march=native -fdiagnostics-color=always -frecord-gcc-switches" GENTOO_MIRRORS="http://mirror.bytemark.co.uk/gentoo/ http://www.mirrorservice.org/sites/distfiles.gentoo.org/ http://mirrors.soeasyto.com/distfiles.gentoo.org/ http://mirrors.gethosted.online/gentoo" LANG="C.utf8" LDFLAGS="-Wl,-O1 -Wl,--as-needed -Wl,--defsym=__gentoo_check_ldflags__=0 -Wl,-z,pack-relative-relocs" LEX="flex" LINGUAS="en en_GB" MAKEOPTS="-j16" PKGDIR="/var/cache/binpkgs" PORTAGE_COMPRESS="xz" 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/portage2" RUSTFLAGS="-C target-cpu=native" SHELL="/bin/bash" USE="PIC X a52 aac acl acpi activities aes alsa amd64 avx avx2 avx512bw avx512cd avx512dq avx512f avx512vbmi avx512vl bash-completion bluetooth branding bzip2 cairo caps cdda cdr cet clang cli crypt dbus declarative dist-kernel dri dts dvd dvdr elogind emacs encode exif f16c flac fma3 fortran gdbm gif gles2 gmp gpm graphite gtk gui hardened hunspell iconv icu ipv6 iwd jit jpeg kde kwallet lcms libglvnd libnotify libtirpc lto mad mmx mmxext mng mp3 mp4 mpeg multilib ncurses networkmanager nptl ogg opengl openmp pam pango pclmul pcre pdf pgo pic pie pipewire plasma png policykit popcnt ppds pulseaudio qml qt5 rdrand readline screencast sdl seccomp semantic-desktop sha smartcard spell split-usr sse sse2 sse3 sse4_1 sse4_2 ssl ssp ssse3 startup-notification svg syslog system-av1 system-binutils system-boost system-bootstrap system-cairo system-clang system-digest system-ffmpeg system-harfbuzz system-heimdal system-icu system-jpeg system-jsoncpp system-leveldb system-libevent system-libs system-libvpx system-libyaml system-lz4 system-mitkrb5 system-sqlite system-ssl system-tbb system-uulib system-webp system-zlib test-rust tiff truetype udev udisks unicode upower usb vaapi verify-sig vorbis vulkan wayland widgets x264 xattr xcb xml xtpax xv xvid zlib zsh-completion zstd" ABI_X86="32 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 avx512f avx512dq avx512cd avx512bw avx512vl avx512vbmi f16c fma3 mmx mmxext pclmul popcnt rdrand sha sse sse2 sse3 sse4_1 sse4_2 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" GRUB_PLATFORMS="efi-64" INPUT_DEVICES="libinput" KERNEL="linux" L10N="en en-GB" 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="php7-4 php8-0" POSTGRES_TARGETS="postgres12 postgres13" PYTHON_SINGLE_TARGET="python3_10" PYTHON_TARGETS="python3_10 python3_11 python3_8 python3_9" RUBY_TARGETS="ruby26 ruby27" USERLAND="GNU" VIDEO_CARDS="intel i965 iris 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, MAKE, MAKEFLAGS, NM, OBJCOPY, OBJDUMP, PORTAGE_BINHOST, PORTAGE_BUNZIP2_COMMAND, PORTAGE_COMPRESS_FLAGS, PORTAGE_RSYNC_EXTRA_OPTS, RANLIB, READELF, SIZE, STRINGS, STRIP, YACC, YFLAGS
The problem is here: https://chromium.googlesource.com/chromium/src.git/+/refs/heads/main/chrome/browser/privacy_budget/identifiability_study_state.cc#60 The other bug is a compile time assertion.
Maybe expected_surface_count calculates to <=0? In that case, the code you linked results in geometric_distribution_ { 0.9 / 0.1 } which is 9 (definitely >= 1), whereas geometric distributions are only valid for p in (0,1)
Mentioned at: - https://bugs.chromium.org/p/chromium/issues/detail?id=957519#c122 - https://bugs.chromium.org/p/chromium/issues/detail?id=957519#c168 I've reported it upstream in its own bug at https://bugs.chromium.org/p/chromium/issues/detail?id=1405579.
I think we should probably add -U_GLIBCXX_ASSERTIONS for now.
No luck with suggested patch yet, I think: ``` /usr/lib/gcc/x86_64-pc-linux-gnu/12/include/g++-v12/bits/random.h:4004: std::geometric_distribution<unsigned int>::param_type::param_type(double) [_IntType = unsigned int]: Assertion '(_M_p > 0.0) && (_M_p < 1.0)' failed. Thread 1 "chrome" received signal SIGABRT, Aborted. __pthread_kill_implementation (threadid=<optimized out>, signo=signo@entry=6, no_tid=no_tid@entry=0) at pthread_kill.c:44 44 return INTERNAL_SYSCALL_ERROR_P (ret) ? INTERNAL_SYSCALL_ERRNO (ret) : 0; (gdb) bt #0 __pthread_kill_implementation (threadid=<optimized out>, signo=signo@entry=6, no_tid=no_tid@entry=0) at pthread_kill.c:44 #1 0x00007ffff5b4a7c3 in __pthread_kill_internal (signo=6, threadid=<optimized out>) at pthread_kill.c:78 #2 0x00007ffff5afa806 in __GI_raise (sig=sig@entry=6) at ../sysdeps/posix/raise.c:26 #3 0x00007ffff5ae47fc in __GI_abort () at abort.c:79 #4 0x00007ffff5d94b4f in std::__glibcxx_assert_fail(char const*, int, char const*, char const*) (file=<optimized out>, line=<optimized out>, function=<optimized out>, condition=<optimized out>) at /usr/src/debug/sys-devel/gcc-12.2.1_p20221231/gcc-12-20221231/libstdc++-v3/src/c++11/debug.cc:60 #5 0x000055555a2809e5 in IdentifiabilityStudyState::IdentifiabilityStudyState(PrefService*) () #6 0x000055555ab6b41e in ChromeMetricsServiceClient::Initialize() () #7 0x0000555560889329 in metrics_services_manager::MetricsServicesManager::GetMetricsServiceClient() () #8 0x000055555aabfe71 in ChromeBrowserMainParts::PreCreateThreads() () #9 0x0000555558a9c3d8 in content::BrowserMainLoop::PreCreateThreads() () #10 0x00005555591b7d64 in content::StartupTaskRunner::RunAllTasksNow() () #11 0x0000555558a9c981 in content::BrowserMainLoop::CreateStartupTasks() () #12 0x0000555558aa00a1 in content::BrowserMainRunnerImpl::Initialize(content::MainFunctionParams) () #13 0x0000555558a9a7cb in content::BrowserMain(content::MainFunctionParams) () #14 0x000055555aa7d1cc in content::ContentMainRunnerImpl::RunBrowser(content::MainFunctionParams, bool) () #15 0x000055555aa7cd73 in content::ContentMainRunnerImpl::Run() () #16 0x000055555aa7900c in content::ContentMain(content::ContentMainParams) () #17 0x000055555692452c in ChromeMain () #18 0x00007ffff5ae5650 in __libc_start_call_main (main=main@entry=0x5555569243b0 <main>, argc=argc@entry=3, argv=0x7fffffffd5c8, argv@entry=0x11c8002d9d80) at ../sysdeps/nptl/libc_start_call_main.h:58 #19 0x00007ffff5ae5709 in __libc_start_main_impl (main=0x5555569243b0 <main>, argc=3, argv=0x11c8002d9d80, init=<optimized out>, fini=<optimized out>, rtld_fini=<optimized out>, stack_end=0x7fffffffd5b8) at ../csu/libc-start.c:381 #20 0x0000555556601025 in _start () ```
Patch from sultan at https://crrev.com/c/4150340. The crash for me was unrelated (happened w/o patch) and I can't reproduce it anymore, so let's consider that separately.
The bug has been referenced in the following commit(s): https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=bf7fc6e838f669c503dd127107a8e9f85ca2f951 commit bf7fc6e838f669c503dd127107a8e9f85ca2f951 Author: Stephan Hartmann <sultan@gentoo.org> AuthorDate: 2023-01-14 08:36:30 +0000 Commit: Stephan Hartmann <sultan@gentoo.org> CommitDate: 2023-01-14 08:37:55 +0000 www-client/chromium: promote M109 to stable Closes: https://bugs.gentoo.org/890064 Bug: https://bugs.gentoo.org/884419 Bug: https://bugs.gentoo.org/890726 Signed-off-by: Stephan Hartmann <sultan@gentoo.org> www-client/chromium/Manifest | 2 +- ....74.ebuild => chromium-109.0.5414.74-r1.ebuild} | 18 +++---- .../chromium/files/chromium-109-system-icu.patch | 58 ++++++++++++++++++++++ 3 files changed, 67 insertions(+), 11 deletions(-)
The bug has been closed via the following commit(s): https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=019f018460e9b640e539f2d34cbf75f4b5d8ef1a commit 019f018460e9b640e539f2d34cbf75f4b5d8ef1a Author: Stephan Hartmann <sultan@gentoo.org> AuthorDate: 2023-01-15 21:23:35 +0000 Commit: Stephan Hartmann <sultan@gentoo.org> CommitDate: 2023-01-15 21:24:19 +0000 www-client/chromium: beta channel bump to 110.0.5481.30 Closes: https://bugs.gentoo.org/884419 Signed-off-by: Stephan Hartmann <sultan@gentoo.org> www-client/chromium/Manifest | 4 ++-- ...um-110.0.5481.24.ebuild => chromium-110.0.5481.30.ebuild} | 12 +++--------- 2 files changed, 5 insertions(+), 11 deletions(-)