On Mon, 19 Aug 2002, Nils Ellmenreich wrote: > Hi all, > > This is on RedHat 7.1. I've tried it with the delivered gcc 2.96 and > also with gcc 3.1.1. and aspell-0.50-20020815. While checking a file > with the following command line > > aspell -c -t --add-tex-command="bibliography p" \ > --add-tex-command="verbatim p" --add-tex-command="figure o p" \ > --add-tex-command="texttt p" --lang=en_GB foo.tex > > with empty personal dictionary, it segfaults after the 10th word found. > This is gdb's output (I compiled aspell again without -O2): > > #9 0x0805e62b in _M_insert_dispatch<__gnu_cxx::__normal_iterator<char*, >std::vector<char, std::allocator<char> > > > (this=0xbfffd314, >__pos={<iterator<std::random_access_iterator_tag,char,int,char*,char&>> = {<No data >fields>}, _M_current = 0x0}, >__first={<iterator<std::random_access_iterator_tag,char,int,char*,char&>> = {<No data >fields>}, _M_current = 0x8081a5b ""}, >__last={<iterator<std::random_access_iterator_tag,char,int,char*,char&>> = {<No data >fields>}, _M_current = 0xa9c1cef <Address 0xa9c1cef out of bounds>}) at >bits/stl_vector.h:596 > #10 0x0805e33f in insert<__gnu_cxx::__normal_iterator<char*, std::vector<char, >std::allocator<char> > > > (this=0xbfffd314, >__pos={<iterator<std::random_access_iterator_tag,char,int,char*,char&>> = {<No data >fields>}, _M_current = 0x0}, >__first={<iterator<std::random_access_iterator_tag,char,int,char*,char&>> = {<No data >fields>}, _M_current = 0x8081a5b ""}, >__last={<iterator<std::random_access_iterator_tag,char,int,char*,char&>> = {<No data >fields>}, _M_current = 0xa9c1cef <Address 0xa9c1cef out of bounds>}) at >bits/stl_vector.h:581 > #11 0x0805d9a2 in CheckerString::get_word(acommon::CharVector&) (this=0x806e0d0, >w=@0xbfffd310) at checker_string.hpp:74 > #12 0x08054ea8 in check(bool) (interactive=true) at aspell.cpp:728 > #13 0x080517ab in main (argc=10, argv=0xbfffdbb4) at aspell.cpp:291 > #14 0x4029e336 in __libc_start_main (main=0x80509a0 <main>, argc=10, >ubp_av=0xbfffdbb4, init=0x804fe90 <_init>, fini=0x8061c3c <_fini>, >rtld_fini=0x4000d2fc <_dl_fini>, stack_end=0xbfffdbac) at >../sysdeps/generic/libc-start.c:129
Try going into frame 11 (CheckerString::get_word) and print the values of word_begin_, and word_size_. By guess is that word_size_ is a bogus value which is causing the problem. The file that causes the problem would really help here. If you don't want the world to see it but are willing to give it to me that will work also. You can send it to [EMAIL PROTECTED] (To avoid it getting forwarded form one email to the next). --- http://kevin.atkinson.dhs.org _______________________________________________ Aspell-devel mailing list [EMAIL PROTECTED] http://mail.gnu.org/mailman/listinfo/aspell-devel