Bug 2221386

Summary: [abrt] copyq: QFontconfigDatabase::setupFontEngine(): copyq killed by SIGSEGV
Product: [Fedora] Fedora Reporter: Abhisek Mukherjee <abhisek.mukherjee>
Component: copyqAssignee: Gerald Cox <gbcox>
Status: NEW --- QA Contact: Fedora Extras Quality Assurance <extras-qa>
Severity: unspecified Docs Contact:
Priority: unspecified    
Version: 38CC: abhisek.mukherjee, gbcox, kde-sig, lholecek
Target Milestone: ---   
Target Release: ---   
Hardware: x86_64   
OS: Unspecified   
URL: https://retrace.fedoraproject.org/faf/reports/bthash/cc7c7fabd80a3e82d606b24d1d45882a0d4d930
Whiteboard: abrt_hash:bf1f8be898c995387f672c79b304bcc4bd9fdb6a;VARIANT_ID=xfce;
Fixed In Version: Doc Type: If docs needed, set a value
Doc Text:
Story Points: ---
Clone Of: Environment:
Last Closed: Type: ---
Regression: --- Mount Type: ---
Documentation: --- CRM:
Verified Versions: Category: ---
oVirt Team: --- RHEL 7.3 requirements from Atomic Host:
Cloudforms Team: --- Target Upstream Version:
Embargoed:
Attachments:
Description Flags
File: exploitable
none
File: open_fds
none
File: proc_pid_status
none
File: mountinfo
none
File: core_backtrace
none
File: limits
none
File: backtrace
none
File: os_info
none
File: dso_list
none
File: environ
none
File: maps
none
File: cpuinfo none

Description Abhisek Mukherjee 2023-07-08 15:12:26 UTC
Version-Release number of selected component:
copyq-7.0.0-1.fc38

Additional info:
reporter:       libreport-2.17.11
uid:            1000
cmdline:        /usr/bin/copyq
crash_function: QFontconfigDatabase::setupFontEngine
backtrace_rating: 4
package:        copyq-7.0.0-1.fc38
cgroup:         0::/user.slice/user-1000.slice/session-2.scope
executable:     /usr/bin/copyq
runlevel:       N 5
reason:         copyq killed by SIGSEGV
kernel:         6.3.12-200.fc38.x86_64
journald_cursor: s=021f2f6b0c4a4bfca23a28b029e9034d;i=6000;b=0d07526631d04b988cd7a0696ed493eb;m=d03e6851;t=5fffb02d0898f;x=31e03b14f1d68857
type:           CCpp
rootdir:        /

Truncated backtrace:
Thread no. 1 (24 frames)
 #0 QFontconfigDatabase::setupFontEngine at fontconfig/qfontconfigdatabase.cpp:993
 #1 QFontconfigDatabase::fontEngine at fontconfig/qfontconfigdatabase.cpp:719
 #2 loadSingleEngine at text/qfontdatabase.cpp:990
 #3 loadEngine at text/qfontdatabase.cpp:1020
 #4 QFontDatabase::findFont at text/qfontdatabase.cpp:2746
 #5 QFontDatabase::load at text/qfontdatabase.cpp:2870
 #6 QFontPrivate::engineForScript at text/qfont.cpp:246
 #7 QFontMetricsF::leading at text/qfontmetrics.cpp:1317
 #8 qt_format_text at painting/qpainter.cpp:7664
 #9 QPainter::drawText at painting/qpainter.cpp:5985
 #10 QPainter::boundingRect at painting/qpainter.cpp:6651
 #12 (anonymous namespace)::drawFontIcon at /usr/src/debug/copyq-7.0.0-1.fc38.x86_64/src/gui/iconfactory.cpp:269
 #13 (anonymous namespace)::FontIconEngine::doCreatePixmap at /usr/include/qt5/QtCore/qsize.h:137
 #14 (anonymous namespace)::BaseIconEngine::createPixmap at /usr/src/debug/copyq-7.0.0-1.fc38.x86_64/src/gui/iconfactory.cpp:375
 #15 (anonymous namespace)::BaseIconEngine::pixmap at /usr/src/debug/copyq-7.0.0-1.fc38.x86_64/src/gui/iconfactory.cpp:363
 #16 QIcon::pixmap at image/qicon.cpp:905
 #18 Adwaita::Style::drawToolButtonLabelControl at /usr/src/debug/adwaita-qt-1.4.2-2.fc38.x86_64/src/style/adwaitastyle.cpp:4728
 #19 Adwaita::Style::drawControl at /usr/src/debug/adwaita-qt-1.4.2-2.fc38.x86_64/src/style/adwaitastyle.cpp:1166
 #20 QStyleSheetStyle::drawControl at styles/qstylesheetstyle.cpp:3502
 #21 QStyleSheetStyle::drawComplexControl at styles/qstylesheetstyle.cpp:3264
 #22 QStylePainter::drawComplexControl at ../../include/QtWidgets/../../src/widgets/styles/qstylepainter.h:90
 #23 QToolButton::paintEvent at widgets/qtoolbutton.cpp:460
 #24 QWidget::event at kernel/qwidget.cpp:9045
 #25 QApplicationPrivate::notify_helper at kernel/qapplication.cpp:3640

Comment 1 Abhisek Mukherjee 2023-07-08 15:12:31 UTC
Created attachment 1974704 [details]
File: exploitable

Comment 2 Abhisek Mukherjee 2023-07-08 15:12:33 UTC
Created attachment 1974705 [details]
File: open_fds

Comment 3 Abhisek Mukherjee 2023-07-08 15:12:35 UTC
Created attachment 1974706 [details]
File: proc_pid_status

Comment 4 Abhisek Mukherjee 2023-07-08 15:12:37 UTC
Created attachment 1974707 [details]
File: mountinfo

Comment 5 Abhisek Mukherjee 2023-07-08 15:12:40 UTC
Created attachment 1974708 [details]
File: core_backtrace

Comment 6 Abhisek Mukherjee 2023-07-08 15:12:42 UTC
Created attachment 1974709 [details]
File: limits

Comment 7 Abhisek Mukherjee 2023-07-08 15:12:46 UTC
Created attachment 1974710 [details]
File: backtrace

Comment 8 Abhisek Mukherjee 2023-07-08 15:12:48 UTC
Created attachment 1974711 [details]
File: os_info

Comment 9 Abhisek Mukherjee 2023-07-08 15:12:50 UTC
Created attachment 1974712 [details]
File: dso_list

Comment 10 Abhisek Mukherjee 2023-07-08 15:12:52 UTC
Created attachment 1974713 [details]
File: environ

Comment 11 Abhisek Mukherjee 2023-07-08 15:12:54 UTC
Created attachment 1974714 [details]
File: maps

Comment 12 Abhisek Mukherjee 2023-07-08 15:12:57 UTC
Created attachment 1974715 [details]
File: cpuinfo

Comment 13 Lukas Holecek 2023-07-18 10:37:19 UTC
This seems to be caused by the custom patch for qt5-qtbase f38 package: https://src.fedoraproject.org/rpms/qt5-qtbase/blob/f38/f/qtbase-QTBUG-112136.patch

I guess the patch is missing check for `fcfs != nullptr`.

Related Qt Bug: https://bugreports.qt.io/browse/QTBUG-112136