Bug 444543

Summary: KOrganizer crashes when adding new event
Product: [Applications] korganizer Reporter: mippo <mippo9>
Component: generalAssignee: kdepim bugs <kdepim-bugs>
Status: RESOLVED DUPLICATE    
Severity: crash CC: dvratil, support, szotsaki
Priority: NOR Keywords: drkonqi
Version: unspecified   
Target Milestone: ---   
Platform: Neon   
OS: Linux   
Latest Commit: Version Fixed In:
Sentry Crash Report:
Attachments: New crash information added by DrKonqi

Description mippo 2021-10-28 14:06:30 UTC
Application: korganizer (5.18.2 (21.08.2))

Qt Version: 5.15.3
Frameworks Version: 5.87.0
Operating System: Linux 5.11.0-38-generic x86_64
Windowing System: X11
Distribution: KDE neon User - Plasma 25th Anniversary Edition
DrKonqi: 5.23.2 [KCrashBackend]

-- Information about the crash:
- What I was doing when the application crashed:
I was just adding a new event, usingthe default calendar, the first one of the list

The crash can be reproduced sometimes.

-- Backtrace:
Application: KOrganizer (korganizer), signal: Segmentation fault

[New LWP 1823]
[New LWP 1828]
[New LWP 1834]
[New LWP 1838]
[New LWP 1886]
[New LWP 1887]
[New LWP 1888]
[New LWP 1889]
[Thread debugging using libthread_db enabled]
Using host libthread_db library "/lib/x86_64-linux-gnu/libthread_db.so.1".
0x00007f3c78406aff in __GI___poll (fds=0x7ffe95d60ef8, nfds=1, timeout=1000) at ../sysdeps/unix/sysv/linux/poll.c:29
__preamble__
[Current thread is 1 (Thread 0x7f3c71386bc0 (LWP 1821))]

Thread 9 (Thread 0x7f3c5d6e9700 (LWP 1889)):
#0  futex_wait_cancelable (private=<optimized out>, expected=0, futex_word=0x556c737a0838) at ../sysdeps/nptl/futex-internal.h:183
#1  __pthread_cond_wait_common (abstime=0x0, clockid=0, mutex=0x556c737a07e8, cond=0x556c737a0810) at pthread_cond_wait.c:508
#2  __pthread_cond_wait (cond=0x556c737a0810, mutex=0x556c737a07e8) at pthread_cond_wait.c:647
#3  0x00007f3c5e833e7b in ?? () from /usr/lib/x86_64-linux-gnu/dri/iris_dri.so
#4  0x00007f3c5e833a7b in ?? () from /usr/lib/x86_64-linux-gnu/dri/iris_dri.so
#5  0x00007f3c7690f609 in start_thread (arg=<optimized out>) at pthread_create.c:477
#6  0x00007f3c78413293 in clone () at ../sysdeps/unix/sysv/linux/x86_64/clone.S:95

Thread 8 (Thread 0x7f3c5deea700 (LWP 1888)):
#0  futex_wait_cancelable (private=<optimized out>, expected=0, futex_word=0x556c737a0838) at ../sysdeps/nptl/futex-internal.h:183
#1  __pthread_cond_wait_common (abstime=0x0, clockid=0, mutex=0x556c737a07e8, cond=0x556c737a0810) at pthread_cond_wait.c:508
#2  __pthread_cond_wait (cond=0x556c737a0810, mutex=0x556c737a07e8) at pthread_cond_wait.c:647
#3  0x00007f3c5e833e7b in ?? () from /usr/lib/x86_64-linux-gnu/dri/iris_dri.so
#4  0x00007f3c5e833a7b in ?? () from /usr/lib/x86_64-linux-gnu/dri/iris_dri.so
#5  0x00007f3c7690f609 in start_thread (arg=<optimized out>) at pthread_create.c:477
#6  0x00007f3c78413293 in clone () at ../sysdeps/unix/sysv/linux/x86_64/clone.S:95

Thread 7 (Thread 0x7f3c5e6eb700 (LWP 1887)):
#0  futex_wait_cancelable (private=<optimized out>, expected=0, futex_word=0x556c737a0838) at ../sysdeps/nptl/futex-internal.h:183
#1  __pthread_cond_wait_common (abstime=0x0, clockid=0, mutex=0x556c737a07e8, cond=0x556c737a0810) at pthread_cond_wait.c:508
#2  __pthread_cond_wait (cond=0x556c737a0810, mutex=0x556c737a07e8) at pthread_cond_wait.c:647
#3  0x00007f3c5e833e7b in ?? () from /usr/lib/x86_64-linux-gnu/dri/iris_dri.so
#4  0x00007f3c5e833a7b in ?? () from /usr/lib/x86_64-linux-gnu/dri/iris_dri.so
#5  0x00007f3c7690f609 in start_thread (arg=<optimized out>) at pthread_create.c:477
#6  0x00007f3c78413293 in clone () at ../sysdeps/unix/sysv/linux/x86_64/clone.S:95

Thread 6 (Thread 0x7f3c6ce4c700 (LWP 1886)):
#0  futex_wait_cancelable (private=<optimized out>, expected=0, futex_word=0x556c737a0838) at ../sysdeps/nptl/futex-internal.h:183
#1  __pthread_cond_wait_common (abstime=0x0, clockid=0, mutex=0x556c737a07e8, cond=0x556c737a0810) at pthread_cond_wait.c:508
#2  __pthread_cond_wait (cond=0x556c737a0810, mutex=0x556c737a07e8) at pthread_cond_wait.c:647
#3  0x00007f3c5e833e7b in ?? () from /usr/lib/x86_64-linux-gnu/dri/iris_dri.so
#4  0x00007f3c5e833a7b in ?? () from /usr/lib/x86_64-linux-gnu/dri/iris_dri.so
#5  0x00007f3c7690f609 in start_thread (arg=<optimized out>) at pthread_create.c:477
#6  0x00007f3c78413293 in clone () at ../sysdeps/unix/sysv/linux/x86_64/clone.S:95

Thread 5 (Thread 0x7f3c6dda5700 (LWP 1838)):
#0  0x00007f3c75e05508 in g_mutex_unlock () from /usr/lib/x86_64-linux-gnu/libglib-2.0.so.0
#1  0x00007f3c75db78e1 in g_main_context_prepare () from /usr/lib/x86_64-linux-gnu/libglib-2.0.so.0
#2  0x00007f3c75db829b in ?? () from /usr/lib/x86_64-linux-gnu/libglib-2.0.so.0
#3  0x00007f3c75db84a3 in g_main_context_iteration () from /usr/lib/x86_64-linux-gnu/libglib-2.0.so.0
#4  0x00007f3c789ef61b in QEventDispatcherGlib::processEvents (this=0x7f3c58000b60, flags=...) at kernel/qeventdispatcher_glib.cpp:425
#5  0x00007f3c789938ab in QEventLoop::exec (this=this@entry=0x7f3c6dda49e0, flags=..., flags@entry=...) at ../../include/QtCore/../../src/corelib/global/qflags.h:141
#6  0x00007f3c787ad2c2 in QThread::exec (this=<optimized out>) at ../../include/QtCore/../../src/corelib/global/qflags.h:121
#7  0x00007f3c787ae45c in QThreadPrivate::start (arg=0x556c7339f130) at thread/qthread_unix.cpp:329
#8  0x00007f3c7690f609 in start_thread (arg=<optimized out>) at pthread_create.c:477
#9  0x00007f3c78413293 in clone () at ../sysdeps/unix/sysv/linux/x86_64/clone.S:95

Thread 4 (Thread 0x7f3c6e5c0700 (LWP 1834)):
#0  __GI___libc_read (nbytes=16, buf=0x7f3c6e5bf7d0, fd=9) at ../sysdeps/unix/sysv/linux/read.c:26
#1  __GI___libc_read (fd=9, buf=0x7f3c6e5bf7d0, nbytes=16) at ../sysdeps/unix/sysv/linux/read.c:24
#2  0x00007f3c75e00b2f in ?? () from /usr/lib/x86_64-linux-gnu/libglib-2.0.so.0
#3  0x00007f3c75db7ebe in g_main_context_check () from /usr/lib/x86_64-linux-gnu/libglib-2.0.so.0
#4  0x00007f3c75db8312 in ?? () from /usr/lib/x86_64-linux-gnu/libglib-2.0.so.0
#5  0x00007f3c75db84a3 in g_main_context_iteration () from /usr/lib/x86_64-linux-gnu/libglib-2.0.so.0
#6  0x00007f3c789ef61b in QEventDispatcherGlib::processEvents (this=0x7f3c64000b60, flags=...) at kernel/qeventdispatcher_glib.cpp:425
#7  0x00007f3c789938ab in QEventLoop::exec (this=this@entry=0x7f3c6e5bf9e0, flags=..., flags@entry=...) at ../../include/QtCore/../../src/corelib/global/qflags.h:141
#8  0x00007f3c787ad2c2 in QThread::exec (this=<optimized out>) at ../../include/QtCore/../../src/corelib/global/qflags.h:121
#9  0x00007f3c787ae45c in QThreadPrivate::start (arg=0x556c733212f0) at thread/qthread_unix.cpp:329
#10 0x00007f3c7690f609 in start_thread (arg=<optimized out>) at pthread_create.c:477
#11 0x00007f3c78413293 in clone () at ../sysdeps/unix/sysv/linux/x86_64/clone.S:95

Thread 3 (Thread 0x7f3c6f7f0700 (LWP 1828)):
#0  __GI___libc_read (nbytes=16, buf=0x7f3c6f7ef7a0, fd=7) at ../sysdeps/unix/sysv/linux/read.c:26
#1  __GI___libc_read (fd=7, buf=0x7f3c6f7ef7a0, nbytes=16) at ../sysdeps/unix/sysv/linux/read.c:24
#2  0x00007f3c75e00b2f in ?? () from /usr/lib/x86_64-linux-gnu/libglib-2.0.so.0
#3  0x00007f3c75db7ebe in g_main_context_check () from /usr/lib/x86_64-linux-gnu/libglib-2.0.so.0
#4  0x00007f3c75db8312 in ?? () from /usr/lib/x86_64-linux-gnu/libglib-2.0.so.0
#5  0x00007f3c75db84a3 in g_main_context_iteration () from /usr/lib/x86_64-linux-gnu/libglib-2.0.so.0
#6  0x00007f3c789ef61b in QEventDispatcherGlib::processEvents (this=0x7f3c60000b60, flags=...) at kernel/qeventdispatcher_glib.cpp:425
#7  0x00007f3c789938ab in QEventLoop::exec (this=this@entry=0x7f3c6f7ef9b0, flags=..., flags@entry=...) at ../../include/QtCore/../../src/corelib/global/qflags.h:141
#8  0x00007f3c787ad2c2 in QThread::exec (this=<optimized out>) at ../../include/QtCore/../../src/corelib/global/qflags.h:121
#9  0x00007f3c799caf4b in ?? () from /usr/lib/x86_64-linux-gnu/libQt5DBus.so.5
#10 0x00007f3c787ae45c in QThreadPrivate::start (arg=0x7f3c79a4ed80) at thread/qthread_unix.cpp:329
#11 0x00007f3c7690f609 in start_thread (arg=<optimized out>) at pthread_create.c:477
#12 0x00007f3c78413293 in clone () at ../sysdeps/unix/sysv/linux/x86_64/clone.S:95

Thread 2 (Thread 0x7f3c7058e700 (LWP 1823)):
#0  0x00007f3c78406aff in __GI___poll (fds=0x7f3c7058d8e8, nfds=1, timeout=-1) at ../sysdeps/unix/sysv/linux/poll.c:29
#1  0x00007f3c75d47c1a in ?? () from /usr/lib/x86_64-linux-gnu/libxcb.so.1
#2  0x00007f3c75d4990a in xcb_wait_for_event () from /usr/lib/x86_64-linux-gnu/libxcb.so.1
#3  0x00007f3c70cd2e88 in ?? () from /usr/lib/x86_64-linux-gnu/libQt5XcbQpa.so.5
#4  0x00007f3c787ae45c in QThreadPrivate::start (arg=0x556c731f1870) at thread/qthread_unix.cpp:329
#5  0x00007f3c7690f609 in start_thread (arg=<optimized out>) at pthread_create.c:477
#6  0x00007f3c78413293 in clone () at ../sysdeps/unix/sysv/linux/x86_64/clone.S:95

Thread 1 (Thread 0x7f3c71386bc0 (LWP 1821)):
[KCrash Handler]
#4  QSortFilterProxyModelPrivate::proxy_to_source (this=0x556c74370ed0, proxy_index=...) at itemmodels/qsortfilterproxymodel.cpp:571
#5  0x00007f3c78963c2d in QSortFilterProxyModel::mapToSource (proxyIndex=..., this=0x556c74401af0) at itemmodels/qsortfilterproxymodel.cpp:3171
#6  QSortFilterProxyModelPrivate::store_persistent_indexes (this=<optimized out>) at itemmodels/qsortfilterproxymodel.cpp:1248
#7  0x00007f3c78964eed in QSortFilterProxyModelPrivate::_q_sourceLayoutAboutToBeChanged (this=0x556c74370ed0, sourceParents=..., hint=<optimized out>) at itemmodels/qsortfilterproxymodel.cpp:1639
#8  0x00007f3c7896d58d in QSortFilterProxyModel::qt_static_metacall (_o=<optimized out>, _c=<optimized out>, _id=<optimized out>, _a=<optimized out>) at itemmodels/qsortfilterproxymodel.h:199
#9  0x00007f3c789cbe00 in doActivate<false> (sender=0x556c74400c20, signal_index=9, argv=0x7ffe95d61ea0) at ../../include/QtCore/../../src/corelib/kernel/qobjectdefs_impl.h:395
#10 0x00007f3c789c5197 in QMetaObject::activate (sender=<optimized out>, m=m@entry=0x7f3c78c2f020 <QAbstractItemModel::staticMetaObject>, local_signal_index=local_signal_index@entry=6, argv=argv@entry=0x7ffe95d61ea0) at kernel/qobject.cpp:3946
#11 0x00007f3c78936bda in QAbstractItemModel::layoutAboutToBeChanged (this=<optimized out>, _t1=..., _t2=<optimized out>) at .moc/moc_qabstractitemmodel.cpp:578
#12 0x00007f3c78140efc in ?? () from /usr/lib/x86_64-linux-gnu/libKF5IncidenceEditor.so.5
#13 0x00007f3c7816466d in ?? () from /usr/lib/x86_64-linux-gnu/libKF5IncidenceEditor.so.5
#14 0x00007f3c7815291b in ?? () from /usr/lib/x86_64-linux-gnu/libKF5IncidenceEditor.so.5
#15 0x00007f3c781b3802 in ?? () from /usr/lib/x86_64-linux-gnu/libKF5IncidenceEditor.so.5
#16 0x00007f3c781b55ec in ?? () from /usr/lib/x86_64-linux-gnu/libKF5IncidenceEditor.so.5
#17 0x00007f3c789cbe00 in doActivate<false> (sender=0x556c73d670f0, signal_index=3, argv=0x7ffe95d62210) at ../../include/QtCore/../../src/corelib/kernel/qobjectdefs_impl.h:395
#18 0x00007f3c7814e498 in ?? () from /usr/lib/x86_64-linux-gnu/libKF5IncidenceEditor.so.5
#19 0x00007f3c781502c4 in ?? () from /usr/lib/x86_64-linux-gnu/libKF5IncidenceEditor.so.5
#20 0x00007f3c789cbe00 in doActivate<false> (sender=0x556c74a6d300, signal_index=6, argv=0x7ffe95d623c0) at ../../include/QtCore/../../src/corelib/kernel/qobjectdefs_impl.h:395
#21 0x00007f3c79b2fd10 in KJob::result(KJob*, KJob::QPrivateSignal) () from /usr/lib/x86_64-linux-gnu/libKF5CoreAddons.so.5
#22 0x00007f3c79b3118b in KJob::finishJob(bool) () from /usr/lib/x86_64-linux-gnu/libKF5CoreAddons.so.5
#23 0x00007f3c789c2949 in QObject::event (this=0x556c74a6d300, e=0x7f3c640778c0) at kernel/qobject.cpp:1314
#24 0x00007f3c7946edc3 in QApplicationPrivate::notify_helper (this=this@entry=0x556c731ee290, receiver=receiver@entry=0x556c74a6d300, e=e@entry=0x7f3c640778c0) at kernel/qapplication.cpp:3632
#25 0x00007f3c79477bb8 in QApplication::notify (this=0x7ffe95d62a50, receiver=0x556c74a6d300, e=0x7f3c640778c0) at kernel/qapplication.cpp:3156
#26 0x00007f3c78994daa in QCoreApplication::notifyInternal2 (receiver=0x556c74a6d300, event=0x7f3c640778c0) at ../../include/QtCore/5.15.3/QtCore/private/../../../../../src/corelib/thread/qthread_p.h:325
#27 0x00007f3c789976b1 in QCoreApplicationPrivate::sendPostedEvents (receiver=0x0, event_type=0, data=0x556c731e5d80) at kernel/qcoreapplication.cpp:1821
#28 0x00007f3c789effa7 in postEventSourceDispatch (s=0x556c732c68e0) at kernel/qeventdispatcher_glib.cpp:277
#29 0x00007f3c75db817d in g_main_context_dispatch () from /usr/lib/x86_64-linux-gnu/libglib-2.0.so.0
#30 0x00007f3c75db8400 in ?? () from /usr/lib/x86_64-linux-gnu/libglib-2.0.so.0
#31 0x00007f3c75db84a3 in g_main_context_iteration () from /usr/lib/x86_64-linux-gnu/libglib-2.0.so.0
#32 0x00007f3c789ef602 in QEventDispatcherGlib::processEvents (this=0x556c732d0500, flags=...) at kernel/qeventdispatcher_glib.cpp:423
#33 0x00007f3c789938ab in QEventLoop::exec (this=this@entry=0x7ffe95d62970, flags=..., flags@entry=...) at ../../include/QtCore/../../src/corelib/global/qflags.h:141
#34 0x00007f3c7899ba64 in QCoreApplication::exec () at ../../include/QtCore/../../src/corelib/global/qflags.h:121
#35 0x0000556c72f1af3c in ?? ()
#36 0x00007f3c783180b3 in __libc_start_main (main=0x556c72f1ab40, argc=3, argv=0x7ffe95d62be8, init=<optimized out>, fini=<optimized out>, rtld_fini=<optimized out>, stack_end=0x7ffe95d62bd8) at ../csu/libc-start.c:308
#37 0x0000556c72f1b12e in ?? ()
[Inferior 1 (process 1821) detached]

The reporter indicates this bug may be a duplicate of or related to bug 428888.

Possible duplicates by query: bug 443214, bug 434282, bug 428888, bug 413978, bug 412439.

Reported using DrKonqi
Comment 1 Szőts Ákos 2021-11-20 17:19:50 UTC
Created attachment 143782 [details]
New crash information added by DrKonqi

kontact (5.18.3 (21.08.3)) using Qt 5.15.2

- What I was doing when the application crashed:

I created a new task (with recurrency). When I clicked OK, KOrganizer crashed. The event had been created successfully before, though.

-- Backtrace (Reduced):
#6  QSortFilterProxyModelPrivate::proxy_to_source (this=0x56554185b0d0, proxy_index=...) at itemmodels/qsortfilterproxymodel.cpp:571
#7  0x00007f7138b6b2c9 in QSortFilterProxyModel::mapToSource (proxyIndex=..., this=0x5655419cc2c0) at itemmodels/qsortfilterproxymodel.cpp:3171
#8  QSortFilterProxyModelPrivate::store_persistent_indexes (this=<optimized out>) at itemmodels/qsortfilterproxymodel.cpp:1248
#9  0x00007f7138b6cd5b in QSortFilterProxyModelPrivate::_q_sourceLayoutAboutToBeChanged (this=0x56554185b0d0, sourceParents=..., hint=<optimized out>) at itemmodels/qsortfilterproxymodel.cpp:1639
#10 0x00007f7138bd5078 in doActivate<false> (sender=0x5655419cb430, signal_index=9, argv=0x7fff36d06a30) at kernel/qobject.cpp:3898
Comment 2 Daniel Vrátil 2023-10-14 08:59:52 UTC

*** This bug has been marked as a duplicate of bug 428888 ***