|
> To my surprise the program failed in another way. As the memory usage is
> increased, Lua calls the garbage collector to free up some memory. Each
> time the garbage collector is running, it is using more and more stack,
> leading to stack overflow long before the heap is exhausted. It seems that
> no matter how much I increase the stack size, the garbage collector will
> eat it all very soon.
Don't you have a stack trace?
-- Roberto