• Boudewijn Rempt's avatar
    Try to make this test succeed on Jenkins · 32f46f79
    Boudewijn Rempt authored
    Apparently, on Jenkins we cannot create all of these colorspaces,
    so don't fail by dereferencing a null pointer:
    
    ********* Start testing of TestLcmsRGBP2020PQColorSpace *********
    Config: Using QtTest library 5.12.4, Qt 5.12.4 (x86_64-little_endian-lp64 shared (dynamic) release build; by GCC 9.1.1 20190611 [gcc-9-branch revision 272147])
    PASS   : TestLcmsRGBP2020PQColorSpace::initTestCase()
    AddressSanitizer:DEADLYSIGNAL
    =================================================================
    ==6181==ERROR: AddressSanitizer: SEGV on unknown address 0x000000000008 (pc 0x7f3f02031167 bp 0x7fff6f5c1290 sp 0x7fff6f5c1280 T0)
    ==6181==The signal is caused by a READ memory access.
    ==6181==Hint: address points to the zero page.
        #0 0x7f3f02031166 in KoColorSpace::id() const /home/jenkins/workspace/Extragear/krita/kf5-qt5 SUSEQt5.12/libs/pigment/KoColorSpace.cpp:106
        #1 0x41535a in testRoundTrip(KoColorSpace const*, KoColorSpace const*, SourceType) /home/jenkins/workspace/Extragear/krita/kf5-qt5 SUSEQt5.12/plugins/color/lcms2engine/tests/TestLcmsRGBP2020PQColorSpace.cpp:44
        #2 0x418726 in testRoundTrip(KoID const&, KoID const&, SourceType) /home/jenkins/workspace/Extragear/krita/kf5-qt5 SUSEQt5.12/plugins/color/lcms2engine/tests/TestLcmsRGBP2020PQColorSpace.cpp:118
        #3 0x4192b2 in TestLcmsRGBP2020PQColorSpace::test() /home/jenkins/workspace/Extragear/krita/kf5-qt5 SUSEQt5.12/plugins/color/lcms2engine/tests/TestLcmsRGBP2020PQColorSpace.cpp:143
        #4 0x40aa2c in TestLcmsRGBP2020PQColorSpace::qt_static_metacall(QObject*, QMetaObject::Call, int, void**) /home/jenkins/workspace/Extragear/krita/kf5-qt5 SUSEQt5.12/build/plugins/color/lcms2engine/tests/TestLcmsRGBP2020PQColorSpace_autogen/EWIEGA46WW/moc_TestLcmsRGBP2020PQColorSpace.cpp:78
        #5 0x7f3efcc6889a in QMetaMethod::invoke(QObject*, Qt::ConnectionType, QGenericReturnArgument, QGenericArgument, QGenericArgument, QGenericArgument, QGenericArgument, QGenericArgument, QGenericArgument, QGenericArgument, QGenericArgument, QGenericArgument, QGenericArgument) const (/usr/lib64/libQt5Core.so.5+0x29689a)
        #6 0x7f3f050a0962  (/usr/lib64/libQt5Test.so.5+0x19962)
        #7 0x7f3f050a1352  (/usr/lib64/libQt5Test.so.5+0x1a352)
        #8 0x7f3f050a1910  (/usr/lib64/libQt5Test.so.5+0x1a910)
        #9 0x7f3f050a1cda in QTest::qRun() (/usr/lib64/libQt5Test.so.5+0x1acda)
        #10 0x7f3f050a1edb in QTest::qExec(QObject*, int, char**) (/usr/lib64/libQt5Test.so.5+0x1aedb)
        #11 0x41b9d7 in main /home/jenkins/workspace/Extragear/krita/kf5-qt5 SUSEQt5.12/plugins/color/lcms2engine/tests/TestLcmsRGBP2020PQColorSpace.cpp:185
        #12 0x7f3efc4f2bca in __libc_start_main (/lib64/libc.so.6+0x26bca)
        #13 0x40a8f9 in _start (/home/jenkins/workspace/Extragear/krita/kf5-qt5 SUSEQt5.12/build/plugins/color/lcms2engine/tests/TestLcmsRGBP2020PQColorSpace+0x40a8f9)
    
    AddressSanitizer can not provide additional info.
    SUMMARY: AddressSanitizer: SEGV /home/jenkins/workspace/Extragear/krita/kf5-qt5 SUSEQt5.12/libs/pigment/KoColorSpace.cpp:106 in KoColorSpace::id() const
    ==6181==ABORTING
    32f46f79
Name
Last commit
Last update
.github Loading commit data...
.gitlab/merge_request_templates Loading commit data...
3rdparty Loading commit data...
benchmarks Loading commit data...
build-tools Loading commit data...
cmake Loading commit data...
dev-tools/python Loading commit data...
interfaces Loading commit data...
krita Loading commit data...
libs Loading commit data...
packaging Loading commit data...
pics Loading commit data...
plugins Loading commit data...
sdk Loading commit data...
winquirks Loading commit data...
.arcconfig Loading commit data...
.gitattributes Loading commit data...
.gitignore Loading commit data...
.lgtm.yml Loading commit data...
AUTHORS Loading commit data...
CMakeLists.txt Loading commit data...
CODE_OF_CONDUCT.md Loading commit data...
COPYING Loading commit data...
COPYING-CMAKE-SCRIPTS Loading commit data...
CTestConfig.cmake Loading commit data...
HACKING Loading commit data...
KoAlwaysInline.h Loading commit data...
KoConfig.h.cmake Loading commit data...
Mainpage.dox Loading commit data...
Messages.sh Loading commit data...
README.md Loading commit data...
action_i18n.pl Loading commit data...
config-gsl.h.cmake Loading commit data...
config-hash-table-implementaion.h.cmake Loading commit data...
config-hdr.h.cmake Loading commit data...
config-hide-safe-asserts.h.cmake Loading commit data...
config-high-dpi-scale-factor-rounding-policy.h.in Loading commit data...
config-limit-long-tests.h.cmake Loading commit data...
config-ocio.h.cmake Loading commit data...
config-powf.h.cmake Loading commit data...
config-qtmultimedia.h.cmake Loading commit data...
config-set-has-border-in-full-screen-default.h.in Loading commit data...
config-vc.h.cmake Loading commit data...
config_convolution.h.cmake Loading commit data...
config_use_qt_tablet_windows.h.cmake Loading commit data...
extracti18n.pl Loading commit data...
kundo2_aware_xgettext.sh Loading commit data...
setup.cfg Loading commit data...