Bug 446863

Summary: 21.12.0: test suite is failing in kateapp-session_manager_test unit
Product: [Applications] kate Reporter: kloczek <kloczko.tomasz>
Component: generalAssignee: KWrite Developers <kwrite-bugs-null>
Status: RESOLVED FIXED    
Severity: normal CC: christoph
Priority: NOR    
Version First Reported In: unspecified   
Target Milestone: ---   
Platform: Other   
OS: Linux   
Latest Commit: Version Fixed/Implemented In: 21.12.1
Sentry Crash Report:

Description kloczek 2021-12-12 03:11:13 UTC
Lookms like test suite is failing in kateapp-session_manager_test

+ cd kate-21.12.0
+ xvfb-run -a /usr/bin/make -O -j12 V=1 VERBOSE=1 -C x86_64-redhat-linux-gnu test ARGS=--output-on-failure
make: Entering directory '/data/home/tkloczko/rpmbuild/BUILD/kate-21.12.0/x86_64-redhat-linux-gnu'
Running tests...
/usr/bin/ctest --force-new-ctest-process --output-on-failure
Test project /data/home/tkloczko/rpmbuild/BUILD/kate-21.12.0/x86_64-redhat-linux-gnu
      Start  1: appstreamtest
 1/13 Test  #1: appstreamtest ........................   Passed    0.04 sec
      Start  2: plugin-btbrowser_test
 2/13 Test  #2: plugin-btbrowser_test ................   Passed    0.03 sec
      Start  3: plugin-externaltools_test
 3/13 Test  #3: plugin-externaltools_test ............   Passed    0.12 sec
      Start  4: kateapp-filetree_model_test
 4/13 Test  #4: kateapp-filetree_model_test ..........   Passed    0.18 sec
      Start  5: plugin-latexunicodecompletion_test
 5/13 Test  #5: plugin-latexunicodecompletion_test ...   Passed    0.01 sec
      Start  6: plugin-project_test
 6/13 Test  #6: plugin-project_test ..................   Passed    0.04 sec
      Start  7: plugin-tabswitcher_test
 7/13 Test  #7: plugin-tabswitcher_test ..............   Passed    0.05 sec
      Start  8: kateapp-session_test
 8/13 Test  #8: kateapp-session_test .................   Passed    0.07 sec
      Start  9: kateapp-session_manager_test
 9/13 Test  #9: kateapp-session_manager_test .........Subprocess aborted***Exception:  11.12 sec
********* Start testing of KateSessionManagerTest *********
Config: Using QtTest library 5.15.2, Qt 5.15.2 (x86_64-little_endian-lp64 shared (dynamic) release build; by GCC 11.1.1 20210623 (Red Hat 11.1.1-6)), fedora 35
QWARN  : KateSessionManagerTest::initTestCase() kf.xmlgui: cannot find .rc file "kateui.rc" for component "session_manager_test"
QWARN  : KateSessionManagerTest::initTestCase() kf.xmlgui: cannot find .rc file "kateui.rc" for component "session_manager_test"
QWARN  : KateSessionManagerTest::initTestCase() kf.sonnet.core: No language dictionaries for the language: "C" trying to load en_US as default
PASS   : KateSessionManagerTest::initTestCase()
PASS   : KateSessionManagerTest::basic()
PASS   : KateSessionManagerTest::activateNewNamedSession()
PASS   : KateSessionManagerTest::anonymousSessionFile()
PASS   : KateSessionManagerTest::urlizeSessionFile()
QWARN  : KateSessionManagerTest::renameSession() kf.service.services: KServiceTypeTrader: serviceType "ThumbCreator" not found
PASS   : KateSessionManagerTest::renameSession()
PASS   : KateSessionManagerTest::deleteActiveSession()
PASS   : KateSessionManagerTest::deleteSession()
PASS   : KateSessionManagerTest::saveActiveSessionWithAnynomous()

=== Received signal at function time: 590ms, total time: 3166ms, dumping stack ===
GNU gdb (GDB) G2V 11.1-7.1.fc35
Copyright (C) 2021 Free Software Foundation, Inc.
License GPLv3+: GNU GPL version 3 or later <http://gnu.org/licenses/gpl.html>
This is free software: you are free to change and redistribute it.
There is NO WARRANTY, to the extent permitted by law.
Type "show copying" and "show warranty" for details.
This GDB was configured as "x86_64-redhat-linux-gnu".
Type "show configuration" for configuration details.
For bug reporting instructions, please see:
<https://www.gnu.org/software/gdb/bugs/>.
Find the GDB manual and other documentation resources online at:
    <http://www.gnu.org/software/gdb/documentation/>.

For help, type "help".
Type "apropos word" to search for commands related to "word".
Attaching to process 1005445
[New LWP 1005447]
[New LWP 1005448]
[New LWP 1005449]
[New LWP 1005476]
[New LWP 1005489]
[Thread debugging using libthread_db enabled]
Using host libthread_db library "/lib64/libthread_db.so.1".
0x00007f92c3bfadcf in wait4 () from /lib64/libc.so.6
(gdb)
Thread 6 (Thread 0x7f92ad99d640 (LWP 1005489) "Thread (pooled)"):
#0  0x00007f92c3ba835a in __futex_abstimed_wait_common () from /lib64/libc.so.6
No symbol table info available.
#1  0x00007f92c3baae56 in pthread_cond_timedwait@@GLIBC_2.3.2 () from /lib64/libc.so.6
No symbol table info available.
#2  0x00007f92c41628ba in QWaitCondition::wait(QMutex*, QDeadlineTimer) () from /lib64/libQt5Core.so.5
No symbol table info available.
#3  0x00007f92c41b4e7c in QThreadPoolThread::run() () from /lib64/libQt5Core.so.5
No symbol table info available.
#4  0x00007f92c4197b70 in QThreadPrivate::start(void*) () from /lib64/libQt5Core.so.5
No symbol table info available.
#5  0x00007f92c3bab727 in start_thread () from /lib64/libc.so.6
No symbol table info available.
#6  0x00007f92c3c30670 in clone3 () from /lib64/libc.so.6
No symbol table info available.

Thread 5 (Thread 0x7f92affff640 (LWP 1005476) "session_manager"):
#0  0x00007f92c3c26052 in pselect () from /lib64/libc.so.6
No symbol table info available.
#1  0x00007f92bf7b6cef in usbmuxd_listen_inotify () from /lib64/libusbmuxd-2.0.so.6
No symbol table info available.
#2  0x00007f92bf7b78e0 in device_monitor () from /lib64/libusbmuxd-2.0.so.6
No symbol table info available.
#3  0x00007f92c3bab727 in start_thread () from /lib64/libc.so.6
No symbol table info available.
#4  0x00007f92c3c30670 in clone3 () from /lib64/libc.so.6
No symbol table info available.

Thread 4 (Thread 0x7f92bd5f0640 (LWP 1005449) "QDBusConnection"):
#0  0x00007f92c3c2367f in poll () from /lib64/libc.so.6
No symbol table info available.
#1  0x00007f92c246951e in g_main_context_iterate.constprop () from /lib64/libglib-2.0.so.0
No symbol table info available.
#2  0x00007f92c2469653 in g_main_context_iteration () from /lib64/libglib-2.0.so.0
No symbol table info available.
#3  0x00007f92c41a1378 in QEventDispatcherGlib::processEvents(QFlags<QEventLoop::ProcessEventsFlag>) () from /lib64/libQt5Core.so.5
No symbol table info available.
#4  0x00007f92c4143122 in QEventLoop::exec(QFlags<QEventLoop::ProcessEventsFlag>) () from /lib64/libQt5Core.so.5
No symbol table info available.
#5  0x00007f92c4194d1b in QThread::exec() () from /lib64/libQt5Core.so.5
No symbol table info available.
#6  0x00007f92c516cf68 in QDBusConnectionManager::run() () from /lib64/libQt5DBus.so.5
No symbol table info available.
#7  0x00007f92c4197b70 in QThreadPrivate::start(void*) () from /lib64/libQt5Core.so.5
No symbol table info available.
#8  0x00007f92c3bab727 in start_thread () from /lib64/libc.so.6
No symbol table info available.
#9  0x00007f92c3c30670 in clone3 () from /lib64/libc.so.6
No symbol table info available.

Thread 3 (Thread 0x7f92bea91640 (LWP 1005448) "QThread"):
#0  0x00007f92c3ba835a in __futex_abstimed_wait_common () from /lib64/libc.so.6
No symbol table info available.
#1  0x00007f92c3bab0ec in pthread_cond_clockwait@GLIBC_2.30 () from /lib64/libc.so.6
No symbol table info available.
#2  0x00007f92c5f789f4 in QTest::WatchDog::run() () from /lib64/libQt5Test.so.5
No symbol table info available.
#3  0x00007f92c4197b70 in QThreadPrivate::start(void*) () from /lib64/libQt5Core.so.5
No symbol table info available.
#4  0x00007f92c3bab727 in start_thread () from /lib64/libc.so.6
No symbol table info available.
#5  0x00007f92c3c30670 in clone3 () from /lib64/libc.so.6
No symbol table info available.

Thread 2 (Thread 0x7f92bf2b5640 (LWP 1005447) "QXcbEventQueue"):
#0  0x00007f92c3c2367f in poll () from /lib64/libc.so.6
No symbol table info available.
#1  0x00007f92c2dc1292 in _xcb_conn_wait.part.0 () from /lib64/libxcb.so.1
No symbol table info available.
#2  0x00007f92c2dc2a3c in xcb_wait_for_event () from /lib64/libxcb.so.1
No symbol table info available.
#3  0x00007f92bf3d8981 in QXcbEventQueue::run() () from /lib64/libQt5XcbQpa.so.5
No symbol table info available.
#4  0x00007f92c4197b70 in QThreadPrivate::start(void*) () from /lib64/libQt5Core.so.5
No symbol table info available.
#5  0x00007f92c3bab727 in start_thread () from /lib64/libc.so.6
No symbol table info available.
#6  0x00007f92c3c30670 in clone3 () from /lib64/libc.so.6
No symbol table info available.

Thread 1 (Thread 0x7f92bf4df940 (LWP 1005445) "session_manager"):
#0  0x00007f92c3bfadcf in wait4 () from /lib64/libc.so.6
No symbol table info available.
#1  0x00007f92c3b6d25b in do_system () from /lib64/libc.so.6
No symbol table info available.
#2  0x00007f92c5f786f6 in stackTrace() [clone .part.0] () from /lib64/libQt5Test.so.5
No symbol table info available.
#3  0x00007f92c5f78880 in QTest::FatalSignalHandler::signal(int) () from /lib64/libQt5Test.so.5
No symbol table info available.
#4  <signal handler called>
No symbol table info available.
#5  0x00007f92c40665c7 in QHashData::nextNode(QHashData::Node*) () from /lib64/libQt5Core.so.5
No symbol table info available.
#6  0x000056040cf09932 in QHash<QString, QExplicitlySharedDataPointer<KateSession> >::const_iterator::operator++ (this=<synthetic pointer>) at /usr/include/qt5/QtCore/qhash.h:425
No locals.
#7  KateSessionManager::updateSessionList (this=0x56040eacdaf0) at /data/home/tkloczko/rpmbuild/BUILD/kate-21.12.0/kate/session/katesessionmanager.cpp:86
        it = {i = 0x56040e945160}
        list = {<QList<QString>> = {<QListSpecialMethods<QString>> = {<No data fields>}, {p = {static shared_null = {ref = {atomic = {_q_value = {<std::__atomic_base<int>> = {static _S_alignment = 4, _M_i = -1}, static is_always_lock_free = true}}}, alloc = 0, begin = 0, end = 0, array = {0x0}}, d = 0x56040ebe2880}, d = 0x56040ebe2880}}, <No data fields>}
        dir = {d_ptr = {d = 0x56040f111190}}
        changed = true
#8  0x00007f92c4192804 in void doActivate<false>(QObject*, int, void**) () from /lib64/libQt5Core.so.5
No symbol table info available.
#9  0x00007f92c527ffa6 in KDirWatch::dirty(QString const&) () from /lib64/libKF5CoreAddons.so.5
No symbol table info available.
#10 0x00007f92c41a68c0 in QObject::event(QEvent*) () from /lib64/libQt5Core.so.5
No symbol table info available.
#11 0x00007f92c4e81233 in QApplicationPrivate::notify_helper(QObject*, QEvent*) () from /lib64/libQt5Widgets.so.5
No symbol table info available.
#12 0x00007f92c4139158 in QCoreApplication::notifyInternal2(QObject*, QEvent*) () from /lib64/libQt5Core.so.5
No symbol table info available.
#13 0x00007f92c4139341 in QCoreApplicationPrivate::sendPostedEvents(QObject*, int, QThreadData*) () from /lib64/libQt5Core.so.5
No symbol table info available.
#14 0x00007f92c41395d7 in postEventSourceDispatch(_GSource*, int (*)(void*), void*) () from /lib64/libQt5Core.so.5
No symbol table info available.
#15 0x00007f92c24226d4 in g_main_context_dispatch () from /lib64/libglib-2.0.so.0
No symbol table info available.
#16 0x00007f92c2469588 in g_main_context_iterate.constprop () from /lib64/libglib-2.0.so.0
No symbol table info available.
#17 0x00007f92c2469653 in g_main_context_iteration () from /lib64/libglib-2.0.so.0
No symbol table info available.
#18 0x00007f92c41a13d2 in QEventDispatcherGlib::processEvents(QFlags<QEventLoop::ProcessEventsFlag>) () from /lib64/libQt5Core.so.5
No symbol table info available.
#19 0x00007f92c413a7d5 in QCoreApplication::processEvents(QFlags<QEventLoop::ProcessEventsFlag>, int) () from /lib64/libQt5Core.so.5
No symbol table info available.
#20 0x00007f92c413a878 in QTest::qWait(int) () from /lib64/libQt5Core.so.5
No symbol table info available.
#21 0x000056040cf2271f in KateSessionManagerTest::deletingSessionFilesUnderRunningApp (this=0x7ffca80a8e90) at /data/home/tkloczko/rpmbuild/BUILD/kate-21.12.0/kate/autotests/session_manager_test.cpp:154
        qt_test_i = 0
        qt_test_step = 50
        qt_test_timeoutValue = 1000
        file = {d = 0x56040f3ea8f0}
        file = <optimized out>
        qt_test_step = <optimized out>
        qt_test_timeoutValue = <optimized out>
        qt_test_i = <optimized out>
        qt_test_i = <optimized out>
        msg = <optimized out>
#22 KateSessionManagerTest::qt_static_metacall (_o=0x7ffca80a8e90, _id=<optimized out>, _a=<optimized out>, _c=<optimized out>) at /data/home/tkloczko/rpmbuild/BUILD/kate-21.12.0/x86_64-redhat-linux-gnu/kate/autotests/session_manager_test_autogen/EWIEGA46WW/moc_session_manager_test.cpp:130
        _t = 0x7ffca80a8e90
#23 0x00007f92c418f4eb in QMetaMethod::invoke(QObject*, Qt::ConnectionType, QGenericReturnArgument, QGenericArgument, QGenericArgument, QGenericArgument, QGenericArgument, QGenericArgument, QGenericArgument, QGenericArgument, QGenericArgument, QGenericArgument, QGenericArgument) const () from /lib64/libQt5Core.so.5
No symbol table info available.
#24 0x00007f92c5f90ea8 in QTest::qRun() () from /lib64/libQt5Test.so.5
No symbol table info available.
#25 0x00007f92c5f91eb0 in QTest::qExec(QObject*, int, char**) () from /lib64/libQt5Test.so.5
No symbol table info available.
#26 0x000056040cec99cb in main (argc=<optimized out>, argv=0x7ffca80a9018) at /data/home/tkloczko/rpmbuild/BUILD/kate-21.12.0/kate/autotests/session_manager_test.cpp:19
        app = <incomplete type>
        tc = {<QObject> = {<No data fields>}, static staticMetaObject = {d = {superdata = {direct = 0x56040cf7eea0 <QObject::staticMetaObject@Qt_5>}, stringdata = 0x56040cf6efa0 <qt_meta_stringdata_KateSessionManagerTest>, data = 0x56040cf6ede0 <qt_meta_data_KateSessionManagerTest>, static_metacall = 0x56040cf23f00 <KateSessionManagerTest::qt_static_metacall(QObject*, QMetaObject::Call, int, void**)>, relatedMetaObjects = 0x0, extradata = 0x0}}, m_tempdir = 0x56040eaf2d80, m_manager = 0x56040eacdaf0, m_app = 0x56040e48a380}
Detaching from program: /data/home/tkloczko/rpmbuild/BUILD/kate-21.12.0/x86_64-redhat-linux-gnu/bin/session_manager_test, process 1005445
[Inferior 1 (process 1005445) detached]
=== End of stack trace ===
QFATAL : KateSessionManagerTest::deletingSessionFilesUnderRunningApp() Received signal 11
         Function time: 590ms Total time: 3166ms
FAIL!  : KateSessionManagerTest::deletingSessionFilesUnderRunningApp() Received a fatal error.
   Loc: [Unknown file(0)]
Totals: 9 passed, 1 failed, 0 skipped, 0 blacklisted, 9867ms
********* Finished testing of KateSessionManagerTest *********

      Start 10: kateapp-sessions_action_test
10/13 Test #10: kateapp-sessions_action_test .........   Passed    4.19 sec
      Start 11: kateapp-urlinfo_test
11/13 Test #11: kateapp-urlinfo_test .................   Passed    0.06 sec
      Start 12: kateapp-json_utils_test
12/13 Test #12: kateapp-json_utils_test ..............   Passed    0.05 sec
      Start 13: kateapp-location_history_test
13/13 Test #13: kateapp-location_history_test ........   Passed    0.85 sec

92% tests passed, 1 tests failed out of 13

Total Test time (real) =  16.82 sec

The following tests FAILED:
          9 - kateapp-session_manager_test (Subprocess aborted)
Errors while running CTest
make: *** [Makefile:74: test] Error 8
make: Leaving directory '/data/home/tkloczko/rpmbuild/BUILD/kate-21.12.0/x86_64-redhat-linux-gnu'
Comment 1 Christoph Cullmann 2021-12-12 18:57:51 UTC
Git commit 48d3a525953628a084ba0c4faacf1af4be65c8a2 by Christoph Cullmann.
Committed on 12/12/2021 at 18:57.
Pushed by cullmann into branch 'master'.

fix sessions segfault because of invalid iterator

M  +4    -2    kate/session/katesessionmanager.cpp

https://invent.kde.org/utilities/kate/commit/48d3a525953628a084ba0c4faacf1af4be65c8a2
Comment 2 Christoph Cullmann 2021-12-12 19:01:36 UTC
Git commit 382fc7990b2d62a4c026b3657535ce17763498f6 by Christoph Cullmann.
Committed on 12/12/2021 at 19:01.
Pushed by cullmann into branch 'release/21.12'.

fix sessions segfault because of invalid iterator


(cherry picked from commit 48d3a525953628a084ba0c4faacf1af4be65c8a2)

M  +4    -2    kate/session/katesessionmanager.cpp

https://invent.kde.org/utilities/kate/commit/382fc7990b2d62a4c026b3657535ce17763498f6
Comment 3 Christoph Cullmann 2021-12-12 19:01:53 UTC
Good catch, thanks!
Comment 4 kloczek 2021-12-12 22:21:42 UTC
I've tested 21.12.0 + c8530815 c758176c e2c32e27 ae331887 48d3a525 f14b7c39 and test suite still is failing

[tkloczko@ss-desktop SPECS]$ bg; rpmbuild -ba --clean --rmspec --rmsource kate.spec
-bash: bg: current: no such job
warning: Downloading https://download.kde.org/stable/release-service/21.12.0/src/kate-21.12.0.tar.xz to /data/home/tkloczko/rpmbuild/SOURCES/kate-21.12.0.tar.xz
warning: Downloading https://invent.kde.org/utilities/kate//commit/c85308156.patch#/kate-Don-t-show-time-in-inline-note.patch to /data/home/tkloczko/rpmbuild/SOURCES/kate-Don-t-show-time-in-inline-note.patch
warning: Downloading https://invent.kde.org/utilities/kate//commit/c758176c1.patch#/kate-Fix-LSPTooltip-sizing.patch to /data/home/tkloczko/rpmbuild/SOURCES/kate-Fix-LSPTooltip-sizing.patch
warning: Downloading https://invent.kde.org/utilities/kate//commit/e2c32e271.patch#/kate-Fix-git-blame-for-files-with-DOS-end-of-line.patch to /data/home/tkloczko/rpmbuild/SOURCES/kate-Fix-git-blame-for-files-with-DOS-end-of-line.patch
warning: Downloading https://invent.kde.org/utilities/kate//commit/ae3318871.patch#/kate-Fix-segfault-on-session-change.patch to /data/home/tkloczko/rpmbuild/SOURCES/kate-Fix-segfault-on-session-change.patch
warning: Downloading https://invent.kde.org/utilities/kate//commit/48d3a5259.patch#/kate-fix-sessions-segfault-because-of-invalid-iterator.patch to /data/home/tkloczko/rpmbuild/SOURCES/kate-fix-sessions-segfault-because-of-invalid-iterator.patch
warning: Downloading https://invent.kde.org/utilities/kate//commit/f14b7c390.patch#/kate-build-Colored-brackets-for-readability-plugin-in-mas.patch to /data/home/tkloczko/rpmbuild/SOURCES/kate-build-Colored-brackets-for-readability-plugin-in-mas.patch
Executing(%prep): /bin/sh -e /var/tmp/rpm-tmp.HS7wI0
+ umask 022
+ cd /data/home/tkloczko/rpmbuild/BUILD
+ cd /data/home/tkloczko/rpmbuild/BUILD
+ rm -rf kate-21.12.0
+ /usr/bin/xz -dc /data/home/tkloczko/rpmbuild/SOURCES/kate-21.12.0.tar.xz
+ /usr/bin/tar -xof -
+ STATUS=0
+ '[' 0 -ne 0 ']'
+ cd kate-21.12.0
+ /usr/bin/chmod -Rf a+rX,u+w,g-w,o-w .
+ /usr/bin/cat /data/home/tkloczko/rpmbuild/SOURCES/kate-Don-t-show-time-in-inline-note.patch
+ /usr/bin/patch -p1 -s --fuzz=0 --no-backup-if-mismatch -f
+ /usr/bin/cat /data/home/tkloczko/rpmbuild/SOURCES/kate-Fix-LSPTooltip-sizing.patch
+ /usr/bin/patch -p1 -s --fuzz=0 --no-backup-if-mismatch -f
+ /usr/bin/cat /data/home/tkloczko/rpmbuild/SOURCES/kate-Fix-git-blame-for-files-with-DOS-end-of-line.patch
+ /usr/bin/patch -p1 -s --fuzz=0 --no-backup-if-mismatch -f
+ /usr/bin/cat /data/home/tkloczko/rpmbuild/SOURCES/kate-Fix-segfault-on-session-change.patch
+ /usr/bin/patch -p1 -s --fuzz=0 --no-backup-if-mismatch -f
+ /usr/bin/cat /data/home/tkloczko/rpmbuild/SOURCES/kate-fix-sessions-segfault-because-of-invalid-iterator.patch
+ /usr/bin/patch -p1 -s --fuzz=0 --no-backup-if-mismatch -f
+ /usr/bin/cat /data/home/tkloczko/rpmbuild/SOURCES/kate-build-Colored-brackets-for-readability-plugin-in-mas.patch
+ /usr/bin/patch -p1 -s --fuzz=0 --no-backup-if-mismatch -f
+ RPM_EC=0
++ jobs -p
+ exit 0

[..]

Executing(%check): /bin/sh -e /var/tmp/rpm-tmp.DI1muJ
+ umask 022
+ cd /data/home/tkloczko/rpmbuild/BUILD
+ cd kate-21.12.0
+ xvfb-run -a /usr/bin/make -O -j12 V=1 VERBOSE=1 -C x86_64-redhat-linux-gnu test ARGS=--output-on-failure
make: Entering directory '/data/home/tkloczko/rpmbuild/BUILD/kate-21.12.0/x86_64-redhat-linux-gnu'
Running tests...
/usr/bin/ctest --force-new-ctest-process --output-on-failure
Test project /data/home/tkloczko/rpmbuild/BUILD/kate-21.12.0/x86_64-redhat-linux-gnu
      Start  1: appstreamtest
 1/13 Test  #1: appstreamtest ........................   Passed    5.55 sec
      Start  2: plugin-btbrowser_test
 2/13 Test  #2: plugin-btbrowser_test ................   Passed    0.03 sec
      Start  3: plugin-externaltools_test
 3/13 Test  #3: plugin-externaltools_test ............   Passed    0.07 sec
      Start  4: kateapp-filetree_model_test
 4/13 Test  #4: kateapp-filetree_model_test ..........   Passed    0.10 sec
      Start  5: plugin-latexunicodecompletion_test
 5/13 Test  #5: plugin-latexunicodecompletion_test ...   Passed    0.01 sec
      Start  6: plugin-project_test
 6/13 Test  #6: plugin-project_test ..................   Passed    0.05 sec
      Start  7: plugin-tabswitcher_test
 7/13 Test  #7: plugin-tabswitcher_test ..............   Passed    0.06 sec
      Start  8: kateapp-session_test
 8/13 Test  #8: kateapp-session_test .................   Passed    0.07 sec
      Start  9: kateapp-session_manager_test
 9/13 Test  #9: kateapp-session_manager_test .........***Failed    6.87 sec
********* Start testing of KateSessionManagerTest *********
Config: Using QtTest library 5.15.2, Qt 5.15.2 (x86_64-little_endian-lp64 shared (dynamic) release build; by GCC 11.1.1 20210623 (Red Hat 11.1.1-6)), fedora 35
QWARN  : KateSessionManagerTest::initTestCase() kf.xmlgui: cannot find .rc file "kateui.rc" for component "session_manager_test"
QWARN  : KateSessionManagerTest::initTestCase() kf.xmlgui: cannot find .rc file "kateui.rc" for component "session_manager_test"
QWARN  : KateSessionManagerTest::initTestCase() kf.sonnet.core: No language dictionaries for the language: "C" trying to load en_US as default
PASS   : KateSessionManagerTest::initTestCase()
PASS   : KateSessionManagerTest::basic()
PASS   : KateSessionManagerTest::activateNewNamedSession()
PASS   : KateSessionManagerTest::anonymousSessionFile()
PASS   : KateSessionManagerTest::urlizeSessionFile()
QWARN  : KateSessionManagerTest::renameSession() kf.service.services: KServiceTypeTrader: serviceType "ThumbCreator" not found
PASS   : KateSessionManagerTest::renameSession()
PASS   : KateSessionManagerTest::deleteActiveSession()
PASS   : KateSessionManagerTest::deleteSession()
PASS   : KateSessionManagerTest::saveActiveSessionWithAnynomous()
QWARN  : KateSessionManagerTest::deletingSessionFilesUnderRunningApp() kf.service.services: KServiceTypeTrader: serviceType "ThumbCreator" not found
FAIL!  : KateSessionManagerTest::deletingSessionFilesUnderRunningApp() Compared values are not the same
   Actual   ((m_manager->sessionList().size())): 2
   Expected (1)                                : 1
   Loc: [/data/home/tkloczko/rpmbuild/BUILD/kate-21.12.0/kate/autotests/session_manager_test.cpp(154)]
PASS   : KateSessionManagerTest::startNonEmpty()
PASS   : KateSessionManagerTest::cleanupTestCase()
Totals: 11 passed, 1 failed, 0 skipped, 0 blacklisted, 6767ms
********* Finished testing of KateSessionManagerTest *********

      Start 10: kateapp-sessions_action_test
10/13 Test #10: kateapp-sessions_action_test .........   Passed    4.48 sec
      Start 11: kateapp-urlinfo_test
11/13 Test #11: kateapp-urlinfo_test .................   Passed    0.06 sec
      Start 12: kateapp-json_utils_test
12/13 Test #12: kateapp-json_utils_test ..............   Passed    0.05 sec
      Start 13: kateapp-location_history_test
13/13 Test #13: kateapp-location_history_test ........   Passed    0.80 sec

92% tests passed, 1 tests failed out of 13

Total Test time (real) =  18.21 sec

The following tests FAILED:
          9 - kateapp-session_manager_test (Failed)
Errors while running CTest
make: *** [Makefile:74: test] Error 8
Comment 5 Christoph Cullmann 2022-01-08 20:36:24 UTC
Hi, can't reproduce that.

And the KDE CI not either, see e.g.

https://build.kde.org/job/Applications/job/kate/job/stable-kf5-qt5%20SUSEQt5.15/149/consoleFull

That is the 21.12 branch, if I am not totally mistaken.
Comment 6 kloczek 2022-01-09 04:26:15 UTC
Just disabled exclude that failing unit in 21.12.1 and all loks good now

+ cd kate-21.12.1
+ xvfb-run -a /usr/bin/make -O -j12 V=1 VERBOSE=1 -C x86_64-redhat-linux-gnu test ARGS=--output-on-failure 'ARGS=--output-on-failure \
                -E "^(kateapp-session_manager_test)"'
make: Entering directory '/home/tkloczko/rpmbuild/BUILD/kate-21.12.1/x86_64-redhat-linux-gnu'
Running tests...
/usr/bin/ctest --force-new-ctest-process --output-on-failure \
        -E "^(kateapp-session_manager_test)"
Test project /home/tkloczko/rpmbuild/BUILD/kate-21.12.1/x86_64-redhat-linux-gnu
      Start  1: appstreamtest
 1/12 Test  #1: appstreamtest ........................   Passed    4.12 sec
      Start  2: plugin-btbrowser_test
 2/12 Test  #2: plugin-btbrowser_test ................   Passed    0.03 sec
      Start  3: plugin-externaltools_test
 3/12 Test  #3: plugin-externaltools_test ............   Passed    0.06 sec
      Start  4: kateapp-filetree_model_test
 4/12 Test  #4: kateapp-filetree_model_test ..........   Passed    0.09 sec
      Start  5: plugin-latexunicodecompletion_test
 5/12 Test  #5: plugin-latexunicodecompletion_test ...   Passed    0.01 sec
      Start  6: plugin-project_test
 6/12 Test  #6: plugin-project_test ..................   Passed    0.03 sec
      Start  7: plugin-tabswitcher_test
 7/12 Test  #7: plugin-tabswitcher_test ..............   Passed    0.05 sec
      Start  8: kateapp-session_test
 8/12 Test  #8: kateapp-session_test .................   Passed    0.07 sec
      Start  9: kateapp-sessions_action_test
 9/12 Test  #9: kateapp-sessions_action_test .........   Passed    4.52 sec
      Start 10: kateapp-urlinfo_test
10/12 Test #10: kateapp-urlinfo_test .................   Passed    0.06 sec
      Start 11: kateapp-json_utils_test
11/12 Test #11: kateapp-json_utils_test ..............   Passed    0.05 sec
      Start 12: kateapp-location_history_test
12/12 Test #12: kateapp-location_history_test ........   Passed    0.77 sec

100% tests passed, 0 tests failed out of 12