Closed
Bug 677089
Opened 13 years ago
Closed 13 years ago
crash [@ nsAbOSXDirectory::AssertCard]
Categories
(MailNews Core :: Address Book, defect)
Tracking
(thunderbird7 fixed)
RESOLVED
FIXED
Thunderbird 8.0
Tracking | Status | |
---|---|---|
thunderbird7 | --- | fixed |
People
(Reporter: wsmwk, Assigned: mconley)
Details
(Keywords: crash)
Crash Data
Attachments
(1 file)
621 bytes,
patch
|
standard8
:
review+
standard8
:
approval-comm-aurora+
|
Details | Diff | Splinter Review |
crash [@ nsAbOSXDirectory::AssertCard]
#82 crash for TB5
none of the crash comments say they were using anything address book related.
https://crash-stats.mozilla.com/report/list?product=Thunderbird&query_search=signature&query_type=exact&query=nsAbOSXDirectory%3A%3AAssertCard&reason_type=contains&date=08%2F07%2F2011%2007%3A51%3A55&range_value=4&range_unit=weeks&hang_type=any&process_type=all&do_query=1&signature=nsAbOSXDirectory%3A%3AAssertCard
bp-ecf57b53-5df2-4100-9b97-b7e7e2110712 (kk7)
EXC_BAD_ACCESS / KERN_INVALID_ADDRESS
0x0
0 XUL nsAbOSXDirectory::AssertCard mailnews/addrbook/src/nsAbOSXDirectory.mm:755
1 XUL -[ABChangedMonitor ABChanged:] mailnews/addrbook/src/nsAbOSXDirectory.mm:177
2 Foundation Foundation@0x10bc4
3 CoreFoundation CoreFoundation@0xe8cf
4 CoreFoundation CoreFoundation@0x58fff
5 libobjc.A.dylib libobjc.A.dylib@0x79a0
6 Foundation Foundation@0x289eb
7 CoreFoundation CoreFoundation@0x45577
8 libobjc.A.dylib libobjc.A.dylib@0x65f2
9 libobjc.A.dylib libobjc.A.dylib@0x7bdc
bp-nsAbOSXDirectory::AssertCard (gmoses)
Assignee | ||
Comment 1•13 years ago
|
||
I think I see the problem. For TB <= 6.0, it looks like we're not checking the return value of ConvertToCard, so even if it fails, we go ahead and try to manipulate a NULL pointer: http://hg.mozilla.org/releases/comm-miramar/diff/e4f4569d451a/mailnews/addrbook/src/nsAbOSXDirectory.mm
Similarly, in TB 7.0, while we capture the return value of CreateCard, we're not actually checking it for success or failure: http://mxr.mozilla.org/comm-central/source/mailnews/addrbook/src/nsAbOSXDirectory.mm#221
Patch en route.
Assignee: nobody → mconley
Assignee | ||
Comment 2•13 years ago
|
||
Whoops - quick correction for that last comment. Should have been:
I think I see the problem. For TB <= 5.0, it looks like we're not checking the return value of ConvertToCard, so even if it fails, we go ahead and try to manipulate a NULL pointer: http://hg.mozilla.org/releases/comm-miramar/diff/e4f4569d451a/mailnews/addrbook/src/nsAbOSXDirectory.mm
Similarly, in TB 6.0+, while we capture the return value of CreateCard, we're not actually checking it for success or failure: http://mxr.mozilla.org/comm-central/source/mailnews/addrbook/src/nsAbOSXDirectory.mm#221
Patch en route.
Assignee | ||
Comment 3•13 years ago
|
||
Ack, disregard that last comment. I had it right the first time.
Assignee | ||
Comment 4•13 years ago
|
||
Try build results here: http://hg.mozilla.org/try-comm-central/rev/83a63bdda052
Assignee | ||
Updated•13 years ago
|
Attachment #551451 -
Flags: review?(mbanner)
Attachment #551451 -
Flags: approval-comm-aurora?
Comment 5•13 years ago
|
||
Comment on attachment 551451 [details] [diff] [review]
Patch v1
Ok, lets try it. I'm a bit concerned that something bad is happening here, and we're going to miss logging it, but I guess we'll have to see if we get users reporting any weird issues.
Attachment #551451 -
Flags: review?(mbanner)
Attachment #551451 -
Flags: review+
Attachment #551451 -
Flags: approval-comm-aurora?
Attachment #551451 -
Flags: approval-comm-aurora+
Assignee | ||
Updated•13 years ago
|
Keywords: checkin-needed
Comment 6•13 years ago
|
||
Status: NEW → RESOLVED
Closed: 13 years ago
Keywords: checkin-needed
Resolution: --- → FIXED
Target Milestone: --- → Thunderbird 8.0
Comment 7•13 years ago
|
||
Checked into aurora: http://hg.mozilla.org/releases/comm-aurora/rev/c2b9aaff6ff5
status-thunderbird7:
--- → fixed
You need to log in
before you can comment on or make changes to this bug.
Description
•