Bug 454485 - KMyMoney crashed when opening a ledger
Summary: KMyMoney crashed when opening a ledger
Status: RESOLVED WORKSFORME
Alias: None
Product: kmymoney
Classification: Applications
Component: general (show other bugs)
Version: 5.1.2
Platform: openSUSE Linux
: NOR crash
Target Milestone: ---
Assignee: KMyMoney Devel Mailing List
URL:
Keywords: drkonqi
Depends on:
Blocks:
 
Reported: 2022-05-27 14:52 UTC by Andrew Kerr
Modified: 2024-08-05 03:46 UTC (History)
1 user (show)

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 Andrew Kerr 2022-05-27 14:52:56 UTC
Application: kmymoney (5.1.2)

Qt Version: 5.15.2
Frameworks Version: 5.94.0
Operating System: Linux 5.17.9-1-default x86_64
Windowing System: X11
Distribution: openSUSE Tumbleweed
DrKonqi: 5.24.5 [KCrashBackend]

-- Information about the crash:
- What I was doing when the application crashed:

App started up and prompted to enter a scheduled transaction.
I cancelled that and tried to open a ledger. The app crashed.

The crash can be reproduced every time.

-- Backtrace:
Application: KMyMoney (kmymoney), signal: Aborted

[KCrash Handler]
#4  0x00007eff5e92d6ac in __pthread_kill_implementation () from /lib64/libc.so.6
#5  0x00007eff5e8da6f6 in raise () from /lib64/libc.so.6
#6  0x00007eff5e8c3814 in abort () from /lib64/libc.so.6
#7  0x00007eff5e92079e in __libc_message () from /lib64/libc.so.6
#8  0x00007eff5e9c587a in __fortify_fail () from /lib64/libc.so.6
#9  0x00007eff5e9c3e36 in __chk_fail () from /lib64/libc.so.6
#10 0x00007eff4f089446 in memcpy (__len=3, __src=0x5588c1e9fcc0, __dest=0x5588c1e31930) at /usr/include/bits/string_fortified.h:29
#11 gnutls_realloc_zero (data=0x5588c1e9fcc0, old_size=3, new_size=2) at nettle/init.c:130
#12 0x00007eff5648ea60 in __gmpz_get_str (res_str=<optimized out>, base=<optimized out>, x=<optimized out>) at mpz/get_str.c:111
#13 0x00007eff60f10756 in __gmp_expr<__mpz_struct [1], __mpz_struct [1]>::get_str[abi:cxx11](int) const (base=10, this=0x7ffe24defde0) at /usr/include/gmpxx.h:1702
#14 MyMoneyMoney::formatMoney (this=<optimized out>, currency=..., prec=2, showThousandSeparator=<optimized out>) at /usr/src/debug/kmymoney-5.1.2-3.9.x86_64/kmymoney/mymoney/mymoneymoney.cpp:267
#15 0x00007eff60f10fcd in MyMoneyMoney::formatMoney (this=this@entry=0x7ffe24deffa0, denom=<optimized out>, showThousandSeparator=showThousandSeparator@entry=true) at /usr/src/debug/kmymoney-5.1.2-3.9.x86_64/kmymoney/mymoney/mymoneymoney.cpp:193
#16 0x00005588c0eda108 in KMyMoneyRegister::StdTransaction::registerCellText (this=<optimized out>, txt=..., align=..., row=<optimized out>, col=<optimized out>, painter=<optimized out>) at /usr/src/debug/kmymoney-5.1.2-3.9.x86_64/kmymoney/widgets/stdtransaction.cpp:405
#17 0x00005588c0ed3010 in KMyMoneyRegister::StdTransaction::registerColWidth (this=0x5588c39f15f0, col=6, cellFontMetrics=...) at /usr/src/debug/kmymoney-5.1.2-3.9.x86_64/kmymoney/widgets/stdtransaction.cpp:490
#18 0x00005588c0ecca46 in KMyMoneyRegister::Register::minimumColumnWidth (this=0x5588c201c5b0, col=6) at /usr/src/debug/kmymoney-5.1.2-3.9.x86_64/kmymoney/widgets/register.cpp:903
#19 0x00005588c0f136c5 in KMyMoneyRegister::Register::adjustColumn (col=6, this=0x5588c201c5b0) at /usr/src/debug/kmymoney-5.1.2-3.9.x86_64/kmymoney/widgets/register.cpp:932
#20 KMyMoneyRegister::Register::resize(int, bool) [clone .constprop.0] (this=0x5588c201c5b0, force=<optimized out>, col=4) at /usr/src/debug/kmymoney-5.1.2-3.9.x86_64/kmymoney/widgets/register.cpp:773
#21 0x00007eff5fe3ea43 in QWidget::event (this=this@entry=0x5588c201c5b0, event=event@entry=0x7ffe24df03e0) at kernel/qwidget.cpp:8810
#22 0x00007eff5fee967e in QFrame::event (this=0x5588c201c5b0, e=0x7ffe24df03e0) at widgets/qframe.cpp:550
#23 0x00007eff5f1bd70b in QCoreApplicationPrivate::sendThroughObjectEventFilters (receiver=receiver@entry=0x5588c1e2d2e0, event=event@entry=0x7ffe24df03e0) at kernel/qcoreapplication.cpp:1190
#24 0x00007eff5fdfc36e in QApplicationPrivate::notify_helper (this=<optimized out>, receiver=0x5588c1e2d2e0, e=0x7ffe24df03e0) at kernel/qapplication.cpp:3626
#25 0x00007eff5f1bd988 in QCoreApplication::notifyInternal2 (receiver=0x5588c1e2d2e0, event=0x7ffe24df03e0) at kernel/qcoreapplication.cpp:1064
#26 0x00007eff5fe34db8 in QWidgetPrivate::setGeometry_sys (this=this@entry=0x5588c1fe8dc0, x=2, y=26, w=<optimized out>, h=526, isMove=<optimized out>, isMove@entry=true) at kernel/qwidget.cpp:7126
#27 0x00007eff5fe35d8d in QWidget::setGeometry (this=this@entry=0x5588c1e2d2e0, r=...) at kernel/qwidget.cpp:7014
#28 0x00007eff5feeaa7a in QAbstractScrollAreaPrivate::layoutChildren_helper (this=this@entry=0x5588c1eda100, needHorizontalScrollbar=needHorizontalScrollbar@entry=0x7ffe24df05f6, needVerticalScrollbar=needVerticalScrollbar@entry=0x7ffe24df05f7) at widgets/qabstractscrollarea.cpp:446
#29 0x00007eff5feeafea in QAbstractScrollAreaPrivate::layoutChildren (this=this@entry=0x5588c1eda100) at widgets/qabstractscrollarea.cpp:322
#30 0x00007eff5feec54f in QAbstractScrollArea::event (this=0x5588c201c5b0, e=0x7ffe24df07b0) at widgets/qabstractscrollarea.cpp:936
#31 0x00007eff5fdfc37e in QApplicationPrivate::notify_helper (this=<optimized out>, receiver=0x5588c201c5b0, e=0x7ffe24df07b0) at kernel/qapplication.cpp:3632
#32 0x00007eff5f1bd988 in QCoreApplication::notifyInternal2 (receiver=0x5588c201c5b0, event=0x7ffe24df07b0) at kernel/qcoreapplication.cpp:1064
#33 0x00007eff5fe34db8 in QWidgetPrivate::setGeometry_sys (this=this@entry=0x5588c1eda100, x=0, y=0, w=<optimized out>, h=554, isMove=<optimized out>, isMove@entry=true) at kernel/qwidget.cpp:7126
#34 0x00007eff5fe35d8d in QWidget::setGeometry (this=0x5588c201c5b0, r=...) at kernel/qwidget.cpp:7014
#35 0x00007eff5fe1f58b in QWidget::setGeometry (ah=<optimized out>, aw=<optimized out>, ay=0, ax=0, this=<optimized out>) at ../../include/QtWidgets/../../src/widgets/kernel/qwidget.h:857
#36 QWidgetItem::setGeometry (rect=..., this=0x5588c1e88f50) at kernel/qlayoutitem.cpp:522
#37 QWidgetItem::setGeometry (this=0x5588c1e88f50, rect=...) at kernel/qlayoutitem.cpp:457
#38 0x00007eff5fe15341 in QBoxLayout::setGeometry (this=<optimized out>, r=...) at kernel/qboxlayout.cpp:822
#39 0x00007eff5fe1b9c8 in QLayoutPrivate::doResize (this=0x5588c1abf810) at kernel/qlayout.cpp:594
#40 0x00007eff5fe1cf95 in QLayout::widgetEvent (this=<optimized out>, e=e@entry=0x7ffe24df0ae0) at kernel/qlayout.cpp:617
#41 0x00007eff5fdfc363 in QApplicationPrivate::notify_helper (this=<optimized out>, receiver=0x5588c1f67f40, e=0x7ffe24df0ae0) at kernel/qapplication.cpp:3621
#42 0x00007eff5f1bd988 in QCoreApplication::notifyInternal2 (receiver=0x5588c1f67f40, event=0x7ffe24df0ae0) at kernel/qcoreapplication.cpp:1064
#43 0x00007eff5fe34db8 in QWidgetPrivate::setGeometry_sys (this=this@entry=0x5588c1f872c0, x=0, y=38, w=<optimized out>, h=554, isMove=<optimized out>, isMove@entry=true) at kernel/qwidget.cpp:7126
#44 0x00007eff5fe35d8d in QWidget::setGeometry (this=0x5588c1f67f40, r=...) at kernel/qwidget.cpp:7014
#45 0x00007eff5fe1f58b in QWidget::setGeometry (ah=<optimized out>, aw=<optimized out>, ay=38, ax=0, this=<optimized out>) at ../../include/QtWidgets/../../src/widgets/kernel/qwidget.h:857
#46 QWidgetItem::setGeometry (rect=..., this=0x5588c1e2d220) at kernel/qlayoutitem.cpp:522
#47 QWidgetItem::setGeometry (this=0x5588c1e2d220, rect=...) at kernel/qlayoutitem.cpp:457
#48 0x00007eff5fe15341 in QBoxLayout::setGeometry (this=<optimized out>, r=...) at kernel/qboxlayout.cpp:822
#49 0x00007eff5fe1b9c8 in QLayoutPrivate::doResize (this=this@entry=0x5588c2023630) at kernel/qlayout.cpp:594
#50 0x00007eff5fe1ce0e in QLayout::activate (this=<optimized out>) at kernel/qlayout.cpp:1117
#51 0x00007eff5fe1cfab in QLayout::widgetEvent (this=<optimized out>, e=e@entry=0x7ffe24df0e70) at kernel/qlayout.cpp:619
#52 0x00007eff5fdfc363 in QApplicationPrivate::notify_helper (this=<optimized out>, receiver=0x5588c17b00b0, e=0x7ffe24df0e70) at kernel/qapplication.cpp:3621
#53 0x00007eff5f1bd988 in QCoreApplication::notifyInternal2 (receiver=0x5588c17b00b0, event=0x7ffe24df0e70) at kernel/qcoreapplication.cpp:1064
#54 0x00007eff5fe34db8 in QWidgetPrivate::setGeometry_sys (this=this@entry=0x5588c183a810, x=0, y=0, w=<optimized out>, h=908, isMove=<optimized out>, isMove@entry=true) at kernel/qwidget.cpp:7126
#55 0x00007eff5fe35d8d in QWidget::setGeometry (this=0x5588c17b00b0, r=...) at kernel/qwidget.cpp:7014
#56 0x00007eff5fe1b9c8 in QLayoutPrivate::doResize (this=0x5588c17a7680) at kernel/qlayout.cpp:594
#57 0x00007eff5fe1cf95 in QLayout::widgetEvent (this=<optimized out>, e=e@entry=0x7ffe24df1070) at kernel/qlayout.cpp:617
#58 0x00007eff5fdfc363 in QApplicationPrivate::notify_helper (this=<optimized out>, receiver=0x5588c1840e60, e=0x7ffe24df1070) at kernel/qapplication.cpp:3621
#59 0x00007eff5f1bd988 in QCoreApplication::notifyInternal2 (receiver=0x5588c1840e60, event=0x7ffe24df1070) at kernel/qcoreapplication.cpp:1064
#60 0x00007eff5fe34db8 in QWidgetPrivate::setGeometry_sys (this=this@entry=0x5588c1804450, x=141, y=6, w=<optimized out>, h=908, isMove=<optimized out>, isMove@entry=true) at kernel/qwidget.cpp:7126
#61 0x00007eff5fe35d8d in QWidget::setGeometry (this=0x5588c1840e60, r=...) at kernel/qwidget.cpp:7014
#62 0x00007eff5fe1f58b in QWidget::setGeometry (ah=<optimized out>, aw=<optimized out>, ay=6, ax=141, this=<optimized out>) at ../../include/QtWidgets/../../src/widgets/kernel/qwidget.h:857
#63 QWidgetItem::setGeometry (rect=..., this=0x5588c182cda0) at kernel/qlayoutitem.cpp:522
#64 QWidgetItem::setGeometry (this=0x5588c182cda0, rect=...) at kernel/qlayoutitem.cpp:457
#65 0x00007eff5fe19522 in QGridBox::setGeometry (r=..., this=<optimized out>) at kernel/qgridlayout.cpp:83
#66 QGridLayoutPrivate::distribute (this=this@entry=0x5588c17950c0, r=..., hSpacing=<optimized out>, vSpacing=vSpacing@entry=6) at kernel/qgridlayout.cpp:979
#67 0x00007eff5fe199b2 in QGridLayout::setGeometry (this=0x5588c1840e10, rect=...) at kernel/qgridlayout.cpp:1391
#68 0x00007eff5fe1b9c8 in QLayoutPrivate::doResize (this=this@entry=0x5588c17950c0) at kernel/qlayout.cpp:594
#69 0x00007eff5fe1ce0e in QLayout::activate (this=<optimized out>) at kernel/qlayout.cpp:1117
#70 0x00007eff5fe1cfab in QLayout::widgetEvent (this=<optimized out>, e=e@entry=0x7eff440065f0) at kernel/qlayout.cpp:619
#71 0x00007eff5fdfc363 in QApplicationPrivate::notify_helper (this=<optimized out>, receiver=0x5588c179c540, e=0x7eff440065f0) at kernel/qapplication.cpp:3621
#72 0x00007eff5f1bd988 in QCoreApplication::notifyInternal2 (receiver=0x5588c179c540, event=0x7eff440065f0) at kernel/qcoreapplication.cpp:1064
#73 0x00007eff5f1c0921 in QCoreApplicationPrivate::sendPostedEvents (receiver=0x0, event_type=0, data=0x5588c1239000) at kernel/qcoreapplication.cpp:1821
#74 0x00007eff5f215ec3 in postEventSourceDispatch (s=0x5588c13a0150) at kernel/qeventdispatcher_glib.cpp:277
#75 0x00007eff54d8cda0 in g_main_context_dispatch () from /lib64/libglib-2.0.so.0
#76 0x00007eff54d8d158 in ?? () from /lib64/libglib-2.0.so.0
#77 0x00007eff54d8d1ec in g_main_context_iteration () from /lib64/libglib-2.0.so.0
#78 0x00007eff5f2155a6 in QEventDispatcherGlib::processEvents (this=0x5588c13a4440, flags=...) at kernel/qeventdispatcher_glib.cpp:423
#79 0x00007eff5f1bc3fb in QEventLoop::exec (this=this@entry=0x7ffe24df1650, flags=..., flags@entry=...) at ../../include/QtCore/../../src/corelib/global/qflags.h:69
#80 0x00007eff5f1c4566 in QCoreApplication::exec () at ../../include/QtCore/../../src/corelib/global/qflags.h:121
#81 0x00005588c0d5599a in main (argc=<optimized out>, argv=<optimized out>) at /usr/src/debug/kmymoney-5.1.2-3.9.x86_64/kmymoney/main.cpp:272
[Inferior 1 (process 5723) detached]

Possible duplicates by query: bug 454421, bug 454399, bug 421299, bug 326732, bug 285922.

Reported using DrKonqi
Comment 1 Andrew Kerr 2022-05-27 14:55:43 UTC
Also crashed when I tried to Enter the popped-up scheduled transaction instead of cancelling it.
Comment 2 Jeremy Whiting 2022-05-27 15:01:58 UTC
Yep, another crash from the gnutls regression. Either downgrade your gnutls to any version before 3.7.5 which introduced the regression or get a fix in opensuse 3.7.5 like this one in arch: https://github.com/archlinux/svntogit-packages/commit/cf4d5e8c600e32251eeacbd08c67f78bd4a3adb3 gnutls 3.7.6 will have the same fix, but won't release until July afaict.
Comment 3 Jack 2024-07-06 18:39:59 UTC
Given that gnutls has likely been upgraded since this was reported,  and you should now be using KMM 5.1.3, does this still happen?
Comment 4 Bug Janitor Service 2024-07-21 03:46:18 UTC
Dear Bug Submitter,

This bug has been in NEEDSINFO status with no change for at least
15 days. Please provide the requested information as soon as
possible and set the bug status as REPORTED. Due to regular bug
tracker maintenance, if the bug is still in NEEDSINFO status with
no change in 30 days the bug will be closed as RESOLVED > WORKSFORME
due to lack of needed information.

For more information about our bug triaging procedures please read the
wiki located here:
https://community.kde.org/Guidelines_and_HOWTOs/Bug_triaging

If you have already provided the requested information, please
mark the bug as REPORTED so that the KDE team knows that the bug is
ready to be confirmed.

Thank you for helping us make KDE software even better for everyone!
Comment 5 Bug Janitor Service 2024-08-05 03:46:19 UTC
๐Ÿ›๐Ÿงน This bug has been in NEEDSINFO status with no change for at least 30 days. Closing as RESOLVED WORKSFORME.