[kmymoney] [Bug 453857] New: malloc() aborts during save

Alex Merry bugzilla_noreply at kde.org
Sun May 15 22:39:50 BST 2022


https://bugs.kde.org/show_bug.cgi?id=453857

            Bug ID: 453857
           Summary: malloc() aborts during save
           Product: kmymoney
           Version: 5.1.2
          Platform: Archlinux Packages
                OS: Linux
            Status: REPORTED
          Severity: crash
          Priority: NOR
         Component: general
          Assignee: kmymoney-devel at kde.org
          Reporter: alex.merry at kde.org
  Target Milestone: ---

SUMMARY
***
NOTE: If you are reporting a crash, please try to attach a backtrace with debug
symbols.
See
https://community.kde.org/Guidelines_and_HOWTOs/Debugging/How_to_create_useful_crash_reports
***


STEPS TO REPRODUCE
1. Open an existing KMyMoney file
2. Make a change
3. Press the Save button on the toolbar

OBSERVED RESULT
KMyMoney crashed, and lost the change.

EXPECTED RESULT
The change was saved to the file.

SOFTWARE/OS VERSIONS
Linux/KDE Plasma: ArchLinux
(available in About System)
KDE Plasma Version: 5.24.5
KDE Frameworks Version: 5.94.0
Qt Version: 5.15.4

ADDITIONAL INFORMATION

BACKTRACE
malloc(): corrupted top size

Thread 1 "kmymoney" received signal SIGABRT, Aborted.
__pthread_kill_implementation (threadid=<optimized out>, signo=signo at entry=6,
no_tid=no_tid at entry=0) at pthread_kill.c:44
Downloading 0.00 MB source file /usr/src/debug/glibc/nptl/pthread_kill.c
44            return INTERNAL_SYSCALL_ERROR_P (ret) ? INTERNAL_SYSCALL_ERRNO
(ret) : 0;
gdb$ bt
#0  __pthread_kill_implementation (threadid=<optimized out>,
signo=signo at entry=6, no_tid=no_tid at entry=0) at pthread_kill.c:44
#1  0x00007ffff58563d3 in __pthread_kill_internal (signo=6, threadid=<optimized
out>) at pthread_kill.c:78
#2  0x00007ffff5806838 in __GI_raise (sig=sig at entry=6) at
../sysdeps/posix/raise.c:26
#3  0x00007ffff57f0535 in __GI_abort () at abort.c:79
#4  0x00007ffff584a45e in __libc_message (action=action at entry=do_abort,
fmt=fmt at entry=0x7ffff598883e "%s\n") at ../sysdeps/posix/libc_fatal.c:155
#5  0x00007ffff58600cc in malloc_printerr (str=str at entry=0x7ffff59863de
"malloc(): corrupted top size") at malloc.c:5664
#6  0x00007ffff58638dc in _int_malloc (av=av at entry=0x7ffff59c6bc0 <main_arena>,
bytes=bytes at entry=104) at malloc.c:4373
#7  0x00007ffff5864358 in __GI___libc_malloc (bytes=bytes at entry=104) at
malloc.c:3329
#8  0x00007ffff5b8537d in operator new(unsigned long) (sz=sz at entry=104) at
/usr/src/debug/gcc/libstdc++-v3/libsupc++/new_op.cc:50
#9  0x00007ffff7311c4b in QDomElementPrivate::setAttribute(QString const&,
QString const&) (newValue=..., aname=..., this=0x55555a2cf500) at
dom/qdom.cpp:3960
#10 QDomElementPrivate::setAttribute(QString const&, QString const&)
(this=0x55555a2cf500, aname=..., newValue=...) at dom/qdom.cpp:3956
#11 0x00007fff8dbbfd01 in  () at /usr/lib/qt/plugins/kmymoney/xmlstorage.so
#12 0x00007fff8dbcd51d in  () at /usr/lib/qt/plugins/kmymoney/xmlstorage.so
#13 0x00007fff8dbcc6aa in  () at /usr/lib/qt/plugins/kmymoney/xmlstorage.so
#14 0x00007fff8dbb89d6 in  () at /usr/lib/qt/plugins/kmymoney/xmlstorage.so
#15 0x00007fff8dbb941b in  () at /usr/lib/qt/plugins/kmymoney/xmlstorage.so
#16 0x0000555555649911 in  ()
#17 0x00007ffff60cbc41 in QtPrivate::QSlotObjectBase::call(QObject*, void**)
(a=0x7fffffffd0c0, r=<optimized out>, this=0x55555615cb10, this=<optimized
out>, r=<optimized out>, a=<optimized out>) at
../../include/QtCore/../../src/corelib/kernel/qobjectdefs_impl.h:398
#18 doActivate<false>(QObject*, int, void**) (sender=0x55555615c910,
signal_index=4, argv=0x7fffffffd0c0) at kernel/qobject.cpp:3886
#19 0x00007ffff6b81e07 in QAction::triggered(bool)
(this=this at entry=0x55555615c910, _t1=<optimized out>) at
.moc/moc_qaction.cpp:376
#20 0x00007ffff6b87817 in QAction::activate(QAction::ActionEvent)
(this=0x55555615c910, event=<optimized out>) at kernel/qaction.cpp:1161
#21 0x00007ffff6c764ce in QAbstractButtonPrivate::click() (this=0x555555ed3020)
at widgets/qabstractbutton.cpp:399
#22 0x00007ffff6c766d0 in QAbstractButton::mouseReleaseEvent(QMouseEvent*)
(this=0x555555ed3d20, e=0x7fffffffd650) at widgets/qabstractbutton.cpp:1045
#23 0x00007ffff6d6894f in QToolButton::mouseReleaseEvent(QMouseEvent*)
(this=<optimized out>, e=<optimized out>) at widgets/qtoolbutton.cpp:622
#24 0x00007ffff6bc5677 in QWidget::event(QEvent*) (this=0x555555ed3d20,
event=0x7fffffffd650) at kernel/qwidget.cpp:8659
#25 0x00007ffff6b8ea7c in QApplicationPrivate::notify_helper(QObject*, QEvent*)
(this=this at entry=0x5555559746a0, receiver=receiver at entry=0x555555ed3d20,
e=e at entry=0x7fffffffd650) at kernel/qapplication.cpp:3637
#26 0x00007ffff6b94289 in QApplication::notify(QObject*, QEvent*)
(this=<optimized out>, receiver=<optimized out>, e=0x7fffffffd650) at
kernel/qapplication.cpp:3081
#27 0x00007ffff609b4a8 in QCoreApplication::notifyInternal2(QObject*, QEvent*)
(receiver=0x555555ed3d20, event=0x7fffffffd650) at
kernel/qcoreapplication.cpp:1064
#28 0x00007ffff6b92287 in QApplicationPrivate::sendMouseEvent(QWidget*,
QMouseEvent*, QWidget*, QWidget*, QWidget**, QPointer<QWidget>&, bool, bool)
(receiver=0x555555ed3d20, event=0x7fffffffd650, alienWidget=<optimized out>,
nativeWidget=0x555555ece6d0, buttonDown=<optimized out>, lastMouseReceiver=...,
spontaneous=true, onlyDispatchEnterLeave=false) at kernel/qapplication.cpp:2619
#29 0x00007ffff6be3345 in QWidgetWindow::handleMouseEvent(QMouseEvent*)
(this=0x5555561a8360, event=0x7fffffffd9b0) at kernel/qwidgetwindow.cpp:683
#30 0x00007ffff6be50ee in QWidgetWindow::event(QEvent*) (this=0x5555561a8360,
event=0x7fffffffd9b0) at kernel/qwidgetwindow.cpp:300
#31 0x00007ffff6b8ea7c in QApplicationPrivate::notify_helper(QObject*, QEvent*)
(this=<optimized out>, receiver=0x5555561a8360, e=0x7fffffffd9b0) at
kernel/qapplication.cpp:3637
#32 0x00007ffff609b4a8 in QCoreApplication::notifyInternal2(QObject*, QEvent*)
(receiver=0x5555561a8360, event=0x7fffffffd9b0) at
kernel/qcoreapplication.cpp:1064
#33 0x00007ffff64eef8c in
QGuiApplicationPrivate::processMouseEvent(QWindowSystemInterfacePrivate::MouseEvent*)
(e=0x5555599c22e0) at kernel/qguiapplication.cpp:2282
#34 0x00007ffff64d88e5 in
QWindowSystemInterface::sendWindowSystemEvents(QFlags<QEventLoop::ProcessEventsFlag>)
(flags=flags at entry=...) at kernel/qwindowsysteminterface.cpp:1169
#35 0x00007fffda090de0 in xcbSourceDispatch(GSource*, GSourceFunc, gpointer)
(source=<optimized out>) at
/usr/src/debug/qtbase/src/plugins/platforms/xcb/qxcbeventdispatcher.cpp:105
#36 0x00007fffebaf3163 in g_main_dispatch (context=0x7fffd4005010) at
../glib/glib/gmain.c:3417
#37 g_main_context_dispatch (context=0x7fffd4005010) at
../glib/glib/gmain.c:4135
#38 0x00007fffebb499e9 in g_main_context_iterate.constprop.0
(context=context at entry=0x7fffd4005010, block=block at entry=1,
dispatch=dispatch at entry=1, self=<optimized out>) at ../glib/glib/gmain.c:4211
#39 0x00007fffebaf06c5 in g_main_context_iteration (context=0x7fffd4005010,
may_block=1) at ../glib/glib/gmain.c:4276
#40 0x00007ffff60e5c6c in
QEventDispatcherGlib::processEvents(QFlags<QEventLoop::ProcessEventsFlag>)
(this=0x555555a4a500, flags=...) at kernel/qeventdispatcher_glib.cpp:423
#41 0x00007ffff6093c5c in
QEventLoop::exec(QFlags<QEventLoop::ProcessEventsFlag>) (this=0x7fffffffdd40,
flags=...) at ../../include/QtCore/../../src/corelib/global/qflags.h:69
#42 0x00007ffff609e759 in QCoreApplication::exec() () at
../../include/QtCore/../../src/corelib/global/qflags.h:121
#43 0x000055555562cc8d in  ()
#44 0x00007ffff57f1290 in __libc_start_call_main
(main=main at entry=0x55555562a990, argc=argc at entry=1,
argv=argv at entry=0x7fffffffe398) at ../sysdeps/nptl/libc_start_call_main.h:58
#45 0x00007ffff57f134a in __libc_start_main_impl (main=0x55555562a990, argc=1,
argv=0x7fffffffe398, init=<optimized out>, fini=<optimized out>,
rtld_fini=<optimized out>, stack_end=0x7fffffffe388) at ../csu/libc-start.c:392
#46 0x000055555562e765 in  ()

-- 
You are receiving this mail because:
You are the assignee for the bug.


More information about the KMyMoney-devel mailing list