Re: bug with LuaJIT2-beta10

  • From: Francesco Abbate <francesco.bbt@xxxxxxxxx>
  • To: luajit@xxxxxxxxxxxxx
  • Date: Thu, 7 Jun 2012 18:31:01 +0200

2012/6/6 Mike Pall <mike-1206@xxxxxxxxxx>:
> I'm sorry, but from past experience this doesn't really work.
> Lesley found some problems in the ARM port that surfaced only with
> GSL shell: for every issue, I needed an isolated test case (that
> works with the pure LuaJIT command line) before I was able to
> track down the problem successfully.

Hi Mike,

it took me quite a lot of work but here I have a test case for the bug
that work with LuaJIT2 from git HEAD.

The commit for the test case applies to the current head of the master
branch. To reproduce the bug do:

dofile 'wave-bug.lua'

from the console and you will see that luajit get stuck in an infinite
loop. If you use -joff the script terminates very quickly.

In the script wave-bug.lua there are a lot of fake local declarations
just to make the bug appear.

It is funny that in the test case you have a lot of non-trivial stuff.
A gauss-jordan linear system solver for complex matrix implemented in
pure Lua and a sophisticated algorithm to find the roots of a generic
function. :-)

I hope this test case is useful to track down the bug.

Francesco

Other related posts: