Closed Bug 1440716 Opened 7 years ago Closed 6 years ago

Sits forever in "Connecting ". Hanging connections (imap and smtp) and hang on mac OS X

Categories

(Thunderbird :: General, defect)

52 Branch
defect
Not set
critical

Tracking

(Not tracked)

RESOLVED INCOMPLETE

People

(Reporter: hsu-mozilla-bugzilla, Unassigned)

References

(Depends on 1 open bug)

Details

(Keywords: hang, Whiteboard: [has stacktrace][needs protocol log])

User Agent: Mozilla/5.0 (Macintosh; Intel Mac OS X 10_13_3) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/63.0.3239.132 Safari/537.36

Steps to reproduce:

Mac OS 10.13.3 (17D47). 52.6.0 (64-bit).  Trying to read and send email with Thunderbird.

It may be that this came with some upgrade to 5x version.

I have tried deleting thunderbird folder and reconfiguring, same problem continues.







Actual results:

Thunderbird on mac keeps hanging so that it just sits forever in "Connecting " with any tcp connection it does, such as smtp or imap connection.  Two email accounts, one of which is google and the other is dovecot.  When it does this, it sometimes starts working again when putting it to offline mode, or turning off network, but not always.  The problem may exist and often exists even after restarting.  Sometimes sending email is possible by going to offline mode, saying "send later" and going to online mode, sometimes it needs a full restart.  It looks like a problem in whatever opens connections.

There is a curiosity, when I travelled in US in California, I do not think I ever saw this there, while it consistently happens when I am in Europe (I am based in Finland). 

This is so obvious and painful that unless nobody else uses thunderbird on mac, this should be visible to other people.  Bugzilla showed some hangup cases but they were very old (8+ years).

Sometimes thunderbird hangs up completely when exiting it after this has happened, and I kill it through force quit.  following is the stack dump from apple reporting tool:

Process:         thunderbird (Thunderbird) [49983]
Path:            /Applications/Thunderbird.app/Contents/MacOS/thunderbird
Architecture:    x86_64
Parent:          launchd [1]
UID:             505
Task size:       574.83 MB (+36 KB)
CPU Time:        0.041s
Note:            Unresponsive for 38 seconds before sampling
Note:            1 idle work queue threads omitted

  Thread 0xc570fa           DispatchQueue 1           19 samples (1-19)         priority 46 (base 46)     cpu time 0.019s
  <thread QoS user interactive (requested user interactive), process unclamped, process received importance donation from WindowServer [218], IO tier 0>
  19  ??? (<8DFDD5ED-EAEC-3973-B831-1B1C6BB90E49> + 1794957) [0x10edb638d] 1-19
    19  __psynch_cvwait + 10 (libsystem_kernel.dylib + 113902) [0x7fff755e4cee] 1-19
     *19  psynch_cvcontinue + 0 (pthread + 38976) [0xffffff7f81b3f840] 1-19

  Thread 0xc57119           19 samples (1-19)         priority 31 (base 31)
  <thread QoS default (requested default), process unclamped, process received importance donation from WindowServer [218], IO tier 0>
  19  <truncated backtrace> 1-19
    19  mach_msg_trap + 10 (libsystem_kernel.dylib + 75714) [0x7fff755db7c2] 1-19
     *19  ipc_mqueue_receive_continue + 0 (kernel + 2318192) [0xffffff8000435f70] 1-19

  Thread 0xc5712c           Thread name "Gecko_IOThread"                        19 samples (1-19)         priority 31 (base 31)
  <thread QoS default (requested default), process unclamped, process received importance donation from WindowServer [218], IO tier 0>
  19  <truncated backtrace> 1-19
    19  kevent + 10 (libsystem_kernel.dylib + 118466) [0x7fff755e5ec2] 1-19
     *19  ??? (kernel + 7336448) [0xffffff80008ff200] 1-19

  Thread 0xc5712e           Thread name "JS Watchdog" 19 samples (1-19)         priority 31 (base 31)     cpu time <0.001s
  <thread QoS default (requested default), process unclamped, process received importance donation from WindowServer [218], IO tier 0>
  19  ??? (<8DFDD5ED-EAEC-3973-B831-1B1C6BB90E49> + 1794931) [0x10edb6373] 1-19
    19  __psynch_cvwait + 10 (libsystem_kernel.dylib + 113902) [0x7fff755e4cee] 1-19
     *19  psynch_cvcontinue + 0 (pthread + 38976) [0xffffff7f81b3f840] 1-19

  Thread 0xc5712f           Thread name "JS Helper"   19 samples (1-19)         priority 31 (base 31)
  <thread QoS default (requested default), process unclamped, process received importance donation from WindowServer [218], IO tier 0>
  19  ??? (<E4D3AB08-2EC7-3D8F-A390-3C2838592961> + 52907777) [0x11214ff01] 1-19
    19  __psynch_cvwait + 10 (libsystem_kernel.dylib + 113902) [0x7fff755e4cee] 1-19
     *19  psynch_cvcontinue + 0 (pthread + 38976) [0xffffff7f81b3f840] 1-19

  Thread 0xc57130           Thread name "JS Helper"   19 samples (1-19)         priority 31 (base 31)
  <thread QoS default (requested default), process unclamped, process received importance donation from WindowServer [218], IO tier 0>
  19  ??? (<E4D3AB08-2EC7-3D8F-A390-3C2838592961> + 52907777) [0x11214ff01] 1-19
    19  __psynch_cvwait + 10 (libsystem_kernel.dylib + 113902) [0x7fff755e4cee] 1-19
     *19  psynch_cvcontinue + 0 (pthread + 38976) [0xffffff7f81b3f840] 1-19

  Thread 0xc57131           Thread name "JS Helper"   19 samples (1-19)         priority 31 (base 31)
  <thread QoS default (requested default), process unclamped, process received importance donation from WindowServer [218], IO tier 0>
  19  ??? (<E4D3AB08-2EC7-3D8F-A390-3C2838592961> + 52907777) [0x11214ff01] 1-19
    19  __psynch_cvwait + 10 (libsystem_kernel.dylib + 113902) [0x7fff755e4cee] 1-19
     *19  psynch_cvcontinue + 0 (pthread + 38976) [0xffffff7f81b3f840] 1-19

  Thread 0xc57132           Thread name "JS Helper"   19 samples (1-19)         priority 31 (base 31)
  <thread QoS default (requested default), process unclamped, process received importance donation from WindowServer [218], IO tier 0>
  19  ??? (<E4D3AB08-2EC7-3D8F-A390-3C2838592961> + 52907777) [0x11214ff01] 1-19
    19  __psynch_cvwait + 10 (libsystem_kernel.dylib + 113902) [0x7fff755e4cee] 1-19
     *19  psynch_cvcontinue + 0 (pthread + 38976) [0xffffff7f81b3f840] 1-19

  Thread 0xc57133           Thread name "JS Helper"   19 samples (1-19)         priority 31 (base 31)
  <thread QoS default (requested default), process unclamped, process received importance donation from WindowServer [218], IO tier 0>
  19  ??? (<E4D3AB08-2EC7-3D8F-A390-3C2838592961> + 52907777) [0x11214ff01] 1-19
    19  __psynch_cvwait + 10 (libsystem_kernel.dylib + 113902) [0x7fff755e4cee] 1-19
     *19  psynch_cvcontinue + 0 (pthread + 38976) [0xffffff7f81b3f840] 1-19

  Thread 0xc57134           Thread name "JS Helper"   19 samples (1-19)         priority 31 (base 31)
  <thread QoS default (requested default), process unclamped, process received importance donation from WindowServer [218], IO tier 0>
  19  ??? (<E4D3AB08-2EC7-3D8F-A390-3C2838592961> + 52907777) [0x11214ff01] 1-19
    19  __psynch_cvwait + 10 (libsystem_kernel.dylib + 113902) [0x7fff755e4cee] 1-19
     *19  psynch_cvcontinue + 0 (pthread + 38976) [0xffffff7f81b3f840] 1-19

  Thread 0xc57135           Thread name "JS Helper"   19 samples (1-19)         priority 31 (base 31)
  <thread QoS default (requested default), process unclamped, process received importance donation from WindowServer [218], IO tier 0>
  19  ??? (<E4D3AB08-2EC7-3D8F-A390-3C2838592961> + 52907777) [0x11214ff01] 1-19
    19  __psynch_cvwait + 10 (libsystem_kernel.dylib + 113902) [0x7fff755e4cee] 1-19
     *19  psynch_cvcontinue + 0 (pthread + 38976) [0xffffff7f81b3f840] 1-19

  Thread 0xc57136           Thread name "JS Helper"   19 samples (1-19)         priority 31 (base 31)
  <thread QoS default (requested default), process unclamped, process received importance donation from WindowServer [218], IO tier 0>
  19  ??? (<E4D3AB08-2EC7-3D8F-A390-3C2838592961> + 52907777) [0x11214ff01] 1-19
    19  __psynch_cvwait + 10 (libsystem_kernel.dylib + 113902) [0x7fff755e4cee] 1-19
     *19  psynch_cvcontinue + 0 (pthread + 38976) [0xffffff7f81b3f840] 1-19

  Thread 0xc57137           19 samples (1-19)         priority 31 (base 31)
  <thread QoS default (requested default), process unclamped, process received importance donation from WindowServer [218], IO tier 0>
  19  <truncated backtrace> 1-19
    19  mach_msg_trap + 10 (libsystem_kernel.dylib + 75714) [0x7fff755db7c2] 1-19
     *19  ipc_mqueue_receive_continue + 0 (kernel + 2318192) [0xffffff8000435f70] 1-19

  Thread 0xc57138           Thread name "Hang Monitor"                          19 samples (1-19)         priority 31 (base 31)
  <thread QoS default (requested default), process unclamped, process received importance donation from WindowServer [218], IO tier 0>
  19  <truncated backtrace> 1-19
    19  __psynch_cvwait + 10 (libsystem_kernel.dylib + 113902) [0x7fff755e4cee] 1-19
     *19  psynch_cvcontinue + 0 (pthread + 38976) [0xffffff7f81b3f840] 1-19

  Thread 0xc57139           Thread name "Timer"       19 samples (1-19)         priority 31 (base 31)     cpu time 0.001s
  <thread QoS default (requested default), process unclamped, process received importance donation from WindowServer [218], IO tier 0>
  19  ??? (<8DFDD5ED-EAEC-3973-B831-1B1C6BB90E49> + 1794931) [0x10edb6373] 1-19
    19  __psynch_cvwait + 10 (libsystem_kernel.dylib + 113902) [0x7fff755e4cee] 1-19
     *19  psynch_cvcontinue + 0 (pthread + 38976) [0xffffff7f81b3f840] 1-19

  Thread 0xc5713a           Thread name "Cache2 I/O"  19 samples (1-19)         priority 31 (base 31)
  <thread QoS default (requested default), process unclamped, process received importance donation from WindowServer [218], IO tier 0>
  19  ??? (<8DFDD5ED-EAEC-3973-B831-1B1C6BB90E49> + 1794957) [0x10edb638d] 1-19
    19  __psynch_cvwait + 10 (libsystem_kernel.dylib + 113902) [0x7fff755e4cee] 1-19
     *19  psynch_cvcontinue + 0 (pthread + 38976) [0xffffff7f81b3f840] 1-19

  Thread 0xc5713b           Thread name "DataStorage" 19 samples (1-19)         priority 31 (base 31)
  <thread QoS default (requested default), process unclamped, process received importance donation from WindowServer [218], IO tier 0>
  19  <truncated backtrace> 1-19
    19  __psynch_cvwait + 10 (libsystem_kernel.dylib + 113902) [0x7fff755e4cee] 1-19
     *19  psynch_cvcontinue + 0 (pthread + 38976) [0xffffff7f81b3f840] 1-19

  Thread 0xc5713c           Thread name "DataStorage" 19 samples (1-19)         priority 31 (base 31)
  <thread QoS default (requested default), process unclamped, process received importance donation from WindowServer [218], IO tier 0>
  19  <truncated backtrace> 1-19
    19  __psynch_cvwait + 10 (libsystem_kernel.dylib + 113902) [0x7fff755e4cee] 1-19
     *19  psynch_cvcontinue + 0 (pthread + 38976) [0xffffff7f81b3f840] 1-19

  Thread 0xc5713e           Thread name "GMPThread"   19 samples (1-19)         priority 31 (base 31)
  <thread QoS default (requested default), process unclamped, process received importance donation from WindowServer [218], IO tier 0>
  19  <truncated backtrace> 1-19
    19  __psynch_cvwait + 10 (libsystem_kernel.dylib + 113902) [0x7fff755e4cee] 1-19
     *19  psynch_cvcontinue + 0 (pthread + 38976) [0xffffff7f81b3f840] 1-19

  Thread 0xc57141           Thread name "Compositor"  19 samples (1-19)         priority 31 (base 31)     cpu time 0.014s
  <thread QoS default (requested default), process unclamped, process received importance donation from WindowServer [218], IO tier 0>
  19  ??? [0x8000000000000000] 1-19
    19  ??? (<E4D3AB08-2EC7-3D8F-A390-3C2838592961> + 8325544) [0x10f6cb9a8] 1-19
      19  __psynch_cvwait + 10 (libsystem_kernel.dylib + 113902) [0x7fff755e4cee] 1-19
       *19  psynch_cvcontinue + 0 (pthread + 38976) [0xffffff7f81b3f840] 1-19

  Thread 0xc57142           Thread name "ImgDecoder #1"                         19 samples (1-19)         priority 31 (base 31)
  <thread QoS default (requested default), process unclamped, process received importance donation from WindowServer [218], IO tier 0>
  19  ??? (<8DFDD5ED-EAEC-3973-B831-1B1C6BB90E49> + 1794957) [0x10edb638d] 1-19
    19  __psynch_cvwait + 10 (libsystem_kernel.dylib + 113902) [0x7fff755e4cee] 1-19
     *19  psynch_cvcontinue + 0 (pthread + 38976) [0xffffff7f81b3f840] 1-19

  Thread 0xc57143           Thread name "ImgDecoder #2"                         19 samples (1-19)         priority 31 (base 31)
  <thread QoS default (requested default), process unclamped, process received importance donation from WindowServer [218], IO tier 0>
  19  ??? (<8DFDD5ED-EAEC-3973-B831-1B1C6BB90E49> + 1794957) [0x10edb638d] 1-19
    19  __psynch_cvwait + 10 (libsystem_kernel.dylib + 113902) [0x7fff755e4cee] 1-19
     *19  psynch_cvcontinue + 0 (pthread + 38976) [0xffffff7f81b3f840] 1-19

  Thread 0xc57144           Thread name "ImgDecoder #3"                         19 samples (1-19)         priority 31 (base 31)
  <thread QoS default (requested default), process unclamped, process received importance donation from WindowServer [218], IO tier 0>
  19  ??? (<8DFDD5ED-EAEC-3973-B831-1B1C6BB90E49> + 1794957) [0x10edb638d] 1-19
    19  __psynch_cvwait + 10 (libsystem_kernel.dylib + 113902) [0x7fff755e4cee] 1-19
     *19  psynch_cvcontinue + 0 (pthread + 38976) [0xffffff7f81b3f840] 1-19

  Thread 0xc57145           Thread name "ImageIO"     19 samples (1-19)         priority 31 (base 31)
  <thread QoS default (requested default), process unclamped, process received importance donation from WindowServer [218], IO tier 0>
  19  <truncated backtrace> 1-19
    19  __psynch_cvwait + 10 (libsystem_kernel.dylib + 113902) [0x7fff755e4cee] 1-19
     *19  psynch_cvcontinue + 0 (pthread + 38976) [0xffffff7f81b3f840] 1-19

  Thread 0xc57146           Thread name "IPDL Background"                       19 samples (1-19)         priority 31 (base 31)
  <thread QoS default (requested default), process unclamped, process received importance donation from WindowServer [218], IO tier 0>
  19  ??? (<8DFDD5ED-EAEC-3973-B831-1B1C6BB90E49> + 1794957) [0x10edb638d] 1-19
    19  __psynch_cvwait + 10 (libsystem_kernel.dylib + 113902) [0x7fff755e4cee] 1-19
     *19  psynch_cvcontinue + 0 (pthread + 38976) [0xffffff7f81b3f840] 1-19

  Thread 0xc57149           Thread name "DOM Worker"  19 samples (1-19)         priority 31 (base 31)
  <thread QoS default (requested default), process unclamped, process received importance donation from WindowServer [218], IO tier 0>
  19  ??? (<8DFDD5ED-EAEC-3973-B831-1B1C6BB90E49> + 1794957) [0x10edb638d] 1-19
    19  __psynch_cvwait + 10 (libsystem_kernel.dylib + 113902) [0x7fff755e4cee] 1-19
     *19  psynch_cvcontinue + 0 (pthread + 38976) [0xffffff7f81b3f840] 1-19

  Thread 0xc5714f           19 samples (1-19)         priority 31 (base 31)
  <thread QoS default (requested default), process unclamped, process received importance donation from WindowServer [218], IO tier 0>
  19  <truncated backtrace> 1-19
    19  mach_msg_trap + 10 (libsystem_kernel.dylib + 75714) [0x7fff755db7c2] 1-19
     *19  ipc_mqueue_receive_continue + 0 (kernel + 2318192) [0xffffff8000435f70] 1-19

  Thread 0xc57150           Thread name "ImageBridgeChild"                      19 samples (1-19)         priority 31 (base 31)
  <thread QoS default (requested default), process unclamped, process received importance donation from WindowServer [218], IO tier 0>
  19  <truncated backtrace> 1-19
    19  __psynch_cvwait + 10 (libsystem_kernel.dylib + 113902) [0x7fff755e4cee] 1-19
     *19  psynch_cvcontinue + 0 (pthread + 38976) [0xffffff7f81b3f840] 1-19

  Thread 0xc5719b           Thread name "com.apple.NSEventThread"               19 samples (1-19)         priority 46 (base 46)
  <thread QoS user interactive (requested user interactive), process unclamped, process received importance donation from WindowServer [218], IO tier 0>
  19  thread_start + 13 (libsystem_pthread.dylib + 11357) [0x7fff7571fc5d] 1-19
    19  _pthread_start + 377 (libsystem_pthread.dylib + 13677) [0x7fff7572056d] 1-19
      19  _pthread_body + 340 (libsystem_pthread.dylib + 14017) [0x7fff757206c1] 1-19
        19  _NSEventThread + 184 (AppKit + 1569736) [0x7fff4b2a23c8] 1-19
          19  CFRunLoopRunSpecific + 483 (CoreFoundation + 544579) [0x7fff4db81f43] 1-19
            19  __CFRunLoopRun + 1783 (CoreFoundation + 547015) [0x7fff4db828c7] 1-19
              19  __CFRunLoopServiceMachPort + 341 (CoreFoundation + 550261) [0x7fff4db83575] 1-19
                19  mach_msg_trap + 10 (libsystem_kernel.dylib + 75714) [0x7fff755db7c2] 1-19
                 *19  ipc_mqueue_receive_continue + 0 (kernel + 2318192) [0xffffff8000435f70] 1-19

  Thread 0xc57254           Thread name "Proxy R~olution"                       19 samples (1-19)         priority 31 (base 31)
  <thread QoS default (requested default), process unclamped, process received importance donation from WindowServer [218], IO tier 0>
  19  <truncated backtrace> 1-19
    19  __psynch_cvwait + 10 (libsystem_kernel.dylib + 113902) [0x7fff755e4cee] 1-19
     *19  psynch_cvcontinue + 0 (pthread + 38976) [0xffffff7f81b3f840] 1-19

  Thread 0xc5777a           Thread name "DataStorage" 19 samples (1-19)         priority 31 (base 31)
  <thread QoS default (requested default), process unclamped, process received importance donation from WindowServer [218], IO tier 0>
  19  <truncated backtrace> 1-19
    19  __psynch_cvwait + 10 (libsystem_kernel.dylib + 113902) [0x7fff755e4cee] 1-19
     *19  psynch_cvcontinue + 0 (pthread + 38976) [0xffffff7f81b3f840] 1-19

  Thread 0xc57aeb           Thread name "mozStorage #2"                         19 samples (1-19)         priority 31 (base 31)
  <thread QoS default (requested default), process unclamped, process received importance donation from WindowServer [218], IO tier 0>
  19  <truncated backtrace> 1-19
    19  __psynch_cvwait + 10 (libsystem_kernel.dylib + 113902) [0x7fff755e4cee] 1-19
     *19  psynch_cvcontinue + 0 (pthread + 38976) [0xffffff7f81b3f840] 1-19

  Thread 0xc5866d           Thread name "mozStorage #3"                         19 samples (1-19)         priority 31 (base 31)
  <thread QoS default (requested default), process unclamped, process received importance donation from WindowServer [218], IO tier 0>
  19  <truncated backtrace> 1-19
    19  __psynch_cvwait + 10 (libsystem_kernel.dylib + 113902) [0x7fff755e4cee] 1-19
     *19  psynch_cvcontinue + 0 (pthread + 38976) [0xffffff7f81b3f840] 1-19

  Thread 0xc5866e           Thread name "mozStorage #4"                         19 samples (1-19)         priority 31 (base 31)
  <thread QoS default (requested default), process unclamped, process received importance donation from WindowServer [218], IO tier 0>
  19  <truncated backtrace> 1-19
    19  __psynch_cvwait + 10 (libsystem_kernel.dylib + 113902) [0x7fff755e4cee] 1-19
     *19  psynch_cvcontinue + 0 (pthread + 38976) [0xffffff7f81b3f840] 1-19

  Thread 0xc58fa6           Thread name "mozStorage #5"                         19 samples (1-19)         priority 31 (base 31)
  <thread QoS default (requested default), process unclamped, process received importance donation from WindowServer [218], IO tier 0>
  19  ??? (<8DFDD5ED-EAEC-3973-B831-1B1C6BB90E49> + 1794957) [0x10edb638d] 1-19
    19  __psynch_cvwait + 10 (libsystem_kernel.dylib + 113902) [0x7fff755e4cee] 1-19
     *19  psynch_cvcontinue + 0 (pthread + 38976) [0xffffff7f81b3f840] 1-19

  Thread 0xc5963d           Thread name "HTML5 Parser"                          19 samples (1-19)         priority 31 (base 31)
  <thread QoS default (requested default), process unclamped, process received importance donation from WindowServer [218], IO tier 0>
  19  ??? (<8DFDD5ED-EAEC-3973-B831-1B1C6BB90E49> + 1794957) [0x10edb638d] 1-19
    19  __psynch_cvwait + 10 (libsystem_kernel.dylib + 113902) [0x7fff755e4cee] 1-19
     *19  psynch_cvcontinue + 0 (pthread + 38976) [0xffffff7f81b3f840] 1-19

  Thread 0xc5963e           Thread name "localStorage DB"                       19 samples (1-19)         priority 31 (base 31)
  <thread QoS default (requested default), process unclamped, process received importance donation from WindowServer [218], IO tier 0>
  19  <truncated backtrace> 1-19
    19  __psynch_cvwait + 10 (libsystem_kernel.dylib + 113902) [0x7fff755e4cee] 1-19
     *19  psynch_cvcontinue + 0 (pthread + 38976) [0xffffff7f81b3f840] 1-19

  Thread 0xc597cf           19 samples (1-19)         priority 31 (base 31)
  <thread QoS default (requested default), process unclamped, process received importance donation from WindowServer [218], IO tier 0>
  19  ??? (<8DFDD5ED-EAEC-3973-B831-1B1C6BB90E49> + 1794957) [0x10edb638d] 1-19
    19  __psynch_cvwait + 10 (libsystem_kernel.dylib + 113902) [0x7fff755e4cee] 1-19
     *19  psynch_cvcontinue + 0 (pthread + 38976) [0xffffff7f81b3f840] 1-19

  Thread 0xc63141           Thread name "Shutdow~minator"                       19 samples (1-19)         priority 31 (base 31)     cpu time <0.001s
  <thread QoS default (requested default), process unclamped, process received importance donation from WindowServer [218], IO tier 0>
  19  ??? (<E4D3AB08-2EC7-3D8F-A390-3C2838592961> + 44957194) [0x1119bae0a] 1-19
    19  usleep + 53 (libsystem_c.dylib + 509520) [0x7fff75560650] 1-19
      19  __semwait_signal + 10 (libsystem_kernel.dylib + 114778) [0x7fff755e505a] 1-19
       *19  semaphore_wait_continue + 0 (kernel + 2577040) [0xffffff8000475290] 1-19

  Thread 0xc63142           Thread name "CVDisplayLink"                         19 samples (1-19)         priority 54 (base 54)     cpu time 0.006s
  <process unclamped, process received importance donation from WindowServer [218], IO tier 0>
  19  thread_start + 13 (libsystem_pthread.dylib + 11357) [0x7fff7571fc5d] 1-19
    19  _pthread_start + 377 (libsystem_pthread.dylib + 13677) [0x7fff7572056d] 1-19
      19  _pthread_body + 340 (libsystem_pthread.dylib + 14017) [0x7fff757206c1] 1-19
        19  CVDisplayLink::runIOThread() + 500 (CoreVideo + 10520) [0x7fff4f72f918] 1-19
          19  CVDisplayLink::waitUntil(unsigned long long) + 237 (CoreVideo + 13159) [0x7fff4f730367] 1-19
            19  __psynch_cvwait + 10 (libsystem_kernel.dylib + 113902) [0x7fff755e4cee] 1-19
             *19  psynch_cvcontinue + 0 (pthread + 38976) [0xffffff7f81b3f840] 1-19

  Binary Images:
           0x10e92d000 -        0x10e92ffff  org.mozilla.thunderbird 52.6.0 (52.6.0) <CFAE5D98-7FD3-3FB4-B8D3-DBA1F8DC7C66>  /Applications/Thunderbird.app/Contents/MacOS/thunderbird
           0x10ec00000 -                ???  ???                                     <8DFDD5ED-EAEC-3973-B831-1B1C6BB90E49>
           0x10eedb000 -                ???  ???                                     <E4D3AB08-2EC7-3D8F-A390-3C2838592961>
        0x7fff4b123000 -     0x7fff4bf80fff  com.apple.AppKit 6.9 (1561.20.106)      <D03AE413-C601-3B7C-A3D4-FC32F4C13940>  /System/Library/Frameworks/AppKit.framework/Versions/C/AppKit
        0x7fff4dafd000 -     0x7fff4df9dfff  com.apple.CoreFoundation 6.9 (1451)     <7AFE9C8F-A562-3AFC-8402-117AA02F57E9>  /System/Library/Frameworks/CoreFoundation.framework/Versions/A/CoreFoundation
        0x7fff4f72d000 -     0x7fff4f767fff  com.apple.CoreVideo 1.8 (279.2)         <A8FC5325-D092-3A28-A1CF-5C94B8101F71>  /System/Library/Frameworks/CoreVideo.framework/Versions/A/CoreVideo
        0x7fff754e4000 -     0x7fff7556dfff  libsystem_c.dylib (1244.30.3)           <E0136C71-0648-36F0-9F84-82EA2748A8D7>  /usr/lib/system/libsystem_c.dylib
        0x7fff755c9000 -     0x7fff755eefff  libsystem_kernel.dylib (4570.41.2)      <5155A4C3-825B-3178-AC51-0D2D2F2A6618>  /usr/lib/system/libsystem_kernel.dylib
        0x7fff7571d000 -     0x7fff75728fff  libsystem_pthread.dylib (301.30.1)      <ABA848E1-6978-3B42-A3A7-608B2C36FA93>  /usr/lib/system/libsystem_pthread.dylib
   *0xffffff7f81b36000 - 0xffffff7f81b41fff  com.apple.kec.pthread 1.0 (1)           <71C5BFFF-88C9-3420-8F52-029FAFF0866D>  /System/Library/Extensions/pthread.kext/Contents/MacOS/pthread
   *0xffffff8000200000 - 0xffffff8000bfffff  kernel (4570.41.2)                      <18D901F1-4A03-3FF1-AE34-C26B2732F13C>  /System/Library/Kernels/kernel




Expected results:

connections should work.
Some recent examples: 
bug 1400568 - Thunderbird Mac 52.3.0 frequently hangs after Send 
Bug 1424709 - [macos] crash when changing macos network location
Bug 1422251 - TB52 Freeze after mail has been sent, with zero cpu (sierra)
Severity: normal → critical
Component: Untriaged → General
Keywords: hang
Summary: Hanging connections and crashes on mac OS X → Hanging connections and hang on mac OS X
Whiteboard: [has stacktrace]
Heikki,

Does this also happen to you with the beta at http://www.mozilla.org/thunderbird/channel/
Flags: needinfo?(hsu-mozilla-bugzilla)
The beta downloaded a moment ago seems still to hang.  No extensive testing yet, but it starts, apparently managed to create connections and then the two tabs (for different accounts) both han with "Loading message..." and thunderbird eats all cpu.
Trying to do anything which needs new connection hangs up similarly. When trying to send email, it get stuck with "Connecting to smtp.gmail.com..."

There was an other bug which had similar symptons in 1199957, again, hanging "Connecting" and eating all cpu, however, this was with rss feeds or something.  However, as this happens with all connections thunderbird tries to open, it could be same.  Maybe the already fixed but got reintroduced with 5x ?

Symptoms seem identical:

"I had the feeling this was happening when reading lots of emails in succession (doesn't only happen in newsgroups for me). When it starts to hang, the email is not yet displayed and I see "Connecting to xxx..." in the status bar."

There also seems to have been a solution:

"Just a quick note:


-    while (remaining > 0) {
-        n = PR_Read(fd, start, remaining);
-        if (n < 0) {
-            if( (len - remaining) == 0 ) // no octet is ever read
-                return -1;
-            break;
-        } else {

It seems that I need to change if (n < 0) to if (n <= 0) in the affected patch to
correct the problem on the Mac: However, I have a feeling that there may be subtle
semantic issue that was missed in the implementation of PR library (especially in
PR_Read implementation on the Mac). Otherwise, I can't explain the non-issue on Windows and Linux build. 
But again, I am sorry it has to wait until my hardware issues are resolved complete so that I can run local build :-("
Flags: needinfo?(hsu-mozilla-bugzilla)
No luck with beta. 

There was a change to worse with last update and beta, both will not open any connections any more, while previous versions sometimes worked for a while before starting to get stuck.  Thunderbird just busyloops on all connections, from start.
I can confirm this. Just happend out of nowhere. Maybe I hit some limit with Emails/Folders? I have many folders with a complex subfolder structure.
Thunderbird 52.8.0
I´ve upgraded Thunderbird to beta a few days ago: 60.0b7 (64-bit), disabled Lightning (Calendar extension).
The hangs are still occurring sporadically. So this is not related to the system being in sleep mode. Just sometimes every connection is disconnected. Enigmail plugin is still active.
Going off line and on line again could revive some connections to an account but sometimes not all.
Unfortunately I cannot debug this issue. Thunderbird dev console and mac console shows nothing related. I´ve also tried to activate the ENV variables for logging, but this resulted in completely empty log files. I would like to submit more information if needed, if instructed to do so.
OK, I´ve found how to enable logging:
export MOZ_LOG=IMAP:5,timestamp
export MOZ_LOG_FILE=$HOME/logs/thunderbird.log

/Applications/Thunderbird.app/Contents/MacOS/thunderbird-bin &

Release doesn´t do logging anyway, but beta does. I will paste parts of it, when another hang occurs.
THis bug doesn´t drew much attention, it seems.
> This is so obvious and painful that unless nobody else uses thunderbird on mac, this should be visible to other people.  

Lots of users have Macs.  What you are describing is rarely reported.

When exactly did this start happening?
Still seeing this on beta?
Flags: needinfo?(hsu-mozilla-bugzilla)
Summary: Hanging connections and hang on mac OS X → Sits forever in "Connecting ". Hanging connections (imap and smpt) and hang on mac OS X
Heikki,
Does it also happen with version 60?
https://www.thunderbird.net/channel/
Summary: Sits forever in "Connecting ". Hanging connections (imap and smpt) and hang on mac OS X → Sits forever in "Connecting ". Hanging connections (imap and smtp) and hang on mac OS X
(In reply to Zsolt Barat from comment #7)
> 
> Release doesn´t do logging anyway, but beta does. 

I've charged the low battery on my macbook air and will try to duplicate this bug. But want to point out that the 52.x release does support logging but you have to use the old style env vars, i.e.:

> export NSPR_LOG_MODULES=IMAP:5,timestamp
> export NSPR_LOG_FILE=$HOME/logs/thunderbird.log
> 
> /Applications/Thunderbird.app/Contents/MacOS/thunderbird-bin &
Depends on: 1381485
Hekki,

are you still here?

It would greatly help if a user who can reproduce this would put a regression range into bug 1381485.

Or the protocol log requested here ^^
See Also: → 1199957
Whiteboard: [has stacktrace] → [has stacktrace][needs protocol log]
(In reply to Zsolt Barat from comment #7)
> OK, I´ve found how to enable logging:
> I will paste parts of it, when another hang occurs.

Unfortunately we don't have enough data (eg protocol log) to diagnose this issue, so closing.

If someone post the needed information then we can resume investigation
Status: UNCONFIRMED → RESOLVED
Closed: 6 years ago
Flags: needinfo?(hsu-mozilla-bugzilla)
Resolution: --- → INCOMPLETE

(In reply to Zsolt Barat from comment #6)

I´ve upgraded Thunderbird to beta a few days ago: 60.0b7 (64-bit), disabled Lightning (Calendar extension).
The hangs are still occurring sporadically. So this is not related to the
system being in sleep mode. Just sometimes every connection is disconnected.
...
Going off line and on line again could revive some connections to an account but sometimes not all.

Zsolt writes in bug 1199957 comment 33 "Thunderbird pretty unusable in Mac. This does not happen in FreeBSD, nor there is any of the slowness and waits in FreeBSD. The accounts are same, so this is likely mac related, not related to the number of emails or folder sizes." followed by PM "after I converted some mailboxes to maildir format this problem is gone". Perhaps in this case the size of the Sent folder is an issue - because the reigning bug 1381485 could be made worse by slow saving to the Sent folder (a somewhat reliabe workaround seems to be changing Sent from an imap folder to a local folder).

You need to log in before you can comment on or make changes to this bug.