Summary: | malloc() aborts during save | ||
---|---|---|---|
Product: | [Applications] kmymoney | Reporter: | Alex Merry <alex.merry> |
Component: | general | Assignee: | KMyMoney Devel Mailing List <kmymoney-devel> |
Status: | RESOLVED UPSTREAM | ||
Severity: | crash | CC: | account-kde, andreas_barth, dev+kde, diortega9, dvdmerwe, gdavies, gicolwill, hc6505, jpwhiting, kde-bugs, kdebugs, lanvag, thrym+kde, vicentejorgester |
Priority: | NOR | ||
Version: | 5.1.2 | ||
Target Milestone: | --- | ||
Platform: | Arch Linux | ||
OS: | Linux | ||
See Also: | https://bugs.kde.org/show_bug.cgi?id=454485 | ||
Latest Commit: | Version Fixed In: | ||
Sentry Crash Report: |
Description
Alex Merry
2022-05-15 21:39:50 UTC
I have the same problem, similar configuration using Arch Linux. Errors with free(): invalid next size (fast) -> when file is saved after edits malloc(): unaligned tcache chunk detected -> if bank statements are updated via HBCI. (In reply to kde-bugs from comment #1) > I have the same problem, similar configuration using Arch Linux. > > Errors with > > free(): invalid next size (fast) -> when file is saved after edits > malloc(): unaligned tcache chunk detected -> if bank statements are updated > via HBCI. GDB backtrace for the saving issue: kmymoney: malloc.c:2617: sysmalloc: Assertion `(old_top == initial_top (av) && old_size == 0) || ((unsigned long) (old_size) >= MINSIZE && prev_inuse (old_top) && ((unsigned long) old_end & (pagesize - 1)) == 0)' failed. Thread 1 "kmymoney" received signal SIGABRT, Aborted. 0x00007ffff583c36c in ?? () from /usr/lib/libc.so.6 [ Legend: Modified register | Code | Heap | Stack | String ] ───────────────────────────────────────────────────────── registers ──── $rax : 0x0 $rbx : 0x125ae $rcx : 0x007ffff583c36c → mov ebp, eax $rdx : 0x6 $rsp : 0x007fffffffc290 → 0x007fffffffc330 → 0x0000000000000018 $rbp : 0x007fffda4bb180 → 0x007fffda4bb180 → [loop detected] $rsi : 0x125ae $rdi : 0x125ae $rip : 0x007ffff583c36c → mov ebp, eax $r8 : 0x0 $r9 : 0x73 $r10 : 0x8 $r11 : 0x246 $r12 : 0x6 $r13 : 0x1000 $r14 : 0xffffffffffffff28 $r15 : 0x0 $eflags: [ZERO carry PARITY adjust sign trap INTERRUPT direction overflow resume virtualx86 identification] $cs: 0x33 $ss: 0x2b $ds: 0x00 $es: 0x00 $fs: 0x00 $gs: 0x00 ───────────────────────────────────────────────────────────── stack ──── 0x007fffffffc290│+0x0000: 0x007fffffffc330 → 0x0000000000000018 ← $rsp 0x007fffffffc298│+0x0008: 0x00555557fd4963 → 0x90cdba0000000555 0x007fffffffc2a0│+0x0010: 0x0000000000000a ("\n"?) 0x007fffffffc2a8│+0x0018: 0x00555557fd4963 → 0x90cdba0000000555 0x007fffffffc2b0│+0x0020: 0x0000000000000000 0x007fffffffc2b8│+0x0028: 0xe4e9690ba17ade00 0x007fffffffc2c0│+0x0030: 0x0000000000000005 0x007fffffffc2c8│+0x0038: 0xe4e9690ba17ade00 ─────────────────────────────────────────────────────── code:x86:64 ──── 0x7ffff583c363 mov edi, eax 0x7ffff583c365 mov eax, 0xea 0x7ffff583c36a syscall → 0x7ffff583c36c mov ebp, eax 0x7ffff583c36e neg ebp 0x7ffff583c370 cmp eax, 0xfffff000 0x7ffff583c375 mov eax, 0x0 0x7ffff583c37a cmova eax, ebp 0x7ffff583c37d jmp 0x7ffff583c2f2 ─────────────────────────────────────────────────────────── threads ──── [#0] Id 1, Name: "kmymoney", stopped 0x7ffff583c36c in ?? (), reason: SIGABRT [#1] Id 2, Name: "QXcbEventQueue", stopped 0x7ffff58b3faf in poll (), reason: SIGABRT [#2] Id 3, Name: "kmymone:disk$0", stopped 0x7ffff5837119 in ?? (), reason: SIGABRT [#3] Id 4, Name: "kmymoney:sh0", stopped 0x7ffff5837119 in ?? (), reason: SIGABRT [#4] Id 5, Name: "kmymoney:sh1", stopped 0x7ffff5837119 in ?? (), reason: SIGABRT [#5] Id 6, Name: "kmymoney:sh2", stopped 0x7ffff5837119 in ?? (), reason: SIGABRT [#6] Id 7, Name: "kmymoney:gdrv0", stopped 0x7ffff5837119 in ?? (), reason: SIGABRT [#7] Id 8, Name: "Thread (pooled)", stopped 0x7ffff5837119 in ?? (), reason: SIGABRT [#8] Id 9, Name: "Thread (pooled)", stopped 0x7ffff5837119 in ?? (), reason: SIGABRT [#9] Id 10, Name: "Thread (pooled)", stopped 0x7ffff5837119 in ?? (), reason: SIGABRT [#10] Id 11, Name: "Thread (pooled)", stopped 0x7ffff5837119 in ?? (), reason: SIGABRT [#11] Id 12, Name: "QDBusConnection", stopped 0x7ffff58b3faf in poll (), reason: SIGABRT [#12] Id 14, Name: "sandbox_ipc_thr", stopped 0x7ffff58b3faf in poll (), reason: SIGABRT [#13] Id 15, Name: "kmymoney", stopped 0x7ffff588af9f in wait4 (), reason: SIGABRT [#14] Id 16, Name: "ThreadPoolServi", stopped 0x7ffff58bff3e in epoll_wait (), reason: SIGABRT [#15] Id 17, Name: "ThreadPoolForeg", stopped 0x7ffff5837119 in ?? (), reason: SIGABRT [#16] Id 18, Name: "Chrome_IOThread", stopped 0x7ffff58bff3e in epoll_wait (), reason: SIGABRT [#17] Id 19, Name: "ThreadPoolForeg", stopped 0x7ffff5837119 in ?? (), reason: SIGABRT [#18] Id 20, Name: "ThreadPoolForeg", stopped 0x7ffff5837119 in ?? (), reason: SIGABRT [#19] Id 21, Name: "ThreadPoolForeg", stopped 0x7ffff5837119 in ?? (), reason: SIGABRT [#20] Id 22, Name: "ThreadPoolForeg", stopped 0x7ffff5837119 in ?? (), reason: SIGABRT [#21] Id 23, Name: "CompositorTileW", stopped 0x7ffff5837119 in ?? (), reason: SIGABRT [#22] Id 24, Name: "inotify_reader", stopped 0x7ffff58b67ec in select (), reason: SIGABRT [#23] Id 25, Name: "Chrome_InProcGp", stopped 0x7ffff5837119 in ?? (), reason: SIGABRT [#24] Id 26, Name: "VideoCaptureThr", stopped 0x7ffff5837119 in ?? (), reason: SIGABRT [#25] Id 27, Name: "Chrome_ChildIOT", stopped 0x7ffff58bff3e in epoll_wait (), reason: SIGABRT [#26] Id 30, Name: "VizCompositorTh", stopped 0x7ffff5837119 in ?? (), reason: SIGABRT [#27] Id 31, Name: "kmymoney:gdrv0", stopped 0x7ffff5837119 in ?? (), reason: SIGABRT [#28] Id 32, Name: "NetworkService", stopped 0x7ffff58bff3e in epoll_wait (), reason: SIGABRT [#29] Id 33, Name: "CacheThread_Blo", stopped 0x7ffff58bff3e in epoll_wait (), reason: SIGABRT [#30] Id 34, Name: "ThreadPoolSingl", stopped 0x7ffff5837119 in ?? (), reason: SIGABRT [#31] Id 35, Name: "kmymoney:gdrv0", stopped 0x7ffff5837119 in ?? (), reason: SIGABRT [#32] Id 36, Name: "kmymoney:gdrv0", stopped 0x7ffff5837119 in ?? (), reason: SIGABRT [#33] Id 37, Name: "kmymoney:gdrv0", stopped 0x7ffff5837119 in ?? (), reason: SIGABRT [#34] Id 38, Name: "kmymoney:gdrv0", stopped 0x7ffff5837119 in ?? (), reason: SIGABRT [#35] Id 39, Name: "kmymoney:gdrv0", stopped 0x7ffff5837119 in ?? (), reason: SIGABRT [#36] Id 40, Name: "MemoryInfra", stopped 0x7ffff5837119 in ?? (), reason: SIGABRT [#37] Id 41, Name: "ThreadPoolSingl", stopped 0x7ffff5837119 in ?? (), reason: SIGABRT [#38] Id 42, Name: "kmymoney:gdrv0", stopped 0x7ffff5837119 in ?? (), reason: SIGABRT ───────────────────────────────────────────────────────────── trace ──── [#0] 0x7ffff583c36c → mov ebp, eax [#1] 0x7ffff57ec838 → raise() [#2] 0x7ffff57d6535 → abort() [#3] 0x7ffff584628d → nop DWORD PTR [rax] [#4] 0x7ffff5848c62 → addr32 call 0x7ffff58cf600 <__stack_chk_fail> [#5] 0x7ffff5849a5a → mov rcx, rax [#6] 0x7ffff584a358 → malloc() [#7] 0x7ffff5ede6c4 → QArrayData::allocate(unsigned long, unsigned long, unsigned long, QFlags<QArrayData::AllocationOption>)() [#8] 0x7ffff5f5685f → QString::fromLatin1_helper(char const*, int)() [#9] 0x7ffff7a9a510 → AlkValue::toString() const() additional trace: #0 0x00007ffff583c36c in () at /usr/lib/libc.so.6 #1 0x00007ffff57ec838 in raise () at /usr/lib/libc.so.6 #2 0x00007ffff57d6535 in abort () at /usr/lib/libc.so.6 #3 0x00007ffff584628d in () at /usr/lib/libc.so.6 #4 0x00007ffff5848c62 in () at /usr/lib/libc.so.6 #5 0x00007ffff5849a5a in () at /usr/lib/libc.so.6 #6 0x00007ffff584a358 in malloc () at /usr/lib/libc.so.6 #7 0x00007ffff5ede6c4 in QArrayData::allocate(unsigned long, unsigned long, unsigned long, QFlags<QArrayData::AllocationOption>) () at /usr/lib/libQt5Core.so.5 #8 0x00007ffff5f5685f in QString::fromLatin1_helper(char const*, int) () at /usr/lib/libQt5Core.so.5 #9 0x00007ffff7a9a510 in AlkValue::toString() const () at /usr/lib/libalkimia5.so.8 #10 0x00007fffa150ece5 in () at /usr/lib/qt/plugins/kmymoney/xmlstorage.so #11 0x00007fffa151c51d in () at /usr/lib/qt/plugins/kmymoney/xmlstorage.so #12 0x00007fffa151b6aa in () at /usr/lib/qt/plugins/kmymoney/xmlstorage.so #13 0x00007fffa15079d6 in () at /usr/lib/qt/plugins/kmymoney/xmlstorage.so #14 0x00007fffa150841b in () at /usr/lib/qt/plugins/kmymoney/xmlstorage.so #15 0x0000555555649911 in () #16 0x00007ffff60b1c41 in () at /usr/lib/libQt5Core.so.5 #17 0x00007ffff6b67e07 in QAction::triggered(bool) () at /usr/lib/libQt5Widgets.so.5 #18 0x00007ffff6b6d817 in QAction::activate(QAction::ActionEvent) () at /usr/lib/libQt5Widgets.so.5 #19 0x00007ffff6c5c4ce in () at /usr/lib/libQt5Widgets.so.5 #20 0x00007ffff6c5c6d0 in QAbstractButton::mouseReleaseEvent(QMouseEvent*) () at /usr/lib/libQt5Widgets.so.5 #21 0x00007ffff6d4e94f in QToolButton::mouseReleaseEvent(QMouseEvent*) () at /usr/lib/libQt5Widgets.so.5 #22 0x00007ffff6bab677 in QWidget::event(QEvent*) () at /usr/lib/libQt5Widgets.so.5 #23 0x00007ffff6b74a7c in QApplicationPrivate::notify_helper(QObject*, QEvent*) () at /usr/lib/libQt5Widgets.so.5 #24 0x00007ffff6b7a289 in QApplication::notify(QObject*, QEvent*) () at /usr/lib/libQt5Widgets.so.5 #25 0x00007ffff60814a8 in QCoreApplication::notifyInternal2(QObject*, QEvent*) () at /usr/lib/libQt5Core.so.5 #26 0x00007ffff6b78287 in QApplicationPrivate::sendMouseEvent(QWidget*, QMouseEvent*, QWidget*, QWidget*, QWidget**, QPointer<QWidget>&, bool, bool) () at /usr/lib/libQt5Widgets.so.5 #27 0x00007ffff6bc9345 in () at /usr/lib/libQt5Widgets.so.5 #28 0x00007ffff6bcb0ee in () at /usr/lib/libQt5Widgets.so.5 #29 0x00007ffff6b74a7c in QApplicationPrivate::notify_helper(QObject*, QEvent*) () at /usr/lib/libQt5Widgets.so.5 #30 0x00007ffff60814a8 in QCoreApplication::notifyInternal2(QObject*, QEvent*) () at /usr/lib/libQt5Core.so.5 #31 0x00007ffff64d4f8c in QGuiApplicationPrivate::processMouseEvent(QWindowSystemInterfacePrivate::MouseEvent*) () at /usr/lib/libQt5Gui.so.5 #32 0x00007ffff64be8e5 in QWindowSystemInterface::sendWindowSystemEvents(QFlags<QEventLoop::ProcessEventsFlag>) () at /usr/lib/libQt5Gui.so.5 #33 0x00007fffd9fb5de0 in () at /usr/lib/libQt5XcbQpa.so.5 #34 0x00007fffebad9163 in g_main_context_dispatch () at /usr/lib/libglib-2.0.so.0 #35 0x00007fffebb2f9e9 in () at /usr/lib/libglib-2.0.so.0 #36 0x00007fffebad66c5 in g_main_context_iteration () at /usr/lib/libglib-2.0.so.0 #37 0x00007ffff60cbc6c in QEventDispatcherGlib::processEvents(QFlags<QEventLoop::ProcessEventsFlag>) () at /usr/lib/libQt5Core.so.5 #38 0x00007ffff6079c5c in QEventLoop::exec(QFlags<QEventLoop::ProcessEventsFlag>) () at /usr/lib/libQt5Core.so.5 #39 0x00007ffff6084759 in QCoreApplication::exec() () at /usr/lib/libQt5Core.so.5 #40 0x000055555562cc8d in () #41 0x00007ffff57d7290 in () at /usr/lib/libc.so.6 #42 0x00007ffff57d734a in __libc_start_main () at /usr/lib/libc.so.6 #43 0x000055555562e765 in () Same issue for me. Also on Arch Linux with the same version scheme. *** Bug 453896 has been marked as a duplicate of this bug. *** *** Bug 454078 has been marked as a duplicate of this bug. *** *** Bug 454134 has been marked as a duplicate of this bug. *** Having same issue on Manjaro KDE as of 25 May 2022. Can't add any new transactions, and even editing an existing transaction, results in the crash after trying to save. Can't use app right now. I did upgrade KDE yesterday but have rebooted since and other apps are all stable. Yeah, it's only programs that use gmp for multi precision math and also use gnutls 3.7.5. A fix has been merged for 3.7.6 but not sure when that will be released. Downgrading gnutls back to 3.7.4 will fix it. We may be able to get the patch into a new gnutls 3.7.5 package (I've got the same here on arch, which works well) to get around it until 3.7.6 is released. (In reply to Jeremy Whiting from comment #9) > Yeah, it's only programs that use gmp for multi precision math and also use > gnutls 3.7.5. A fix has been merged for 3.7.6 but not sure when that will be > released. Downgrading gnutls back to 3.7.4 will fix it. We may be able to > get the patch into a new gnutls 3.7.5 package (I've got the same here on > arch, which works well) to get around it until 3.7.6 is released. Perfect thanks that has worked for me for now at least. I'm no longer seeing the crash after updating gnutls 3.7.5-1 to 3.7.5-2 on Arch. Solved, updating gnutls 3.7.5-1 to 3.7.5-2 on Arch *** Bug 454421 has been marked as a duplicate of this bug. *** *** Bug 454821 has been marked as a duplicate of this bug. *** Is it time to close this? Not sure whether to call it Upstream or Downstream, since the problem was not in KMyMoney itself, but in a combination of libraries we call. |