[libvoikko] voikkogc causing segfault on MacOSX
Sjur Moshagen
sjurnm at mac.com
Tue Oct 8 17:13:46 EEST 2013
8. okt. 2013 kl. 16:36 skrev Harri Pitkänen <hatapitk at iki.fi>:
> On Tuesday 08 October 2013 12:18:47 Sjur Moshagen wrote:
>> Program received signal EXC_BAD_ACCESS, Could not access memory.
>> Reason: KERN_INVALID_ADDRESS at address: 0x00000001ffffffff
>> 0x000000010002b7bd in libvoikko::gc_paragraph_to_cache ()
>>
>> Any idea about what is going wrong?
>
> Unfortunately no idea. Can you rebuild libvoikko with debugger friendly
> settings (CXXFLAGS="-g -O0" ./configure ...) and then use "bt full" command
> withing gdb to get the full backtrace.
(gdb) run -d se
Starting program: /usr/local/bin/voikkogc -d se
Reading symbols for shared libraries +++++++++++++++++++++++.............................................................................................................................................. done
HfstAnalyzer::HfstAnalyzer: /Users/smo036/.voikko/4/se-x-standard/se.zhfst
Sámi filbma lea deahálaš sámi álbmogii sámegiilli beassát muitalit sámi kultuvrra ja giela birra .
Program received signal EXC_BAD_ACCESS, Could not access memory.
Reason: KERN_INVALID_ADDRESS at address: 0x0000000000000000
0x000000010002c79d in libvoikko::gc_paragraph_to_cache (voikkoOptions=0x102213d90, text=0x105c82000, textlen=98) at grammar/cache.cpp:74
74 Paragraph * para = grammarChecker->paragraphAnalyser->analyseParagraph(text, textlen);
(gdb) bt full
#0 0x000000010002c79d in libvoikko::gc_paragraph_to_cache (voikkoOptions=0x102213d90, text=0x105c82000, textlen=98) at grammar/cache.cpp:74
grammarChecker = ('libvoikko::grammar::GrammarChecker' *) 0x1022164e0
para = ('libvoikko::grammar::Paragraph' *) 0x5fbff4f0
checks = ('libvoikko::grammar::RuleEngine' *) 0x8b947118
#1 0x000000010002c1fc in voikkoNextGrammarErrorUcs4 (options=0x102213d90, text_ucs4=0x105c82000, wtextlen=98, startpos=0, skiperrors=0) at grammar/interface.cpp:48
c_error = (const voikko_grammar_error *) 0x0
e = (voikko_grammar_error *) 0x7fff5fbff550
sugg_count = 0
#2 0x0000000100002631 in check_grammar (handle=0x102213d90, line=0x105c82000, lineLen=98, explanation_language=0x0) at voikkogc.cpp:134
grammarError = (struct VoikkoGrammarError *) 0x102825e6b
suggs = (const char **) 0x186a000061a84
skiperrors = 0
#3 0x00000001000020fd in main (argc=3, argv=0x7fff5fbff738) at voikkogc.cpp:270
lineLen = 98
path = 0x0
variant = 0x7fff5fbff913 "se"
op = CHECK_GRAMMAR
voikkoError = 0x0
handle = (struct VoikkoHandle *) 0x102213d90
explanation_language = 0x0
line = (wchar_t *) 0x105c82000
error = 32767
Sjur
More information about the Libvoikko
mailing list