#688825 icedove: Hangs while transfering a bunch of mails to an IMAP account

#688825#3
Date:
2012-09-25 23:45:35 UTC
From:
To:
While transfering a bunch of mails (> 100) to an IMAP account, icedove
stopped to respond after about the half. I've also seen this issue while
trying to transfer only about 10 but larger mails.

If I attach gdb and run bt I get the following output:

#0  __lll_lock_wait () at ../nptl/sysdeps/unix/sysv/linux/x86_64/lowlevellock.S:136
#1  0x00007fa5951da36f in _L_lock_1145 () from /lib/x86_64-linux-gnu/libpthread.so.0
#2  0x00007fa5951da2ba in __pthread_mutex_lock (mutex=0x7fa583da2690) at pthread_mutex_lock.c:101
#3  0x00007fa58ed8d8d9 in PR_Lock () from /usr/lib/x86_64-linux-gnu/libnspr4.so
#4  0x00007fa593075112 in MutexAutoLock (aLock=..., this=0x7ffff5e2ec78) at ../../../dist/include/mozilla/Mutex.h:184
#5  nsSocketTransportService::GetThreadSafely (this=this@entry=0x7fa583da25e0)
    at /tmp/buildd/icedove-10.0.7/mozilla/netwerk/base/src/nsSocketTransportService2.cpp:128
#6  0x00007fa5930751ba in nsSocketTransportService::Dispatch (this=0x7fa583da25e0, event=0x7fa578e23200, flags=0)
    at /tmp/buildd/icedove-10.0.7/mozilla/netwerk/base/src/nsSocketTransportService2.cpp:139
#7  0x00007fa5930b2aa6 in nsHttpConnectionMgr::PostEvent (this=this@entry=0x7fa56e421900, handler=
    (void (nsHttpConnectionMgr::*)(nsHttpConnectionMgr * const, PRInt32, void *)) 0x7fa5930b3dc2 <nsHttpConnectionMgr::OnMsgCancelTransaction(int, void*)>, iparam=iparam@entry=-2147467260, vparam=vparam@entry=0x7fa57de1d830)
    at /tmp/buildd/icedove-10.0.7/mozilla/netwerk/protocol/http/nsHttpConnectionMgr.cpp:208
#8  0x00007fa5930b2d74 in nsHttpConnectionMgr::CancelTransaction (this=0x7fa56e421900, trans=0x7fa57de1d830, reason=2147500036)
    at /tmp/buildd/icedove-10.0.7/mozilla/netwerk/protocol/http/nsHttpConnectionMgr.cpp:300
#9  0x00007fa5930c2eb1 in CancelTransaction (reason=2147500036, trans=<optimized out>, this=<optimized out>)
    at /tmp/buildd/icedove-10.0.7/mozilla/netwerk/protocol/http/nsHttpHandler.h:154
#10 Cancel (status=2147500036, this=0x7fa5612de800)
    at /tmp/buildd/icedove-10.0.7/mozilla/netwerk/protocol/http/nsHttpChannel.cpp:3601
#11 nsHttpChannel::Cancel (this=0x7fa5612de800, status=2147500036)
    at /tmp/buildd/icedove-10.0.7/mozilla/netwerk/protocol/http/nsHttpChannel.cpp:3586
#12 0x00007fa59306601a in nsLoadGroup::Cancel (this=0x7fa5805faf00, status=2147500036)
    at /tmp/buildd/icedove-10.0.7/mozilla/netwerk/base/src/nsLoadGroup.cpp:340
#13 0x00007fa59378ba2d in nsHTTPListener::FreeLoadGroup (this=0x7fa57601e080, aCancelLoad=true)
    at /tmp/buildd/icedove-10.0.7/mozilla/security/manager/ssl/src/nsNSSCallbacks.cpp:605
#14 0x00007fa59378ba56 in nsCancelHTTPDownloadEvent::Run (this=0x7fa56e457980)
    at /tmp/buildd/icedove-10.0.7/mozilla/security/manager/ssl/src/nsNSSCallbacks.cpp:193
#15 0x00007fa593b9893b in nsThread::ProcessNextEvent (this=0x7fa594820d40, mayWait=<optimized out>, result=0x7ffff5e2ee9f)
    at /tmp/buildd/icedove-10.0.7/mozilla/xpcom/threads/nsThread.cpp:631
#16 0x00007fa593b6e1dc in NS_ProcessNextEvent_P (thread=<optimized out>, mayWait=true)
    at /tmp/buildd/icedove-10.0.7/mozilla/xpcom/build/nsThreadUtils.cpp:245
#17 0x00007fa593b1602d in mozilla::ipc::MessagePump::Run (this=0x7fa583d095c0, aDelegate=0x7fa5948f7240)
    at /tmp/buildd/icedove-10.0.7/mozilla/ipc/glue/MessagePump.cpp:134
#18 0x00007fa593bb39b5 in RunHandler (this=0x7fa5948f7240)
    at /tmp/buildd/icedove-10.0.7/mozilla/ipc/chromium/src/base/message_loop.cc:201
#19 MessageLoop::Run (this=0x7fa5948f7240) at /tmp/buildd/icedove-10.0.7/mozilla/ipc/chromium/src/base/message_loop.cc:175
#20 0x00007fa593886487 in nsBaseAppShell::Run (this=0x7fa581a0ad30)
    at /tmp/buildd/icedove-10.0.7/mozilla/widget/src/xpwidgets/nsBaseAppShell.cpp:189
#21 0x00007fa593767c17 in nsAppStartup::Run (this=0x7fa581a14830)
    at /tmp/buildd/icedove-10.0.7/mozilla/toolkit/components/startup/nsAppStartup.cpp:228
#22 0x00007fa59304ed56 in XRE_main (argc=<optimized out>, argv=<optimized out>, aAppData=<optimized out>)
    at /tmp/buildd/icedove-10.0.7/mozilla/toolkit/xre/nsAppRunner.cpp:3551
#23 0x0000000000401f49 in do_main (argv=0x7ffff5e305c8, argc=1, exePath=0x7ffff5e2f4b8 "/usr/lib/icedove/libxpcom.so")
    at nsMailApp.cpp:143
#24 main (argc=1, argv=0x7ffff5e305c8) at nsMailApp.cpp:226

The output of threads apply all bt is attached.