Bug 453722 - KAddressBook crashes afer adding a custon property to contacts
Summary: KAddressBook crashes afer adding a custon property to contacts
Status: RESOLVED FIXED
Alias: None
Product: kaddressbook
Classification: Applications
Component: general (show other bugs)
Version: unspecified
Platform: Mageia RPMs Linux
: NOR crash
Target Milestone: ---
Assignee: kdepim bugs
URL:
Keywords: drkonqi
Depends on:
Blocks:
 
Reported: 2022-05-12 21:53 UTC by andrew brewster
Modified: 2023-04-27 21:51 UTC (History)
2 users (show)

See Also:
Latest Commit:
Version Fixed In: 21.04.0


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description andrew brewster 2022-05-12 21:53:03 UTC
Application: kaddressbook (5.16.0 (20.07.90))

Qt Version: 5.15.2
Frameworks Version: 5.76.0
Operating System: Linux 5.15.35-desktop-2.mga8 x86_64
Windowing system: X11
Distribution: "Mageia 8"

-- Information about the crash:
- What I was doing when the application crashed:
Updating the value of a custon property for a contact (Boolean) , after adding the property to the first contact in an address book and setting it to apply to all contacts

- Custom settings of the application:
Custom property for a contact

-- Backtrace:
Application: KAddressBook (kaddressbook), signal: Segmentation fault

[KCrash Handler]
#4  0x00007f3a0575023c in std::swap<QTypedArrayData<unsigned short>*> (__b=@0x7ffc8dc45398: 0x1f3c6e0, __a=@0x7f3a04331950: 0x0) at /usr/include/c++/10/bits/move.h:198
#5  qSwap<QTypedArrayData<unsigned short>*> (value2=@0x7ffc8dc45398: 0x1f3c6e0, value1=@0x7f3a04331950: 0x0) at /usr/include/qt5/QtCore/qglobal.h:969
#6  QString::operator= (other=..., this=0x7f3a04331950 <qt_array+48>) at /usr/include/qt5/QtCore/qstring.h:275
#7  ContactInfoProxyModel::slotItemChanged (this=0x1a9f560, item=..., partIdentifiers=...) at /usr/src/debug/kaddressbook-20.12.0-1.mga8.x86_64/src/contactinfoproxymodel.cpp:333
#8  0x00007f3a04287a74 in QtPrivate::QSlotObjectBase::call (a=0x7ffc8dc454e0, r=0x1a9f560, this=0x7f39f0021ed0) at ../../include/QtCore/../../src/corelib/kernel/qobjectdefs_impl.h:398
#9  doActivate<false> (sender=0x1aab6f0, signal_index=3, argv=argv@entry=0x7ffc8dc454e0) at kernel/qobject.cpp:3886
#10 0x00007f3a042811b0 in QMetaObject::activate (sender=<optimized out>, m=m@entry=0x7f3a0355cfc0 <Akonadi::Monitor::staticMetaObject>, local_signal_index=local_signal_index@entry=0, argv=argv@entry=0x7ffc8dc454e0) at kernel/qobject.cpp:3946
#11 0x00007f3a0343a0d7 in Akonadi::Monitor::itemChanged (this=<optimized out>, _t1=..., _t2=...) at /usr/src/debug/akonadi-20.12.0-1.mga8.x86_64/build/src/core/KF5AkonadiCore_autogen/include/moc_monitor.cpp:864
#12 0x00007f3a0344921d in Akonadi::MonitorPrivate::emitToListeners<void (Akonadi::Monitor::*)(Akonadi::Item const&, QSet<QByteArray> const&), Akonadi::Item, QSet<QByteArray> > (signal=<optimized out>, this=0x1a54f80) at /usr/src/debug/akonadi-20.12.0-1.mga8.x86_64/src/core/monitor_p.h:391
#13 Akonadi::MonitorPrivate::emitItemsNotification (this=0x1a54f80, msg=..., items=..., collection=..., collectionDest=...) at /usr/src/debug/akonadi-20.12.0-1.mga8.x86_64/src/core/monitor_p.cpp:1046
#14 0x00007f3a0344a58a in Akonadi::MonitorPrivate::emitNotification (this=<optimized out>, msg=...) at /usr/src/debug/akonadi-20.12.0-1.mga8.x86_64/src/core/monitor_p.cpp:537
#15 0x00007f3a034477ec in Akonadi::MonitorPrivate::dispatchNotifications (this=0x1a54f80) at /usr/src/debug/akonadi-20.12.0-1.mga8.x86_64/src/core/monitor_p.cpp:982
#16 0x00007f3a03447a59 in Akonadi::MonitorPrivate::slotNotify (this=0x1a54f80, msg=...) at /usr/src/debug/akonadi-20.12.0-1.mga8.x86_64/src/core/monitor_p.cpp:951
#17 0x00007f3a0344aa94 in Akonadi::MonitorPrivate::handleCommands (this=0x1a54f80) at /usr/src/debug/akonadi-20.12.0-1.mga8.x86_64/src/core/monitor_p.cpp:846
#18 0x00007f3a0427deec in QObject::event (this=0x1aab6f0, e=0x2016160) at kernel/qobject.cpp:1314
#19 0x00007f3a04d92b1f in QApplicationPrivate::notify_helper (this=<optimized out>, receiver=0x1aab6f0, e=0x2016160) at kernel/qapplication.cpp:3632
#20 0x00007f3a04252daa in QCoreApplication::notifyInternal2 (receiver=0x1aab6f0, event=0x2016160) at kernel/qcoreapplication.cpp:1063
#21 0x00007f3a04255ab5 in QCoreApplicationPrivate::sendPostedEvents (receiver=0x0, event_type=0, data=0x14806d0) at kernel/qcoreapplication.cpp:1817
#22 0x00007f3a042a80e3 in postEventSourceDispatch (s=s@entry=0x14f4340) at kernel/qeventdispatcher_glib.cpp:277
#23 0x00007f3a01e689be in g_main_dispatch (context=0x7f39f8005000) at ../glib/gmain.c:3325
#24 g_main_context_dispatch (context=0x7f39f8005000) at ../glib/gmain.c:4043
#25 0x00007f3a01e68d18 in g_main_context_iterate (context=context@entry=0x7f39f8005000, block=block@entry=1, dispatch=dispatch@entry=1, self=<optimized out>) at ../glib/gmain.c:4119
#26 0x00007f3a01e68dbf in g_main_context_iteration (context=0x7f39f8005000, may_block=may_block@entry=1) at ../glib/gmain.c:4184
#27 0x00007f3a042a77a0 in QEventDispatcherGlib::processEvents (this=0x14f3d40, flags=...) at kernel/qeventdispatcher_glib.cpp:423
#28 0x00007f3a0425193b in QEventLoop::exec (this=this@entry=0x7ffc8dc45c80, flags=..., flags@entry=...) at ../../include/QtCore/../../src/corelib/global/qflags.h:69
#29 0x00007f3a042595a2 in QCoreApplication::exec () at ../../include/QtCore/../../src/corelib/global/qflags.h:121
#30 0x0000000000406d76 in main (argc=<optimized out>, argv=<optimized out>) at /usr/src/debug/kaddressbook-20.12.0-1.mga8.x86_64/src/main.cpp:86
[Inferior 1 (process 692737) detached]

Possible duplicates by query: bug 444534, bug 435992, bug 434725, bug 429420, bug 427021.

Reported using DrKonqi
Comment 1 Carl Schwan 2023-04-27 21:51:11 UTC
The code which created this crash was completely rewritten not long ago with a commit called "Fix ContactInfoProxyModel" which I hope fixes your bug. Please make sure to run the latest version ;)