On 05/15/2014 10:34 AM, Aharon Robbins wrote: > The wrapper only checks for NULL return. Ah, thanks, that's the problem then: gawk's xmalloc is pickier than grep's, and the extra pickiness is incompatible with what dfa.c expects. I see that gawk's xrealloc is also too picky, but gawk's xcalloc is OK. Attached isa patch to gawk. As this problem does not affect grep I'll close the grep bug.