https://bugs.kde.org/show_bug.cgi?id=495422
Bug ID: 495422 Summary: 24.08.2: test suite fails with SIGSEGV and call trace Classification: Frameworks and Libraries Product: mimetreeparser Version: unspecified Platform: Other OS: Other Status: REPORTED Severity: normal Priority: NOR Component: General Assignee: c...@carlschwan.eu Reporter: kloczko.tom...@gmail.com Target Milestone: --- Looks like something is wrong + cd mimetreeparser-24.08.2 + xvfb-run -a dbus-run-session -- /usr/bin/ctest --test-dir x86_64-redhat-linux-gnu --output-on-failure --force-new-ctest-process -j48 Internal ctest changing into directory: /home/tkloczko/rpmbuild/BUILD/mimetreeparser-24.08.2/x86_64-redhat-linux-gnu Test project /home/tkloczko/rpmbuild/BUILD/mimetreeparser-24.08.2/x86_64-redhat-linux-gnu Start 1: core-attachmenttest Start 2: core-cryptohelpertest Start 3: core-mimetreeparsertest Start 4: core-gpgerrortest Start 5: core-fileopenertest Start 6: core-partmodeltest Start 7: core-attachmentmodeltest Start 8: widgets-messageviewerdialogtest Start 9: widgets-messageviewertest 1/9 Test #3: core-mimetreeparsertest ...........***Failed 0.01 sec gpg-agent[2292800]: enabled debug flags: ipc gpg-agent: a gpg-agent is already running - not starting a new one gpg-agent: secmem usage: 0/65536 bytes in 0 blocks OK closing connection 2/9 Test #2: core-cryptohelpertest .............***Failed 0.02 sec gpg-agent[2292798]: enabled debug flags: ipc gpg-agent: a gpg-agent is already running - not starting a new one gpg-agent: secmem usage: 0/65536 bytes in 0 blocks gpg-connect-agent: no running gpg-agent - starting '/usr/bin/gpg-agent' gpg-connect-agent: waiting for the agent to come up ... (5s) gpg-connect-agent: connection to the agent established OK closing connection 3/9 Test #6: core-partmodeltest ................***Failed 0.02 sec gpg-agent[2292811]: enabled debug flags: ipc gpg-agent: a gpg-agent is already running - not starting a new one gpg-agent: secmem usage: 0/65536 bytes in 0 blocks OK closing connection 4/9 Test #5: core-fileopenertest ............... Passed 0.05 sec 5/9 Test #7: core-attachmentmodeltest ..........***Failed 0.11 sec ********* Start testing of AttachmentModelTest ********* Config: Using QtTest library 6.7.3, Qt 6.7.3 (x86_64-little_endian-lp64 shared (dynamic) release build; by GCC 14.2.1 20240912 (Red Hat 14.2.1-4)), fedora 42 PASS : AttachmentModelTest::initTestCase() PASS : AttachmentModelTest::openMailWithOneAttachementTest() QINFO : AttachmentModelTest::saveTest() org.kde.pim.mimetreeparser.core: Wrote attachment to file: "/tmp/attachmentmodeltest.XabPDR" PASS : AttachmentModelTest::saveTest() QINFO : AttachmentModelTest::openTest() org.kde.pim.mimetreeparser.core: Wrote attachment to file: "/tmp/attachmentmodeltest.THKEjx/aqnaozisxya.jpeg" QWARN : AttachmentModelTest::openTest() Unable to detect a launcher for 'file:///tmp/attachmentmodeltest.THKEjx/aqnaozisxya.jpeg' FAIL! : AttachmentModelTest::openTest() Compared values are not the same Actual (spy.count()): 1 Expected (0) : 0 Loc: [/home/tkloczko/rpmbuild/BUILD/mimetreeparser-24.08.2/autotests/core/attachmentmodeltest.cpp(78)] QWARN : AttachmentModelTest::saveInvalidPathTest() org.kde.pim.mimetreeparser.core: Failed to write attachment to file: "/does/not/exist" Error: "No such file or directory" PASS : AttachmentModelTest::saveInvalidPathTest() PASS : AttachmentModelTest::cleanupTestCase() Totals: 5 passed, 1 failed, 0 skipped, 0 blacklisted, 42ms ********* Finished testing of AttachmentModelTest ********* 6/9 Test #8: widgets-messageviewerdialogtest ... Passed 0.14 sec 7/9 Test #4: core-gpgerrortest .................***Exception: SegFault 0.47 sec ********* Start testing of GpgErrorTest ********* Config: Using QtTest library 6.7.3, Qt 6.7.3 (x86_64-little_endian-lp64 shared (dynamic) release build; by GCC 14.2.1 20240912 (Red Hat 14.2.1-4)), fedora 42 PASS : GpgErrorTest::initTestCase() QINFO : GpgErrorTest::testGpgConfiguredCorrectly() ! textplain isAttachment: 0 # MimeTreeParser::MessagePartList isAttachment: 0 # MimeTreeParser::TextMessagePart isAttachment: 0 # MimeTreeParser::EncryptedMessagePart isAttachment: 0 QWARN : GpgErrorTest::testGpgConfiguredCorrectly() gpg.qgpgme: found no group for entry verbose of component "tpm2daemon" QWARN : GpgErrorTest::testGpgConfiguredCorrectly() gpg.qgpgme: found no group for entry quiet of component "tpm2daemon" QWARN : GpgErrorTest::testGpgConfiguredCorrectly() gpg.qgpgme: found no group for entry debug-level of component "tpm2daemon" QWARN : GpgErrorTest::testGpgConfiguredCorrectly() gpg.qgpgme: found no group for entry log-file of component "tpm2daemon" QINFO : GpgErrorTest::testGpgConfiguredCorrectly() ! textplain isAttachment: 0 # MimeTreeParser::MessagePartList isAttachment: 0 # MimeTreeParser::TextMessagePart isAttachment: 0 # MimeTreeParser::EncryptedMessagePart isAttachment: 0 # MimeTreeParser::SignedMessagePart isAttachment: 0 # MimeTreeParser::TextMessagePart isAttachment: 0 # MimeTreeParser::MessagePart isAttachment: 0 PASS : GpgErrorTest::testGpgConfiguredCorrectly() QINFO : GpgErrorTest::testNoGPGInstalled(openpgp-inline-charset-encrypted) ! textplain isAttachment: 0 # MimeTreeParser::MessagePartList isAttachment: 0 # MimeTreeParser::TextMessagePart isAttachment: 0 # MimeTreeParser::EncryptedMessagePart isAttachment: 0 QINFO : GpgErrorTest::testNoGPGInstalled(openpgp-inline-charset-encrypted) ! textplain isAttachment: 0 # MimeTreeParser::MessagePartList isAttachment: 0 # MimeTreeParser::TextMessagePart isAttachment: 0 # MimeTreeParser::EncryptedMessagePart isAttachment: 0 PASS : GpgErrorTest::testNoGPGInstalled(openpgp-inline-charset-encrypted) QINFO : GpgErrorTest::testNoGPGInstalled(openpgp-encrypted-attachment-and-non-encrypted-attachment) ! multipartmixed isAttachment: 0 ! multipartencrypted isAttachment: 0 ! applicationpgp-encrypted isAttachment: 0 ! applicationoctet-stream isAttachment: 0 ! imagepng isAttachment: 1 # MimeTreeParser::MessagePartList isAttachment: 0 # MimeTreeParser::MessagePart isAttachment: 0 # MimeTreeParser::MimeMessagePart isAttachment: 0 # MimeTreeParser::EncryptedMessagePart isAttachment: 0 # MimeTreeParser::AttachmentMessagePart isAttachment: 1 # MimeTreeParser::MessagePart isAttachment: 0 QINFO : GpgErrorTest::testNoGPGInstalled(openpgp-encrypted-attachment-and-non-encrypted-attachment) ! multipartmixed isAttachment: 0 ! multipartencrypted isAttachment: 0 ! applicationpgp-encrypted isAttachment: 0 ! applicationoctet-stream isAttachment: 0 ! imagepng isAttachment: 1 # MimeTreeParser::MessagePartList isAttachment: 0 # MimeTreeParser::MessagePart isAttachment: 0 # MimeTreeParser::MimeMessagePart isAttachment: 0 # MimeTreeParser::EncryptedMessagePart isAttachment: 0 # MimeTreeParser::TextMessagePart isAttachment: 0 # MimeTreeParser::AttachmentMessagePart isAttachment: 1 # MimeTreeParser::MessagePart isAttachment: 0 PASS : GpgErrorTest::testNoGPGInstalled(openpgp-encrypted-attachment-and-non-encrypted-attachment) QINFO : GpgErrorTest::testNoGPGInstalled(smime-encrypted) ! applicationpkcs7-mime isAttachment: 0 # MimeTreeParser::MessagePartList isAttachment: 0 # MimeTreeParser::EncryptedMessagePart isAttachment: 0 Received signal 11 (SIGSEGV), code 1, for address 0x0000000000000000 testNoGPGInstalled function time: 25ms, total time: 226ms === Stack trace === === End of stack trace === 8/9 Test #1: core-attachmenttest ............... Passed 0.51 sec 9/9 Test #9: widgets-messageviewertest .........***Failed 3.36 sec gpg-agent[2292815]: enabled debug flags: ipc ********* Start testing of MessageViewerTest ********* Config: Using QtTest library 6.7.3, Qt 6.7.3 (x86_64-little_endian-lp64 shared (dynamic) release build; by GCC 14.2.1 20240912 (Red Hat 14.2.1-4)), fedora 42 PASS : MessageViewerTest::initTestCase() Received signal 11 (SIGSEGV), code 1, for address 0x0000000000000000 messageViewerSMimeEncrypted function time: 48ms, total time: 49ms === Stack trace === [New LWP 2292846] [New LWP 2292849] [New LWP 2292858] [Thread debugging using libthread_db enabled] Using host libthread_db library "/usr/lib64/libthread_db.so.1". 0x00007f7f37a86fb2 in __syscall_cancel_arch () from /usr/lib64/libc.so.6 Thread 4 (Thread 0x7f7f312006c0 (LWP 2292858) "QtTest Watchdog"): #0 0x00007f7f37a86fb2 in __syscall_cancel_arch () from /usr/lib64/libc.so.6 #1 0x00007f7f37a7ae13 in __internal_syscall_cancel () from /usr/lib64/libc.so.6 #2 0x00007f7f37a7b48c in __futex_abstimed_wait_common () from /usr/lib64/libc.so.6 #3 0x00007f7f37a7e4b2 in pthread_cond_clockwait@GLIBC_2.30 () from /usr/lib64/libc.so.6 #4 0x00007f7f387921fd in QTest::WatchDog::run() () from /usr/lib64/libQt6Test.so.6 #5 0x00007f7f37649a15 in QThreadPrivate::start(void*) () from /usr/lib64/libQt6Core.so.6 #6 0x00007f7f37a7ece7 in start_thread () from /usr/lib64/libc.so.6 #7 0x00007f7f37b018dc in __clone3 () from /usr/lib64/libc.so.6 Thread 3 (Thread 0x7f7f31c006c0 (LWP 2292849) "QXcbEventQueue"): #0 0x00007f7f37a86fb2 in __syscall_cancel_arch () from /usr/lib64/libc.so.6 #1 0x00007f7f37a7ae13 in __internal_syscall_cancel () from /usr/lib64/libc.so.6 #2 0x00007f7f37a7ae54 in __syscall_cancel () from /usr/lib64/libc.so.6 #3 0x00007f7f37af447e in poll () from /usr/lib64/libc.so.6 #4 0x00007f7f329b8282 in _xcb_conn_wait.part.0 () from /usr/lib64/libxcb.so.1 #5 0x00007f7f329b9e3c in xcb_wait_for_event () from /usr/lib64/libxcb.so.1 #6 0x00007f7f3274cce8 in QXcbEventQueue::run() () from /usr/lib64/libQt6XcbQpa.so.6 #7 0x00007f7f37649a15 in QThreadPrivate::start(void*) () from /usr/lib64/libQt6Core.so.6 #8 0x00007f7f37a7ece7 in start_thread () from /usr/lib64/libc.so.6 #9 0x00007f7f37b018dc in __clone3 () from /usr/lib64/libc.so.6 Thread 2 (Thread 0x7f7f326006c0 (LWP 2292846) "QDBusConnection"): #0 0x00007f7f37a86fb2 in __syscall_cancel_arch () from /usr/lib64/libc.so.6 #1 0x00007f7f37a7ae13 in __internal_syscall_cancel () from /usr/lib64/libc.so.6 #2 0x00007f7f37a7ae54 in __syscall_cancel () from /usr/lib64/libc.so.6 #3 0x00007f7f37af4906 in ppoll () from /usr/lib64/libc.so.6 #4 0x00007f7f35cb909c in g_main_context_iterate_unlocked.isra () from /usr/lib64/libglib-2.0.so.0 #5 0x00007f7f35c5bf73 in g_main_context_iteration () from /usr/lib64/libglib-2.0.so.0 #6 0x00007f7f3772a623 in QEventDispatcherGlib::processEvents(QFlags<QEventLoop::ProcessEventsFlag>) () from /usr/lib64/libQt6Core.so.6 #7 0x00007f7f374e1c2b in QEventLoop::exec(QFlags<QEventLoop::ProcessEventsFlag>) () from /usr/lib64/libQt6Core.so.6 #8 0x00007f7f375cb8f7 in QThread::exec() () from /usr/lib64/libQt6Core.so.6 #9 0x00007f7f350abc1d in QDBusConnectionManager::run() () from /usr/lib64/libQt6DBus.so.6 #10 0x00007f7f37649a15 in QThreadPrivate::start(void*) () from /usr/lib64/libQt6Core.so.6 #11 0x00007f7f37a7ece7 in start_thread () from /usr/lib64/libc.so.6 #12 0x00007f7f37b018dc in __clone3 () from /usr/lib64/libc.so.6 Thread 1 (Thread 0x7f7f36cb1940 (LWP 2292815) "messageviewerte"): #0 0x00007f7f37a86fb2 in __syscall_cancel_arch () from /usr/lib64/libc.so.6 #1 0x00007f7f37a7ae13 in __internal_syscall_cancel () from /usr/lib64/libc.so.6 #2 0x00007f7f37a7ae54 in __syscall_cancel () from /usr/lib64/libc.so.6 #3 0x00007f7f37aeadbf in wait4 () from /usr/lib64/libc.so.6 #4 0x00007f7f38797685 in generateStackTrace() [clone .part.0] [clone .lto_priv.0] () from /usr/lib64/libQt6Test.so.6 #5 0x00007f7f38792560 in (anonymous namespace)::FatalSignalHandler::actionHandler(int, siginfo_t*, void*) [clone .lto_priv.0] () from /usr/lib64/libQt6Test.so.6 #6 <signal handler called> #7 MimeTreeParser::EncryptedMessagePart::decrypt (this=this@entry=0x55b6c75121a0, data=...) at /home/tkloczko/rpmbuild/BUILD/mimetreeparser-24.08.2/src/core/messagepart.cpp:889 #8 0x00007f7f388016ab in MimeTreeParser::EncryptedMessagePart::startDecryption (this=0x55b6c75121a0, data=<optimized out>) at /home/tkloczko/rpmbuild/BUILD/mimetreeparser-24.08.2/src/core/messagepart.cpp:1002 #9 0x00007f7f388080b2 in operator() (__closure=<optimized out>, part=...) at /home/tkloczko/rpmbuild/BUILD/mimetreeparser-24.08.2/src/core/objecttreeparser.cpp:299 #10 std::__invoke_impl<bool, MimeTreeParser::ObjectTreeParser::decryptAndVerify()::<lambda(const MimeTreeParser::MessagePart::Ptr&)>&, const QSharedPointer<MimeTreeParser::MessagePart>&> (__f=...) at /usr/include/c++/14/bits/invoke.h:61 #11 std::__invoke_r<bool, MimeTreeParser::ObjectTreeParser::decryptAndVerify()::<lambda(const MimeTreeParser::MessagePart::Ptr&)>&, const QSharedPointer<MimeTreeParser::MessagePart>&> (__fn=...) at /usr/include/c++/14/bits/invoke.h:114 #12 std::_Function_handler<bool(const QSharedPointer<MimeTreeParser::MessagePart>&), MimeTreeParser::ObjectTreeParser::decryptAndVerify()::<lambda(const MimeTreeParser::MessagePart::Ptr&)> >::_M_invoke(const std::_Any_data &, const QSharedPointer<MimeTreeParser::MessagePart> &) (__functor=..., __args#0=...) at /usr/include/c++/14/bits/std_function.h:290 #13 0x00007f7f387fd775 in std::function<bool (QSharedPointer<MimeTreeParser::MessagePart> const&)>::operator()(QSharedPointer<MimeTreeParser::MessagePart> const&) const (this=0x7ffd2a0ca110, __args#0=...) at /usr/include/c++/14/bits/std_function.h:591 #14 collect(MimeTreeParser::MessagePart::Ptr, const std::function<bool(const QSharedPointer<MimeTreeParser::MessagePart>&)> &, const std::function<bool(const QSharedPointer<MimeTreeParser::MessagePart>&)> &) (start=..., evaluateSubtree=..., select=...) at /home/tkloczko/rpmbuild/BUILD/mimetreeparser-24.08.2/src/core/objecttreeparser.cpp:47 #15 0x00007f7f387fd83a in collect(MimeTreeParser::MessagePart::Ptr, const std::function<bool(const QSharedPointer<MimeTreeParser::MessagePart>&)> &, const std::function<bool(const QSharedPointer<MimeTreeParser::MessagePart>&)> &) (start=..., evaluateSubtree=..., select=...) at /home/tkloczko/rpmbuild/BUILD/mimetreeparser-24.08.2/src/core/objecttreeparser.cpp:41 #16 0x00007f7f387feaa8 in MimeTreeParser::ObjectTreeParser::decryptAndVerify (this=0x55b6c75bf070) at /home/tkloczko/rpmbuild/BUILD/mimetreeparser-24.08.2/src/core/objecttreeparser.cpp:292 #17 0x00007f7f387f6e3e in MessageParser::setMessage (this=0x55b6c74ca860, message=...) at /home/tkloczko/rpmbuild/BUILD/mimetreeparser-24.08.2/src/core/messageparser.cpp:96 #18 0x00007f7f3883a31a in MimeTreeParser::Widgets::MessageViewer::setMessage (this=0x7ffd2a0ca3b0, message=...) at /home/tkloczko/rpmbuild/BUILD/mimetreeparser-24.08.2/src/widgets/messageviewer.cpp:369 #19 0x000055b6c6d7ad83 in MessageViewerTest::messageViewerSMimeEncrypted (this=<optimized out>) at /home/tkloczko/rpmbuild/BUILD/mimetreeparser-24.08.2/autotests/widgets/messageviewertest.cpp:26 #20 0x00007f7f374e6772 in QMetaMethodInvoker::invokeImpl(QMetaMethod, void*, Qt::ConnectionType, long long, void const* const*, char const* const*, QtPrivate::QMetaTypeInterface const* const*) () from /usr/lib64/libQt6Core.so.6 #21 0x00007f7f374e7661 in QMetaMethod::invokeImpl(QMetaMethod, void*, Qt::ConnectionType, long long, void const* const*, char const* const*, QtPrivate::QMetaTypeInterface const* const*) () from /usr/lib64/libQt6Core.so.6 #22 0x00007f7f38792b20 in QTest::TestMethods::invokeTestOnData(int) const () from /usr/lib64/libQt6Test.so.6 #23 0x00007f7f3879d154 in QTest::qRun() () from /usr/lib64/libQt6Test.so.6 #24 0x00007f7f38795bf7 in QTest::qExec(QObject*, int, char**) () from /usr/lib64/libQt6Test.so.6 #25 0x000055b6c6d7a587 in main (argc=<optimized out>, argv=0x7ffd2a0cad58) at /home/tkloczko/rpmbuild/BUILD/mimetreeparser-24.08.2/autotests/widgets/messageviewertest.cpp:50 [Inferior 1 (process 2292815) detached] === End of stack trace === /home/tkloczko/rpmbuild/BUILD/mimetreeparser-24.08.2/x86_64-redhat-linux-gnu/bin/messageviewertest.shell: line 7: 2292815 Segmentation fault (core dumped) LD_LIBRARY_PATH=/./:/usr/lib64:${LD_LIBRARY_PATH:+:$LD_LIBRARY_PATH} GNUPGHOME=/home/tkloczko/rpmbuild/BUILD/mimetreeparser-24.08.2/x86_64-redhat-linux-gnu/autotests/gnupg_home gpg-agent --daemon "/home/tkloczko/rpmbuild/BUILD/mimetreeparser-24.08.2/x86_64-redhat-linux-gnu/bin/messageviewertest" "$@" gpg-connect-agent: no running gpg-agent - starting '/usr/bin/gpg-agent' gpg-connect-agent: waiting for the agent to come up ... (5s) gpg-connect-agent: connection to the agent established OK closing connection 33% tests passed, 6 tests failed out of 9 Total Test time (real) = 3.38 sec The following tests FAILED: 2 - core-cryptohelpertest (Failed) 3 - core-mimetreeparsertest (Failed) 4 - core-gpgerrortest (SEGFAULT) 6 - core-partmodeltest (Failed) 7 - core-attachmentmodeltest (Failed) 9 - widgets-messageviewertest (Failed) Errors while running CTest -- You are receiving this mail because: You are watching all bug changes.