TinoDidriksen / spellers

Front-ends and packaging scripts for spellers. Git read-only mirror.
GNU General Public License v3.0
1 stars 0 forks source link

hfst-ospell-office dumps core on [uppercase-char] and {uppercase-char} #19

Closed albbas closed 8 years ago

albbas commented 8 years ago

Examples from commandline use: hfst-mso $ echo "5 [L]" | /usr/local/bin/hfst-ospell-office se-latest/se.zhfst @@ hfst-ospell-office is alive * * Error in `/usr/local/bin/hfst-ospell-office': munmap_chunk(): invalid pointer: 0x000000000236e880 * Aborted (core dumped)

hfst-mso $ echo "5 [l]" | /usr/local/bin/hfst-ospell-office se-latest/se.zhfst @@ hfst-ospell-office is alive *

{L}, {L], [L} also results in core dumps.

hfst-mso $ /usr/local/bin/hfst-ospell --version

hfstospell 0.4.0 Jan 26 2016 10:02:10 copyright (C) 2009 - 2016 University of Helsinki

The original input had about 90000 lines, one "word" on each line. On Linux hfst-ospell-office dumps core after all lines have been spell checked, on OS X it crashes more randomly (somewhere in the middle of the process).

albbas commented 8 years ago

hfst-ospell does not have this behaviour: hfst-mso $ echo "{l]" | /usr/local/bin/hfst-ospell --limit=5 se-latest/se.zhfst "{l]" is NOT in the lexicon: hfst-mso $ echo "{L]" | /usr/local/bin/hfst-ospell --limit=5 se-latest/se.zhfst "{L]" is NOT in the lexicon: hfst-mso $

TinoDidriksen commented 8 years ago

Fixed in hfst-ospell r4638. I'll regenerate speller packages when it's done building for all platforms.