Bug 2221386 - [abrt] copyq: QFontconfigDatabase::setupFontEngine(): copyq killed by SIGSEGV
Summary: [abrt] copyq: QFontconfigDatabase::setupFontEngine(): copyq killed by SIGSEGV
Keywords:
Status: NEW
Alias: None
Product: Fedora
Classification: Fedora
Component: copyq
Version: 38
Hardware: x86_64
OS: Unspecified
unspecified
unspecified
Target Milestone: ---
Assignee: Gerald Cox
QA Contact: Fedora Extras Quality Assurance
URL: https://retrace.fedoraproject.org/faf...
Whiteboard: abrt_hash:bf1f8be898c995387f672c79b30...
Depends On:
Blocks:
TreeView+ depends on / blocked
 
Reported: 2023-07-08 15:12 UTC by Abhisek Mukherjee
Modified: 2023-07-18 10:37 UTC (History)
4 users (show)

Fixed In Version:
Doc Type: If docs needed, set a value
Doc Text:
Clone Of:
Environment:
Last Closed:
Type: ---
Embargoed:


Attachments (Terms of Use)
File: exploitable (81 bytes, text/plain)
2023-07-08 15:12 UTC, Abhisek Mukherjee
no flags Details
File: open_fds (3.34 KB, text/plain)
2023-07-08 15:12 UTC, Abhisek Mukherjee
no flags Details
File: proc_pid_status (1.41 KB, text/plain)
2023-07-08 15:12 UTC, Abhisek Mukherjee
no flags Details
File: mountinfo (3.82 KB, text/plain)
2023-07-08 15:12 UTC, Abhisek Mukherjee
no flags Details
File: core_backtrace (45.49 KB, text/plain)
2023-07-08 15:12 UTC, Abhisek Mukherjee
no flags Details
File: limits (1.29 KB, text/plain)
2023-07-08 15:12 UTC, Abhisek Mukherjee
no flags Details
File: backtrace (177.02 KB, text/plain)
2023-07-08 15:12 UTC, Abhisek Mukherjee
no flags Details
File: os_info (682 bytes, text/plain)
2023-07-08 15:12 UTC, Abhisek Mukherjee
no flags Details
File: dso_list (579 bytes, text/plain)
2023-07-08 15:12 UTC, Abhisek Mukherjee
no flags Details
File: environ (2.55 KB, text/plain)
2023-07-08 15:12 UTC, Abhisek Mukherjee
no flags Details
File: maps (3.97 KB, text/plain)
2023-07-08 15:12 UTC, Abhisek Mukherjee
no flags Details
File: cpuinfo (2.79 KB, text/plain)
2023-07-08 15:12 UTC, Abhisek Mukherjee
no flags Details

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


Note You need to log in before you can comment on or make changes to this bug.