Menu

#333 hfst-pair-test crashing on UnescapedColsFound

future
closed
nobody
None
1
2016-02-19
2016-02-15
Anonymous
No

To reproduce:

  1. check out https://gtsvn.uit.no/langtech/trunk/gtcore
  2. check out https://gtsvn.uit.no/langtech/trunk/langs/sms
  3. In sms, do ./autogen.sh
  4. ./configure --without-xfst --with-hfst --enable-spellers --enable-twostep-intersect
  5. make
  6. make check

Result:

/Applications/Xcode.app/Contents/Developer/usr/bin/make  check-TESTS
libc++abi.dylib: terminating with uncaught exception of type hfst::UnescapedColsFound
./pair-test-hfst.sh: line 50: 32201 Abort trap: 6           ${HTWOLC} --xerox-mode -I ${SOURCEFILE} -i ${HFSTFILE} -o ${TESTRESULT}
XFAIL: pair-test-hfst.sh

Expected result:

No crash.

Discussion

  • sjurum

    sjurum - 2016-02-15

    The crashing behavior was seen with svn revision 129496 of sms.

     

    Last edit: sjurum 2016-02-15
  • Miikka Silfverberg

    When I run

    export srcdir=. && ./pair-test-hfst.sh

    in langs/sms/test/src/phonology, I get

    /usr/local/bin/hfst-pair-test: Got an odd number of negative test cases. Every input string
    has to have an output string.

     
  • Miikka Silfverberg

    • status: open --> closed
     
  • Miikka Silfverberg

    In rev 4650

     
  • sjurum

    sjurum - 2016-02-18

    It still crashes for me, but now with a slightly different error:

    Making check in phonology
    /Applications/Xcode.app/Contents/Developer/usr/bin/make  check-TESTS
    libc++abi.dylib: terminating with uncaught exception of type EmptyStringException
    ./pair-test-hfst.sh: line 50: 86162 Abort trap: 6           ${HTWOLC} --xerox-mode -I ${SOURCEFILE} -i ${HFSTFILE} -o ${TESTRESULT}
    XFAIL: pair-test-hfst.sh
    

    This is on OSX, 10.11.3.

    Tested with sms revision 129666, which according to the Xerox tools still contain to test pairs with an unequal number of symbols.

    Do you want to reopen the bug, or should I file a new one?

     
    • sjurum

      sjurum - 2016-02-18

      One further comment: in svn HEAD there are no more string pairs of unequal length, according to the Xerox tools. Still I get the error mentioned above when testing with Hfst. This is so far only observed with sms.

       
  • Miikka Silfverberg

    Could you try it again in revision 4660.

     
    • sjurum

      sjurum - 2016-02-19

      Thanks, now it works without crashing, and pretty fast too :)

      Thanks a lot!