Closed
Bug 694002
Opened 13 years ago
Closed 13 years ago
crash in AffixMgr::~AffixMgr
Categories
(Core :: Spelling checker, defect)
Tracking
()
RESOLVED
FIXED
mozilla12
People
(Reporter: kairo, Assigned: ehsan.akhgari)
References
Details
(Keywords: crash, Whiteboard: [fixed-in-hunspell-1.3.3])
Crash Data
Attachments
(1 file, 3 obsolete files)
1.93 KB,
patch
|
RyanVM
:
review+
|
Details | Diff | Splinter Review |
This bug was filed from the Socorro interface and is
report bp-baae94d2-bd6a-44d6-90f2-28c922111012 .
=============================================================
https://crash-stats.mozilla.com/report/list?signature=AffixMgr%3A%3A~AffixMgr%28%29 for more reports - this abruptly started happening yesterday in Firefox and Thunderbird 7.0.1 mostly, but other versions (both older and newer) are indicated as well. Seems to be pretty exclusive to Vista and Win7 users, the address of the crash is always 0x1010438 on 32bit processors, seems to be 0x4a01010458 on 64bit.
Comments indicate that this happens at shutdown, when changing dictionaries, or sometimes even when they are typing and the spllechecker is running.
Correlations for Firefox 7.0.1 Windows NT:
Modules:
96% (253/264) vs. 29% (26615/92174) EhStorShell.dll
(all other listed modules look pretty normal)
Add-ons:
100% (264/264) vs. 1% (511/92174) en-CA@dictionaries.addons.mozilla.org (Canadian English Dictionary, https://addons.mozilla.org/addon/3653)
4% (10/264) vs. 0% (58/92174) 2.0.1
96% (254/264) vs. 0% (453/92174) 2.0.2
It looks like the dictionary itself had some problem with the affix file, I wonder if we really should be allowed to crash for that, though.
The author has removed version 2.0.2 from AMO and has uploaded a not-yet-reviewed 2.0.3 that states:
"Version 2.0.3 Released October 11, 2011 194.6 KB Works with Firefox 2.0 - 10.0a1, Thunderbird 2.0 - 10.0a1, SeaMonkey 2.0 - 2.7a1
This update addresses multiple critical bugs that were introduced in the affix file in 2.0.2, including one that caused Firefox to crash. Please update to this version."
See https://addons.mozilla.org/en-US/firefox/addon/canadian-english-dictionary/versions/?page=1#version-2.0.3
We also have some crashes with the 2.0.1 version, though, and I wonder if there's a generic code problem that actually causes the crash.
I've CCed Paul Schiedge, the author of the add-on, hopefully he can also shed some light on the actual problem.
Jorge, can we get the 2.0.3 version reviewed fast so people get updated off the crashy version?
Reporter | ||
Updated•13 years ago
|
Crash Signature: [@ AffixMgr::~AffixMgr()] → [@ AffixMgr::~AffixMgr()]
[@ SfxEntry::~SfxEntry() ]
Comment 1•13 years ago
|
||
Thanks for the CC. The reason the crash started yesterday is because the 2.0.2 version of the addon passed review and started trickling out to users. I got emails complaining of the problem fairly quickly after that.
The problem with my addon was that I had added a new line to the affix file - a "REP" statement (valid replacement for spelling suggestions) - but did not update the counter line that informs the engine how many statements to expect.
The fix was simply to adjust the first "REP" declaration to match the actual number of "REP" declarations in the file.
I missed it in testing because I did my test on a Mac (OSX 10.6, FF 7.0), but it turns out that the declaration mismatch caused lots of other problems besides crashing - some suffix/prefix declarations were no longer parsing, so people were seeing lots of additional spelling errors, too.
No one has previously brought my attention to crashes related to prior versions of the addon.
Assignee | ||
Comment 2•13 years ago
|
||
Paul, thanks a lot for your comment!
I would really like to fix this crash anyway, since Firefox shouldn't crash when a dictionary add-on is installed anyways! ;-) I'd like to install the 2.0.2 version of your add-on locally in order to reproduce the crash. Are you aware of steps that would reliably result in the crash happening? (I need those steps in order to debug this more effectively.)
Thanks!
Comment 3•13 years ago
|
||
Version 2.0.3 has just been approved.
Comment 4•13 years ago
|
||
Thanks for the rapid review, Jorge.
Ehsan:
I was able to reliable reproduce the problem simply by finding a page with a text area and typing text with errors. With the corrupt affix file, it's not hard to produce text with errors. A convenient test site is http://textarea.org
1. Type text into the text area. Some sample words that shouldn't error
(but did):
"words", "added" "tenses" ,"earlier" , "it's", "its", "holds", "seems",
"specialists" "there's", "updates"
2. Close the browser window.
3. Crash report.
I don't have access to my older builds right now (my build machine isn't remotely accessible), but do you need me to provide a copy of the 2.0.2 XPI?
Updated•13 years ago
|
Crash Signature: [@ AffixMgr::~AffixMgr()]
[@ SfxEntry::~SfxEntry() ] → [@ AffixMgr::~AffixMgr()]
[@ SfxEntry::~SfxEntry() ]
[@ AffixMgr::~AffixMgr ]
Comment 5•13 years ago
|
||
reproducible with hunspell master with..
echo "words", "added" "tenses" ,"earlier" , "it's", "its", "holds", "seems", "specialists" "there's", "updates" | valgrind ./tools/.libs/hunspell -d ~/fc/dictionaries/en-CA
from the 2.0.2 dict
Comment 6•13 years ago
|
||
Reporter | ||
Comment 7•13 years ago
|
||
Comment on attachment 566773 [details] [diff] [review]
initialize sfx the same as pfx
I guess you'll also upstream the fix to mainline HunSpell, right?
Comment 8•13 years ago
|
||
yeah, fix checked into upstream hunspell. As is an extra fix for a leak with the same slightly busted .aff
Reporter | ||
Comment 9•13 years ago
|
||
Cool, thanks, you rock!
Oh, you should request review from :ehsan here. (And I guess we then might want to request this to be approved for Aurora and Beta as well.)
Comment 10•13 years ago
|
||
The attached patch is against hunspell head, rather than against the embedded mozilla one, so "someone else"(tm) needs to tweak it to apply against the in-tree location.
Reporter | ||
Updated•13 years ago
|
Crash Signature: [@ AffixMgr::~AffixMgr()]
[@ SfxEntry::~SfxEntry() ]
[@ AffixMgr::~AffixMgr ] → [@ AffixMgr::~AffixMgr()]
[@ SfxEntry::~SfxEntry() ]
[@ AffixMgr::~AffixMgr ]
[@ arena_dalloc | free | SfxEntry::~SfxEntry() ]
Assignee | ||
Comment 11•13 years ago
|
||
Thanks a lot Caolan for the patch!
Updated•13 years ago
|
Whiteboard: [fixed-in-hunspell-1.3.3]
Comment 12•13 years ago
|
||
Drive-by nit - please update README.hunspell too.
Assignee | ||
Comment 13•13 years ago
|
||
Attachment #566911 -
Attachment is obsolete: true
Attachment #566911 -
Flags: review?(caolanm)
Attachment #567299 -
Flags: review?(caolanm)
Assignee | ||
Updated•13 years ago
|
Attachment #567299 -
Flags: review?(caolanm) → review?(ryanvm)
Assignee | ||
Updated•13 years ago
|
Attachment #567299 -
Flags: review?(ryanvm) → review?(bugs)
Comment 14•13 years ago
|
||
Comment on attachment 567299 [details] [diff] [review]
Mozilla patch
rs=e
Attachment #567299 -
Flags: review?(bugs) → review+
Comment 15•13 years ago
|
||
Ehsan, looks like this never landed?
Reporter | ||
Comment 16•13 years ago
|
||
If so, may bug 710940 be related? Also, can we land this for 11 at least, please?
Comment 17•13 years ago
|
||
Ehsan, ping^2
Comment 18•13 years ago
|
||
The attached patch actually bitrotted slightly thanks to bug 710967.
Attachment #566773 -
Attachment is obsolete: true
Attachment #567299 -
Attachment is obsolete: true
Attachment #584257 -
Flags: review+
Updated•13 years ago
|
Keywords: checkin-needed
Comment 19•13 years ago
|
||
Landed fix on m-i: https://hg.mozilla.org/integration/mozilla-inbound/rev/e832c81d1214
(updating branch to "Trunk" because until now, this affected trunk, and that's where the fix is landing for now at least)
Comment 20•13 years ago
|
||
Status: ASSIGNED → RESOLVED
Closed: 13 years ago
Resolution: --- → FIXED
Assignee | ||
Comment 21•13 years ago
|
||
Sorry for dropping the ball here, and thanks for landing this, Daniel.
Updated•10 years ago
|
Depends on: hunspell-1.3.3
You need to log in
before you can comment on or make changes to this bug.
Description
•