Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 691354 - www-client/chromium-76.0.3809.87: crash when trying to print a page
Summary: www-client/chromium-76.0.3809.87: crash when trying to print a page
Status: RESOLVED FIXED
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: PullRequest
Depends on:
Blocks:
 
Reported: 2019-08-03 19:05 UTC by Michael Mair-Keimberger (iamnr3)
Modified: 2020-04-15 16:01 UTC (History)
0 users

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


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Michael Mair-Keimberger (iamnr3) 2019-08-03 19:05:56 UTC
Hi,

I think this isn't something related especially with the latest chromium version and i think this happen with version www-client/chromium-76.0.3809.80 already too.
Whenever i try to print a page - right mouse click -> Print..., or via Ctrl+P - chromium immediately crashes.

My chromium isn't build with cups support but every now and then i used to print some pages as pdf, which did work usually very well.

Portage 2.3.70 (python 3.6.9-final-0, default/linux/amd64/17.1, gcc-9.1.0, glibc-2.29-r3, 5.2.5-gentoo x86_64)
=================================================================
                         System Settings
=================================================================
System uname: Linux-5.2.5-gentoo-x86_64-AMD_FX-tm-8350_Eight-Core_Processor-with-gentoo-2.6
KiB Mem:    16410632 total,   6735040 free
KiB Swap:    8388604 total,   8388604 free
Timestamp of repository gentoo: Fri, 02 Aug 2019 17:27:35 +0000
Head commit of repository gentoo: 438fa3dc5f05adb7fca6122f2ef61d037e934b87

Head commit of repository local: 823c6c1d3092c720717eb377426b1a04b3ab5c32

Timestamp of repository steam-overlay: Thu, 18 Jul 2019 16:22:33 +0000
Head commit of repository steam-overlay: d127dd045ee604a89cc1bef65e4efafa0a545429

sh bash 5.0_p7
ld GNU gold (Gentoo 2.32 p2 2.32.0) 1.16
app-shells/bash:          5.0_p7::gentoo
dev-lang/perl:            5.30.0::gentoo
dev-lang/python:          2.7.16::gentoo, 3.6.9::gentoo
dev-util/cmake:           3.15.1::gentoo
dev-util/pkgconfig:       0.29.2::gentoo
sys-apps/baselayout:      2.6-r1::gentoo
sys-apps/openrc:          0.41.2::gentoo
sys-apps/sandbox:         2.18::gentoo
sys-devel/autoconf:       2.13-r1::gentoo, 2.69-r4::gentoo
sys-devel/automake:       1.16.1-r1::gentoo
sys-devel/binutils:       2.32-r1::gentoo
sys-devel/gcc:            9.1.0-r1::gentoo
sys-devel/gcc-config:     2.0::gentoo
sys-devel/libtool:        2.4.6-r5::gentoo
sys-devel/make:           4.2.1-r4::gentoo
sys-kernel/linux-headers: 5.1::gentoo (virtual/os-headers)
sys-libs/glibc:           2.29-r3::gentoo
Repositories:

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

local
    location: /var/db/repos/local
    sync-type: git
    sync-uri: git@s2:local
    masters: gentoo

steam-overlay
    location: /var/db/repos/steam-overlay
    sync-type: git
    sync-uri: https://github.com/gentoo-mirror/steam-overlay.git
    masters: gentoo

ACCEPT_KEYWORDS="amd64 ~amd64"
ACCEPT_LICENSE="@FREE"
CBUILD="x86_64-pc-linux-gnu"
CFLAGS="-O2 -pipe -march=bdver2 -mprefer-avx128"
CHOST="x86_64-pc-linux-gnu"
CONFIG_PROTECT="/etc /usr/share/config /usr/share/gnupg/qualified.txt /usr/share/themes/oxygen-gtk/gtk-2.0 /usr/share/themes/oxygen-gtk/gtk-3.0"
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="-O2 -pipe -march=bdver2 -mprefer-avx128"
DISTDIR="/usr/portage/distfiles"
EMERGE_DEFAULT_OPTS="--jobs=8 --load-average 8"
ENV_UNSET="DBUS_SESSION_BUS_ADDRESS DISPLAY GOBIN PERL5LIB PERL5OPT PERLPREFIX PERL_CORE PERL_MB_OPT PERL_MM_OPT XAUTHORITY XDG_CACHE_HOME XDG_CONFIG_HOME XDG_DATA_HOME XDG_RUNTIME_DIR"
FCFLAGS="-O2 -pipe"
FEATURES="assume-digests binpkg-docompress binpkg-dostrip binpkg-logs 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 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="en_AT.UTF-8"
LC_ALL="en_US.utf8"
LDFLAGS="-Wl,-O1 -Wl,--as-needed"
LINGUAS="en"
MAKEOPTS="-j9"
PKGDIR="/var/cache/binpkgs"
PORTAGE_CONFIGROOT="/"
PORTAGE_RSYNC_EXTRA_OPTS="--info=progress2,name0,del0"
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"
USE="aac acl alsa amd64 berkdb bzip2 cli crypt cxx dbus dri elogind exif flac fortran gdbm gif iconv ipv6 jpeg kde ldap libtirpc lzma mad mp3 mp4 multilib ncurses nls nptl openal opengl openmp opus pam pcre png python readline sdl seccomp split-usr ssl svg tcpd threads tiff truetype udev unicode vaapi vdpau vim-syntax vorbis vpx wayland webp x264 xattr xml zlib" ABI_X86="64" ALSA_CARDS="ali5451 als4000 atiixp atiixp-modem bt87x ca0106 cmipci emu10k1x ens1370 ens1371 es1938 es1968 fm801 hda-intel intel8x0 intel8x0m maestro3 trident usb-audio via82xx via82xx-modem ymfpci" 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="krita sheets words karbon" COLLECTD_PLUGINS="df interface irq load memory rrdtool swap syslog" CPU_FLAGS_X86="aes avx fma3 fma4 mmx mmxext popcnt sse sse2 sse3 sse4_1 sse4_2 sse4a ssse3 xop" CURL_SSL="gnutls" ELIBC="glibc" GPSD_PROTOCOLS="ashtech aivdm earthmate evermore fv18 garmin garmintxt gpsclock isync itrax mtk3301 nmea ntrip navcom oceanserver oldstyle oncore rtcm104v2 rtcm104v3 sirf skytraq superstar2 timing tsip tripmate tnt ublox ubx" GRUB_PLATFORMS="pc" INPUT_DEVICES="evdev libinput" KERNEL="linux" L10N="en" LCD_DEVICES="bayrad cfontz cfontz633 glk hd44780 lb216 lcdm001 mtxorb ncurses text" LIBREOFFICE_EXTENSIONS="presenter-console presenter-minimizer" NETBEANS_MODULES="apisupport cnd groovy gsf harness ide identity j2ee java mobility nb php profiler soa visualweb webcommon websvccommon xml" OFFICE_IMPLEMENTATION="libreoffice" PHP_TARGETS="php7-2" POSTGRES_TARGETS="postgres10 postgres11" PYTHON_SINGLE_TARGET="python3_6" PYTHON_TARGETS="python2_7 python3_6" QEMU_SOFTMMU_TARGETS="arm x86_64" QEMU_USER_TARGETS="arm x86_64" RUBY_TARGETS="ruby26 ruby25" USERLAND="GNU" VIDEO_CARDS="radeon radeonsi amdgpu" XTABLES_ADDONS="quota2 psd pknock lscan length2 ipv4options ipset ipp2p iface geoip fuzzy condition tee tarpit sysrq steal rawnat logmark ipmark dhcpmac delude chaos account"
Unset:  CC, CPPFLAGS, CTARGET, CXX, INSTALL_MASK, PORTAGE_BINHOST, PORTAGE_BUNZIP2_COMMAND, PORTAGE_COMPRESS, PORTAGE_COMPRESS_FLAGS

=================================================================
                        Package Settings
=================================================================

www-client/chromium-76.0.3809.87::gentoo was built with the following:
USE="hangouts (pic) proprietary-codecs suid system-icu tcmalloc widevine -closure-compile -component-build -cups -custom-cflags -gnome-keyring -jumbo-build -kerberos -pulseaudio (-selinux) (-system-ffmpeg) (-system-libvpx)" ABI_X86="(64)" L10N="-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 -vi -zh-CN -zh-TW"
CFLAGS="-O2 -pipe -march=bdver2"
CXXFLAGS="-O2 -pipe -march=bdver2"
Comment 1 Stephan Hartmann (RETIRED) gentoo-dev 2019-08-04 11:08:11 UTC
I'm able to reproduce this, trying to get backtrace.
Comment 3 Stephan Hartmann (RETIRED) gentoo-dev 2019-08-20 12:51:53 UTC
(In reply to Stephan Hartmann from comment #2)
> Opened upstream bug:
> 
> https://bugs.chromium.org/p/chromium/issues/
> detail?id=990727&q=stha09&colspec=ID%20Pri%20M%20Stars%20ReleaseBlock%20Compo
> nent%20Status%20Owner%20Summary%20OS%20Modified
> 
> Lets see what happens :)

I have analyzed this myself in above issue report and have a trivial patch, which fixes the crash. However, I'm not sure if this patch is the right approach to solve this. So we have to wait a bit longer.
Comment 4 Larry the Git Cow gentoo-dev 2019-08-23 14:08:08 UTC
The bug has been referenced in the following commit(s):

https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=32078ebc5c7fd360d342e3a974af95f4c25fcf40

commit 32078ebc5c7fd360d342e3a974af95f4c25fcf40
Author:     Stephan Hartmann <stha09@googlemail.com>
AuthorDate: 2019-08-23 07:59:48 +0000
Commit:     Mike Gilbert <floppym@gentoo.org>
CommitDate: 2019-08-23 14:05:14 +0000

    www-client/chromium: beta channel bump to 77.0.3865.42
    
    Also add patch to fix a crash when cups is disabled.
    
    Bug: https://bugs.gentoo.org/691354
    Closes: https://github.com/gentoo/gentoo/pull/12770
    Package-Manager: Portage-2.3.69, Repoman-2.3.16
    Signed-off-by: Stephan Hartmann <stha09@googlemail.com>
    Signed-off-by: Mike Gilbert <floppym@gentoo.org>

 www-client/chromium/Manifest                       |  2 +-
 ...3865.35.ebuild => chromium-77.0.3865.42.ebuild} |  1 +
 .../chromium/files/chromium-77-gcc-include.patch   | 30 ----------------
 .../chromium/files/chromium-77-no-cups.patch       | 42 ++++++++++++++++++++++
 4 files changed, 44 insertions(+), 31 deletions(-)
Comment 5 Larry the Git Cow gentoo-dev 2019-08-27 17:25:55 UTC
The bug has been referenced in the following commit(s):

https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=0abfc525b11efc5a04b2f5ae7f757f1f530a3028

commit 0abfc525b11efc5a04b2f5ae7f757f1f530a3028
Author:     Stephan Hartmann <stha09@googlemail.com>
AuthorDate: 2019-08-27 08:24:54 +0000
Commit:     Mike Gilbert <floppym@gentoo.org>
CommitDate: 2019-08-27 17:25:02 +0000

    www-client/chromium: stable channel bump to 76.0.3809.132
    
    Bug: https://bugs.gentoo.org/691354
    Bug: https://bugs.gentoo.org/692916
    Closes: https://github.com/gentoo/gentoo/pull/12800
    Package-Manager: Portage-2.3.69, Repoman-2.3.16
    Signed-off-by: Stephan Hartmann <stha09@googlemail.com>
    Signed-off-by: Mike Gilbert <floppym@gentoo.org>

 www-client/chromium/Manifest                       |   1 +
 www-client/chromium/chromium-76.0.3809.132.ebuild  | 720 +++++++++++++++++++++
 .../chromium/files/chromium-76-no-cups.patch       |  41 ++
 3 files changed, 762 insertions(+)
Comment 6 Jenkler 2019-08-30 22:56:26 UTC
Tried to compile chromium-77.0.3865.42 with the chromium-77-no-cups.patch. It still crashes for me!

https://forums.gentoo.org/viewtopic-p-8366628.html#8366628
Comment 7 Jenkler 2019-08-30 23:01:02 UTC
Nevermind, it sure works with chromium-77.0.3865.42 and the patch :)