Bug 448413
Summary: | hunspell segfaults on Polish .tex file | ||||||
---|---|---|---|---|---|---|---|
Product: | [Fedora] Fedora | Reporter: | Michal Piotrowski <bastian_knight> | ||||
Component: | hunspell | Assignee: | Caolan McNamara <caolanm> | ||||
Status: | CLOSED CURRENTRELEASE | QA Contact: | Fedora Extras Quality Assurance <extras-qa> | ||||
Severity: | medium | Docs Contact: | |||||
Priority: | low | ||||||
Version: | 9 | CC: | kevin | ||||
Target Milestone: | --- | ||||||
Target Release: | --- | ||||||
Hardware: | x86_64 | ||||||
OS: | Linux | ||||||
Whiteboard: | |||||||
Fixed In Version: | 1.2.1-7.fc9 | Doc Type: | Bug Fix | ||||
Doc Text: | Story Points: | --- | |||||
Clone Of: | Environment: | ||||||
Last Closed: | 2008-06-06 07:50:18 UTC | Type: | --- | ||||
Regression: | --- | Mount Type: | --- | ||||
Documentation: | --- | CRM: | |||||
Verified Versions: | Category: | --- | |||||
oVirt Team: | --- | RHEL 7.3 requirements from Atomic Host: | |||||
Cloudforms Team: | --- | Target Upstream Version: | |||||
Embargoed: | |||||||
Attachments: |
|
Description
Michal Piotrowski
2008-05-26 16:09:31 UTC
fwiw, works fine here for English. ?? Sounds like fallout from my FeatureDictionary patches in any case. This might be an encoding issue (e.g. latin2 being passed to Hunspell when it's expecting UTF-8). Created attachment 306688 [details]
Test file
I have noticed that when I run hunspell from command line and select TeX file
to check then hunspell segfaults. I am attaching simple file which I used for
testing.
I guess that problem is in hunspell not in Kile so I will change component.
As a workaround, you can set up Kile (and other KDE 3 apps using the old KSpell interface) to use aspell instead of hunspell by following the following procedure: 1. su -c "yum install kdebase3" 2. kcmshell spellchecking 3. set the program to Aspell and click OK Of course, this only papers over the real bug, but if you need spellchecking in Kile now, you may find it useful. To reverse this, set the program back to Hunspell in kcmshell spellchecking. I didn't get any crash from yum -y install hunspell-pl export LANG=pl_PL.UTF-8 hunspell spell-test.tex Is there some specific way to get that reported crash ? In the meantime I'll install kile and see if that crashes for me Hmm, I launch kile from a pl_PL.UTF-8 locale I still don't get a crash on that sample document I tested it on two x86_64 installations. I can try to download and install debug info, but it will take me a while. For now when I run hunspell i gdb I have: (gdb) run spell-test.tex Starting program: /usr/bin/hunspell spell-test.tex (no debugging symbols found) (no debugging symbols found) (no debugging symbols found) (no debugging symbols found) (no debugging symbols found) (no debugging symbols found) (no debugging symbols found) (no debugging symbols found) (no debugging symbols found) (no debugging symbols found) Program received signal SIGSEGV, Segmentation fault. 0x00000000004065b8 in __gxx_personality_v0 () What's your (exact) locale? pl_PL.UTF-8? ah, x86_64, silly me. I see it now. I don't know if it is still needed but I paste stacktrace from gdb with debuginfo installed: Starting program: /usr/bin/hunspell spell-test.tex Program received signal SIGSEGV, Segmentation fault. LaTeXParser::look_pattern (this=0x5c, col=0) at latexparser.cxx:107 107 while ((*k != '\0') && (tolower(*j) == *k)) { #0 LaTeXParser::look_pattern (this=0x5c, col=0) at latexparser.cxx:107 #1 0x000000000040681a in LaTeXParser::next_token (this=0x2ad47c0) at latexparser.cxx:139 #2 0x00000000004049fa in interactive_line (parser=0x2ad47c0, pMS=0x105e2a0, filename=0x7fffb07f8470 "spell-test.tex", tempfile=0x29dcb10) at hunspell.cxx:1094 #3 0x0000000000404cc0 in interactive_interface (pMS=0x105e2a0, filename=0x7fffb07f8470 "spell-test.tex", format=<value optimized out>) at hunspell.cxx:1149 #4 0x0000000000405191 in main (argc=2, argv=0x7fffb07f6938) at hunspell.cxx:1427 All good now, bad sizeof calculation. Will be fixed in hunspell-1.2.1-7.fc9 hunspell-1.2.1-7.fc9 has been submitted as an update for Fedora 9 hunspell-1.2.1-7.fc9 has been pushed to the Fedora 9 testing repository. If problems still persist, please make note of it in this bug report. If you want to test the update, you can install it with su -c 'yum --enablerepo=updates-testing update hunspell'. You can provide feedback for this update here: http://admin.fedoraproject.org/updates/F9/FEDORA-2008-4566 hunspell-1.2.1-7.fc9 has been pushed to the Fedora 9 stable repository. If problems still persist, please make note of it in this bug report. |