From owner-freebsd-hackers@freebsd.org Sat Apr 18 09:19:18 2020 Return-Path: Delivered-To: freebsd-hackers@mailman.nyi.freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2610:1c1:1:606c::19:1]) by mailman.nyi.freebsd.org (Postfix) with ESMTP id ED3D22C3252 for ; Sat, 18 Apr 2020 09:19:18 +0000 (UTC) (envelope-from joel.bertrand@systella.fr) Received: from rayleigh.systella.fr (newton-ipv6.systella.fr [IPv6:2001:7a8:a8ed:253::1]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) server-signature RSA-PSS (4096 bits) client-signature RSA-PSS (4096 bits) client-digest SHA256) (Client CN "*.systella.fr", Issuer "Let's Encrypt Authority X3" (verified OK)) by mx1.freebsd.org (Postfix) with ESMTPS id 4946pr0L7Nz3NNX for ; Sat, 18 Apr 2020 09:19:15 +0000 (UTC) (envelope-from joel.bertrand@systella.fr) Received: from [192.168.10.103] (hilbert.systella.fr [192.168.10.103]) (authenticated bits=0) by rayleigh.systella.fr (8.15.2/8.15.2/Debian-16) with ESMTPSA id 03I9Im3C4112459 (version=TLSv1.3 cipher=TLS_AES_128_GCM_SHA256 bits=128 verify=NOT) for ; Sat, 18 Apr 2020 11:18:50 +0200 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=systella.fr; s=mail; t=1587201546; bh=TzQ3bOxfpuZIDfBeFTqwWUHv11gyYUCpUfJZQd7B9Kk=; h=To:From:Subject:Date:From; b=DMwtDP3UQIMFVAI3Xpkhuu18l4godfkECuPgIdIIChE+/TNZL26zhAWXkwPIEmSA/ /hAvSluMQCBFPEzcRF+gKZ3XbN3rpSOsWFvwNeEVsg6TBZW8tn4yS2n3VLTFDixBJy aJiUTRHjtNDutN8y0TQMd7pYxWbxlW7Z04k+ubDlef4r/PgUcn5Rv3NpRtPDQVm5ZP GxyOfljPAYhfBE68ptfMiUpB9VrlTX94LerqRi1KjVcB++MSiFDtttjUSuMl0+67hI 9okzdVL8JIxTfEJDJyF+CbnLn1Me3lI2wfhtkWJSBixEmv9vJ5tcnxPkuHIvDmwOLW J/+iTdD4fw+Tw== To: freebsd-hackers@freebsd.org From: =?UTF-8?Q?BERTRAND_Jo=c3=abl?= Subject: Segfault on some applications using qt5 Openpgp: preference=signencrypt Autocrypt: addr=joel.bertrand@systella.fr; prefer-encrypt=mutual; keydata= mQINBFphqV8BEAC+ye6YQBdlEn9p/mbZhiQLkZQjIbGL84M0XOd66AgWqJ3T2TiwEyiExQyM Of0VswmB1q6SaIyh0x4bzaRyKwJLWDJy+AMGLGT2cpmsrDgllUxiBv3xAoLpwR8yDuLs5+bT vPpu81Pm/nzO2NDl85+3WAQbW+bUDAUdBhkg7X07bjJePypRxoRh4LF/syalOjzPEFARFNBY VrXFCTS/F7ZwmUHLv2xWJpEyKHfsC4BSo4ZPjrKmPJBxBPxuR+KiSYG/TkjU6CzoFvdwRY33 GNrK+dUmt9/VnPC/l1rGWS3durgah4OEkxciesKiTvQBUzVfMY0dvzBQKJeNNMFLstnjq3NP qvo3g5DnhFYFSAjI7wzqLkcYO8qg01wrWYyY/NLfAY6CvK0VjlenlKu84ePQDu7zh9/DUzBs 75ZAP2vZv4o00B2A3ksbkXSIs9eSDDx19OS1EUkSqw1VtFRfupoMkK7I7zrGR+DBENl5oK09 SOYJw594XVAoPpZ5zVUlEBDpatBNICTTT17EHrVpEB222TVfChvoE0cwYGkS40nVRIhQ1Yo3 A8qeKb2EeeCtslgiNcb1ajeZOSGUSHnczWHTaX5jMB/evNxZpLJH1WX8PqZ/+7wVRYuZGZ/b r8V3wXjZVNzPSTONwq3w/VjizPcQqdwicoNtxvuB6hM1J1tLGQARAQABtCpCRVJUUkFORCBK b8OrbCA8am9lbC5iZXJ0cmFuZEBzeXN0ZWxsYS5mcj6JAlQEEwEKAD4WIQSrhgKgAkzAsSVl Vhc4B+jSUpDz5wUCWmGpXwIbIwUJCWYBgAULCQgHAgYVCgkICwIEFgIDAQIeAQIXgAAKCRA4 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L8dSKDu5jIx8cboy9QUeH Tr6FXnLg Message-ID: Date: Sat, 18 Apr 2020 11:18:48 +0200 User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:60.0) Gecko/20100101 Firefox/60.0 SeaMonkey/2.53.1 MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 7bit X-Virus-Scanned: clamav-milter 0.102.1 at rayleigh X-Virus-Status: Clean X-Rspamd-Queue-Id: 4946pr0L7Nz3NNX X-Spamd-Bar: - Authentication-Results: mx1.freebsd.org; dkim=pass header.d=systella.fr header.s=mail header.b=DMwtDP3U; dmarc=none; spf=pass (mx1.freebsd.org: domain of joel.bertrand@systella.fr designates 2001:7a8:a8ed:253::1 as permitted sender) smtp.mailfrom=joel.bertrand@systella.fr X-Spamd-Result: default: False [-1.48 / 15.00]; ARC_NA(0.00)[]; RCVD_VIA_SMTP_AUTH(0.00)[]; R_DKIM_ALLOW(-0.20)[systella.fr:s=mail]; NEURAL_HAM_MEDIUM(-0.73)[-0.727,0]; FROM_HAS_DN(0.00)[]; R_SPF_ALLOW(-0.20)[+ip6:2001:7a8:a8ed:253::1/64]; TO_MATCH_ENVRCPT_ALL(0.00)[]; MIME_GOOD(-0.10)[text/plain]; PREVIOUSLY_DELIVERED(0.00)[freebsd-hackers@freebsd.org]; TO_DN_NONE(0.00)[]; RCPT_COUNT_ONE(0.00)[1]; NEURAL_HAM_LONG(-0.99)[-0.987,0]; DMARC_NA(0.00)[systella.fr]; DKIM_TRACE(0.00)[systella.fr:+]; FROM_EQ_ENVFROM(0.00)[]; MIME_TRACE(0.00)[0:+]; IP_SCORE(0.73)[asn: 13193(3.67), country: FR(0.00)]; ASN(0.00)[asn:13193, ipnet:2001:7a8::/32, country:FR]; MID_RHS_MATCH_FROM(0.00)[]; RCVD_TLS_ALL(0.00)[]; RCVD_COUNT_TWO(0.00)[2] X-BeenThere: freebsd-hackers@freebsd.org X-Mailman-Version: 2.1.29 Precedence: list List-Id: Technical Discussions relating to FreeBSD List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Sat, 18 Apr 2020 09:19:19 -0000 Hello, I'm not sure you remember I have posted here a long time ago that some applications abort with segfault on a diskless workstation. Yesterday, as I have successfully build seamonkey 2.53.2b1 from sources, I have upgraded this workstation from 12.0 to 12.1. I have upgraded ports also. Same constatation, a lot of applications abort with segfault. For example : vlc or okular. I have rebuilt both applications from sources to have debug information and I have seen that both segfault occur in libQt5Gui.so.5 Full backtrace : (gdb) bt #0 0x0000000803051ed0 in ?? () from /usr/local/lib/qt5/libQt5Gui.so.5 #1 0x00000008032b7723 in ?? () from /usr/local/lib/qt5/libQt5Gui.so.5 #2 0x00000008032b92f9 in QRasterPaintEngine::fillRect(QRectF const&, QSpanData*) () from /usr/local/lib/qt5/libQt5Gui.so.5 #3 0x00000008032de2db in QPainter::fillRect(QRect const&, QBrush const&) () from /usr/local/lib/qt5/libQt5Gui.so.5 #4 0x0000000802ac4bbe in ?? () from /usr/local/lib/qt5/libQt5Widgets.so.5 #5 0x0000000802ac47a8 in QWidgetPrivate::paintBackground(QPainter*, QRegion const&, int) const () from /usr/local/lib/qt5/libQt5Widgets.so.5 #6 0x0000000802acbcc8 in QWidgetPrivate::drawWidget(QPaintDevice*, QRegion const&, QPoint const&, int, QPainter*, QWidgetBackingStore*) () from /usr/local/lib/qt5/libQt5Widgets.so.5 #7 0x0000000802aa4a45 in ?? () from /usr/local/lib/qt5/libQt5Widgets.so.5 #8 0x0000000802aa344c in ?? () from /usr/local/lib/qt5/libQt5Widgets.so.5 #9 0x0000000802af4cf4 in ?? () from /usr/local/lib/qt5/libQt5Widgets.so.5 #10 0x0000000802af1e0a in ?? () from /usr/local/lib/qt5/libQt5Widgets.so.5 #11 0x0000000802a97ca3 in QApplicationPrivate::notify_helper(QObject*, QEvent*) () from /usr/local/lib/qt5/libQt5Widgets.so.5 #12 0x0000000802a991ec in QApplication::notify(QObject*, QEvent*) () from /usr/local/lib/qt5/libQt5Widgets.so.5 #13 0x0000000803a39362 in QCoreApplication::notifyInternal2(QObject*, QEvent*) () from /usr/local/lib/qt5/libQt5Core.so.5 #14 0x0000000803083bcc in QGuiApplicationPrivate::processExposeEvent(QWindowSystemInterfacePrivate::ExposeEvent*) () from /usr/local/lib/qt5/libQt5Gui.so.5 #15 0x0000000803065afc in QWindowSystemInterface::sendWindowSystemEvents(QFlags) () from /usr/local/lib/qt5/libQt5Gui.so.5 #16 0x000000080657f8bf in ?? () from /usr/local/lib/qt5/libQt5XcbQpa.so.5 #17 0x00000008041e87d7 in g_main_context_dispatch () from /usr/local/lib/libglib-2.0.so.0 #18 0x00000008041e8b9a in ?? () from /usr/local/lib/libglib-2.0.so.0 #19 0x00000008041e8c54 in g_main_context_iteration () from /usr/local/lib/libglib-2.0.so.0 #20 0x0000000803a91e06 in QEventDispatcherGlib::processEvents(QFlags) () from /usr/local/lib/qt5/libQt5Core.so.5 #21 0x0000000803a34a0e in QEventLoop::exec(QFlags) () from /usr/local/lib/qt5/libQt5Core.so.5 #22 0x0000000803a39ace in QCoreApplication::exec() () from /usr/local/lib/qt5/libQt5Core.so.5 #23 0x00000008024b50c4 in ?? () from /usr/local/lib/vlc/plugins/gui/libqt_plugin.so #24 0x00000008024b46d6 in ?? () from /usr/local/lib/vlc/plugins/gui/libqt_plugin.so #25 0x000000080027b736 in ?? () from /lib/libthr.so.3 /usr/local/lib/qt5/libQt5Gui.so.5 is built with clang and linked against libc++.so.1. Okular and vlc are built with gcc. Thus, I have tried to rebuild okular and gcc with clang. I have added in /etc/make.conf: .if ${.CURDIR:M*/multimedia/vlc} CC=clang CXX=clang++ CPP=clang-cpp .endif .if ${.CURDIR:M*/graphics/okular} CC=clang CXX=clang++ CPP=clang-cpp .endif and I have verified that both applications are now built with clang. Same result: segfault in libQt5Gui.so.5 To obtain more informations, I have tried to rebuild /x11-toolkits/qt5-gui from sources, but without success . Compilation aborts with : In file included from image/qimage_ssse3.cpp:40: In file included from ../../include/QtGui/qimage.h:1: In file included from ../../include/QtGui/../../src/gui/image/qimage.h:48: In file included from ../../include/QtGui/qtransform.h:1: In file included from ../../include/QtGui/../../src/gui/painting/qtransform.h:43: In file included from ../../include/QtGui/qmatrix.h:1: In file included from ../../include/QtGui/../../src/gui/painting/qmatrix.h:45: In file included from ../../include/QtGui/qregion.h:1: In file included from ../../include/QtGui/../../src/gui/painting/qregion.h:49: In file included from ../../include/QtCore/qdatastream.h:1: In file included from ../../include/QtCore/../../src/corelib/serialization/qdatastream.h:44: In file included from ../../include/QtCore/qiodevice.h:1: In file included from ../../include/QtCore/../../src/corelib/io/qiodevice.h:45: In file included from ../../include/QtCore/qobject.h:1: In file included from ../../include/QtCore/../../src/corelib/kernel/qobject.h:54: In file included from ../../include/QtCore/qmetatype.h:1: ../../include/QtCore/../../src/corelib/kernel/qmetatype.h:97:5: error: division by zero in preprocessor expression #if QT_CONFIG(easingcurve) ^~~~~~~~~~~~~~~~~~~~~~ ../../include/QtCore/../../src/corelib/global/qglobal.h:86:30: note: expanded from macro 'QT_CONFIG' #define QT_CONFIG(feature) (1/QT_FEATURE_##feature == 1) ~^~~~~~~~~~~~~~~~~~~~~ 3 errors generated. *** Error code 1 Stop. make[1]: stopped in /usr/ports/x11-toolkits/qt5-gui/work/qtbase-everywhere-src-5.14.2/src/gui *** Error code 1 Stop. make: stopped in /usr/ports/x11-toolkits/qt5-gui And I don't know what I can do to build this library... Best regards, JKB