To produce the problem, create a script file testx.lua containing the text assert(false). (I cannot generate the problem by typing this into the interpreter/repl, it has to be in a script file.)
Then invoke the debug build of the interpreter like this:
$ ./luau -i testx.lua
One gets an error message and prompt in the interpreter, as expected. Press any key. Now the interpreter crashes. Here's a sample session:
I've confirmed this issue against c8fe77c, though I think it's been around for longer.
I have to make some small changes to the source to be able to build on my system, but I don't think these are responsible. The changes are:
My system is a Mac OS 10.15.7 with MacPorts.
The issue only arises with a debug build of Luau. Here is my build command:
To produce the problem, create a script file
testx.lua
containing the textassert(false)
. (I cannot generate the problem by typing this into the interpreter/repl, it has to be in a script file.)Then invoke the debug build of the interpreter like this:
One gets an error message and prompt in the interpreter, as expected. Press any key. Now the interpreter crashes. Here's a sample session: