On Tue, Jun 22, 2010 at 15:44:24 +0100, Edd Barrett wrote:
> Build the hunspell package with debug symbols!
> DEBUG=-g make install
Thanks!

$ echo asd > textfile
$ /usr/local/bin/hunspell textfile
Segmentation fault (core dumped)
$ gdb /usr/local/bin/hunspell hunspell.core 
GNU gdb 6.3
Copyright 2004 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-unknown-openbsd4.7"...
Core was generated by `hunspell'.
Program terminated with signal 11, Segmentation fault.
Reading symbols from /usr/local/lib/libintl.so.4.0...done.
Loaded symbols for /usr/local/lib/libintl.so.4.0
Reading symbols from /usr/local/lib/libiconv.so.6.0...done.
Loaded symbols for /usr/local/lib/libiconv.so.6.0
Reading symbols from /usr/local/lib/libhunspell-1.2.so.0.0...done.
Loaded symbols for /usr/local/lib/libhunspell-1.2.so.0.0
Reading symbols from /usr/lib/libcurses.so.11.0...done.
Loaded symbols for /usr/lib/libcurses.so.11.0
Reading symbols from /usr/lib/libreadline.so.3.0...done.
Loaded symbols for /usr/lib/libreadline.so.3.0
Reading symbols from /usr/lib/libncurses.so.11.0...done.
Loaded symbols for /usr/lib/libncurses.so.11.0
Reading symbols from /usr/lib/libstdc++.so.49.0...done.
Loaded symbols for /usr/lib/libstdc++.so.49.0
Reading symbols from /usr/lib/libm.so.5.2...done.
Loaded symbols for /usr/lib/libm.so.5.2
Reading symbols from /usr/lib/libc.so.54.0...done.
Loaded symbols for /usr/lib/libc.so.54.0
Reading symbols from /usr/libexec/ld.so...done.
Loaded symbols for /usr/libexec/ld.so
#0  0x1c003717 in expand_tab (dest=0x1 <Address 0x1 out of bounds>, 
    src=0x7e465c60 "asd", limit=8192) at hunspell.cxx:793
793     hunspell.cxx: No such file or directory.
        in hunspell.cxx
(gdb) bt full
#0  0x1c003717 in expand_tab (dest=0x1 <Address 0x1 out of bounds>, 
    src=0x7e465c60 "asd", limit=8192) at hunspell.cxx:793
        i = 0
        u8 = -809794632
        chpos = 0
#1  0x1c003938 in dialogscreen (parser=0x87c66000, token=0x7e465cf0 "asd", 
    filename=0x1 <Address 0x1 out of bounds>, forbidden=0, wlst=0x0, ns=0)
    at hunspell.cxx:846
        i = 1
        x = 80
        y = 24
        line = '\0' <repeats 5299 times>, "_", '\0' <repeats 12 times>, 
"ňß\216\n\022", '\0' <repeats 15 times>, 
"ěó\000\000˛\000\000\000\200Ó\216\n\000˛\216\nDrM~Ä\221;|ĚxťĎí\005ú\tôc\\\201Ďß\216\n9\037˙\0060\000\000\000üxťĎ¸xťĎźxťĎ",
 '\0' <repeats 12 times>, "\001\000\000\000\037\023ú\t\003", '\0' <repeats 15 
times>, 
"ôc\\\201čyťĎ˙˙˙˙\214ńů)\000ŕ\220*\000 \216\n\fyťĎ}\035ú\t\001\000\000\000řxťĎ\001\000\000\000ě\223\217\n8ě\220*\000\000\000\000
 ˝\216\n¨ę\220*ěyťĎčyťĎ¸|ť"...
        line2 = '\0' <repeats 8191 times>
        lines = {'\0' <repeats 8191 times>, '\0' <repeats 8191 times>, 
  '\0' <repeats 8191 times>, '\0' <repeats 8191 times>}
        tokenbeg = 0
        tokenend = 4
        rowindex = 1
        beginrow = 0
#2  0x1c0047a8 in interactive_line (parser=0x87c66000, pMS=0xcfbbc4e8, 
    filename=0xcfbbe754 "textfile", tempfile=0x24a6d2f8) at hunspell.cxx:1205
        wlst = (char **) 0x0
        ns = 16711680
        token = 0x7e465cf0 "asd"
        dialogexit = 0
        info = 0
        d = 0
#3  0x1c004a6d in interactive_interface (pMS=0xcfbbc4e8, 
    filename=0xcfbba485 "đńňóôőöřůúűüýţ", format=0) at hunspell.cxx:1265
        buf = "asd\000\000đńňóôőöřůúűüýţ", '\0' <repeats 1025 times>, 
"\003\000\000\000\030ŞťĎŕ\225Ź\004\bŽťĎ=\030¤$\003\000\000\000\b\002ťĎ", '\0' 
<repeats 20 times>, 
"@\030¤$\000\000\000\000|ö¤$PŞťĎ\000\000\000\000ř¨ťĎĚ\035Ź\004°ŤťĎPŞťĎ\000\000\000\000¤\035Ź\004|ö¤$\003\000\000\000\210ŤťĎqGŹ\004°ŤťĎPŞťĎ\001\000\000\000ઝĎ\000\000\000\000ઝĎ\000\000\000\000\020ŞťĎŹŠťĎ\000\000\000\000p­ťĎ°ŤťĎ\000\000\000\000ŞŠťĎl­ťĎ\002\000\000\000\000\000\000\000\030",
 '\0' <repeats 27 times>...
        text = (FILE *) 0x24a6d2a0
        dialogexit = 6
        check = 1
        parser = (class TextParser *) 0x87c66000
        extension = 0x6 <Address 0x6 out of bounds>
        tempname = 0x874279c0 "hunSPELL.bak"
        tempfile = (FILE *) 0x24a6d2f8
#4  0x1c005472 in main (argc=2, argv=0xcfbbe5a4) at hunspell.cxx:1609
        i = 1
        buf = ".hunspell_hu_HU\000unspell_hu_HU", '\0' <repeats 3415 times>, 
"é8ú\t", '\0' <repeats 28 times>, "a ú\t\214ńů)řW˝%čŇťĎ\f ú\t\033", '\0' 
<repeats 11 times>, 
"ĺ\037ú\t\032\000\000\000\033\000\000\000,qM~\214ńů)řW˝%,pM~\030ÓťĎĘ˙ů\tkëś\203",
 '\0' <repeats 21 times>, 
"pź\005\214ńů)\000\000\000\000\000\000\000\000(äťĎ\022Hú\tkëś\203\200W˝%4pź\005\a\000\000\000\003\000\000\000\000pź\005\000pź\005\005\004\000\000\000đ˙˙\214ÓťĎ\000~˝"...
        pMS = {0x82444280, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0}
        key = 0x0
        arg_files = 1
        format = 0
        argstate = 0
        dicplus = 0x1 <Address 0x1 out of bounds>
        aff = 0x7dab3240 "/usr/local/share/hunspell/hu_HU.aff"
        dic = 0x7dab32c0 "/usr/local/share/hunspell/hu_HU.dic"
(gdb) quit


Hope this helps,

Daniel

-- 
LÉVAI Dániel
PGP key ID = 0x83B63A8F
Key fingerprint = DBEC C66B A47A DFA2 792D  650C C69B BE4C 83B6 3A8F

Reply via email to