Both konsole (CTRL-Shift-P), and KWrite (via the File->Print menu item) exhibited this behaviour for me. I assume others do as well. Reproducible: Always
Portage 2.3.79 (python 3.6.9-final-0, default/linux/amd64/17.1/desktop/plasma, gcc-9.2.0, glibc-2.29-r7, 4.19.86-gentoo x86_64) ================================================================= System uname: Linux-4.19.86-gentoo-x86_64-Intel-R-_Core-TM-_i5-8265U_CPU_@_1.60GHz-with-gentoo-2.6 KiB Mem: 7851320 total, 4678336 free KiB Swap: 0 total, 0 free Timestamp of repository gentoo: Mon, 06 Jan 2020 16:00:01 +0000 Head commit of repository gentoo: 7a1755a8dd1d9c3bcaca6a6a0ca7a8b2fb2911e2 sh bash 4.4_p23-r1 ld GNU ld (Gentoo 2.32 p2) 2.32.0 app-shells/bash: 4.4_p23-r1::gentoo dev-java/java-config: 2.2.0-r4::gentoo dev-lang/perl: 5.30.1::gentoo dev-lang/python: 2.7.17::gentoo, 3.6.9::gentoo dev-util/cmake: 3.14.6::gentoo sys-apps/baselayout: 2.6-r1::gentoo sys-apps/openrc: 0.42.1::gentoo sys-apps/sandbox: 2.13::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.2.0-r2::gentoo sys-devel/gcc-config: 2.1::gentoo sys-devel/libtool: 2.4.6-r3::gentoo sys-devel/make: 4.2.1-r4::gentoo sys-kernel/linux-headers: 4.19::gentoo (virtual/os-headers) sys-libs/glibc: 2.29-r7::gentoo Repositories: gentoo location: /var/db/repos/gentoo sync-type: rsync sync-uri: rsync://rsync.gentoo.org/gentoo-portage priority: -1000 sync-rsync-verify-metamanifest: yes sync-rsync-verify-max-age: 24 sync-rsync-verify-jobs: 1 sync-rsync-extra-opts: x-portage location: /usr/local/portage masters: gentoo priority: 0 ACCEPT_KEYWORDS="amd64" ACCEPT_LICENSE="@FREE" CBUILD="x86_64-pc-linux-gnu" CFLAGS="-march=native -pipe -O2" 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="-march=native -pipe -O2" DISTDIR="/var/cache/distfiles" 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="-march=native -pipe -O2" 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="-march=native -pipe -O2" GENTOO_MIRRORS="http://distfiles.gentoo.org" LANG="en_US.utf8" LDFLAGS="-Wl,-O1 -Wl,--as-needed" LINGUAS="en" MAKEOPTS="-j8" 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" USE="X a52 aac acl acpi activities alsa amd64 berkdb bluetooth branding bzip2 cairo cdda cdr cli consolekit crypt cxx dbus declarative dri dts dvdr emboss encode exif fam flac gdbm gif gpm gtk iconv icu jpeg kde kipi kwallet lcms libnotify libtirpc mad mng mp3 mp4 mpeg multilib ncurses nls nptl ogg opengl openmp pam pango pcre pdf phonon plasma png policykit ppds qml qt5 readline sdl seccomp spell split-usr ssl startup-notification svg tcpd threads tiff truetype udev udisks unicode upower usb vaapi vorbis widgets wxwidgets x264 xattr xcb xcomposite xinerama xml xv xvid xvmc zlib" ABI_X86="64" ADA_TARGET="gnat_2018" 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="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 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" INPUT_DEVICES="keyboard mouse evdev synaptics 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" RUBY_TARGETS="ruby24 ruby25" USERLAND="GNU" VIDEO_CARDS="intel i965" 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, EMERGE_DEFAULT_OPTS, INSTALL_MASK, LC_ALL, PORTAGE_BINHOST, PORTAGE_BUNZIP2_COMMAND, PORTAGE_COMPRESS, PORTAGE_COMPRESS_FLAGS, PORTAGE_RSYNC_EXTRA_OPTS
Don't you get a crashdump?
I rebuilt konsole, qtprintsupport, qtwidgets, and qtcore without optimization and with debug symbols to make this BT more useful. Let me know if this isn't enough and I can go deeper. Thread 1 (Thread 0x7f204d137780 (LWP 22844)): [KCrash Handler] #6 0x00007f204f9a2d74 in QFlags<Qt::WindowType>::operator& (this=0x6000000040010, other=Qt::WindowType_Mask) at ../../include/QtCore/../../src/corelib/global/qflags.h:145 #7 0x00007f204f9a1c80 in QWidget::windowType (this=0x55f7c860f010) at ../../include/QtWidgets/../../src/widgets/kernel/qwidget.h:759 #8 0x00007f204f9a1cbe in QWidget::isWindow (this=0x55f7c860f010) at ../../include/QtWidgets/../../src/widgets/kernel/qwidget.h:767 #9 0x00007f204f9d8f13 in QWidgetPrivate::setEnabled_helper (this=0x55f7c8b88980, enable=true) at kernel/qwidget.cpp:3413 #10 0x00007f204f9d8ecc in QWidget::setEnabled (this=0x55f7c8b882c0, enable=true) at kernel/qwidget.cpp:3406 #11 0x00007f204bdae593 in QPrintDialogPrivate::selectPrinter (this=0x55f7c8b32040, outputFormat=QPrinter::NativeFormat) at dialogs/qprintdialog_unix.cpp:733 #12 0x00007f204bdafe77 in QUnixPrintWidgetPrivate::setOptionsPane (this=0x55f7c89d1360, pane=0x55f7c8b32040) at dialogs/qprintdialog_unix.cpp:1275 #13 0x00007f204bdaddc7 in QPrintDialogPrivate::init (this=0x55f7c8b32040) at dialogs/qprintdialog_unix.cpp:644 #14 0x00007f204bdaf107 in QPrintDialog::QPrintDialog (this=0x55f7c8a263c0, printer=0x7ffd47ca15f0, parent=0x55f7c89370d0) at dialogs/qprintdialog_unix.cpp:1061 #15 0x00007f204b6f649e in Konsole::SessionController::print_screen (this=0x55f7c89daf70) at /usr/src/debug/kde-apps/konsole-19.08.3/konsole-19.08.3/src/SessionController.cpp:1468 #16 0x00007f204b6489e8 in Konsole::SessionController::qt_static_metacall (_o=0x55f7c89daf70, _c=QMetaObject::InvokeMetaMethod, _id=31, _a=0x7ffd47ca1810) at src/konsoleprivate_autogen/EWIEGA46WW/moc_SessionController.cpp:368 #17 0x00007f20508bf825 in QMetaObject::activate (sender=0x55f7c8a4e980, signalOffset=3, local_signal_index=1, argv=0x7ffd47ca1810) at kernel/qobject.cpp:3809 #18 0x00007f20508bf06e in QMetaObject::activate (sender=0x55f7c8a4e980, m=0x7f2050020b00 <QAction::staticMetaObject>, local_signal_index=1, argv=0x7ffd47ca1810) at kernel/qobject.cpp:3660 #19 0x00007f204f98d7e9 in QAction::triggered (this=0x55f7c8a4e980, _t1=false) at .moc/moc_qaction.cpp:381 #20 0x00007f204f98c6d9 in QAction::activate (this=0x55f7c8a4e980, event=QAction::Trigger) at kernel/qaction.cpp:1166 #21 0x00007f204f98c422 in QAction::event (this=0x55f7c8a4e980, e=0x7ffd47ca1d40) at kernel/qaction.cpp:1092 #22 0x00007f204f99e504 in QApplicationPrivate::notify_helper (this=0x55f7c8660d70, receiver=0x55f7c8a4e980, e=0x7ffd47ca1d40) at kernel/qapplication.cpp:3703 #23 0x00007f204f99b8cd in QApplication::notify (this=0x55f7c8664c50, receiver=0x55f7c8a4e980, e=0x7ffd47ca1d40) at kernel/qapplication.cpp:3059 #24 0x00007f20508755e1 in QCoreApplication::notifyInternal2 (receiver=0x55f7c8a4e980, event=0x7ffd47ca1d40) at kernel/qcoreapplication.cpp:1095 #25 0x00007f2050875f84 in QCoreApplication::sendEvent (receiver=0x55f7c8a4e980, event=0x7ffd47ca1d40) at kernel/qcoreapplication.cpp:1490 #26 0x00007f2050d33a5f in QShortcutMap::dispatchEvent(QKeyEvent*) () from /usr/lib64/libQt5Gui.so.5 #27 0x00007f2050d33b3b in QShortcutMap::tryShortcut(QKeyEvent*) () from /usr/lib64/libQt5Gui.so.5 #28 0x00007f2050ced620 in QWindowSystemInterface::handleShortcutEvent(QWindow*, unsigned long, int, QFlags<Qt::KeyboardModifier>, unsigned int, unsigned int, unsigned int, QString const&, bool, unsigned short) () from /usr/lib64/libQt5Gui.so.5 #29 0x00007f2050d07e0d in QGuiApplicationPrivate::processKeyEvent(QWindowSystemInterfacePrivate::KeyEvent*) () from /usr/lib64/libQt5Gui.so.5 #30 0x00007f2050d0d071 in QGuiApplicationPrivate::processWindowSystemEvent(QWindowSystemInterfacePrivate::WindowSystemEvent*) () from /usr/lib64/libQt5Gui.so.5 #31 0x00007f2050cea63a in QWindowSystemInterface::sendWindowSystemEvents(QFlags<QEventLoop::ProcessEventsFlag>) () from /usr/lib64/libQt5Gui.so.5 #32 0x00007f204b27435a in ?? () from /usr/lib64/libQt5XcbQpa.so.5 #33 0x00007f204eec9b12 in g_main_context_dispatch () from /usr/lib64/libglib-2.0.so.0 #34 0x00007f204eec9da0 in ?? () from /usr/lib64/libglib-2.0.so.0 #35 0x00007f204eec9e2f in g_main_context_iteration () from /usr/lib64/libglib-2.0.so.0 #36 0x00007f2050903c54 in QEventDispatcherGlib::processEvents (this=0x55f7c86bf330, flags=...) at kernel/qeventdispatcher_glib.cpp:423 #37 0x00007f2050872383 in QEventLoop::processEvents (this=0x7ffd47ca21d0, flags=...) at kernel/qeventloop.cpp:138 #38 0x00007f205087267f in QEventLoop::exec (this=0x7ffd47ca21d0, flags=...) at kernel/qeventloop.cpp:225 #39 0x00007f2050875dd8 in QCoreApplication::exec () at kernel/qcoreapplication.cpp:1403 #40 0x00007f204f99b119 in QApplication::exec () at kernel/qapplication.cpp:2859 #41 0x00007f204b8aa423 in kdemain (argc=1, argv=0x55f7c865d130) at /usr/src/debug/kde-apps/konsole-19.08.3/konsole-19.08.3/src/main.cpp:230 #42 0x000055f7c6a019af in ?? () #43 0x000055f7c6a02a48 in ?? () #44 0x000055f7c6a03334 in ?? () #45 0x000055f7c69fe59a in ?? () #46 0x00007f20503b5f1b in __libc_start_main () from /lib64/libc.so.6 #47 0x000055f7c69ff1ba in ?? () [Inferior 1 (process 22844) detached]
Looks like someone upstream hit it and fixed it, have a look at: https://code.qt.io/cgit/qt/qtbase.git/commit/src/printsupport/dialogs/qprintdialog_unix.cpp?id=2ad3348031d8a622374920eac5bdd8fb9ecefcd7 I'll test this patch presently and if it fixes, it seems simple enough to cherry pick?
Patch works for me here, applied against dev-qt/qtprintsupport-5.13.2 on stable amd64. Issue is gone for me.
The bug has been closed via the following commit(s): https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=e2d24bb6db29ecfc80eb18b32e8dab583f5163e3 commit e2d24bb6db29ecfc80eb18b32e8dab583f5163e3 Author: Andreas Sturmlechner <asturm@gentoo.org> AuthorDate: 2020-01-12 16:09:32 +0000 Commit: Andreas Sturmlechner <asturm@gentoo.org> CommitDate: 2020-01-12 16:20:12 +0000 dev-qt/qtprintsupport: Fix revdeps segfault if built with USE=-cups Tested-by: David Flogeras <dflogeras2@gmail.com> Thanks-to: David Flogeras <dflogeras2@gmail.com> Closes: https://bugs.gentoo.org/704936 Package-Manager: Portage-2.3.84, Repoman-2.3.20 Signed-off-by: Andreas Sturmlechner <asturm@gentoo.org> .../files/qtprintsupport-5.13.2-no-cups.patch | 49 ++++++++++++++++++++++ .../qtprintsupport/qtprintsupport-5.13.2-r1.ebuild | 44 +++++++++++++++++++ .../qtprintsupport/qtprintsupport-5.14.0-r1.ebuild | 44 +++++++++++++++++++ 3 files changed, 137 insertions(+)