Bug 362579 - Segfault when selecting multiple adresses from contact list
Summary: Segfault when selecting multiple adresses from contact list
Status: CONFIRMED
Alias: None
Product: kmail2
Classification: Applications
Component: general (show other bugs)
Version: 5.6.0
Platform: Ubuntu Linux
: NOR crash
Target Milestone: ---
Assignee: kdepim bugs
URL:
Keywords: drkonqi
: 361905 384816 385080 386666 (view as bug list)
Depends on:
Blocks:
 
Reported: 2016-05-02 09:06 UTC by max+kde
Modified: 2024-01-16 03:30 UTC (History)
9 users (show)

See Also:
Latest Commit:
Version Fixed In:


Attachments
backtrace (27.08 KB, text/plain)
2016-05-22 20:20 UTC, marian.trenkwalder
Details
Backtrace kontact (31.71 KB, text/plain)
2019-01-15 13:59 UTC, Pedro Herrero García
Details

Note You need to log in before you can comment on or make changes to this bug.
Description max+kde 2016-05-02 09:06:08 UTC
Application: kmail (5.1.3)

Qt Version: 5.5.1
Operating System: Linux 4.4.0-21-generic x86_64
Distribution: Ubuntu 16.04 LTS

-- Information about the crash:
- What I was doing when the application crashed:
I have a adress list in KAdressbook. This list contains 7 adresses. In KMail I wanted to write an e-mail to all of them. I ...

    * opened Kmail, 
    * typed CTRL-N to open a new mail,
    * closed my custom editor gvim (if thats important),
    * clicked on 'Add' to open my adress book,
    * clicked on the first entry of that list,
    * scrolled down a bit,
    * hold down shift and clicked on the last item of that list.

Immediatly after that KMail crashes. It seems as if that segfault occours also if I select only normal contacts.

The crash can be reproduced every time.

-- Backtrace:
Application: KMail (kmail), signal: Segmentation fault
Using host libthread_db library "/lib/x86_64-linux-gnu/libthread_db.so.1".
[Current thread is 1 (Thread 0x7f4fa5ff3940 (LWP 13742))]

Thread 23 (Thread 0x7f4fa2033700 (LWP 13744)):
#0  0x00007fff075ce9a4 in ?? ()
#1  0x00007fff075cecd5 in clock_gettime ()
#2  0x00007f4fc6627fb6 in __GI___clock_gettime (clock_id=1, tp=tp@entry=0x7f4fa2032a50) at ../sysdeps/unix/clock_gettime.c:115
#3  0x00007f4fc6fc9c16 in qt_clock_gettime (ts=0x7f4fa2032a50, clock=<optimized out>) at tools/qelapsedtimer_unix.cpp:105
#4  do_gettime (frac=<synthetic pointer>, sec=<synthetic pointer>) at tools/qelapsedtimer_unix.cpp:156
#5  qt_gettime () at tools/qelapsedtimer_unix.cpp:165
#6  0x00007f4fc714e529 in QTimerInfoList::updateCurrentTime (this=this@entry=0x7f4f94002ed0) at kernel/qtimerinfo_unix.cpp:84
#7  0x00007f4fc7150262 in timerSourceCheckHelper (src=0x7f4f94002e70) at kernel/qeventdispatcher_glib.cpp:141
#8  timerSourceCheck (source=0x7f4f94002e70) at kernel/qeventdispatcher_glib.cpp:168
#9  0x00007f4fbcd33d51 in g_main_context_check () from /lib/x86_64-linux-gnu/libglib-2.0.so.0
#10 0x00007f4fbcd342c0 in ?? () from /lib/x86_64-linux-gnu/libglib-2.0.so.0
#11 0x00007f4fbcd3442c in g_main_context_iteration () from /lib/x86_64-linux-gnu/libglib-2.0.so.0
#12 0x00007f4fc7150a9b in QEventDispatcherGlib::processEvents (this=0x7f4f940008c0, flags=...) at kernel/qeventdispatcher_glib.cpp:420
#13 0x00007f4fc70f7dea in QEventLoop::exec (this=this@entry=0x7f4fa2032c80, flags=..., flags@entry=...) at kernel/qeventloop.cpp:204
#14 0x00007f4fc6f148a4 in QThread::exec (this=<optimized out>) at thread/qthread.cpp:503
#15 0x00007f4fc6f1984e in QThreadPrivate::start (arg=0x22477d0) at thread/qthread_unix.cpp:331
#16 0x00007f4fbd2556fa in start_thread (arg=0x7f4fa2033700) at pthread_create.c:333
#17 0x00007f4fc6619b5d in clone () at ../sysdeps/unix/sysv/linux/x86_64/clone.S:109

Thread 22 (Thread 0x7f4fa1783700 (LWP 13745)):
#0  0x00007f4fbcd33c8e in g_main_context_check () from /lib/x86_64-linux-gnu/libglib-2.0.so.0
#1  0x00007f4fbcd342c0 in ?? () from /lib/x86_64-linux-gnu/libglib-2.0.so.0
#2  0x00007f4fbcd3442c in g_main_context_iteration () from /lib/x86_64-linux-gnu/libglib-2.0.so.0
#3  0x00007f4fc7150a9b in QEventDispatcherGlib::processEvents (this=0x7f4f980008c0, flags=...) at kernel/qeventdispatcher_glib.cpp:420
#4  0x00007f4fc70f7dea in QEventLoop::exec (this=this@entry=0x7f4fa1782c80, flags=..., flags@entry=...) at kernel/qeventloop.cpp:204
#5  0x00007f4fc6f148a4 in QThread::exec (this=<optimized out>) at thread/qthread.cpp:503
#6  0x00007f4fc6f1984e in QThreadPrivate::start (arg=0x22d48d0) at thread/qthread_unix.cpp:331
#7  0x00007f4fbd2556fa in start_thread (arg=0x7f4fa1783700) at pthread_create.c:333
#8  0x00007f4fc6619b5d in clone () at ../sysdeps/unix/sysv/linux/x86_64/clone.S:109

Thread 21 (Thread 0x7f4fa0f82700 (LWP 13747)):
#0  0x00007f4fc660de8d in poll () at ../sysdeps/unix/syscall-template.S:84
#1  0x00007f4fbcd3431c in ?? () from /lib/x86_64-linux-gnu/libglib-2.0.so.0
#2  0x00007f4fbcd3442c in g_main_context_iteration () from /lib/x86_64-linux-gnu/libglib-2.0.so.0
#3  0x00007f4fc7150a9b in QEventDispatcherGlib::processEvents (this=0x7f4f8c0008c0, flags=...) at kernel/qeventdispatcher_glib.cpp:420
#4  0x00007f4fc70f7dea in QEventLoop::exec (this=this@entry=0x7f4fa0f81c80, flags=..., flags@entry=...) at kernel/qeventloop.cpp:204
#5  0x00007f4fc6f148a4 in QThread::exec (this=<optimized out>) at thread/qthread.cpp:503
#6  0x00007f4fc6f1984e in QThreadPrivate::start (arg=0x2296930) at thread/qthread_unix.cpp:331
#7  0x00007f4fbd2556fa in start_thread (arg=0x7f4fa0f82700) at pthread_create.c:333
#8  0x00007f4fc6619b5d in clone () at ../sysdeps/unix/sysv/linux/x86_64/clone.S:109

Thread 20 (Thread 0x7f4f93fff700 (LWP 13749)):
#0  QThreadData::current (createIfNecessary=createIfNecessary@entry=true) at thread/qthread_unix.cpp:211
#1  0x00007f4fc71502e1 in postEventSourcePrepare (timeout=0x0, s=0x7f4f880012d0) at kernel/qeventdispatcher_glib.cpp:247
#2  postEventSourceCheck (source=0x7f4f880012d0) at kernel/qeventdispatcher_glib.cpp:264
#3  0x00007f4fbcd33d51 in g_main_context_check () from /lib/x86_64-linux-gnu/libglib-2.0.so.0
#4  0x00007f4fbcd342c0 in ?? () from /lib/x86_64-linux-gnu/libglib-2.0.so.0
#5  0x00007f4fbcd3442c in g_main_context_iteration () from /lib/x86_64-linux-gnu/libglib-2.0.so.0
#6  0x00007f4fc7150a9b in QEventDispatcherGlib::processEvents (this=0x7f4f880008c0, flags=...) at kernel/qeventdispatcher_glib.cpp:420
#7  0x00007f4fc70f7dea in QEventLoop::exec (this=this@entry=0x7f4f93ffec80, flags=..., flags@entry=...) at kernel/qeventloop.cpp:204
#8  0x00007f4fc6f148a4 in QThread::exec (this=<optimized out>) at thread/qthread.cpp:503
#9  0x00007f4fc6f1984e in QThreadPrivate::start (arg=0x22c7760) at thread/qthread_unix.cpp:331
#10 0x00007f4fbd2556fa in start_thread (arg=0x7f4f93fff700) at pthread_create.c:333
#11 0x00007f4fc6619b5d in clone () at ../sysdeps/unix/sysv/linux/x86_64/clone.S:109

Thread 19 (Thread 0x7f4f937fe700 (LWP 13751)):
#0  0x00007f4fbcd31424 in ?? () from /lib/x86_64-linux-gnu/libglib-2.0.so.0
#1  0x00007f4fbcd33cd2 in g_main_context_check () from /lib/x86_64-linux-gnu/libglib-2.0.so.0
#2  0x00007f4fbcd342c0 in ?? () from /lib/x86_64-linux-gnu/libglib-2.0.so.0
#3  0x00007f4fbcd3442c in g_main_context_iteration () from /lib/x86_64-linux-gnu/libglib-2.0.so.0
#4  0x00007f4fc7150a9b in QEventDispatcherGlib::processEvents (this=0x7f4f800008c0, flags=...) at kernel/qeventdispatcher_glib.cpp:420
#5  0x00007f4fc70f7dea in QEventLoop::exec (this=this@entry=0x7f4f937fdc80, flags=..., flags@entry=...) at kernel/qeventloop.cpp:204
#6  0x00007f4fc6f148a4 in QThread::exec (this=<optimized out>) at thread/qthread.cpp:503
#7  0x00007f4fc6f1984e in QThreadPrivate::start (arg=0x2315c30) at thread/qthread_unix.cpp:331
#8  0x00007f4fbd2556fa in start_thread (arg=0x7f4f937fe700) at pthread_create.c:333
#9  0x00007f4fc6619b5d in clone () at ../sysdeps/unix/sysv/linux/x86_64/clone.S:109

Thread 18 (Thread 0x7f4f91c3a700 (LWP 13753)):
#0  0x00007f4fbcd78a49 in g_mutex_lock () from /lib/x86_64-linux-gnu/libglib-2.0.so.0
#1  0x00007f4fbcd33bce in g_main_context_check () from /lib/x86_64-linux-gnu/libglib-2.0.so.0
#2  0x00007f4fbcd342c0 in ?? () from /lib/x86_64-linux-gnu/libglib-2.0.so.0
#3  0x00007f4fbcd3442c in g_main_context_iteration () from /lib/x86_64-linux-gnu/libglib-2.0.so.0
#4  0x00007f4fc7150a9b in QEventDispatcherGlib::processEvents (this=0x7f4f840008c0, flags=...) at kernel/qeventdispatcher_glib.cpp:420
#5  0x00007f4fc70f7dea in QEventLoop::exec (this=this@entry=0x7f4f91c39c80, flags=..., flags@entry=...) at kernel/qeventloop.cpp:204
#6  0x00007f4fc6f148a4 in QThread::exec (this=<optimized out>) at thread/qthread.cpp:503
#7  0x00007f4fc6f1984e in QThreadPrivate::start (arg=0x220a850) at thread/qthread_unix.cpp:331
#8  0x00007f4fbd2556fa in start_thread (arg=0x7f4f91c3a700) at pthread_create.c:333
#9  0x00007f4fc6619b5d in clone () at ../sysdeps/unix/sysv/linux/x86_64/clone.S:109

Thread 17 (Thread 0x7f4f7ab18700 (LWP 13766)):
#0  0x00007f4fc66099cd in read () at ../sysdeps/unix/syscall-template.S:84
#1  0x00007f4fbcd776c0 in ?? () from /lib/x86_64-linux-gnu/libglib-2.0.so.0
#2  0x00007f4fbcd33e04 in g_main_context_check () from /lib/x86_64-linux-gnu/libglib-2.0.so.0
#3  0x00007f4fbcd342c0 in ?? () from /lib/x86_64-linux-gnu/libglib-2.0.so.0
#4  0x00007f4fbcd3442c in g_main_context_iteration () from /lib/x86_64-linux-gnu/libglib-2.0.so.0
#5  0x00007f4fc7150a9b in QEventDispatcherGlib::processEvents (this=0x7f4f740008c0, flags=...) at kernel/qeventdispatcher_glib.cpp:420
#6  0x00007f4fc70f7dea in QEventLoop::exec (this=this@entry=0x7f4f7ab17c80, flags=..., flags@entry=...) at kernel/qeventloop.cpp:204
#7  0x00007f4fc6f148a4 in QThread::exec (this=<optimized out>) at thread/qthread.cpp:503
#8  0x00007f4fc6f1984e in QThreadPrivate::start (arg=0x306a850) at thread/qthread_unix.cpp:331
#9  0x00007f4fbd2556fa in start_thread (arg=0x7f4f7ab18700) at pthread_create.c:333
#10 0x00007f4fc6619b5d in clone () at ../sysdeps/unix/sysv/linux/x86_64/clone.S:109

Thread 16 (Thread 0x7f4f7a317700 (LWP 13768)):
#0  0x00007f4fbcd338b4 in g_main_context_prepare () from /lib/x86_64-linux-gnu/libglib-2.0.so.0
#1  0x00007f4fbcd3424b in ?? () from /lib/x86_64-linux-gnu/libglib-2.0.so.0
#2  0x00007f4fbcd3442c in g_main_context_iteration () from /lib/x86_64-linux-gnu/libglib-2.0.so.0
#3  0x00007f4fc7150a9b in QEventDispatcherGlib::processEvents (this=0x7f4f6c0008c0, flags=...) at kernel/qeventdispatcher_glib.cpp:420
#4  0x00007f4fc70f7dea in QEventLoop::exec (this=this@entry=0x7f4f7a316c80, flags=..., flags@entry=...) at kernel/qeventloop.cpp:204
#5  0x00007f4fc6f148a4 in QThread::exec (this=<optimized out>) at thread/qthread.cpp:503
#6  0x00007f4fc6f1984e in QThreadPrivate::start (arg=0x30a6d20) at thread/qthread_unix.cpp:331
#7  0x00007f4fbd2556fa in start_thread (arg=0x7f4f7a317700) at pthread_create.c:333
#8  0x00007f4fc6619b5d in clone () at ../sysdeps/unix/sysv/linux/x86_64/clone.S:109

Thread 15 (Thread 0x7f4f79b16700 (LWP 13770)):
#0  pthread_cond_wait@@GLIBC_2.3.2 () at ../sysdeps/unix/sysv/linux/x86_64/pthread_cond_wait.S:185
#1  0x00007f4fb846088b in ?? () from /usr/lib/x86_64-linux-gnu/libQt5WebKit.so.5
#2  0x00007f4fb84608c9 in ?? () from /usr/lib/x86_64-linux-gnu/libQt5WebKit.so.5
#3  0x00007f4fbd2556fa in start_thread (arg=0x7f4f79b16700) at pthread_create.c:333
#4  0x00007f4fc6619b5d in clone () at ../sysdeps/unix/sysv/linux/x86_64/clone.S:109

Thread 14 (Thread 0x7f4f789da700 (LWP 13771)):
#0  0x00007f4fbcd78a49 in g_mutex_lock () from /lib/x86_64-linux-gnu/libglib-2.0.so.0
#1  0x00007f4fbcd33ad1 in g_main_context_query () from /lib/x86_64-linux-gnu/libglib-2.0.so.0
#2  0x00007f4fbcd34297 in ?? () from /lib/x86_64-linux-gnu/libglib-2.0.so.0
#3  0x00007f4fbcd3442c in g_main_context_iteration () from /lib/x86_64-linux-gnu/libglib-2.0.so.0
#4  0x00007f4fc7150a9b in QEventDispatcherGlib::processEvents (this=0x7f4f700008c0, flags=...) at kernel/qeventdispatcher_glib.cpp:420
#5  0x00007f4fc70f7dea in QEventLoop::exec (this=this@entry=0x7f4f789d9c80, flags=..., flags@entry=...) at kernel/qeventloop.cpp:204
#6  0x00007f4fc6f148a4 in QThread::exec (this=<optimized out>) at thread/qthread.cpp:503
#7  0x00007f4fc6f1984e in QThreadPrivate::start (arg=0x31024e0) at thread/qthread_unix.cpp:331
#8  0x00007f4fbd2556fa in start_thread (arg=0x7f4f789da700) at pthread_create.c:333
#9  0x00007f4fc6619b5d in clone () at ../sysdeps/unix/sysv/linux/x86_64/clone.S:109

Thread 13 (Thread 0x7f4f2bffd700 (LWP 13773)):
#0  0x00007f4fbcd33b58 in g_main_context_query () from /lib/x86_64-linux-gnu/libglib-2.0.so.0
#1  0x00007f4fbcd34297 in ?? () from /lib/x86_64-linux-gnu/libglib-2.0.so.0
#2  0x00007f4fbcd3442c in g_main_context_iteration () from /lib/x86_64-linux-gnu/libglib-2.0.so.0
#3  0x00007f4fc7150a9b in QEventDispatcherGlib::processEvents (this=0x7f4f240008c0, flags=...) at kernel/qeventdispatcher_glib.cpp:420
#4  0x00007f4fc70f7dea in QEventLoop::exec (this=this@entry=0x7f4f2bffcc80, flags=..., flags@entry=...) at kernel/qeventloop.cpp:204
#5  0x00007f4fc6f148a4 in QThread::exec (this=<optimized out>) at thread/qthread.cpp:503
#6  0x00007f4fc6f1984e in QThreadPrivate::start (arg=0x30de760) at thread/qthread_unix.cpp:331
#7  0x00007f4fbd2556fa in start_thread (arg=0x7f4f2bffd700) at pthread_create.c:333
#8  0x00007f4fc6619b5d in clone () at ../sysdeps/unix/sysv/linux/x86_64/clone.S:109

Thread 12 (Thread 0x7f4f2b7fc700 (LWP 13775)):
#0  0x00007f4fc660de8d in poll () at ../sysdeps/unix/syscall-template.S:84
#1  0x00007f4fbcd3431c in ?? () from /lib/x86_64-linux-gnu/libglib-2.0.so.0
#2  0x00007f4fbcd3442c in g_main_context_iteration () from /lib/x86_64-linux-gnu/libglib-2.0.so.0
#3  0x00007f4fc7150a9b in QEventDispatcherGlib::processEvents (this=0x7f4f1c0008c0, flags=...) at kernel/qeventdispatcher_glib.cpp:420
#4  0x00007f4fc70f7dea in QEventLoop::exec (this=this@entry=0x7f4f2b7fbc80, flags=..., flags@entry=...) at kernel/qeventloop.cpp:204
#5  0x00007f4fc6f148a4 in QThread::exec (this=<optimized out>) at thread/qthread.cpp:503
#6  0x00007f4fc6f1984e in QThreadPrivate::start (arg=0x3126db0) at thread/qthread_unix.cpp:331
#7  0x00007f4fbd2556fa in start_thread (arg=0x7f4f2b7fc700) at pthread_create.c:333
#8  0x00007f4fc6619b5d in clone () at ../sysdeps/unix/sysv/linux/x86_64/clone.S:109

Thread 11 (Thread 0x7f4f29fb3700 (LWP 13777)):
#0  pthread_cond_wait@@GLIBC_2.3.2 () at ../sysdeps/unix/sysv/linux/x86_64/pthread_cond_wait.S:185
#1  0x00007f4fb816ea74 in ?? () from /usr/lib/x86_64-linux-gnu/libQt5WebKit.so.5
#2  0x00007f4fb8490541 in ?? () from /usr/lib/x86_64-linux-gnu/libQt5WebKit.so.5
#3  0x00007f4fbd2556fa in start_thread (arg=0x7f4f29fb3700) at pthread_create.c:333
#4  0x00007f4fc6619b5d in clone () at ../sysdeps/unix/sysv/linux/x86_64/clone.S:109

Thread 10 (Thread 0x7f4f297b2700 (LWP 13778)):
#0  pthread_cond_wait@@GLIBC_2.3.2 () at ../sysdeps/unix/sysv/linux/x86_64/pthread_cond_wait.S:185
#1  0x00007f4fb816faa3 in ?? () from /usr/lib/x86_64-linux-gnu/libQt5WebKit.so.5
#2  0x00007f4fb8490541 in ?? () from /usr/lib/x86_64-linux-gnu/libQt5WebKit.so.5
#3  0x00007f4fbd2556fa in start_thread (arg=0x7f4f297b2700) at pthread_create.c:333
#4  0x00007f4fc6619b5d in clone () at ../sysdeps/unix/sysv/linux/x86_64/clone.S:109

Thread 9 (Thread 0x7f4f28fb1700 (LWP 13779)):
#0  pthread_cond_wait@@GLIBC_2.3.2 () at ../sysdeps/unix/sysv/linux/x86_64/pthread_cond_wait.S:185
#1  0x00007f4fb816faa3 in ?? () from /usr/lib/x86_64-linux-gnu/libQt5WebKit.so.5
#2  0x00007f4fb8490541 in ?? () from /usr/lib/x86_64-linux-gnu/libQt5WebKit.so.5
#3  0x00007f4fbd2556fa in start_thread (arg=0x7f4f28fb1700) at pthread_create.c:333
#4  0x00007f4fc6619b5d in clone () at ../sysdeps/unix/sysv/linux/x86_64/clone.S:109

Thread 8 (Thread 0x7f4f23fff700 (LWP 13780)):
#0  pthread_cond_wait@@GLIBC_2.3.2 () at ../sysdeps/unix/sysv/linux/x86_64/pthread_cond_wait.S:185
#1  0x00007f4fb816faa3 in ?? () from /usr/lib/x86_64-linux-gnu/libQt5WebKit.so.5
#2  0x00007f4fb8490541 in ?? () from /usr/lib/x86_64-linux-gnu/libQt5WebKit.so.5
#3  0x00007f4fbd2556fa in start_thread (arg=0x7f4f23fff700) at pthread_create.c:333
#4  0x00007f4fc6619b5d in clone () at ../sysdeps/unix/sysv/linux/x86_64/clone.S:109

Thread 7 (Thread 0x7f4f237fe700 (LWP 13781)):
#0  0x00007f4fbcd31346 in ?? () from /lib/x86_64-linux-gnu/libglib-2.0.so.0
#1  0x00007f4fbcd3384b in g_main_context_prepare () from /lib/x86_64-linux-gnu/libglib-2.0.so.0
#2  0x00007f4fbcd3424b in ?? () from /lib/x86_64-linux-gnu/libglib-2.0.so.0
#3  0x00007f4fbcd3442c in g_main_context_iteration () from /lib/x86_64-linux-gnu/libglib-2.0.so.0
#4  0x00007f4fc7150a9b in QEventDispatcherGlib::processEvents (this=0x7f4f0c0008c0, flags=...) at kernel/qeventdispatcher_glib.cpp:420
#5  0x00007f4fc70f7dea in QEventLoop::exec (this=this@entry=0x7f4f237fdc80, flags=..., flags@entry=...) at kernel/qeventloop.cpp:204
#6  0x00007f4fc6f148a4 in QThread::exec (this=<optimized out>) at thread/qthread.cpp:503
#7  0x00007f4fc6f1984e in QThreadPrivate::start (arg=0x3395360) at thread/qthread_unix.cpp:331
#8  0x00007f4fbd2556fa in start_thread (arg=0x7f4f237fe700) at pthread_create.c:333
#9  0x00007f4fc6619b5d in clone () at ../sysdeps/unix/sysv/linux/x86_64/clone.S:109

Thread 6 (Thread 0x7f4f22ffd700 (LWP 13792)):
#0  0x00007f4fc6f119aa in QBasicAtomicOps<8>::testAndSetRelaxed<QMutexData*> (currentValue=<synthetic pointer>, newValue=0x1, expectedValue=0x0, _q_value=@0x34c5b58: 0x1) at ../../include/QtCore/../../src/corelib/arch/qatomic_x86.h:259
#1  QGenericAtomicOps<QBasicAtomicOps<8> >::testAndSetAcquire<QMutexData*, QMutexData*> (currentValue=<synthetic pointer>, newValue=<optimized out>, expectedValue=0x0, _q_value=@0x34c5b58: 0x1) at ../../include/QtCore/../../src/corelib/thread/qgenericatomic.h:166
#2  QBasicAtomicPointer<QMutexData>::testAndSetAcquire (currentValue=<synthetic pointer>, newValue=<optimized out>, expectedValue=0x0, this=0x34c5b58, this@entry=0x29) at ../../include/QtCore/../../src/corelib/thread/qbasicatomic.h:276
#3  QBasicMutex::fastTryLock (current=<synthetic pointer>, this=0x34c5b58, this@entry=0x29) at thread/qmutex.h:82
#4  QMutex::lock (this=this@entry=0x34c5b58) at thread/qmutex.cpp:212
#5  0x00007f4fc71502f9 in QMutexLocker::QMutexLocker (m=0x34c5b58, this=<synthetic pointer>) at ../../include/QtCore/../../src/corelib/thread/qmutex.h:128
#6  QThreadData::canWaitLocked (this=0x34c5b30) at ../../include/QtCore/5.5.1/QtCore/private/../../../../../src/corelib/thread/qthread_p.h:240
#7  postEventSourcePrepare (timeout=<synthetic pointer>, s=0x7f4f000012d0) at kernel/qeventdispatcher_glib.cpp:254
#8  postEventSourceCheck (source=0x7f4f000012d0) at kernel/qeventdispatcher_glib.cpp:264
#9  0x00007f4fbcd33d51 in g_main_context_check () from /lib/x86_64-linux-gnu/libglib-2.0.so.0
#10 0x00007f4fbcd342c0 in ?? () from /lib/x86_64-linux-gnu/libglib-2.0.so.0
#11 0x00007f4fbcd3442c in g_main_context_iteration () from /lib/x86_64-linux-gnu/libglib-2.0.so.0
#12 0x00007f4fc7150a9b in QEventDispatcherGlib::processEvents (this=0x7f4f000008c0, flags=...) at kernel/qeventdispatcher_glib.cpp:420
#13 0x00007f4fc70f7dea in QEventLoop::exec (this=this@entry=0x7f4f22ffcc80, flags=..., flags@entry=...) at kernel/qeventloop.cpp:204
#14 0x00007f4fc6f148a4 in QThread::exec (this=<optimized out>) at thread/qthread.cpp:503
#15 0x00007f4fc6f1984e in QThreadPrivate::start (arg=0x34c4a40) at thread/qthread_unix.cpp:331
#16 0x00007f4fbd2556fa in start_thread (arg=0x7f4f22ffd700) at pthread_create.c:333
#17 0x00007f4fc6619b5d in clone () at ../sysdeps/unix/sysv/linux/x86_64/clone.S:109

Thread 5 (Thread 0x7f4f221b4700 (LWP 13795)):
#0  0x00007f4fbcd33858 in g_main_context_prepare () from /lib/x86_64-linux-gnu/libglib-2.0.so.0
#1  0x00007f4fbcd3424b in ?? () from /lib/x86_64-linux-gnu/libglib-2.0.so.0
#2  0x00007f4fbcd3442c in g_main_context_iteration () from /lib/x86_64-linux-gnu/libglib-2.0.so.0
#3  0x00007f4fc7150a9b in QEventDispatcherGlib::processEvents (this=0x7f4f040008c0, flags=...) at kernel/qeventdispatcher_glib.cpp:420
#4  0x00007f4fc70f7dea in QEventLoop::exec (this=this@entry=0x7f4f221b3c80, flags=..., flags@entry=...) at kernel/qeventloop.cpp:204
#5  0x00007f4fc6f148a4 in QThread::exec (this=<optimized out>) at thread/qthread.cpp:503
#6  0x00007f4fc6f1984e in QThreadPrivate::start (arg=0x22b8830) at thread/qthread_unix.cpp:331
#7  0x00007f4fbd2556fa in start_thread (arg=0x7f4f221b4700) at pthread_create.c:333
#8  0x00007f4fc6619b5d in clone () at ../sysdeps/unix/sysv/linux/x86_64/clone.S:109

Thread 4 (Thread 0x7f4f219b3700 (LWP 13798)):
#0  0x00007f4fc714fed4 in socketNotifierSourceCheck (source=0x7f4ef8002a00) at kernel/qeventdispatcher_glib.cpp:70
#1  0x00007f4fbcd33d51 in g_main_context_check () from /lib/x86_64-linux-gnu/libglib-2.0.so.0
#2  0x00007f4fbcd342c0 in ?? () from /lib/x86_64-linux-gnu/libglib-2.0.so.0
#3  0x00007f4fbcd3442c in g_main_context_iteration () from /lib/x86_64-linux-gnu/libglib-2.0.so.0
#4  0x00007f4fc7150a9b in QEventDispatcherGlib::processEvents (this=0x7f4ef80008c0, flags=...) at kernel/qeventdispatcher_glib.cpp:420
#5  0x00007f4fc70f7dea in QEventLoop::exec (this=this@entry=0x7f4f219b2c80, flags=..., flags@entry=...) at kernel/qeventloop.cpp:204
#6  0x00007f4fc6f148a4 in QThread::exec (this=<optimized out>) at thread/qthread.cpp:503
#7  0x00007f4fc6f1984e in QThreadPrivate::start (arg=0x3a64690) at thread/qthread_unix.cpp:331
#8  0x00007f4fbd2556fa in start_thread (arg=0x7f4f219b3700) at pthread_create.c:333
#9  0x00007f4fc6619b5d in clone () at ../sysdeps/unix/sysv/linux/x86_64/clone.S:109

Thread 3 (Thread 0x7f4f210b0700 (LWP 13804)):
#0  0x00007f4fc660de8d in poll () at ../sysdeps/unix/syscall-template.S:84
#1  0x00007f4fbcd3431c in ?? () from /lib/x86_64-linux-gnu/libglib-2.0.so.0
#2  0x00007f4fbcd3442c in g_main_context_iteration () from /lib/x86_64-linux-gnu/libglib-2.0.so.0
#3  0x00007f4fc7150a9b in QEventDispatcherGlib::processEvents (this=0x7f4efc0008c0, flags=...) at kernel/qeventdispatcher_glib.cpp:420
#4  0x00007f4fc70f7dea in QEventLoop::exec (this=this@entry=0x7f4f210afc80, flags=..., flags@entry=...) at kernel/qeventloop.cpp:204
#5  0x00007f4fc6f148a4 in QThread::exec (this=<optimized out>) at thread/qthread.cpp:503
#6  0x00007f4fc6f1984e in QThreadPrivate::start (arg=0x3a8bc10) at thread/qthread_unix.cpp:331
#7  0x00007f4fbd2556fa in start_thread (arg=0x7f4f210b0700) at pthread_create.c:333
#8  0x00007f4fc6619b5d in clone () at ../sysdeps/unix/sysv/linux/x86_64/clone.S:109

Thread 2 (Thread 0x7f4f208af700 (LWP 13806)):
#0  0x00007f4fc660de8d in poll () at ../sysdeps/unix/syscall-template.S:84
#1  0x00007f4fbcd3431c in ?? () from /lib/x86_64-linux-gnu/libglib-2.0.so.0
#2  0x00007f4fbcd3442c in g_main_context_iteration () from /lib/x86_64-linux-gnu/libglib-2.0.so.0
#3  0x00007f4fc7150a9b in QEventDispatcherGlib::processEvents (this=0x7f4ef00008c0, flags=...) at kernel/qeventdispatcher_glib.cpp:420
#4  0x00007f4fc70f7dea in QEventLoop::exec (this=this@entry=0x7f4f208aec80, flags=..., flags@entry=...) at kernel/qeventloop.cpp:204
#5  0x00007f4fc6f148a4 in QThread::exec (this=<optimized out>) at thread/qthread.cpp:503
#6  0x00007f4fc6f1984e in QThreadPrivate::start (arg=0x3610320) at thread/qthread_unix.cpp:331
#7  0x00007f4fbd2556fa in start_thread (arg=0x7f4f208af700) at pthread_create.c:333
#8  0x00007f4fc6619b5d in clone () at ../sysdeps/unix/sysv/linux/x86_64/clone.S:109

Thread 1 (Thread 0x7f4fa5ff3940 (LWP 13742)):
[KCrash Handler]
#6  QSortFilterProxyModel::sibling (this=<optimized out>, row=2, column=0, idx=...) at itemmodels/qsortfilterproxymodel.cpp:1889
#7  0x00007f4fc70ae830 in QModelIndex::sibling (acolumn=<optimized out>, arow=2, this=0x7fff07587f70) at ../../include/QtCore/../../src/corelib/itemmodels/qabstractitemmodel.h:414
#8  indexesFromRange<QList<QModelIndex> > (range=..., result=...) at itemmodels/qitemselectionmodel.cpp:305
#9  0x00007f4fc70aea14 in indexesFromRange<QList<QModelIndex> > (result=..., range=...) at itemmodels/qitemselectionmodel.cpp:300
#10 QItemSelection::indexes (this=this@entry=0x7fff075882f0) at itemmodels/qitemselectionmodel.cpp:461
#11 0x00007f4fc8175cdc in QTreeView::selectionChanged (this=0x2312320, selected=..., deselected=...) at itemviews/qtreeview.cpp:3980
#12 0x00007f4fc812e9b1 in QAbstractItemView::qt_static_metacall (_o=_o@entry=0x2312320, _c=_c@entry=QMetaObject::InvokeMetaMethod, _id=_id@entry=21, _a=_a@entry=0x7fff07588290) at .moc/moc_qabstractitemview.cpp:412
#13 0x00007f4fc7128fca in QMetaObject::activate (sender=sender@entry=0x3b4d1a0, signalOffset=<optimized out>, local_signal_index=local_signal_index@entry=0, argv=argv@entry=0x7fff07588290) at kernel/qobject.cpp:3713
#14 0x00007f4fc71297d7 in QMetaObject::activate (sender=sender@entry=0x3b4d1a0, m=m@entry=0x7f4fc7340160 <QItemSelectionModel::staticMetaObject>, local_signal_index=local_signal_index@entry=0, argv=argv@entry=0x7fff07588290) at kernel/qobject.cpp:3578
#15 0x00007f4fc70aafc7 in QItemSelectionModel::selectionChanged (this=this@entry=0x3b4d1a0, _t1=..., _t2=...) at .moc/moc_qitemselectionmodel.cpp:473
#16 0x00007f4fc70af3bc in QItemSelectionModel::emitSelectionChanged (this=this@entry=0x3b4d1a0, newSelection=..., oldSelection=...) at itemmodels/qitemselectionmodel.cpp:1857
#17 0x00007f4fc70b18a4 in QItemSelectionModel::select (this=0x3b4d1a0, selection=..., command=...) at itemmodels/qitemselectionmodel.cpp:1288
#18 0x00007f4fc816fd58 in QTreeViewPrivate::select (this=this@entry=0x3a85670, topIndex=..., bottomIndex=..., command=..., command@entry=...) at itemviews/qtreeview.cpp:3878
#19 0x00007f4fc8170378 in QTreeView::setSelection (this=<optimized out>, rect=..., command=...) at itemviews/qtreeview.cpp:2377
#20 0x00007f4fc812e01d in QAbstractItemView::mousePressEvent (this=this@entry=0x2312320, event=event@entry=0x7fff07588f00) at itemviews/qabstractitemview.cpp:1733
#21 0x00007f4fc8174877 in QTreeView::mousePressEvent (this=0x2312320, event=0x7fff07588f00) at itemviews/qtreeview.cpp:1907
#22 0x00007f4fc7f113cf in QWidget::event (this=this@entry=0x2312320, event=event@entry=0x7fff07588f00) at kernel/qwidget.cpp:8674
#23 0x00007f4fc800fb5e in QFrame::event (this=0x2312320, e=0x7fff07588f00) at widgets/qframe.cpp:540
#24 0x00007f4fc81355db in QAbstractItemView::viewportEvent (this=this@entry=0x2312320, event=event@entry=0x7fff07588f00) at itemviews/qabstractitemview.cpp:1685
#25 0x00007f4fc817410c in QTreeView::viewportEvent (this=0x2312320, event=0x7fff07588f00) at itemviews/qtreeview.cpp:1309
#26 0x00007f4fc70fa412 in QCoreApplicationPrivate::sendThroughObjectEventFilters (this=this@entry=0x21588c0, receiver=receiver@entry=0x3b22ad0, event=event@entry=0x7fff07588f00) at kernel/qcoreapplication.cpp:1072
#27 0x00007f4fc7ece03c in QApplicationPrivate::notify_helper (this=this@entry=0x21588c0, receiver=receiver@entry=0x3b22ad0, e=e@entry=0x7fff07588f00) at kernel/qapplication.cpp:3712
#28 0x00007f4fc7ed3c19 in QApplication::notify (this=<optimized out>, receiver=0x3b22ad0, e=0x7fff07588f00) at kernel/qapplication.cpp:3276
#29 0x00007f4fc70fa62b in QCoreApplication::notifyInternal (this=0x7fff07589d00, receiver=receiver@entry=0x3b22ad0, event=event@entry=0x7fff07588f00) at kernel/qcoreapplication.cpp:965
#30 0x00007f4fc7ed2b32 in QCoreApplication::sendSpontaneousEvent (event=0x7fff07588f00, receiver=0x3b22ad0) at ../../include/QtCore/../../src/corelib/kernel/qcoreapplication.h:227
#31 QApplicationPrivate::sendMouseEvent (receiver=receiver@entry=0x3b22ad0, event=event@entry=0x7fff07588f00, alienWidget=alienWidget@entry=0x3b22ad0, nativeWidget=0x3a86a90, buttonDown=buttonDown@entry=0x7f4fc83feb20 <qt_button_down>, lastMouseReceiver=..., spontaneous=true) at kernel/qapplication.cpp:2770
#32 0x00007f4fc7f2b57b in QWidgetWindow::handleMouseEvent (this=this@entry=0x3b57430, event=event@entry=0x7fff07589310) at kernel/qwidgetwindow.cpp:555
#33 0x00007f4fc7f2db3b in QWidgetWindow::event (this=0x3b57430, event=0x7fff07589310) at kernel/qwidgetwindow.cpp:210
#34 0x00007f4fc7ece05c in QApplicationPrivate::notify_helper (this=this@entry=0x21588c0, receiver=receiver@entry=0x3b57430, e=e@entry=0x7fff07589310) at kernel/qapplication.cpp:3716
#35 0x00007f4fc7ed3516 in QApplication::notify (this=0x7fff07589d00, receiver=0x3b57430, e=0x7fff07589310) at kernel/qapplication.cpp:3499
#36 0x00007f4fc70fa62b in QCoreApplication::notifyInternal (this=0x7fff07589d00, receiver=receiver@entry=0x3b57430, event=event@entry=0x7fff07589310) at kernel/qcoreapplication.cpp:965
#37 0x00007f4fc743c521 in QCoreApplication::sendSpontaneousEvent (event=0x7fff07589310, receiver=0x3b57430) at ../../include/QtCore/../../src/corelib/kernel/qcoreapplication.h:227
#38 QGuiApplicationPrivate::processMouseEvent (e=0x3dc4ae0) at kernel/qguiapplication.cpp:1804
#39 0x00007f4fc743e1e5 in QGuiApplicationPrivate::processWindowSystemEvent (e=e@entry=0x3dc4ae0) at kernel/qguiapplication.cpp:1596
#40 0x00007f4fc7421f38 in QWindowSystemInterface::sendWindowSystemEvents (flags=...) at kernel/qwindowsysteminterface.cpp:625
#41 0x00007f4fa5ae7f10 in userEventSourceDispatch (source=<optimized out>) at eventdispatchers/qeventdispatcher_glib.cpp:70
#42 0x00007f4fbcd34127 in g_main_context_dispatch () from /lib/x86_64-linux-gnu/libglib-2.0.so.0
#43 0x00007f4fbcd34380 in ?? () from /lib/x86_64-linux-gnu/libglib-2.0.so.0
#44 0x00007f4fbcd3442c in g_main_context_iteration () from /lib/x86_64-linux-gnu/libglib-2.0.so.0
#45 0x00007f4fc7150a7f in QEventDispatcherGlib::processEvents (this=0x21900f0, flags=...) at kernel/qeventdispatcher_glib.cpp:418
#46 0x00007f4fc70f7dea in QEventLoop::exec (this=this@entry=0x7fff07589690, flags=..., flags@entry=...) at kernel/qeventloop.cpp:204
#47 0x00007f4fc70ffe8c in QCoreApplication::exec () at kernel/qcoreapplication.cpp:1229
#48 0x00000000004040d8 in main ()

Reported using DrKonqi
Comment 1 marian.trenkwalder 2016-05-22 20:20:00 UTC
Created attachment 99138 [details]
backtrace

I have this bug too. But only if I select multiple contacts from a Group.
Comment 2 Christoph Feck 2017-10-04 17:42:56 UTC
*** Bug 384816 has been marked as a duplicate of this bug. ***
Comment 3 Christoph Feck 2017-10-04 17:43:39 UTC
Bug 384816 is from 5.6.1.
Comment 4 Christoph Feck 2017-10-25 19:19:36 UTC
*** Bug 385080 has been marked as a duplicate of this bug. ***
Comment 5 Christoph Feck 2017-10-25 19:21:18 UTC
*** Bug 361905 has been marked as a duplicate of this bug. ***
Comment 6 Christoph Feck 2017-11-23 01:15:26 UTC
*** Bug 386666 has been marked as a duplicate of this bug. ***
Comment 7 Pedro Herrero García 2019-01-15 13:59:50 UTC
Created attachment 117470 [details]
Backtrace kontact
Comment 8 null 2020-05-06 17:28:08 UTC
Let's set this to confirmed at least.

Still happening with KDE PIM from git master as of today when shift-selecting contacts previously saved in a distribution list.
Comment 9 Justin Zobel 2022-10-08 00:38:47 UTC
Thank you for reporting this crash in KDE software. As it has been a while since this issue was reported, can we please ask you to see if you can reproduce the crash with a recent software version?

If you can reproduce the issue, please change the status to "CONFIRMED" when replying. Thank you!
Comment 10 Peter 2022-10-08 04:15:14 UTC
Am Samstag, 8. Oktober 2022, 02:38:47 CEST schrieben Sie:
> https://bugs.kde.org/show_bug.cgi?id=362579
> 
> Justin Zobel <justin.zobel@gmail.com> changed:
> 
>            What    |Removed                     |Added
> ----------------------------------------------------------------------------
> Resolution|---                         |WAITINGFORINFO
>              Status|CONFIRMED                   |NEEDSINFO
> 
> --- Comment #9 from Justin Zobel <justin.zobel@gmail.com> ---
> Thank you for reporting this crash in KDE software. As it has been a while
> since this issue was reported, can we please ask you to see if you can
> reproduce the crash with a recent software version?
> 
> If you can reproduce the issue, please change the status to "CONFIRMED" when
> replying. Thank you!
seems to be fixed with version 5.19.3
Comment 11 null 2022-10-08 07:50:54 UTC
Cannot confirm this is fixed, the crash can still be reproduced with 5.19.3 (i.e. v21.12.3) as well as git master as of today:

- Compose new mail
- Add 1@a.com, 2@a.com, 3@a.com as recipients, save those as distribution list "A"
- Select Recipients, unfold "A", click on first entry (1@a.com), hold down shift key, click on last entry ("3@a.com")
- Observe crash (same backtrace as above: KCrash Handler points to "QSortFilterProxyModel::sibling")

Note that the crash only occurs if all of the following conditions are met:
- Recipients are selected from a distribution list.
- Shift-Selection is used (instead of Ctrl-selection).
- At least 3 recipients are shift-selected.
- Shift-selection is performed by clicking (not via the keyboard).
Comment 12 Peter 2022-10-09 07:52:04 UTC
Bug is still present with 5.19.3 (when choosing recipients with shift-click).
Comment 13 Pierre Métras 2024-01-16 03:30:51 UTC
Still present in January 2024 with Kmail 5.22.3 (22.12.3) from Debian 12.4.