Bug 243601 - Kile crashes when spellchecking with czech dictionary
Summary: Kile crashes when spellchecking with czech dictionary
Status: RESOLVED DUPLICATE of bug 233026
Alias: None
Product: kile
Classification: Applications
Component: general (show other bugs)
Version: 2.0.85
Platform: Arch Linux Linux
: NOR crash
Target Milestone: ---
Assignee: Michel Ludwig
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2010-07-04 21:12 UTC by otakar.trunecek
Modified: 2010-08-09 00:00 UTC (History)
0 users

See Also:
Latest Commit:
Version Fixed In:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description otakar.trunecek 2010-07-04 21:12:38 UTC
Application: kile (2.0.85)
KDE Platform Version: 4.4.5 (KDE 4.4.5)
Qt Version: 4.6.3
Operating System: Linux 2.6.34-ARCH i686
Distribution (Platform): Archlinux Packages

-- Information about the crash:
Kile always crashes when I'm tryimg to spellcheck with czech dictionary. With other dictionaries it seems to be OK (no crash).

The crash can be reproduced every time.

 -- Backtrace:
Application: Kile (kile), signal: Segmentation fault
[Current thread is 1 (Thread 0xb4ae6a00 (LWP 7880))]

Thread 2 (Thread 0xb2b39b70 (LWP 7891)):
#0  0xb77bc424 in __kernel_vsyscall ()
#1  0xb59831f1 in select () from /lib/libc.so.6
#2  0xb671fc41 in ?? () from /usr/lib/libQtCore.so.4
#3  0xb664d32e in ?? () from /usr/lib/libQtCore.so.4
#4  0xb65dbe60 in start_thread () from /lib/libpthread.so.0
#5  0xb598a20e in clone () from /lib/libc.so.6

Thread 1 (Thread 0xb4ae6a00 (LWP 7880)):
[KCrash Handler]
#6  0xb20480a8 in aspeller::AffixMgr::suffix_check(aspeller::LookupInfo const&, acommon::ParmString, acommon::CheckInfo&, aspeller::GuessInfo*, int, aspeller::AffEntry*) const ()
   from /usr/lib/libaspell.so.15
#7  0xb20486c3 in aspeller::AffixMgr::affix_check(aspeller::LookupInfo const&, acommon::ParmString, acommon::CheckInfo&, aspeller::GuessInfo*) const () from /usr/lib/libaspell.so.15
#8  0xb201b9cf in (anonymous namespace)::Working::try_word_n(acommon::ParmString, int) () from /usr/lib/libaspell.so.15
#9  0xb201d070 in (anonymous namespace)::Working::try_one_edit_word() () from /usr/lib/libaspell.so.15
#10 0xb20205b8 in (anonymous namespace)::Working::get_suggestions(std::vector<acommon::String, std::allocator<acommon::String> >&) () from /usr/lib/libaspell.so.15
#11 0xb2021990 in (anonymous namespace)::SuggestImpl::suggest(char const*) () from /usr/lib/libaspell.so.15
#12 0xb203130f in aspeller::SpellerImpl::suggest(acommon::MutableString) () from /usr/lib/libaspell.so.15
#13 0xb205d312 in aspell_speller_suggest () from /usr/lib/libaspell.so.15
#14 0xb20f0043 in aspell_dict_suggest () from /usr/lib/enchant/libenchant_aspell.so
#15 0xb20df0fe in enchant_dict_suggest () from /usr/lib/libenchant.so.1
#16 0xb210f673 in QSpellEnchantDict::suggest(QString const&) const () from /usr/lib/kde4/kspell_enchant.so
#17 0xb69a3ad9 in Sonnet::Speller::suggest(QString const&) const () from /usr/lib/libkdecore.so.5
#18 0xb69a8003 in Sonnet::BackgroundEngine::suggest(QString const&) () from /usr/lib/libkdecore.so.5
#19 0xb69a7805 in Sonnet::BackgroundChecker::suggest(QString const&) const () from /usr/lib/libkdecore.so.5
#20 0xb6ca0d9a in Sonnet::Dialog::updateDialog(QString const&) () from /usr/lib/libkdeui.so.5
#21 0xb6ca1a07 in Sonnet::Dialog::slotMisspelling(QString const&, int) () from /usr/lib/libkdeui.so.5
#22 0xb6ca1f56 in Sonnet::Dialog::qt_metacall(QMetaObject::Call, int, void**) () from /usr/lib/libkdeui.so.5
#23 0xb6744eba in QMetaObject::metacall(QObject*, QMetaObject::Call, int, void**) () from /usr/lib/libQtCore.so.4
#24 0xb6753f9b in QMetaObject::activate(QObject*, QMetaObject const*, int, void**) () from /usr/lib/libQtCore.so.4
#25 0xb69a7989 in Sonnet::BackgroundChecker::misspelling(QString const&, int) () from /usr/lib/libkdecore.so.5
#26 0xb69a7b36 in Sonnet::BackgroundChecker::qt_metacall(QMetaObject::Call, int, void**) () from /usr/lib/libkdecore.so.5
#27 0xb6744eba in QMetaObject::metacall(QObject*, QMetaObject::Call, int, void**) () from /usr/lib/libQtCore.so.4
#28 0xb6753f9b in QMetaObject::activate(QObject*, QMetaObject const*, int, void**) () from /usr/lib/libQtCore.so.4
#29 0xb69a8069 in Sonnet::BackgroundEngine::misspelling(QString const&, int) () from /usr/lib/libkdecore.so.5
#30 0xb69a8160 in Sonnet::BackgroundEngine::checkNext() () from /usr/lib/libkdecore.so.5
#31 0xb69a8203 in Sonnet::BackgroundEngine::qt_metacall(QMetaObject::Call, int, void**) () from /usr/lib/libkdecore.so.5
#32 0xb6744eba in QMetaObject::metacall(QObject*, QMetaObject::Call, int, void**) () from /usr/lib/libQtCore.so.4
#33 0xb6753f9b in QMetaObject::activate(QObject*, QMetaObject const*, int, void**) () from /usr/lib/libQtCore.so.4
#34 0xb6759187 in ?? () from /usr/lib/libQtCore.so.4
#35 0xb675923c in ?? () from /usr/lib/libQtCore.so.4
#36 0xb6751644 in QObject::event(QEvent*) () from /usr/lib/libQtCore.so.4
#37 0xb5c36f14 in QApplicationPrivate::notify_helper(QObject*, QEvent*) () from /usr/lib/libQtGui.so.4
#38 0xb5c3b0fe in QApplication::notify(QObject*, QEvent*) () from /usr/lib/libQtGui.so.4
#39 0xb6c393ea in KApplication::notify(QObject*, QEvent*) () from /usr/lib/libkdeui.so.5
#40 0xb673eecb in QCoreApplication::notifyInternal(QObject*, QEvent*) () from /usr/lib/libQtCore.so.4
#41 0xb676c80e in ?? () from /usr/lib/libQtCore.so.4
#42 0xb6769784 in ?? () from /usr/lib/libQtCore.so.4
#43 0xb4fdff72 in g_main_context_dispatch () from /usr/lib/libglib-2.0.so.0
#44 0xb4fe0750 in g_main_context_iterate () from /usr/lib/libglib-2.0.so.0
#45 0xb4fe0a04 in g_main_context_iteration () from /usr/lib/libglib-2.0.so.0
#46 0xb6769e7c in QEventDispatcherGlib::processEvents(QFlags<QEventLoop::ProcessEventsFlag>) () from /usr/lib/libQtCore.so.4
#47 0xb5ce31b5 in ?? () from /usr/lib/libQtGui.so.4
#48 0xb673e119 in QEventLoop::processEvents(QFlags<QEventLoop::ProcessEventsFlag>) () from /usr/lib/libQtCore.so.4
#49 0xb673e38a in QEventLoop::exec(QFlags<QEventLoop::ProcessEventsFlag>) () from /usr/lib/libQtCore.so.4
#50 0xb6742c6f in QCoreApplication::exec() () from /usr/lib/libQtCore.so.4
#51 0xb5c34637 in QApplication::exec() () from /usr/lib/libQtGui.so.4
#52 0x081f5613 in _start ()

Reported using DrKonqi
Comment 1 Michel Ludwig 2010-07-07 11:45:53 UTC
Can you try to narrow it down a little? For example, which word exactly is causing the crash? Thanks.
Comment 2 otakar.trunecek 2010-07-07 12:58:06 UTC
OK, so I did little more research and found, that the crashes is causing header of template, that i downloaded from my UNI. 
<code>
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
%%%                                    %%%
%%% Šablona bakalářské práce na MFF UK %%%
%%%                                    %%%
%%% (c) František Štrupl, 2005         %%%
%%%                                    %%%
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%% 
</code>
I stripped it down to just one line, that is causing the crash
<code>
%%% (c) František Štrupl, 2005         %%%
</code>
the stripped it some more and what remains is
<code>
2005
</code>
So now I could reproduce the crash by opening empty document, writing just 2005 and running spell-check with Czech dictionary (with English dictionary it's OK). So i tried the same in standalone Kate (new file, inserting just 2005, running spell-check) and it found 2005 as unknown word, so i added it to the dictionary. Then in Kile spell-check runs OK (on my template), but crashes in the same way when i try to enter other numbers of four or more digits like 1905, 12345 ...
Comment 3 Michel Ludwig 2010-07-11 11:15:51 UTC
I've tried to reproduce the problem now, but somehow it refuses to crash...

Can you try to find out what versions of Enchant and Aspell you are using?
Comment 4 otakar.trunecek 2010-07-11 12:05:55 UTC
Aspell - 0.60.6
Enchant - 1.6.0
Well, I have found that it's probably something messed-up with my config files. I created fresh new user and tried to reproduce the bug, but it didn't show.
So I think we can close this? 
Anyway sorry for bothering you and thanks for help.
Bye Ota
Comment 5 Michel Ludwig 2010-07-11 15:53:59 UTC
It also looks like this is a problem with aspell itself and not with Kile / KatePart. Therefore, you might want to report it upstream.
Comment 6 Christoph Feck 2010-08-09 00:00:19 UTC

*** This bug has been marked as a duplicate of bug 233026 ***