Assertion in LPeg 0.10.2

classic Classic list List threaded Threaded
2 messages Options
Reply | Threaded
Open this post in threaded view
|

Assertion in LPeg 0.10.2

Philipp Janda
Hi!

I triggered an assertion failure using LPeg 0.10.2 installed via apt-get
for Lua 5.2.1 on 64bit Linux, as well as installed via luarocks for Lua
5.1.4 on 32bit Linux:

lua: lpeg.c:793: checkrule: Assertion `op[start - 1].i.code == IChoice
&& ((start - 1) + ((op)+(start - 1))->i.offset) == target(op, i + 1)'
failed.

Test script is attached.

Thanks,
Philipp


ref.lua (640 bytes) Download Attachment
Reply | Threaded
Open this post in threaded view
|

Re: Assertion in LPeg 0.10.2

Dirk Laurie-2
2012/12/6 Philipp Janda <[hidden email]>:


> I triggered an assertion failure using LPeg 0.10.2 installed via
> apt-get for Lua 5.2.1 on 64bit Linux, as well as installed via
> luarocks for Lua 5.1.4 on 32bit Linux:

However, your script works on my system using LPeg 0.10.2
installed via luarocks for Lua 5.2.1 on 32bit Linux.

BTW Lua 5.1.5 has been released.