lua-users home
lua-l archive

[Date Prev][Date Next][Thread Prev][Thread Next] [Date Index] [Thread Index]


On 10.05.2013 15:48, Finn Wilcox wrote:
On 10/05/2013 14:42, Bernd Eggink wrote:

The baffling fact is that the function 'error' from the standard library
loops and eats up 100% CPU, instead of aborting the program. If the line
is replaced by os.exit(1), the program halts immediately.

Are you inside an xpcall()?  Maybe the error handler triggers the same
metamethod that threw the error, leading to infinite recursion?

No, I don't use xpcall anywhere. Yes, it looks like infinite recursion, though it doesn't seem to eat up noticeable amounts of memory.

Bernd


--
http://sudrala.de