[Date Prev][Date Next] [Thread Prev][Thread Next] [Date Index] [Thread Index]

Re: [aspell-it] deb per la 0.60



> Segmentation fault

Ho fatto un pochino di indagine
Se crei un file test2.txt contenente soltanto la parola "malfunzionante"

e lanci gdb

--> gdb aspell
GNU gdb 2002-04-01-cvs
Copyright 2002 Free Software Foundation, Inc.
GDB is free software, covered by the GNU General Public License, and you are
welcome to change it and/or distribute copies of it under certain conditions.
Type "show copying" to see the conditions.
There is absolutely no warranty for GDB.  Type "show warranty" for details.
This GDB was configured as "i386-linux"...
(gdb) r --lang=it -c test
test2.txt      test2.txt.new  test_it.txt
(gdb) r --lang=it -c test2.txt
Starting program: /home/zino/tools_0.60.2/bin/aspell --lang=it -c test2.txt

Program received signal SIGSEGV, Segmentation fault.
0x00001298 in ?? ()
(gdb) bt
#0  0x00001298 in ?? ()
#1  0x400aad21 in aspeller::AffixMgr::affix_check (this=0x80a0560, linf=@0xbfffee20, word=
      {str_ = 0x80c7218 "malfunzionante", size_ = 4294967295}, ci=@0x80755b0, gi=0x0)
    at modules/speller/default/affix.cpp:843
#2  0x4008ee3e in aspeller::SpellerImpl::check_affix (this=0x8075510, word=
      {str_ = 0x80c7218 "malfunzionante", size_ = 4294967295}, ci=@0x80755b0, gi=0x80756d0)
    at modules/speller/default/speller_impl.cpp:147
#3  0x4008ef92 in aspeller::SpellerImpl::check (this=0x8075510, word=0x80c7218 "malfunzionante",
    word_end=0x80c7226 "", try_uppercase=false, run_together_limit=0, ci=0x80755b0, gi=0x80756d0)
    at modules/speller/default/speller_impl.cpp:160
#4  0x400940f9 in aspeller::SpellerImpl::check (this=0x8075510, word=
      {str = 0x80c7218 "malfunzionante", size = 14}) at modules/speller/default/speller_impl.hpp:104
#5  0x40066d7b in acommon::DocumentChecker::next_misspelling (this=0x80c71d8)
    at common/document_checker.cpp:67
#6  0x0806fa96 in CheckerString::next_misspelling (this=0x80c70f8) at prog/checker_string.cpp:113
#7  0x080552f3 in check () at prog/aspell.cpp:1039
#8  0x0804eae7 in main (argc=4, argv=0xbffff904) at prog/aspell.cpp:406

------
il problema è la lunghezza della parola "malfunzionante" (14 caratteri);
si scopre facilmente che 11 è il max numero di caratteri... se domani ho
tempo provo a capirci qualcosa di piu'

ciao,
d.



Reply to: