Bug 313676

Summary: Manage sieve scripts from within kcontact will crash kcontact
Product: [Applications] kontact Reporter: Hartmut Manz <manz>
Component: generalAssignee: kdepim bugs <kdepim-bugs>
Status: RESOLVED UNMAINTAINED    
Severity: crash CC: manz, sebastian
Priority: NOR    
Version: 4.10.1   
Target Milestone: ---   
Platform: Ubuntu   
OS: Linux   
Latest Commit: Version Fixed In:
Sentry Crash Report:
Attachments: New crash information added by DrKonqi
crash information

Description Hartmut Manz 2013-01-22 10:36:29 UTC
Application: kontact (4.10 rc3)
KDE Platform Version: 4.9.98
Qt Version: 4.8.2
Operating System: Linux 3.2.0-36-generic x86_64
Distribution: Ubuntu 12.04.1 LTS

-- Information about the crash:
- What I was doing when the application crashed:

I start kcontact with Mails hosted on a remote IMAP server. 
The reading of the mails work. Now I tried to modify the sieve scripts on the server.
With the last KDE version kde 4.10rc2 this was possible.
Now after upgrading to kde 4.10rc3 kcontact will crash as soon a I hit the button

Manage Sieve scripts

The crash can be reproduced every time.

-- Backtrace:
Application: Kontact (kontact), signal: Segmentation fault
Using host libthread_db library "/lib/x86_64-linux-gnu/libthread_db.so.1".
[Current thread is 1 (Thread 0x7fdbd2f7e7c0 (LWP 3105))]

Thread 6 (Thread 0x7fdbb66b0700 (LWP 3214)):
#0  pthread_cond_wait@@GLIBC_2.3.2 () at ../nptl/sysdeps/unix/sysv/linux/x86_64/pthread_cond_wait.S:162
#1  0x00007fdbcf781dec in ?? () from /usr/lib/x86_64-linux-gnu/libQtWebKit.so.4
#2  0x00007fdbcf781f19 in ?? () from /usr/lib/x86_64-linux-gnu/libQtWebKit.so.4
#3  0x00007fdbca81ce9a in start_thread (arg=0x7fdbb66b0700) at pthread_create.c:308
#4  0x00007fdbd04b6cbd in clone () at ../sysdeps/unix/sysv/linux/x86_64/clone.S:112
#5  0x0000000000000000 in ?? ()

Thread 5 (Thread 0x7fdbb5daf700 (LWP 3460)):
#0  0x00007fdbd04ab303 in __GI___poll (fds=<optimized out>, nfds=<optimized out>, timeout=<optimized out>) at ../sysdeps/unix/sysv/linux/poll.c:87
#1  0x00007fdbc9f58036 in ?? () from /lib/x86_64-linux-gnu/libglib-2.0.so.0
#2  0x00007fdbc9f58164 in g_main_context_iteration () from /lib/x86_64-linux-gnu/libglib-2.0.so.0
#3  0x00007fdbd18fb906 in QEventDispatcherGlib::processEvents (this=0x7fdbb00008c0, flags=...) at kernel/qeventdispatcher_glib.cpp:426
#4  0x00007fdbd18cae42 in QEventLoop::processEvents (this=<optimized out>, flags=...) at kernel/qeventloop.cpp:149
#5  0x00007fdbd18cb097 in QEventLoop::exec (this=0x7fdbb5daedc0, flags=...) at kernel/qeventloop.cpp:204
#6  0x00007fdbd17ca057 in QThread::exec (this=<optimized out>) at thread/qthread.cpp:501
#7  0x00007fdbd17cd07b in QThreadPrivate::start (arg=0x1223d00) at thread/qthread_unix.cpp:307
#8  0x00007fdbca81ce9a in start_thread (arg=0x7fdbb5daf700) at pthread_create.c:308
#9  0x00007fdbd04b6cbd in clone () at ../sysdeps/unix/sysv/linux/x86_64/clone.S:112
#10 0x0000000000000000 in ?? ()

Thread 4 (Thread 0x7fdb6804d700 (LWP 3847)):
#0  0x00007fdbc9f9334a in ?? () from /lib/x86_64-linux-gnu/libglib-2.0.so.0
#1  0x00007fdbc9f93599 in g_mutex_lock () from /lib/x86_64-linux-gnu/libglib-2.0.so.0
#2  0x00007fdbc9f57851 in g_main_context_prepare () from /lib/x86_64-linux-gnu/libglib-2.0.so.0
#3  0x00007fdbc9f57f5b in ?? () from /lib/x86_64-linux-gnu/libglib-2.0.so.0
#4  0x00007fdbc9f58164 in g_main_context_iteration () from /lib/x86_64-linux-gnu/libglib-2.0.so.0
#5  0x00007fdbd18fb906 in QEventDispatcherGlib::processEvents (this=0x7fdb600008c0, flags=...) at kernel/qeventdispatcher_glib.cpp:426
#6  0x00007fdbd18cae42 in QEventLoop::processEvents (this=<optimized out>, flags=...) at kernel/qeventloop.cpp:149
#7  0x00007fdbd18cb097 in QEventLoop::exec (this=0x7fdb6804cd90, flags=...) at kernel/qeventloop.cpp:204
#8  0x00007fdbd17ca057 in QThread::exec (this=<optimized out>) at thread/qthread.cpp:501
#9  0x00007fdbd18aab4f in QInotifyFileSystemWatcherEngine::run (this=0x1c799e0) at io/qfilesystemwatcher_inotify.cpp:248
#10 0x00007fdbd17cd07b in QThreadPrivate::start (arg=0x1c799e0) at thread/qthread_unix.cpp:307
#11 0x00007fdbca81ce9a in start_thread (arg=0x7fdb6804d700) at pthread_create.c:308
#12 0x00007fdbd04b6cbd in clone () at ../sysdeps/unix/sysv/linux/x86_64/clone.S:112
#13 0x0000000000000000 in ?? ()

Thread 3 (Thread 0x7fdb59a18700 (LWP 3877)):
#0  __pthread_mutex_unlock_usercnt (mutex=<optimized out>, decr=<optimized out>) at pthread_mutex_unlock.c:55
#1  __pthread_mutex_unlock (mutex=0x7fdb4c000a60) at pthread_mutex_unlock.c:290
#2  0x00007fdbc9f935d1 in g_mutex_unlock () from /lib/x86_64-linux-gnu/libglib-2.0.so.0
#3  0x00007fdbc9f57efc in ?? () from /lib/x86_64-linux-gnu/libglib-2.0.so.0
#4  0x00007fdbc9f58164 in g_main_context_iteration () from /lib/x86_64-linux-gnu/libglib-2.0.so.0
#5  0x00007fdbd18fb906 in QEventDispatcherGlib::processEvents (this=0x7fdb4c0008c0, flags=...) at kernel/qeventdispatcher_glib.cpp:426
#6  0x00007fdbd18cae42 in QEventLoop::processEvents (this=<optimized out>, flags=...) at kernel/qeventloop.cpp:149
#7  0x00007fdbd18cb097 in QEventLoop::exec (this=0x7fdb59a17d90, flags=...) at kernel/qeventloop.cpp:204
#8  0x00007fdbd17ca057 in QThread::exec (this=<optimized out>) at thread/qthread.cpp:501
#9  0x00007fdbcd7737de in KIO::NameLookUpThread::run (this=0x73b0690) at ../../kio/kio/hostinfo.cpp:226
#10 0x00007fdbd17cd07b in QThreadPrivate::start (arg=0x73b0690) at thread/qthread_unix.cpp:307
#11 0x00007fdbca81ce9a in start_thread (arg=0x7fdb59a18700) at pthread_create.c:308
#12 0x00007fdbd04b6cbd in clone () at ../sysdeps/unix/sysv/linux/x86_64/clone.S:112
#13 0x0000000000000000 in ?? ()

Thread 2 (Thread 0x7fdb59217700 (LWP 3959)):
#0  pthread_cond_timedwait@@GLIBC_2.3.2 () at ../nptl/sysdeps/unix/sysv/linux/x86_64/pthread_cond_timedwait.S:215
#1  0x00007fdbd17cd4ef in wait (time=30000, this=0x7fdb54004f60) at thread/qwaitcondition_unix.cpp:84
#2  QWaitCondition::wait (this=<optimized out>, mutex=0x7fdb54004ed8, time=30000) at thread/qwaitcondition_unix.cpp:158
#3  0x00007fdbd17c066f in QThreadPoolThread::run (this=0x7fdb4c002b40) at concurrent/qthreadpool.cpp:141
#4  0x00007fdbd17cd07b in QThreadPrivate::start (arg=0x7fdb4c002b40) at thread/qthread_unix.cpp:307
#5  0x00007fdbca81ce9a in start_thread (arg=0x7fdb59217700) at pthread_create.c:308
#6  0x00007fdbd04b6cbd in clone () at ../sysdeps/unix/sysv/linux/x86_64/clone.S:112
#7  0x0000000000000000 in ?? ()

Thread 1 (Thread 0x7fdbd2f7e7c0 (LWP 3105)):
[KCrash Handler]
#6  KSieveUi::ManageSieveScriptsDialog::killAllJobs (this=0x95a9a30, disconnectSignal=false) at ../../../libksieve/ksieveui/managesievescriptsdialog.cpp:115
#7  0x00007fdb6b827aa2 in KSieveUi::ManageSieveScriptsDialog::clear (this=0x95a9a30, disconnect=<optimized out>) at ../../../libksieve/ksieveui/managesievescriptsdialog.cpp:321
#8  0x00007fdb6b827d7c in KSieveUi::ManageSieveScriptsDialog::slotRefresh (this=0x95a9a30, disconnectSignal=<optimized out>) at ../../../libksieve/ksieveui/managesievescriptsdialog.cpp:177
#9  0x00007fdbd18e0761 in QMetaObject::activate (sender=0x7a766f0, m=<optimized out>, local_signal_index=<optimized out>, argv=0x7ffff20d51a0) at kernel/qobject.cpp:3547
#10 0x00007fdb6a0a8142 in KManageSieve::SieveJob::result (this=<optimized out>, _t1=0x7a766f0, _t2=true, _t3=..., _t4=false) at ./sievejob.moc:129
#11 0x00007fdb6a0a9c99 in KManageSieve::SieveJob::Private::handleResponse (this=0x99b6cd0, response=..., data=...) at ../../../libksieve/kmanagesieve/sievejob.cpp:201
#12 0x00007fdb6a0a4e51 in KManageSieve::Session::processResponse (this=0x957e7d0, response=..., data=...) at ../../../libksieve/kmanagesieve/session.cpp:251
#13 0x00007fdb6a0a6815 in KManageSieve::Session::dataReceived (this=0x957e7d0) at ../../../libksieve/kmanagesieve/session.cpp:138
#14 0x00007fdbd18e0761 in QMetaObject::activate (sender=0x94bcc10, m=<optimized out>, local_signal_index=<optimized out>, argv=0x0) at kernel/qobject.cpp:3547
#15 0x00007fdbd1de378a in reemitReadyRead (this=<optimized out>) at ../../kdecore/network/ktcpsocket.cpp:370
#16 qt_static_metacall (_a=<optimized out>, _id=<optimized out>, _o=<optimized out>, _c=<optimized out>) at ./ktcpsocket.moc:92
#17 KTcpSocket::qt_static_metacall (_o=<optimized out>, _c=<optimized out>, _id=<optimized out>, _a=<optimized out>) at ./ktcpsocket.moc:74
#18 0x00007fdbd18e0761 in QMetaObject::activate (sender=0x9597c20, m=<optimized out>, local_signal_index=<optimized out>, argv=0x0) at kernel/qobject.cpp:3547
#19 0x00007fdbcbaffb14 in QSslSocketBackendPrivate::transmit (this=0x957f3e0) at ssl/qsslsocket_openssl.cpp:1149
#20 0x00007fdbcbaf9f39 in qt_static_metacall (_a=<optimized out>, _id=<optimized out>, _o=<optimized out>, _c=<optimized out>) at .moc/release-shared/moc_qsslsocket.cpp:98
#21 QSslSocket::qt_static_metacall (_o=<optimized out>, _c=<optimized out>, _id=<optimized out>, _a=<optimized out>) at .moc/release-shared/moc_qsslsocket.cpp:77
#22 0x00007fdbd18e0761 in QMetaObject::activate (sender=0x9417720, m=<optimized out>, local_signal_index=<optimized out>, argv=0x0) at kernel/qobject.cpp:3547
#23 0x00007fdbcbad933f in QAbstractSocketPrivate::canReadNotification (this=0x94bb1d0) at socket/qabstractsocket.cpp:654
#24 0x00007fdbcbae0eb1 in event (this=<optimized out>, e=<optimized out>) at socket/qnativesocketengine.cpp:1151
#25 QReadNotifier::event (this=<optimized out>, e=<optimized out>) at socket/qnativesocketengine.cpp:1148
#26 0x00007fdbd0c4d7b4 in notify_helper (e=0x7ffff20d7860, receiver=0x9458ec0, this=0x122e630) at kernel/qapplication.cpp:4556
#27 QApplicationPrivate::notify_helper (this=0x122e630, receiver=0x9458ec0, e=0x7ffff20d7860) at kernel/qapplication.cpp:4528
#28 0x00007fdbd0c52583 in QApplication::notify (this=0x7ffff20d7ae0, receiver=0x9458ec0, e=0x7ffff20d7860) at kernel/qapplication.cpp:4417
#29 0x00007fdbd2333b76 in KApplication::notify (this=0x7ffff20d7ae0, receiver=0x9458ec0, event=0x7ffff20d7860) at ../../kdeui/kernel/kapplication.cpp:311
#30 0x00007fdbd18cc30c in QCoreApplication::notifyInternal (this=0x7ffff20d7ae0, receiver=0x9458ec0, event=0x7ffff20d7860) at kernel/qcoreapplication.cpp:915
#31 0x00007fdbd18faf77 in sendEvent (event=0x7ffff20d7860, receiver=<optimized out>) at ../../include/QtCore/../../src/corelib/kernel/qcoreapplication.h:231
#32 socketNotifierSourceDispatch (source=0x122fd00) at kernel/qeventdispatcher_glib.cpp:110
#33 0x00007fdbc9f57d53 in g_main_context_dispatch () from /lib/x86_64-linux-gnu/libglib-2.0.so.0
#34 0x00007fdbc9f580a0 in ?? () from /lib/x86_64-linux-gnu/libglib-2.0.so.0
#35 0x00007fdbc9f58164 in g_main_context_iteration () from /lib/x86_64-linux-gnu/libglib-2.0.so.0
#36 0x00007fdbd18fb906 in QEventDispatcherGlib::processEvents (this=0x12199b0, flags=...) at kernel/qeventdispatcher_glib.cpp:426
#37 0x00007fdbd0cf5cde in QGuiEventDispatcherGlib::processEvents (this=<optimized out>, flags=...) at kernel/qguieventdispatcher_glib.cpp:204
#38 0x00007fdbd18cae42 in QEventLoop::processEvents (this=<optimized out>, flags=...) at kernel/qeventloop.cpp:149
#39 0x00007fdbd18cb097 in QEventLoop::exec (this=0x7ffff20d7a70, flags=...) at kernel/qeventloop.cpp:204
#40 0x00007fdbd18d03e7 in QCoreApplication::exec () at kernel/qcoreapplication.cpp:1187
#41 0x00000000004035c9 in main (argc=3, argv=0x7ffff20d8108) at ../../../kontact/src/main.cpp:219

Reported using DrKonqi
Comment 1 Hartmut Manz 2013-02-07 08:03:23 UTC
Created attachment 76964 [details]
New crash information added by DrKonqi

kontact (4.10) on KDE Platform 4.10.00 using Qt 4.8.2

- What I was doing when the application crashed:


This problem still exists in KDE 4.10 final release

-- Backtrace (Reduced):
#6  KSieveUi::ManageSieveScriptsDialog::killAllJobs (this=0xe4d7b60, disconnectSignal=false) at ../../../libksieve/ksieveui/managesievescriptsdialog.cpp:115
#7  0x00007f3cff5cba82 in KSieveUi::ManageSieveScriptsDialog::clear (this=0xe4d7b60, disconnect=<optimized out>) at ../../../libksieve/ksieveui/managesievescriptsdialog.cpp:321
#8  0x00007f3cff5cbd5c in KSieveUi::ManageSieveScriptsDialog::slotRefresh (this=0xe4d7b60, disconnectSignal=<optimized out>) at ../../../libksieve/ksieveui/managesievescriptsdialog.cpp:177
[...]
#10 0x00007f3cfde4c142 in KManageSieve::SieveJob::result (this=<optimized out>, _t1=0xcbbc6f0, _t2=true, _t3=..., _t4=false) at ./sievejob.moc:129
#11 0x00007f3cfde4dc99 in KManageSieve::SieveJob::Private::handleResponse (this=0x128c5ff0, response=..., data=...) at ../../../libksieve/kmanagesieve/sievejob.cpp:201
Comment 2 Sebastian Wessalowski 2013-03-04 08:15:24 UTC
This happens also on Gentoo. KDE 4.10 from main portage.

But it only happens if i activate sieve support on more than 1 server/mailaccount. If i only manage 1 account it works without problems
Comment 3 Sebastian Wessalowski 2013-03-04 08:18:06 UTC
Created attachment 77727 [details]
crash information
Comment 4 Sebastian Wessalowski 2013-03-06 10:05:22 UTC
The Bug still exists in KDE 4.10.1

Can anyone provide me with information wich packages i need to build with debugging information to get a meaningful backtrace?
Comment 5 Denis Kurz 2016-09-24 19:25:04 UTC
This bug has only been reported for versions before 4.14, which have been unsupported for at least two years now. Can anyone tell if this bug still present?

If noone confirms this bug for a Framework-based version of kontact (version 5.0 or later, as part of KDE Applications 15.08 or later), it gets closed in about three months.
Comment 6 Denis Kurz 2017-01-07 22:33:14 UTC
Just as announced in my last comment, I close this bug. If you encounter it again in a recent version (at least 5.0 aka 15.08), please open a new one unless it already exists. Thank you for all your input.