Thunderbird crashes upon displaying specific message

Bug #1052306 reported by Nick Barcet
10
This bug affects 1 person
Affects Status Importance Assigned to Milestone
Mozilla Thunderbird
Fix Released
Critical
thunderbird (Ubuntu)
Fix Released
Undecided
Unassigned

Bug Description

Everytime I try to open a specific email, thunderbird crashes. See reported crash id for more details.

ProblemType: Bug
DistroRelease: Ubuntu 12.10
Package: thunderbird 15.0.1+build1-0ubuntu1
ProcVersionSignature: Ubuntu 3.5.0-14.19-generic 3.5.3
Uname: Linux 3.5.0-14-generic x86_64
AddonCompatCheckDisabled: False
ApportVersion: 2.5.2-0ubuntu1
Architecture: amd64
AudioDevicesInUse:
 USER PID ACCESS COMMAND
 /dev/snd/controlC0: nbarcet 2798 F.... pulseaudio
 /dev/snd/pcmC0D0p: nbarcet 2798 F...m pulseaudio
BuildID: 20120911223312
CRDA: Error: [Errno 2] No such file or directory: 'iw'
Channel: Unavailable
Date: Tue Sep 18 06:11:32 2012
EcryptfsInUse: Yes
ForcedLayersAccel: False
InstallationMedia: Ubuntu 12.04 LTS "Precise Pangolin" - Alpha amd64 (20120201.2)
MostRecentCrashID: bp-2db3eea4-c46d-4d64-8b6e-e47f92120918
PrefSources:
 prefs.js
 /usr/lib/mozilla/extensions/{3550f703-e582-4d05-9a08-453d09bdfdc6}/{847b3a00-7ab1-11d4-8f02-006008948af5}/defaults/preferences/enigmail.js
 /usr/lib/mozilla/extensions/{3550f703-e582-4d05-9a08-453d09bdfdc6}/{847b3a00-7ab1-11d4-8f02-006008948af5}/defaults/preferences/000system.js
ProcEnviron:
 LANGUAGE=en_US:en
 TERM=xterm
 PATH=(custom, no user)
 LANG=en_US.UTF-8
 SHELL=/bin/bash
Profiles: Profile0 (Default) - LastVersion=15.0.1/20120911223312 (In use)
RelatedPackageVersions:
 totem-mozilla 3.4.3-0ubuntu3
 djview-plugin 4.9-2ubuntu1
 rhythmbox-mozilla 2.97-1ubuntu4
 google-talkplugin 2.9.10.0-1
RunningIncompatibleAddons: False
SourcePackage: thunderbird
UpgradeStatus: Upgraded to quantal on 2012-09-16 (1 days ago)
dmi.bios.date: 02/01/2011
dmi.bios.vendor: LENOVO
dmi.bios.version: 6IET75WW (1.35 )
dmi.board.name: 2516CTO
dmi.board.vendor: LENOVO
dmi.board.version: Not Available
dmi.chassis.asset.tag: No Asset Information
dmi.chassis.type: 10
dmi.chassis.vendor: LENOVO
dmi.chassis.version: Not Available
dmi.modalias: dmi:bvnLENOVO:bvr6IET75WW(1.35):bd02/01/2011:svnLENOVO:pn2516CTO:pvrThinkPadT410:rvnLENOVO:rn2516CTO:rvrNotAvailable:cvnLENOVO:ct10:cvrNotAvailable:
dmi.product.name: 2516CTO
dmi.product.version: ThinkPad T410
dmi.sys.vendor: LENOVO

Revision history for this message
In , Vseerror (vseerror) wrote :

This bug was filed from the Socorro interface and is
report bp-251126bf-1124-43b5-bd29-656872120202 .
=============================================================

#14 crash currently for version 10
regression of Bug 681188 - Switch from PRBool to bool ?

0 xul.dll xul.dll@0x8469f1
1 xul.dll `anonymous namespace'::SyncRunnable5<nsIImapMailFolderSink,nsIImapProtocol*,nsIMsgMailNewsUrl*,bool,bool,unsigned int>::Run mailnews/imap/src/nsSyncRunnableHelpers.cpp:282
2 xul.dll nsThread::ProcessNextEvent xpcom/threads/nsThread.cpp:631
3 xul.dll NS_ProcessNextEvent_P objdir-tb/mozilla/xpcom/build/nsThreadUtils.cpp:245
4 xul.dll mozilla::ipc::MessagePump::Run ipc/glue/MessagePump.cpp:134
5 xul.dll MessageLoop::RunInternal ipc/chromium/src/base/message_loop.cc:208
6 xul.dll MessageLoop::RunHandler ipc/chromium/src/base/message_loop.cc:201
7 xul.dll MessageLoop::Run ipc/chromium/src/base/message_loop.cc:175
8 xul.dll nsBaseAppShell::Run widget/src/xpwidgets/nsBaseAppShell.cpp:189
9 xul.dll nsAppShell::Run widget/src/windows/nsAppShell.cpp:257
10 xul.dll nsAppStartup::Run toolkit/components/startup/nsAppStartup.cpp:228

Revision history for this message
In , Vseerror (vseerror) wrote :

As a topcrash regression, we should make an effort to resolve this for a near term release.

most comments cite doing imap folder subscriptions.
bp-62b0a6a5-2a42-4787-80c0-5be9f2120221 cites dataloss
"trying to subscribe to folders which Thuinderburd keeps losing in the subscription list total pain in the butt and a game breaker as far as I'm concerned"

Mac and linux @ SyncRunnable5<nsIImapMailFolderSink, nsIImapProtocol*, nsIMsgMailNewsUrl*, bool, bool, unsigned int>::Run

Revision history for this message
In , Mozilla-ex (mozilla-ex) wrote :

I haven't been able to reproduce this. A protocol log might be helpful.

Revision history for this message
In , Vseerror (vseerror) wrote :

not a straight up regression of Bug 681188 - Switch from PRBool to bool - given that it landed in v10?

Revision history for this message
In , Mozilla-ex (mozilla-ex) wrote :

I suspect this would have come from switching to sync runnable, i.e., getting rid of xpcom proxies in Bug 675407

Revision history for this message
In , Vseerror (vseerror) wrote :

re: testcase

several crash reporters have been contacted. however, we should not count on finding a testcase from this population of users - historically it is difficult to impossible to get a cooperating victim

Revision history for this message
In , Vseerror (vseerror) wrote :

doesn't seem to be a persistent crash - only 1 in 4 people replied to me, and of those only 1 in 5 can reproduce.

ludo you have just gotten an email with screen shot for that person who can reproduce

Revision history for this message
In , Mozilla-ex (mozilla-ex) wrote :

I'm pretty sure this is caused by a null folder sink. The sync runnable changes just changed the stack signature, but I couldn't be surprised if the crash was around before (hard to know what the old stack would have looked like, since it's on the other side of the event loop now). It's very hard to see where subscribe UI would end up with a null folder sink that we're not checking for.

Revision history for this message
In , Mozilla-ex (mozilla-ex) wrote :

Oh, I should say, pretty sure this is a call to SetUrlState

Revision history for this message
In , Mozilla-ex (mozilla-ex) wrote :

from one of the crashes, this is the call site:

http://hg.mozilla.org/releases/comm-release/annotate/6ccee99d387c/mailnews/imap/src/nsImapProtocol.cpp#l1602

Since we're checking for m_imapMailFolderSink is null before calling this, we might have some sort of race condition, if I'm understanding the crash info correctly.

Revision history for this message
In , Vseerror (vseerror) wrote :

also
@0x0 | nsImapMailFolder::SetUrlState(nsIImapProtocol*, nsIMsgMailNewsUrl*, bool, bool, unsigned int)
and
nsImapMailFolder::SetUrlState(nsIImapProtocol*, nsIMsgMailNewsUrl*, bool, bool, unsigned int)

Revision history for this message
In , Mozilla-ex (mozilla-ex) wrote :

*** Bug 763888 has been marked as a duplicate of this bug. ***

Revision history for this message
In , Vseerror (vseerror) wrote :

bienvenu,

bp-40cf7199-6e99-4ac0-ab7f-3f81c2120717 is a user who is crashing to beat the band - many times a day. Mostly this signature, but also a smattering of others. like ...

nsRefPtr<nsCanvasPatternAzure>::~nsRefPtr<nsCanvasPatternAzure>() | nsMsgFilterAfterTheFact::~nsMsgFilterAfterTheFact()
bp-8547793c-5222-4166-b3c1-481402120717

mozalloc_abort(char const* const) | mozalloc_handle_oom(unsigned int) | moz_xmalloc | ToNewUnicode(nsACString_internal const&)
bp-5b2f0c03-4543-48de-a895-61fb22120717

Collect
bp-075b305d-75c3-4637-8b5c-6ad582120718

Revision history for this message
In , Vseerror (vseerror) wrote :

#23 crash TB14

TB14 signature xul.dll@0x85be1d | `anonymous namespace''::SyncRunnable5<nsIImapMailFolderSink, nsIImapProtocol*, nsIMsgMailNewsUrl*, bool, bool, unsigned int>::Run()

Revision history for this message
Nick Barcet (nijaba) wrote :
Revision history for this message
In , Chris Coulson (chrisccoulson) wrote :

It looks like we just had somebody report this crash in Launchpad too:

https://launchpad.net/bugs/1052306

According to the bug report data, the reporter has just submitted https://crash-stats.mozilla.com/report/index/bp-2db3eea4-c46d-4d64-8b6e-e47f92120918, and they say that the crash happens on a specific mail

Revision history for this message
In , M-kato (m-kato) wrote :

Created attachment 664374
possible fix

Revision history for this message
In , M-kato (m-kato) wrote :

Comment on attachment 664374
possible fix

mReceiver seems to be null. We should not pass null to constructor of ImapMailFolderSinkProxy.

Revision history for this message
In , Kent-caspia (kent-caspia) wrote :

Comment on attachment 664374
possible fix

I'm going to pass this review on to :bienvenu since he has been intimately involved in the discussions so far. If you don't get a review in the next week or so, feel free to pass it back to me (or irving or standard8) and we'll figure something out.

Changed in thunderbird:
importance: Unknown → Critical
status: Unknown → Confirmed
Revision history for this message
In , M-kato (m-kato) wrote :

Comment on attachment 664374
possible fix

could you review this instead of bienvenu?

Revision history for this message
In , Standard8 (mbanner) wrote :

Comment on attachment 664374
possible fix

This is probably fine, but Irving is a bit closer to the imap code than I am at the moment.

Revision history for this message
In , Irving (irving) wrote :

Comment on attachment 664374
possible fix

Review of attachment 664374:
-----------------------------------------------------------------

Looks OK to me; there's a lot of code that changes behaviour if m_imapMailFolderSink is null so we'll need to keep an eye on trunk in case this moves the crash somewhere else.

Revision history for this message
In , M-kato (m-kato) wrote :
Changed in thunderbird:
status: Confirmed → Fix Released
Revision history for this message
In , M-kato (m-kato) wrote :

Comment on attachment 664374
possible fix

[Approval Request Comment]
Regression caused by (bug #): bug 675407
User impact if declined: crash. Actually, this is top 17 crash on 16.0.1.
Testing completed (on c-c, etc.): landed on m-c
Risk to taking this patch (and alternatives if risky): low. This adds nullptr check. also, m_imapMailFolderSink has already nullptr check.

Revision history for this message
In , Mike Conley (mconley) wrote :
Revision history for this message
In , Vseerror (vseerror) wrote :

Tb15.0.1 signature xul.dll@0x8c0cdb | `anonymous namespace''::SyncRunnable5<nsIImapMailFolderSink, nsIImapProtocol*, nsIMsgMailNewsUrl*, bool, bool, unsigned int>::Run()

Revision history for this message
In , Vseerror (vseerror) wrote :

crash stats shows most crashing has stopped.
less than a dozen crashes in past weeks for 17.0 for `anonymous namespace''::SyncRunnable5<nsIImapMailFolderSink, nsIImapProtocol*, nsIMsgMailNewsUrl*, bool, bool, unsigned int>::Run()
bp-a7116160-4238-440b-ba41-4f3952130129 17.0.2
bp-633908f4-4d37-414c-bddd-953cc2130105 17.0

Revision history for this message
gf (gf-interlinks-deactivatedaccount) wrote :

Hello Nick,
Thank you for submitting this bug and reporting a problem with Thunderbird.

You made this bug report in 2012 and there have been several versions of Ubuntu and Thunderbird since then.

Could you confirm that this is no longer a problem and that we can close the ticket?
Or, if it is still a problem, could you run the following (only once):
apport-collect BUGNUMBER

and upload the updated logs and and any other logs that are relevant for this particular issue.

Thank you again for helping make Ubuntu and Thunderbird better.

G

Changed in thunderbird (Ubuntu):
status: New → Incomplete
Revision history for this message
Paul White (paulw2u) wrote :

No reply from reporter
Report did not expire due to bug watch
Upstream bug closed "VERIFIED FIXED" 2013-01-31
Closing now by marking "Fix Released"

Changed in thunderbird (Ubuntu):
status: Incomplete → Fix Released
To post a comment you must log in.
This report contains Public information  
Everyone can see this information.

Other bug subscribers

Remote bug watches

Bug watches keep track of this bug in other bug trackers.