kuhumcst/affixtrain

Segmentation fault

Closed this issue · 1 comments

Dear @BartJongejan, thank you for your work. I wanted to create flex rules for cstlemma, but I run into problem when "./affixtrain -i short -n FLOO" ends with segmentation fault.

Program terminated with signal SIGSEGV, Segmentation fault.
#0 0x000000000041354d in node::cleanup (this=0x0, parent=0x0, recursionDepth=0) at node.cpp:770
770 if (this->IfPatternSucceeds)

Thank you very much.

I have find out that if I experiment with data inside 'short' file than I can get:

  1. if short contain only one line
    """
    1 seabed seabed N 24
    2
    """
    than I get segmentation fault
    ==================================

  2. if the file contain
    """
    1 seabed seabed N 24
    2
    3 seal seal N 88
    4 seal seal V 10
    5 sealed seal V 49
    6 sealing seal V 28
    7 sealing sealing N 3
    8 seals seal N 79
    9 seals seal V 11
    10
    11 seamier seamy A 1
    12 seamiest seamy A 0
    13 seamy seamy A 7
    14
    15 secularisation secularization N 1
    16 secularization secularization N 1
    17
    18 sedan sedan N 31
    19 sedans sedan N 3
    20
    21 seduce seduce V 12
    22 seduced seduce V 15
    23 seduces seduce V 8
    24 seducing seduce V 20
    25
    26 see-through see-through A 14
    27
    28 seethe seethe V 2
    29 seethed seethe V 6
    30 seethes seethe V 0
    31 seething seethe V 48
    32
    """
    I also get segmentation fault

  3. but when i remove "g" from last word (32)
    """
    1 seabed seabed N 24
    2
    3 seal seal N 88
    4 seal seal V 10
    5 sealed seal V 49
    6 sealing seal V 28
    7 sealing sealing N 3
    8 seals seal N 79
    9 seals seal V 11
    10
    11 seamier seamy A 1
    12 seamiest seamy A 0
    13 seamy seamy A 7
    14
    15 secularisation secularization N 1
    16 secularization secularization N 1
    17
    18 sedan sedan N 31
    19 sedans sedan N 3
    20
    21 seduce seduce V 12
    22 seduced seduce V 15
    23 seduces seduce V 8
    24 seducing seduce V 20
    25
    26 see-through see-through A 14
    27
    28 seethe seethe V 2
    29 seethed seethe V 6
    30 seethes seethe V 0
    31 seethin seethe V 48
    32
    """
    then the process finish without problem

I hope this will help somehow.
Best Marek Medveď