Closed Bug 344197 Opened 18 years ago Closed 18 years ago

Crash when viewing message in front end [@ nsAddrDatabase::GetRowFromAttribute]

Categories

(MailNews Core :: Address Book, defect)

1.8 Branch
x86
Windows XP
defect
Not set
critical

Tracking

(Not tracked)

RESOLVED DUPLICATE of bug 165296

People

(Reporter: bokamba, Unassigned)

Details

(Keywords: crash)

Crash Data

Attachments

(3 files)

User-Agent:       Mozilla/5.0 (Windows; U; Windows NT 5.1; en-US; rv:1.8.0.4) Gecko/20060508 Firefox/1.5.0.4
Build Identifier: Mozilla Thunderbird version 1.5.0.4 (20060516)

I open Thunderbird (brand new installation, no extensions installed), then click on a message in my IMAP e-mail account. No matter which message I click, the message displays in the preview pane, and then Thunderbird crashes.

Reproducible: Always

Steps to Reproduce:
1. Open Thunderbird.
2. Single-click on a message in the inbox.

Actual Results:  
1. Message will display (or begin to display) in the preview pane
2. Thunderbird crashes

Expected Results:  
Should have simply displayed the message in the preview pane, and not crashed after that!

The computer is a new ThinkPad T60 with an Intel Core Duo processor, running Windows XP Professional. The Thunderbird installation is clean, with no extensions or themes installed. Removing and reinstalling Thunderbird (without deleting the user profile) had no effect.
Attachment #228769 - Attachment description: Talkback data from bug filer → Talkback data from bug reporter
You need to send that data to the server for it to be processed. See http://kb.mozillazine.org/Talkback.
Keywords: crash
(In reply to comment #2)
> You need to send that data to the server for it to be processed. See
> http://kb.mozillazine.org/Talkback.
> 

I did. Thanks for the reminder.
OK. Please paste the ID of the crash here, then. http://kb.mozillazine.org/Talkback#Open_Talkback_User_Interface
(In reply to comment #4)
> OK. Please paste the ID of the crash here, then.
> http://kb.mozillazine.org/Talkback#Open_Talkback_User_Interface
> 

The Talkback ID is TB20807781Y.
Access violation
Source File, Line No.	c:/builds/tinderbox/Tb-Mozilla1.8.0-Release/WINNT_5.2_Depend/mozilla/mailnews/addrbook/src/nsAddrDatabase.cpp, line 3618
Stack Trace 	
nsAddrDatabase::GetRowFromAttribute  [c:/builds/tinderbox/Tb-Mozilla1.8.0-Release/WINNT_5.2_Depend/mozilla/mailnews/addrbook/src/nsAddrDatabase.cpp, line 3618]
nsAddrDatabase::GetCardFromAttribute  [c:/builds/tinderbox/Tb-Mozilla1.8.0-Release/WINNT_5.2_Depend/mozilla/mailnews/addrbook/src/nsAddrDatabase.cpp, line 3635]
nsAbAddressCollecter::GetCardFromAttribute  [c:/builds/tinderbox/Tb-Mozilla1.8.0-Release/WINNT_5.2_Depend/mozilla/mailnews/addrbook/src/nsAbAddressCollecter.cpp, line 95]
nsAbAddressCollecter::CollectAddress  [c:/builds/tinderbox/Tb-Mozilla1.8.0-Release/WINNT_5.2_Depend/mozilla/mailnews/addrbook/src/nsAbAddressCollecter.cpp, line 133]
nsAbAddressCollecter::CollectUnicodeAddress  [c:/builds/tinderbox/Tb-Mozilla1.8.0-Release/WINNT_5.2_Depend/mozilla/mailnews/addrbook/src/nsAbAddressCollecter.cpp, line 84]
XPTC_InvokeByIndex  [c:/builds/tinderbox/Tb-Mozilla1.8.0-Release/WINNT_5.2_Depend/mozilla/xpcom/reflect/xptcall/src/md/win32/xptcinvoke.cpp, line 102]

Looks like a problem with the collected address book - it might be corrupt. I'm not sure if your personal address book is the same as your collected address book as well. Does it crash when you try to open your address book?
Assignee: mscott → nobody
Component: Mail Window Front End → MailNews: Address Book
Product: Thunderbird → Core
QA Contact: front-end → addressbook
Summary: Crash when viewing message in front end → Crash when viewing message in front end [@ nsAddrDatabase::GetRowFromAttribute]
Version: unspecified → 1.8 Branch
(In reply to comment #6)
> Looks like a problem with the collected address book - it might be corrupt. I'm
> not sure if your personal address book is the same as your collected address
> book as well. Does it crash when you try to open your address book?

I think I fixed this crash on trunk with bug 165296, as there's no other talkback stacks the same as this showing up for trunk I believe. However, it'd be good to track down the root cause as I think that this effect may be causing other crashes on trunk.

Reporter, do you have any of the following preferences set to true? (see about:config under the advanced page in preferences)

mail.collect_email_address_incoming
mail.collect_email_address_outgoing
mail.collect_email_address_newsgroup
(In reply to comment #6)
> Access violation
> Source File, Line No.  
> c:/builds/tinderbox/Tb-Mozilla1.8.0-Release/WINNT_5.2_Depend/mozilla/mailnews/addrbook/src/nsAddrDatabase.cpp,
> line 3618
> Stack Trace     
> nsAddrDatabase::GetRowFromAttribute 
> [c:/builds/tinderbox/Tb-Mozilla1.8.0-Release/WINNT_5.2_Depend/mozilla/mailnews/addrbook/src/nsAddrDatabase.cpp,
> line 3618]
> nsAddrDatabase::GetCardFromAttribute 
> [c:/builds/tinderbox/Tb-Mozilla1.8.0-Release/WINNT_5.2_Depend/mozilla/mailnews/addrbook/src/nsAddrDatabase.cpp,
> line 3635]
> nsAbAddressCollecter::GetCardFromAttribute 
> [c:/builds/tinderbox/Tb-Mozilla1.8.0-Release/WINNT_5.2_Depend/mozilla/mailnews/addrbook/src/nsAbAddressCollecter.cpp,
> line 95]
> nsAbAddressCollecter::CollectAddress 
> [c:/builds/tinderbox/Tb-Mozilla1.8.0-Release/WINNT_5.2_Depend/mozilla/mailnews/addrbook/src/nsAbAddressCollecter.cpp,
> line 133]
> nsAbAddressCollecter::CollectUnicodeAddress 
> [c:/builds/tinderbox/Tb-Mozilla1.8.0-Release/WINNT_5.2_Depend/mozilla/mailnews/addrbook/src/nsAbAddressCollecter.cpp,
> line 84]
> XPTC_InvokeByIndex 
> [c:/builds/tinderbox/Tb-Mozilla1.8.0-Release/WINNT_5.2_Depend/mozilla/xpcom/reflect/xptcall/src/md/win32/xptcinvoke.cpp,
> line 102]
> 
> Looks like a problem with the collected address book - it might be corrupt. I'm
> not sure if your personal address book is the same as your collected address
> book as well. Does it crash when you try to open your address book?
> 

It doesn't crash when I open the address book.
(In reply to comment #7)
> (In reply to comment #6)
> > Looks like a problem with the collected address book - it might be corrupt. I'm
> > not sure if your personal address book is the same as your collected address
> > book as well. Does it crash when you try to open your address book?
> 
> I think I fixed this crash on trunk with bug 165296, as there's no other
> talkback stacks the same as this showing up for trunk I believe. However, it'd
> be good to track down the root cause as I think that this effect may be causing
> other crashes on trunk.
> 
> Reporter, do you have any of the following preferences set to true? (see
> about:config under the advanced page in preferences)
> 
> mail.collect_email_address_incoming
> mail.collect_email_address_outgoing
> mail.collect_email_address_newsgroup
> 

mail.collect_email_address_outgoing is set to true. The other two are set to false.
The crash has gone away. Perhaps opening the address book (which hadn't been done before) did the trick.
I had a problem with Thunderbird crashing just after entering the password, when it was downloading headers and such from the IMAP server. The problem seemed profile-related, only crashing using some profiles.

The problem went away after cancelling the password question, opening the address book, fiddling a bit with the addresses and then closing it and restarting Thunderbird.

So it sounds like the same bug. And here's a backtrace of it. (Red Hat Enterprise Linux 4 Update 4 provided thunderbird-1.5.0.7-0.1.el4 on i386.)
I kept a copy of the profile before opening the address book. This is what changed in abook.mab.

All files that changed in the profile:

abook.mab
ImapMail/mx.kth.se/INBOX.msf
mx.kth.se.msf
localstore.rdf
Mail/Local
panacea.dat
prefs.js
XUL.mfasl

*** This bug has been marked as a duplicate of 165296 ***
Status: UNCONFIRMED → RESOLVED
Closed: 18 years ago
Resolution: --- → DUPLICATE
Product: Core → MailNews Core
Crash Signature: [@ nsAddrDatabase::GetRowFromAttribute]
You need to log in before you can comment on or make changes to this bug.

Attachment

General

Creator:
Created:
Updated:
Size: