Bug: Random hangs without recovery loosing written text during compose
Status: RESOLVED
Priority: --
Resolution: WORKSFORME
Created: 2024-03-14 12:57:57+00:00
Resolved: 2024-08-09 10:52:00+00:00

User Agent: Mozilla/5.0 (X11; Linux x86_64; rv:125.0) Gecko/20100101 Firefox/125.0

Steps to reproduce:

Debian sid/unstable with *thunderbird* 1:115.8.1-1 and *gnome-shell* 44.9-1+b1

I also experienced this with 115.8.0.


Actual results:

Compose an email (mostly reply). Suddenly all Thunderbird windows stop responding, and the GNOME message appears for the current active windows, that a hang was detected, and if I want to wait or terminate it.

Attaching with GDB shows:

#0  0x00007f1d2db19abf in __GI___poll (fds=0x7f1d215eb8a0, nfds=2, timeout=-1) at ../sysdeps/unix/sysv/linux/poll.c:29
#1  0x00007f1d25a7f497 in PollWrapper(_GPollFD*, unsigned int, int) (aUfds=0x7f1d215eb8a0, aNfsd=2, aTimeout=-1) at ./widget/gtk/nsAppShell.cpp:78
#2  0x00007f1d2cc14277 in  () at /lib/x86_64-linux-gnu/libglib-2.0.so.0
#3  0x00007f1d2cc14930 in g_main_context_iteration () at /lib/x86_64-linux-gnu/libglib-2.0.so.0
#4  0x00007f1d25a7f67a in nsAppShell::ProcessNextNativeEvent(bool) (this=<optimized out>, mayWait=<optimized out>) at ./widget/gtk/nsAppShell.cpp:422
#5  0x00007f1d259f6e78 in nsBaseAppShell::DoProcessNextNativeEvent(bool) (this=0x7f1d215fe120, mayWait=<optimized out>) at ./widget/nsBaseAppShell.cpp:131
#6  nsBaseAppShell::OnProcessNextEvent(nsIThreadInternal*, bool) (this=0x7f1d215fe120, thr=0x7f1d2d8a4380, mayWait=<optimized out>) at ./widget/nsBaseAppShell.cpp:267
#7  0x00007f1d259f6f6e in non-virtual thunk to nsBaseAppShell::OnProcessNextEvent(nsIThreadInternal*, bool) () at ./obj-thunderbird/dist/include/nsISupportsImpl.h:361
#8  0x00007f1d231cc07e in nsThread::ProcessNextEvent(bool, bool*) (this=0x7f1d2d8a4380, aMayWait=true, aResult=0x7ffd96ce6627) at ./xpcom/threads/nsThread.cpp:1154
#9  0x00007f1d231cfdbe in NS_ProcessNextEvent(nsIThread*, bool) (aThread=0x7f1d215eb8a0, aMayWait=true) at ./xpcom/threads/nsThreadUtils.cpp:479
#10 0x00007f1d2380f5cd in mozilla::ipc::MessagePump::Run(base::MessagePump::Delegate*) (this=0x7f1d2d88d880, aDelegate=0x7ffd96ce6750) at ./ipc/glue/MessagePump.cpp:107
#11 0x00007f1d237cc49b in MessageLoop::RunInternal() (this=0x2) at ./ipc/chromium/src/base/message_loop.cc:368
#12 MessageLoop::RunHandler() (this=0x2) at ./ipc/chromium/src/base/message_loop.cc:361
#13 MessageLoop::Run() (this=0x2) at ./ipc/chromium/src/base/message_loop.cc:343
#14 0x00007f1d259f6b8a in nsBaseAppShell::Run() (this=0x7f1d215fe120) at ./widget/nsBaseAppShell.cpp:148
#15 0x00007f1d26b8bc4f in XRE_RunAppShell() () at ./toolkit/xre/nsEmbedFunctions.cpp:724
#16 0x00007f1d237cc49b in MessageLoop::RunInternal() (this=0x2) at ./ipc/chromium/src/base/message_loop.cc:368
#17 MessageLoop::RunHandler() (this=0x2) at ./ipc/chromium/src/base/message_loop.cc:361
#18 MessageLoop::Run() (this=0x2) at ./ipc/chromium/src/base/message_loop.cc:343
#19 0x00007f1d26b8ba8f in XRE_InitChildProcess(int, char**, XREChildData const*) (aArgc=15, aArgv=<optimized out>, aChildData=<optimized out>) at ./toolkit/xre/nsEmbedFunctions
.cpp:659
#20 0x00005584fad681c1 in content_process_main(mozilla::Bootstrap*, int, char**) (bootstrap=0x7f1d2d828640, argv=0x7ffd96ce7b48, argc=<optimized out>) at ./ipc/contentproc/plug
in-container.cpp:57
#21 main(int, char**, char**) (argc=<optimized out>, argv=0x7ffd96ce7b48, envp=0x7ffd96ce7be8) at ./comm/mail/app/nsMailApp.cpp:344


Expected results:

No hang should happen.

(Please tell me if credentials are leaked in the attached `t a a bt f` output.)