[Akonadi] [Bug 334206] While maildir resources synchronrizes a folder KMail blocks on switching to a different folder

2014-05-02 Thread Daniel Vrátil
https://bugs.kde.org/show_bug.cgi?id=334206

Daniel Vrátil  changed:

   What|Removed |Added

 CC||dvra...@redhat.com

--- Comment #1 from Daniel Vrátil  ---
I assume by blocked you mean that the application is still responsive (you can
click on stuff etc), but it just shows 'Opening folder...' and nothing is
happening?

If KMail really blocks (as in becoming unresponsive), please provide a
backtrace.

-- 
You are receiving this mail because:
You are the assignee for the bug.
___
Kdepim-bugs mailing list
Kdepim-bugs@kde.org
https://mail.kde.org/mailman/listinfo/kdepim-bugs


[Akonadi] [Bug 334206] While maildir resources synchronrizes a folder KMail blocks on switching to a different folder

2014-05-02 Thread Martin Steigerwald
https://bugs.kde.org/show_bug.cgi?id=334206

--- Comment #2 from Martin Steigerwald  ---
No, I mean blocked. It doesn´t respond to clicks anymore for minutes. A
backtrace done by attaching GDB to a process? And of which process? KMail,
Akonadi server or maildir resource?

Please provide some more hints on how to do this in order to be useful.

-- 
You are receiving this mail because:
You are the assignee for the bug.
___
Kdepim-bugs mailing list
Kdepim-bugs@kde.org
https://mail.kde.org/mailman/listinfo/kdepim-bugs


[Akonadi] [Bug 334206] While maildir resources synchronrizes a folder KMail blocks on switching to a different folder

2014-05-02 Thread Martin Steigerwald
https://bugs.kde.org/show_bug.cgi?id=334206

--- Comment #3 from Martin Steigerwald  ---
For the backtrace to be useful I mean. Well, I bet KMail as it is the blocked
process.

-- 
You are receiving this mail because:
You are the assignee for the bug.
___
Kdepim-bugs mailing list
Kdepim-bugs@kde.org
https://mail.kde.org/mailman/listinfo/kdepim-bugs


[Akonadi] [Bug 334206] While maildir resources synchronrizes a folder KMail blocks on switching to a different folder

2014-05-02 Thread Martin Steigerwald
https://bugs.kde.org/show_bug.cgi?id=334206

--- Comment #4 from Martin Steigerwald  ---
Is this useful? Backtrace of KMail while being blocked on folder system after
Akonadi restart.

(gdb) continue
Continuing.
^C
Program received signal SIGINT, Interrupt.
0x7ffd9bde48ed in poll () at ../sysdeps/unix/syscall-template.S:81
81  in ../sysdeps/unix/syscall-template.S

I don´t know how else to get a bt trace of a running process. If there is a
more suitable method please tell me.

(gdb) bt full
#0  0x7ffd9bde48ed in poll () at ../sysdeps/unix/syscall-template.S:81
No locals.
#1  0x7ffd921665f8 in ?? () from /lib/x86_64-linux-gnu/libdbus-1.so.3
No symbol table info available.
#2  0x7ffd9216559f in ?? () from /lib/x86_64-linux-gnu/libdbus-1.so.3
No symbol table info available.
#3  0x7ffd9214fc4c in ?? () from /lib/x86_64-linux-gnu/libdbus-1.so.3
No symbol table info available.
#4  0x7ffd921505f9 in ?? () from /lib/x86_64-linux-gnu/libdbus-1.so.3
No symbol table info available.
#5  0x7ffd9a23dce7 in ?? () from /usr/lib/x86_64-linux-gnu/libQtDBus.so.4
No symbol table info available.
#6  0x7ffd9a27c97c in ?? () from /usr/lib/x86_64-linux-gnu/libQtDBus.so.4
No symbol table info available.
#7  0x7ffd9749e097 in MailCommon::FolderCollection::identity() const ()
from /usr/lib/libmailcommon.so.4
No symbol table info available.
#8  0x7ffd9d803792 in ?? () from /usr/lib/libkmailprivate.so.4
No symbol table info available.
#9  0x7ffd97a8677f in MessageList::StorageModel::containsOutboundMessages()
const () from /usr/lib/libmessagelist.so.4
No symbol table info available.
#10 0x7ffd97a3e76d in ?? () from /usr/lib/libmessagelist.so.4
No symbol table info available.
#11 0x7ffd9c7666aa in QMetaObject::activate(QObject*, QMetaObject const*,
int, void**) () from /usr/lib/x86_64-linux-gnu/libQtCore.so.4
No symbol table info available.
#12 0x7ffd9c7b038d in
QAbstractItemModel::headerDataChanged(Qt::Orientation, int, int) () from
/usr/lib/x86_64-linux-gnu/libQtCore.so.4
No symbol table info available.
#13 0x7ffd97a85c6a in
MessageList::StorageModel::Private::onSelectionChanged() () from
/usr/lib/libmessagelist.so.4
No symbol table info available.
#14 0x7ffd9c7666aa in QMetaObject::activate(QObject*, QMetaObject const*,
int, void**) () from /usr/lib/x86_64-linux-gnu/libQtCore.so.4
No symbol table info available.
#15 0x7ffd9d1c7ff7 in QItemSelectionModel::selectionChanged(QItemSelection
const&, QItemSelection const&) ()
   from /usr/lib/x86_64-linux-gnu/libQtGui.so.4
No symbol table info available.
#16 0x7ffd9d1cd651 in
QItemSelectionModel::emitSelectionChanged(QItemSelection const&, QItemSelection
const&) ()
   from /usr/lib/x86_64-linux-gnu/libQtGui.so.4
No symbol table info available.
#17 0x7ffd9d1cde23 in QItemSelectionModel::select(QItemSelection const&,
QFlags) ()
   from /usr/lib/x86_64-linux-gnu/libQtGui.so.4
No symbol table info available.
#18 0x7ffd97a827e3 in
MessageList::Pane::Private::onSelectionChanged(QItemSelection const&,
QItemSelection const&) ()
   from /usr/lib/libmessagelist.so.4
No symbol table info available.
#19 0x7ffd9c7666aa in QMetaObject::activate(QObject*, QMetaObject const*,
int, void**) () from /usr/lib/x86_64-linux-gnu/libQtCore.so.4
No symbol table info available.
#20 0x7ffd9d1c7ff7 in QItemSelectionModel::selectionChanged(QItemSelection
const&, QItemSelection const&) ()
---Type  to continue, or q  to quit---
   from /usr/lib/x86_64-linux-gnu/libQtGui.so.4
No symbol table info available.
#21 0x7ffd9d1cd651 in
QItemSelectionModel::emitSelectionChanged(QItemSelection const&, QItemSelection
const&) ()
   from /usr/lib/x86_64-linux-gnu/libQtGui.so.4
No symbol table info available.
#22 0x7ffd9d1cde23 in QItemSelectionModel::select(QItemSelection const&,
QFlags) ()
   from /usr/lib/x86_64-linux-gnu/libQtGui.so.4
No symbol table info available.
#23 0x7ffd9d1b9e1a in QTreeViewPrivate::select(QModelIndex const&,
QModelIndex const&, QFlags) ()
   from /usr/lib/x86_64-linux-gnu/libQtGui.so.4
No symbol table info available.
#24 0x7ffd9d1ba71c in QTreeView::setSelection(QRect const&,
QFlags) ()
   from /usr/lib/x86_64-linux-gnu/libQtGui.so.4
No symbol table info available.
#25 0x7ffd9d17a4fa in QAbstractItemView::mousePressEvent(QMouseEvent*) ()
from /usr/lib/x86_64-linux-gnu/libQtGui.so.4
No symbol table info available.
#26 0x7ffd9ccd1b3b in QWidget::event(QEvent*) () from
/usr/lib/x86_64-linux-gnu/libQtGui.so.4
No symbol table info available.
#27 0x7ffd9d07043e in QFrame::event(QEvent*) () from
/usr/lib/x86_64-linux-gnu/libQtGui.so.4
No symbol table info available.
#28 0x7ffd9d17fd13 in QAbstractItemView::viewportEvent(QEvent*) () from
/usr/lib/x86_64-linux-gnu/libQtGui.so.4
No symbol table info available.
#29 0x7ffd9d1be930 in QTreeView::viewportEvent(QEvent*) () from
/usr/lib/x86_64-linux-gnu/libQtGui.so.4
No symbol table info available.
#30 0x7ffd9c752586 in
QCoreApplicationPriva

[Akonadi] [Bug 334206] While maildir resources synchronrizes a folder KMail blocks on switching to a different folder

2014-05-02 Thread Martin Steigerwald
https://bugs.kde.org/show_bug.cgi?id=334206

--- Comment #5 from Martin Steigerwald  ---
Created attachment 86400
  --> https://bugs.kde.org/attachment.cgi?id=86400&action=edit
gdb backtrace with all threads and with relevant debug packages installed.

Okay, here is a backtrace according to your description. Is this useful?

(gdb) continue
Continuing.
[New Thread 0x7ffd70c34700 (LWP 8992)]
[Thread 0x7ffd70c34700 (LWP 8992) exited]
^C
Program received signal SIGINT, Interrupt.
0x7ffd9bde48ed in poll () at ../sysdeps/unix/syscall-template.S:81
81  in ../sysdeps/unix/syscall-template.S
(gdb) t a a bt

Thread 4 (Thread 0x7ffd79f55700 (LWP 4372)):
#0  0x7ffd9bde8df3 in select () at ../sysdeps/unix/syscall-template.S:81
#1  0x7ffd9c72f0b1 in QProcessManager::run (this=0x7ffd9cab9540
) at io/qprocess_unix.cpp:270
#2  0x7ffd9c6502bf in QThreadPrivate::start (arg=0x7ffd9cab9540
) at thread/qthread_unix.cpp:349
#3  0x7ffd996bf062 in start_thread (arg=0x7ffd79f55700) at
pthread_create.c:312
#4  0x7ffd9bdefbfd in clone () at
../sysdeps/unix/sysv/linux/x86_64/clone.S:111

Thread 3 (Thread 0x7ffd78dc9700 (LWP 4375)):
#0  pthread_cond_wait@@GLIBC_2.3.2 () at
../nptl/sysdeps/unix/sysv/linux/x86_64/pthread_cond_wait.S:185
#1  0x7ffd8f8d07d2 in WTF::TCMalloc_PageHeap::scavengerThread
(this=) at wtf/FastMalloc.cpp:2499
#2  0x7ffd8f8d0809 in WTF::TCMalloc_PageHeap::runScavengerThread
(context=) at wtf/FastMalloc.cpp:1622
#3  0x7ffd996bf062 in start_thread (arg=0x7ffd78dc9700) at
pthread_create.c:312
#4  0x7ffd9bdefbfd in clone () at
../sysdeps/unix/sysv/linux/x86_64/clone.S:111

Thread 2 (Thread 0x7ffd73fff700 (LWP 4376)):
#0  0x7ffd9bde48ed in poll () at ../sysdeps/unix/syscall-template.S:81
#1  0x7ffd9352efe4 in g_main_context_poll (priority=2147483647, n_fds=1,
fds=0x7ffd6c003080, timeout=, context=0x7ffd6c0009a0)
at /tmp/buildd/glib2.0-2.40.0/./glib/gmain.c:4028
#2  g_main_context_iterate (context=context@entry=0x7ffd6c0009a0,
block=block@entry=1, dispatch=dispatch@entry=1, self=)
at /tmp/buildd/glib2.0-2.40.0/./glib/gmain.c:3729
#3  0x7ffd9352f0ec in g_main_context_iteration (context=0x7ffd6c0009a0,
may_block=1) at /tmp/buildd/glib2.0-2.40.0/./glib/gmain.c:3795
#4  0x7ffd9c77f676 in QEventDispatcherGlib::processEvents
(this=0x7ffd6c0008c0, flags=...) at kernel/qeventdispatcher_glib.cpp:427
#5  0x7ffd9c750fef in QEventLoop::processEvents
(this=this@entry=0x7ffd73ffece0, flags=...) at kernel/qeventloop.cpp:149
#6  0x7ffd9c7512e5 in QEventLoop::exec (this=this@entry=0x7ffd73ffece0,
flags=...) at kernel/qeventloop.cpp:204
#7  0x7ffd9c64dbef in QThread::exec (this=) at
thread/qthread.cpp:538
#8  0x7ffd9c6502bf in QThreadPrivate::start (arg=0xdf8f80) at
thread/qthread_unix.cpp:349
#9  0x7ffd996bf062 in start_thread (arg=0x7ffd73fff700) at
pthread_create.c:312
#10 0x7ffd9bdefbfd in clone () at
../sysdeps/unix/sysv/linux/x86_64/clone.S:111

Thread 1 (Thread 0x7ffd9eaba900 (LWP 4369)):
#0  0x7ffd9bde48ed in poll () at ../sysdeps/unix/syscall-template.S:81
#1  0x7ffd9216ca08 in poll (__timeout=, __nfds=, __fds=) at /usr/include/x86_64-linux-gnu/bits/poll2.h:46
#2  _dbus_poll (fds=, n_fds=,
timeout_milliseconds=) at ../../dbus/dbus-sysdeps-unix.c:2558
#3  0x7ffd921665f8 in socket_do_iteration (transport=0x6bec70, flags=6,
timeout_milliseconds=) at
../../dbus/dbus-transport-socket.c:1117
#4  0x7ffd9216559f in _dbus_transport_do_iteration (transport=0x6bec70,
flags=1, flags@entry=6, timeout_milliseconds=timeout_milliseconds@entry=25000)
at ../../dbus/dbus-transport.c:1001
#5  0x7ffd9214fc4c in _dbus_connection_do_iteration_unlocked
(connection=connection@entry=0x6bfc30, pending=pending@entry=0x3c8d97e0,
flags=flags@entry=6, 
timeout_milliseconds=timeout_milliseconds@entry=25000) at
../../dbus/dbus-connection.c:1227
#6  0x7ffd921505f9 in _dbus_connection_block_pending_call
(pending=0x3c8d97e0) at ../../dbus/dbus-connection.c:2432
#7  0x7ffd9a23dce7 in q_dbus_pending_call_block (pending=)
at qdbus_symbols_p.h:309
#8  QDBusConnectionPrivate::waitForFinished (this=0x6beef0,
pcall=pcall@entry=0x3a759f30) at qdbusintegrator.cpp:1780
#9  0x7ffd9a27c97c in QDBusPendingCallPrivate::waitForFinished
(this=0x3a759f30) at qdbuspendingcall.cpp:245
#10 0x7ffd9a27caed in QDBusPendingCall::waitForFinished
(this=this@entry=0x7fff8dc0dab0) at qdbuspendingcall.cpp:336
#11 0x7ffd9749e097 in operator= (pcall=..., this=0x7fff8dc0dad0) at
/usr/include/qt4/QtDBus/qdbusreply.h:88
---Type  to continue, or q  to quit---
#12 QDBusReply (reply=..., this=0x7fff8dc0dad0) at
/usr/include/qt4/QtDBus/qdbusreply.h:93
#13 MailCommon::FolderCollection::identity (this=0x1313db0) at
../../mailcommon/folder/foldercollection.cpp:299
#14 0x7ffd9d803792 in CollectionStorageModel::isOutBoundFolder
(this=, c=...) at ../../kmail/widgets/collectionpane.cpp:70
#15 0x7ffd97a8677f in MessageList::StorageModel::containsOutboundMessages