Bug 501642 - Segmentation fault on quit
Summary: Segmentation fault on quit
Status: RESOLVED FIXED
Alias: None
Product: skrooge
Classification: Applications
Component: general (other bugs)
Version First Reported In: 25.1.0
Platform: Arch Linux Linux
: NOR crash
Target Milestone: 25.1.0
Assignee: Stephane MANKOWSKI
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2025-03-17 14:32 UTC by Balló György
Modified: 2025-03-19 18:29 UTC (History)
0 users

See Also:
Latest Commit:
Version Fixed In:
Sentry Crash Report:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Balló György 2025-03-17 14:32:37 UTC
SUMMARY
When I close the application, it crashes.

STEPS TO REPRODUCE
1. Close the application (Ctrl+Q)

OBSERVED RESULT
Segmentation fault

EXPECTED RESULT
Quit without segmentation fault.

SOFTWARE/OS VERSIONS
Skrooge Version: 25.1.0
KDE Frameworks Version: 6.12
Qt Version: 6.8.2
Distribution: Arch Linux 

ADDITIONAL INFORMATION
Backtrace:
#0  QFlags<QIODeviceBase::OpenModeFlag>::operator& (this=<optimized out>, other=<optimized out>, 
    this=<optimized out>, other=<optimized out>) at /usr/src/debug/qt6-base/qtbase/src/corelib/global/qflags.h:116
#1  QIODevice::write (this=0x57e583777400, 
    data=0x57e583dc9400 "##WARNING: QThreadStorage: Thread 0x57e5833355d0 exited after QThreadStorage 8 destroyed\n", maxSize=89) at /usr/src/debug/qt6-base/qtbase/src/corelib/io/qiodevice.cpp:1646
#2  0x00007e301f12278c in QIODevice::write (this=<optimized out>, data=...)
    at /usr/src/debug/qt6-base/qtbase/src/corelib/io/qiodevice.cpp:1755
#3  0x00007e301f1f7f64 in QTextStreamPrivate::flushWriteBuffer (this=0x57e58336d150)
    at /usr/src/debug/qt6-base/qtbase/src/corelib/serialization/qtextstream.cpp:472
#4  0x00007e301f204b4e in QTextStream::flush (this=0x7e3020d5c970 <SKGTraces::SKGCout>)
    at /usr/src/debug/qt6-base/qtbase/src/corelib/serialization/qtextstream.cpp:2854
#5  Qt::flush (stream=...) at /usr/src/debug/qt6-base/qtbase/src/corelib/serialization/qtextstream.cpp:2856
#6  operator<< (s=..., f=<optimized out>, s=..., f=<optimized out>)
    at /usr/src/debug/qt6-base/qtbase/src/corelib/serialization/qtextstream.h:210
#7  Qt::endl (stream=...) at /usr/src/debug/qt6-base/qtbase/src/corelib/serialization/qtextstream.cpp:2844
#8  0x00007e301f0ed7dc in qt_message_print (msgType=QtWarningMsg, context=..., message=...)
    at /usr/src/debug/qt6-base/qtbase/src/corelib/global/qlogging.cpp:2096
#9  0x00007e301f0e2b0e in qt_message(QtMsgType, const QMessageLogContext &, const char *, typedef __va_list_tag __va_list_tag *) (msgType=msgType@entry=QtWarningMsg, context=..., 
    msg=msg@entry=0x7e301f4542f0 "QThreadStorage: Thread %p exited after QThreadStorage %d destroyed", 
    ap=ap@entry=0x7ffe44084128) at /usr/src/debug/qt6-base/qtbase/src/corelib/global/qlogging.cpp:379
#10 0x00007e301f0909d1 in QMessageLogger::warning (this=<optimized out>, 
    msg=0x7e301f4542f0 "QThreadStorage: Thread %p exited after QThreadStorage %d destroyed")
    at /usr/src/debug/qt6-base/qtbase/src/corelib/global/qlogging.cpp:634
#11 0x00007e301f2ea0dc in QThreadStorageData::finish (p=<optimized out>)
    at /usr/src/debug/qt6-base/qtbase/src/corelib/thread/qthreadstorage.cpp:160
#12 QThreadStorageData::finish (p=0x57e583365b98)
    at /usr/src/debug/qt6-base/qtbase/src/corelib/thread/qthreadstorage.cpp:135
#13 0x00007e301f42fc60 in operator() (__closure=<optimized out>)
    at /usr/src/debug/qt6-base/qtbase/src/corelib/thread/qthread_unix.cpp:406
#14 (anonymous namespace)::terminate_on_exception<QThreadPrivate::finish()::{lambda()#1}>(QThreadPrivate::finish()::{lambda()#1}&&) [clone .isra.0] (t=...) at /usr/src/debug/qt6-base/qtbase/src/corelib/thread/qthread_unix.cpp:311
#15 0x00007e301f2d8515 in set_thread_data(QThreadData*)::Cleanup::~Cleanup() ()
    at /usr/src/debug/qt6-base/qtbase/src/corelib/thread/qthread_unix.cpp:386
#16 0x00007e301f64de00 in __cxa_finalize (d=0x7e301f5f5000) at cxa_finalize.c:97
#17 0x00007e301f0cc3a8 in ?? () from /usr/lib/libQt6Core.so.6
#18 0x00007ffe440844f0 in ?? ()
#19 0x00007e3020ff9fd2 in _dl_call_fini (closure_map=0x7e3020c2f4c0) at dl-call_fini.c:43
Comment 1 Stephane MANKOWSKI 2025-03-17 22:00:28 UTC
Git commit 3432cb4ff4d298b59d19ef87e9220e932910faea by Stéphane MANKOWSKI.
Committed on 17/03/2025 at 22:00.
Pushed by smankowski into branch 'master'.

Segmentation fault on quit

M  +1    -0    CHANGELOG
M  +1    -0    skgbasegui/skgmainpanel.cpp

https://invent.kde.org/office/skrooge/-/commit/3432cb4ff4d298b59d19ef87e9220e932910faea
Comment 2 Balló György 2025-03-18 23:37:18 UTC
Thanks for the fix, but it still crashes when I run the "skrooge --help" command, or when Skrooge is launched second time and the first instance is activated.
Comment 3 Bug Janitor Service 2025-03-19 10:27:42 UTC
A possibly relevant merge request was started @ https://invent.kde.org/office/skrooge/-/merge_requests/71
Comment 4 Balló György 2025-03-19 18:29:00 UTC
Git commit c7f3ed711f23f5231086b3aacd8928a994a8a8aa by Balló György.
Committed on 19/03/2025 at 10:25.
Pushed by smankowski into branch 'master'.

Segmentation fault on quit

M  +2    -1    skrooge/main.cpp

https://invent.kde.org/office/skrooge/-/commit/c7f3ed711f23f5231086b3aacd8928a994a8a8aa