`realloc(): invalid pointer` when using ACE to compile grammar

Hi all,

I am trying to compile my new Kalaallisut grammar with ACE, but a grammar image cannot be created (when trying the command ace -G ....../grammars/kal/kal.dat -g ....../kal/ace/config.tdl suggested in the 567 course: Knowledge Engineering for NLP: Lab 5). The error seems to be related to memory allocation (see the figure below).

I tried the version I had in the 567 course, which compiled successfully, but somehow the current, much larger version fails. I haven’t used ACE to test the grammar since the end of the 567 course but only LKB, so it might take me quite a while to pinpoint exactly which version of my grammar started causing problems with ACE.

Is there a recommended way to solve this memory allocation issue? Thanks in advance!

Try adding the following line to the bottom of your $GRAMMAR/ace/config.tdl file:

freezer-megabytes := 512.

This increases the space ACE can use in compiling your grammar.