Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 879837 - www-client/chromium-107.0.5304.87[pgo] hangs at the PGO phase of building
Summary: www-client/chromium-107.0.5304.87[pgo] hangs at the PGO phase of building
Status: UNCONFIRMED
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: Current packages (show other bugs)
Hardware: All Linux
: Normal normal (vote)
Assignee: Chromium Project
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2022-11-05 07:11 UTC by Michael
Modified: 2022-12-05 03:14 UTC (History)
1 user (show)

See Also:
Package list:
Runtime testing required: ---


Attachments
pgo tests (chromium-PGO,18.70 KB, text/plain)
2022-11-05 07:11 UTC, Michael
Details
ps ax | grep profiler (chromium-PGO-profiler,54.59 KB, text/plain)
2022-11-05 07:11 UTC, Michael
Details
new pgo log (chromium-pgo-2,16.56 KB, text/plain)
2022-11-08 01:05 UTC, Michael
Details
chromium_profiler.py.patch (chromium_profiler.py.patch,613 bytes, patch)
2022-11-10 17:31 UTC, Marek Behún
Details | Diff
pgo tests with the patch applied (chrome-pgo-traces,321.00 KB, text/plain)
2022-11-10 23:06 UTC, Michael
Details
screenshot (Screenshot_20221114_173501.png,284.18 KB, image/png)
2022-11-14 13:38 UTC, Michael
Details
log (chromium_profiler.log,21.99 KB, text/x-log)
2022-11-14 21:24 UTC, Michael
Details

Note You need to log in before you can comment on or make changes to this bug.
Description Michael 2022-11-05 07:11:04 UTC
Created attachment 827683 [details]
pgo tests

It compiles the first stage with no issues, then it starts the PGO tests, but they somehow all fail (see attachment), and eventually it just hangs with no error messages after

> Run 3/3 failed: AttributeError("'SpreadSheet' object has no attribute 'driver'")

I left it there for an hour just to be sure, but there was nothing in `htop`. So I Ctrl-C it, and then restarted with `ebuild ... merge`. The result was the same. 

chromium_profiler.py hangs in the `ps` output (see the other attachment), but doesn't seem to do anything.
Comment 1 Michael 2022-11-05 07:11:56 UTC
Created attachment 827685 [details]
ps ax | grep profiler
Comment 2 Michael 2022-11-05 07:16:46 UTC
emerge --info chromium
Portage 3.0.38.1 (python 3.10.8-final-0, default/linux/amd64/17.1/desktop/plasma, gcc-11.3.0, glibc-2.35-r8, 6.0.5 x86_64)
=================================================================
                         System Settings
=================================================================
System uname: Linux-6.0.5-x86_64-AMD_Ryzen_7_2700_Eight-Core_Processor-with-glibc2.35
KiB Mem:    24568696 total,  10741820 free
KiB Swap:          0 total,         0 free
Timestamp of repository gentoo: Sat, 05 Nov 2022 01:16:50 +0000
Head commit of repository gentoo: 12696f7c9be6e77ad78872b071510db03a4b8e83

Timestamp of repository kde: Thu, 03 Nov 2022 17:01:54 +0000
Head commit of repository kde: eda2e80f58554916d2634da13591e076eb626af8

Timestamp of repository palemoon: Wed, 02 Nov 2022 22:31:46 +0000
Head commit of repository palemoon: 98808b943d6010273c6857dd8b0a4cea1475e964

Head commit of repository rion: 061f681d60abb3b35dcd199e0e7350d9276e9150

Timestamp of repository steam-overlay: Thu, 20 Oct 2022 06:32:14 +0000
Head commit of repository steam-overlay: f40a22632e77a46be0153821f4a7f7847029533b

Timestamp of repository torbrowser: Tue, 01 Nov 2022 18:36:01 +0000
Head commit of repository torbrowser: 0a5ecdb8f498cc618e10a4c64dcc10204fea85cc

sh bash 5.1_p16-r2
ld GNU ld (Gentoo 2.38 p4) 2.38
app-misc/pax-utils:        1.3.5::gentoo
app-shells/bash:           5.1_p16-r2::gentoo
dev-java/java-config:      2.3.1::gentoo
dev-lang/perl:             5.34.1-r4::gentoo
dev-lang/python:           3.10.8_p2::gentoo
dev-util/cmake:            3.24.3::gentoo
dev-util/meson:            0.63.2-r1::gentoo
sys-apps/baselayout:       2.8::gentoo
sys-apps/openrc:           0.45.2-r1::gentoo
sys-apps/sandbox:          2.29::gentoo
sys-devel/autoconf:        2.71-r1::gentoo
sys-devel/automake:        1.16.5::gentoo
sys-devel/binutils:        2.38-r2::gentoo
sys-devel/binutils-config: 5.4.1::gentoo
sys-devel/clang:           14.0.6-r1::gentoo
sys-devel/gcc:             11.3.0::gentoo
sys-devel/gcc-config:      2.8::gentoo
sys-devel/libtool:         2.4.7::gentoo
sys-devel/lld:             14.0.6-r1::gentoo
sys-devel/llvm:            14.0.6-r2::gentoo
sys-devel/make:            4.3::gentoo
sys-kernel/linux-headers:  6.0::gentoo (virtual/os-headers)
sys-libs/glibc:            2.35-r8::gentoo
Repositories:

gentoo
    location: /mnt/portage/portage
    sync-type: git
    sync-uri: https://github.com/gentoo-mirror/gentoo.git
    priority: -1000

kde
    location: /mnt/portage/layman/kde
    sync-type: git
    sync-uri: https://github.com/gentoo-mirror/kde.git
    masters: gentoo

local
    location: /mnt/portage/layman/local
    masters: gentoo

palemoon
    location: /mnt/portage/layman/palemoon
    sync-type: git
    sync-uri: https://github.com/gentoo-mirror/palemoon.git
    masters: gentoo

rion
    location: /mnt/portage/layman/rion
    sync-type: git
    sync-uri: https://github.com/gentoo-mirror/rion.git
    masters: gentoo

steam-overlay
    location: /mnt/portage/layman/steam-overlay
    sync-type: git
    sync-uri: https://github.com/gentoo-mirror/steam-overlay.git
    masters: gentoo

torbrowser
    location: /mnt/portage/layman/torbrowser
    sync-type: git
    sync-uri: https://github.com/gentoo-mirror/torbrowser.git
    masters: gentoo

ACCEPT_KEYWORDS="amd64"
ACCEPT_LICENSE="* AdobeFlash-10.1 skype-eula Q3AEULA AdobeFlash-10.3 skype-4.0.0.7-copyright AdobeFlash-11.x TeamViewer Oracle-BCLA-JavaSE OPERA-12 OPERA-2014"
CBUILD="x86_64-pc-linux-gnu"
CFLAGS="-mtune=native -O2 -pipe"
CHOST="x86_64-pc-linux-gnu"
CONFIG_PROTECT="/etc /usr/lib64/libreoffice/program/sofficerc /usr/share/config /usr/share/gnupg/qualified.txt"
CONFIG_PROTECT_MASK="/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="-mtune=native -O2 -pipe"
DISTDIR="/home/distfiles"
EMERGE_DEFAULT_OPTS="--quiet-build=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"
FEATURES="assume-digests binpkg-docompress binpkg-dostrip binpkg-logs binpkg-multi-instance buildpkg-live 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="-O2 -pipe"
GENTOO_MIRRORS="http://distfiles.gentoo.org"
LANG="ru_RU.UTF-8"
LC_ALL="ru_RU.UTF-8"
LDFLAGS="-Wl,-O1 -Wl,--as-needed"
LINGUAS="ru ru_RU"
MAKEOPTS="-j14"
PKGDIR="/home/packages"
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/bash"
USE="X a52 aac acl acpi activities alsa amd64 branding bzip2 cairo cdr cli corefont crypt dbus declarative dist-kernel dri dts dvd dvdr elogind encode exif ffmpeg flac fortran gdbm gif gpm gtk gui iconv icu idn ip6 ipv6 jgp jpeg kde kwallet lcms libglvnd libnotify libtirpc mad matroska midi mmx mng mp3 mp4 mpeg multilib ncurses nls nptl offensive ogg opengl openmp pam pango pcre pdf plasma png policykit ppds private-headers pulseaudio qml qt qt3support qt5 rar readline samba sdl seccomp spell split-usr sse sse2 sse3 ssl startup-notification svg symlink taglib test-rust theora tiff truetype udev udisks unicode unrar upower usb utf8 vdpau vorbis widgets wxwidgets x264 xattr xcb xml xorg xv xvid zlib zstd" ABI_X86="64" ADA_TARGET="gnat_2020" ALSA_CARDS="hda-intel" 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="mmx mmxext sse sse2 sse3" 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="ru en" 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" RUBY_TARGETS="ruby27" USERLAND="GNU" VIDEO_CARDS="nouveau" 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, LD, LEX, LFLAGS, LIBTOOL, 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
=================================================================

emerge -pv chromium

www-client/chromium-107.0.5304.87:0/stable::gentoo [106.0.5249.119:0/stable::gentoo] USE="X js-type-check lto official (pic) proprietary-codecs pulseaudio qt5%* system-av1%* system-harfbuzz system-icu (-component-build) -cups -custom-cflags -debug -gtk4 -hangouts (-headless) -kerberos -libcxx -pgo -screencast (-selinux) -suid (-system-ffmpeg) -system-png -vaapi -wayland -widevine" L10N="ru -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 -sk -sl -sr -sv -sw -ta -te -th -tr -uk -ur -vi -zh-CN -zh-TW" 0 KiB

CFLAGS="-mtune=native -O2 -pipe -Wno-unknown-warning-option"
CXXFLAGS="-mtune=native -O2 -pipe -Wno-unknown-warning-option"
Comment 3 Larry the Git Cow gentoo-dev 2022-11-07 16:07:15 UTC
The bug has been referenced in the following commit(s):

https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=5912ae28b57c13e985244c4b8fc0c33afdf1f1f4

commit 5912ae28b57c13e985244c4b8fc0c33afdf1f1f4
Author:     Marek Behún <kabel@kernel.org>
AuthorDate: 2022-11-07 10:28:44 +0000
Commit:     Mike Gilbert <floppym@gentoo.org>
CommitDate: 2022-11-07 16:05:24 +0000

    www-client/chromium: Upgrade chromium-profiler to fix PGO building
    
    Upgrade chromium-profiler to fix building with USE=pgo.
    
    The old version of chromium-profiler doesn't profile correctly because
    new version of Selenium changed API a little bit.
    
    Bug: https://bugs.gentoo.org/879837
    Signed-off-by: Marek Behún <kabel@kernel.org>
    Signed-off-by: Mike Gilbert <floppym@gentoo.org>

 www-client/chromium/Manifest                       | 2 +-
 www-client/chromium/chromium-106.0.5249.103.ebuild | 2 +-
 www-client/chromium/chromium-106.0.5249.119.ebuild | 2 +-
 www-client/chromium/chromium-107.0.5304.87.ebuild  | 2 +-
 www-client/chromium/chromium-108.0.5343.2.ebuild   | 2 +-
 5 files changed, 5 insertions(+), 5 deletions(-)
Comment 4 Michael 2022-11-08 00:58:44 UTC
That didn't help, the tests are still failing in the exact same way, and stopping on that SpreadSheet thing. 
And I checked, it downloaded chromium-profiler-0.2 and everything. Not sure what's going on there.
Comment 5 Michael 2022-11-08 01:05:01 UTC
Created attachment 828551 [details]
new pgo log
Comment 6 Marek Behún 2022-11-10 17:31:32 UTC
Created attachment 830293 [details, diff]
chromium_profiler.py.patch

Could you apply the attached chromium_profiler.py.patch for chromium-profiler-0.2/chromium-profiler.py and try profiling? This will print stack trace, I will be more wiser afterwards.
Comment 7 Michael 2022-11-10 18:50:09 UTC
(In reply to Marek Behún from comment #6)
> Created attachment 830293 [details, diff] [details, diff]
> chromium_profiler.py.patch
> 
> Could you apply the attached chromium_profiler.py.patch for
> chromium-profiler-0.2/chromium-profiler.py and try profiling? This will
> print stack trace, I will be more wiser afterwards.

I applied the patch, now just waiting 4 hours for it to build. :-) I should've left the half-baked tree around.
Comment 8 Michael 2022-11-10 23:06:04 UTC
Created attachment 830699 [details]
pgo tests with the patch applied
Comment 9 Michael 2022-11-10 23:07:06 UTC
I'm starting to think that something really basic not working out for chromium. I think it's just crashing on start.
Comment 10 Michael 2022-11-10 23:09:47 UTC
I kept the build-tree this time around, though. ;-)
Comment 11 Michael 2022-11-10 23:15:48 UTC
Could it be something as simple as /dev/shm not being large enough? 

https://stackoverflow.com/questions/50642308/webdriverexception-unknown-error-devtoolsactiveport-file-doesnt-exist-while-t
Comment 12 Michael 2022-11-11 07:04:07 UTC
There's something interesting:

/var/tmp/notmpfs/portage/www-client/chromium-107.0.5304.87/temp/tmpqcw4r4jg/chrome_debug.log                                      370/370               100%
[217:235:1111/104603.447728:ERROR:bus.cc(399)] Failed to connect to the bus: Could not parse server address: Unknown address type (examples of valid types a
re "tcp" and on UNIX "unix")
[217:235:1111/104603.447812:ERROR:bus.cc(399)] Failed to connect to the bus: Could not parse server address: Unknown address type (examples of valid types a
re "tcp" and on UNIX "unix")

Is the Xvfb not starting? Or is chromium being pointed to it incorrectly? That looks like a lead.
Comment 13 Michael 2022-11-11 07:06:17 UTC
But then, not all tests refuse to run. Sometimes it manages to collect something:

/var/tmp/notmpfs/portage/www-client/chromium-107.0.5304.87/temp/tmpkimahuu3 # ls 
child_pool-1.profraw  localhost-221.profdata  localhost-247.profdata

Are we like having a portage sandboxing problem here?
Comment 14 Michael 2022-11-11 07:11:14 UTC
> Is the Xvfb not starting? Or is chromium being pointed to it incorrectly?
> That looks like a lead.

More precisely, looks like it wants to have dbus.
Comment 15 Marek Behún 2022-11-11 07:45:25 UTC
(In reply to Michael from comment #14)
> > Is the Xvfb not starting? Or is chromium being pointed to it incorrectly?
> > That looks like a lead.
> 
> More precisely, looks like it wants to have dbus.

It is possible. Can you try enabling system dbus, with
  rc-service dbus start
and then trigger the PGOing?
Comment 16 Michael 2022-11-11 07:49:16 UTC
Not that simple. :-) DBUS has been running all that time:

/etc/init.d/dbus status
 * status: started

I'm hanging out in KDE Plasma here, I'd notice if it weren't working. But maybe the headless sandboxed chromium can't get to it from the portage tmpdir?
Comment 17 Michael 2022-11-11 07:56:01 UTC
Like, for example, because of that:

/var/tmp/notmpfs/portage/www-client/chromium-107.0.5304.87/temp/environment                                                     
declare -x ENV_UNSET="CARGO_HOME DBUS_SESSION_BUS_ADDRESS ..........
Comment 18 Michael 2022-11-14 13:23:32 UTC
Things get weirder

Running case webrtc_cases.MultiplePeerConnections again
^CProcess Process-18:
Process Process-17:
Process Process-16:
Process Process-19:
Process Process-20:
Process Process-22:
Process Process-11:
Process Process-13:
Process Process-23:
Process Process-21:
Process Process-12:
Process Process-6:
Process Process-3:
Process Process-15:
Process Process-10:
Process Process-7:
Process Process-9:
Process Process-5:
Process Process-4:
Process Process-2:
sandbox:stop  caught signal 2 in pid 4
Process Process-8:
Process Process-14:
Process Process-1:
Task was destroyed but it is pending!

That particular test was crashing on previous runs, but this time it ran. Unfortunately that was exactly the time I decided to Ctrl+C it. But the clue is, it's not determined, it's sort of random.
Comment 19 Michael 2022-11-14 13:26:58 UTC
Or, maybe _because_ I Ctrl+C-ed it?
Comment 20 Michael 2022-11-14 13:37:00 UTC
So, I had yet another bright idea, to just start it and see what happens:


# /var/tmp/notmpfs/portage/www-client/chromium-107.0.5304.87/work/chromium-107.0.5304.87/out/Release/chrome --no-sandbox
[8591:8612:1114/173134.122642:ERROR:bus.cc(399)] Failed to connect to the bus: Could not parse server address: Unknown address type (examples of valid types are "tcp" and on UNIX "unix")
[8591:8612:1114/173134.122819:ERROR:bus.cc(399)] Failed to connect to the bus: Could not parse server address: Unknown address type (examples of valid types are "tcp" and on UNIX "unix")
[8591:8591:1114/173134.126462:ERROR:bus.cc(399)] Failed to connect to the bus: Could not parse server address: Unknown address type (examples of valid types are "tcp" and on UNIX "unix")
[8591:8591:1114/173134.126480:ERROR:kwallet_dbus.cc(100)] Error contacting kwalletd (isEnabled)
[8591:8591:1114/173134.126514:ERROR:bus.cc(399)] Failed to connect to the bus: Could not parse server address: Unknown address type (examples of valid types are "tcp" and on UNIX "unix")
[8591:8591:1114/173134.126520:ERROR:kwallet_dbus.cc(72)] Error contacting klauncher to start kwalletd
[8591:8591:1114/173134.126536:ERROR:bus.cc(399)] Failed to connect to the bus: Could not parse server address: Unknown address type (examples of valid types are "tcp" and on UNIX "unix")
[8591:8591:1114/173134.126540:ERROR:kwallet_dbus.cc(418)] Error contacting kwalletd (close)
Authorization required, but no authorization protocol specified

Authorization required, but no authorization protocol specified

Authorization required, but no authorization protocol specified

[8622:8622:1114/173134.134691:ERROR:egl_util.cc(44)] Failed to load GLES library: /var/tmp/notmpfs/portage/www-client/chromium-107.0.5304.87/work/chromium-107.0.5304.87/out/Release/libGLESv2.so: /var/tmp/notmpfs/portage/www-client/chromium-107.0.5304.87/work/chromium-107.0.5304.87/out/Release/libGLESv2.so: невозможно открыть разделяемый объектный файл: Отказано в доступе
[8622:8622:1114/173134.136874:ERROR:viz_main_impl.cc(186)] Exiting GPU process due to errors during initialization
[8591:8612:1114/173134.164234:ERROR:bus.cc(399)] Failed to connect to the bus: Could not parse server address: Unknown address type (examples of valid types are "tcp" and on UNIX "unix")
[8591:8612:1114/173134.164327:ERROR:bus.cc(399)] Failed to connect to the bus: Could not parse server address: Unknown address type (examples of valid types are "tcp" and on UNIX "unix")
[8591:8612:1114/173134.256337:ERROR:bus.cc(399)] Failed to connect to the bus: Could not parse server address: Unknown address type (examples of valid types are "tcp" and on UNIX "unix")
[8591:8612:1114/173134.256372:ERROR:bus.cc(399)] Failed to connect to the bus: Could not parse server address: Unknown address type (examples of valid types are "tcp" and on UNIX "unix")
Authorization required, but no authorization protocol specified

Authorization required, but no authorization protocol specified

Authorization required, but no authorization protocol specified

[8680:8680:1114/173134.615050:ERROR:egl_util.cc(44)] Failed to load GLES library: /var/tmp/notmpfs/portage/www-client/chromium-107.0.5304.87/work/chromium-107.0.5304.87/out/Release/libGLESv2.so: /var/tmp/notmpfs/portage/www-client/chromium-107.0.5304.87/work/chromium-107.0.5304.87/out/Release/libGLESv2.so: невозможно открыть разделяемый объектный файл: Отказано в доступе
[8680:8680:1114/173134.618521:ERROR:viz_main_impl.cc(186)] Exiting GPU process due to errors during initialization
Authorization required, but no authorization protocol specified

Authorization required, but no authorization protocol specified

[8693:8693:1114/173134.923498:ERROR:gpu_init.cc(537)] Passthrough is not supported, GL is disabled, ANGLE is 
[8693:8699:1114/173134.928528:ERROR:x11_software_bitmap_presenter.cc(142)] XGetWindowAttributes failed for window 98566147
LLVM Profile Note: Profile data not written to file: already written.
LLVM Profile Note: Profile data not written to file: already written.
[8693:8699:1114/173146.320404:ERROR:x11_software_bitmap_presenter.cc(142)] XGetWindowAttributes failed for window 98566169
[8693:8699:1114/173148.064599:ERROR:x11_software_bitmap_presenter.cc(142)] XGetWindowAttributes failed for window 98566175
[8693:8699:1114/173149.443755:ERROR:x11_software_bitmap_presenter.cc(142)] XGetWindowAttributes failed for window 98566176
[8693:8699:1114/173150.176154:ERROR:x11_software_bitmap_presenter.cc(142)] XGetWindowAttributes failed for window 98566177
LLVM Profile Note: Profile data not written to file: already written.
LLVM Profile Note: Profile data not written to file: already written.
LLVM Profile Note: Profile data not written to file: already written.
LLVM Profile Note: Profile data not written to file: already written.
LLVM Profile Note: Profile data not written to file: already written.


And interestingly, it didn't crash. I thing it's even running something?
Comment 21 Michael 2022-11-14 13:38:00 UTC
Created attachment 832447 [details]
screenshot
Comment 22 Michael 2022-11-14 13:43:41 UTC
[12008:12008:1114/174242.980865:ERROR:egl_util.cc(44)] Failed to load GLES library: /var/tmp/notmpfs/portage/www-client/chromium-107.0.5304.87/work/chromium-107.0.5304.87/out/Release/libGLESv2.so: /var/tmp/notmpfs/portage/www-client/chromium-107.0.5304.87/work/chromium-107.0.5304.87/out/Release/libGLESv2.so: cannot open shared object file: Permission denied
[12008:12008:1114/174242.983013:ERROR:viz_main_impl.cc(186)] Exiting GPU process due to errors during initialization

Is that a fatal error, by the way?
Comment 23 Michael 2022-11-14 15:10:40 UTC
So, DBUS_SESSION_BUS_ADDRESS= was a complete red herring. It should be unset, just like it is, so chromium doesn't try to use dbus. And GLES was simply a permission problem. I started it with `sudo -u portage` (yes, I have strange ideas sometimes), and it went away.

Now, the new brilliant idea is this:

[1114/190741.536410:ERROR:kwallet_dbus.cc(100)] Error contacting kwalletd (isEnabled)

It's trying to get to my wallet, and failing. To get past that it needs --password-store=basic and maybe tests don't pass it. Is there an easy way to test that theory?
Comment 24 Marek Behún 2022-11-14 15:30:37 UTC
(In reply to Michael from comment #23)
> So, DBUS_SESSION_BUS_ADDRESS= was a complete red herring. It should be
> unset, just like it is, so chromium doesn't try to use dbus. And GLES was
> simply a permission problem. I started it with `sudo -u portage` (yes, I
> have strange ideas sometimes), and it went away.
> 
> Now, the new brilliant idea is this:
> 
> [1114/190741.536410:ERROR:kwallet_dbus.cc(100)] Error contacting kwalletd
> (isEnabled)
> 
> It's trying to get to my wallet, and failing. To get past that it needs
> --password-store=basic and maybe tests don't pass it. Is there an easy way
> to test that theory?

In the ebuild, in function chromium_profile(), after the line
  --add-arg no-sandbox --add-arg disable-dev-shm-usage \
add the line
  --add-arg password-store=basic \
(don't forget the backslash at the end of the line).
Comment 25 Michael 2022-11-14 16:42:43 UTC
Yeah, that didn't do anything, but I noticed that the last test on which I Ctrl+C it, runs and even produces some profiling data. So, that's really strange.
Comment 26 Marek Behún 2022-11-14 18:48:32 UTC
Does chromium-profiler work outside virtualx?

Unpack the chromium-profiler to /tmp, and run with installed, working chromium (compiled without pgo USE flag), with command

  python3 ./chromium_profiler.py \
    --chrome-executable /usr/lib64/chromium-browser/chrome \
    --chromedriver-executable /usr/lib64/chromium-browser/chromedriver \
    --add-arg no-sandbox --add-arg disable-dev-shm-usage

Does this start executing the use cases?
Comment 27 Michael 2022-11-14 21:24:09 UTC
Yes! It absolutely does run!
Comment 28 Michael 2022-11-14 21:24:41 UTC
Created attachment 832671 [details]
log
Comment 29 Marek Behún 2022-11-15 09:40:57 UTC
(In reply to Michael from comment #27)
> Yes! It absolutely does run!

I am really confused as to what may be happening. Is it possible for you to make a tarball of your root partition and send it to me so that I can try to debug this? You should of course remove files storing passwords...
Comment 30 Michael 2022-11-15 10:06:32 UTC
(In reply to Marek Behún from comment #29)
> (In reply to Michael from comment #27)
> > Yes! It absolutely does run!
> 
> I am really confused as to what may be happening. Is it possible for you to
> make a tarball of your root partition and send it to me so that I can try to
> debug this? You should of course remove files storing passwords...

I made a tarball, excluding /etc/shadow and /home, you'll have to supply your own. But it includes the build-tree, which will probably save you a couple of hours.

I'm ready to fire up a magnet link in torrents, or just an http-server. 

Can I PM you on IRC or something?
Comment 31 Michael 2022-12-03 19:20:27 UTC
Still affected on chromium-108.
Comment 32 Michael 2022-12-05 03:14:51 UTC
Here's another idea. Right before I decided to try PGO, I moved my system to a new SSD and I might've messed it up slightly, by forgetting to pass --xattrs. So CAPS and other xattrs might be lost somewhere. The only thing I found that was actualy broken was the screenlocker, quickly fixed by rebuilding PAM. I could take the shotgun approach and just --emptytree the entire system. It'd take 15 hours, but oh well, my own fault. 

The question I have is what do you think are the chances that xattrs on something might somehow be relevant to anything here on a non-hardened system?