Normally the end of anthy journal file, $HOME/.anthy/last-record2_default.utf8, should be '\n' when we check it with 'od' command.
But if that file is broken, the end of file would not be '\n' and anthy_do_create_context() could go into an infinite loop.
The solution is to check EOF besides '\n' in record.c:read_1_token().
Normally the end of anthy journal file, $HOME/.anthy/last-record2_default.utf8, should be '\n' when we check it with 'od' command.
But if that file is broken, the end of file would not be '\n' and anthy_do_create_context() could go into an infinite loop.
The solution is to check EOF besides '\n' in record.c:read_1_token().