lua-users home
lua-l archive

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


On Wed, Feb 2, 2011 at 7:12 AM, Roberto Ierusalimschy
<roberto@inf.puc-rio.br> wrote:
>
> Can you send a small example where this happens? Thanks,
>
> -- Roberto
>

I just built it without -DNDEBUG and run the included file 'test.lua'.
Details are below:

 --downloaded Lpeg from:
 http://www.inf.puc-rio.br/~roberto/lpeg/lpeg-0.10.1.tar.gz

 $ md5sum lpeg-0.10.1.tar.gz
 4d28947d89191a02effb611df8ba7c3c  lpeg-0.10.1.tar.gz

 --modified the makefile to read
     COPT = -O2
   instead of
     COPT = -O2 -DNDEBUG

 $ make
 -- (just a warning:  "lpeg.c:361: warning: 'printcaplist' defined but
not used")
 --
 -- now, try it with test.lua, the file included in lpeg-0.10.1.tar.gz
 --
 $ lua  test.lua
 General tests for LPeg library
 version 0.10
 +
 +
 lua: lpeg.c:792: checkrule: Assertion `op[start - 1].i.code ==
IChoice && ((start - 1) + ((op)+(start - 1))->i.offset) == i + 1'
failed.
 Aborted

 -- (this is on a Linux box, with glibc-2.11.1 and gcc-4.4.4)

HTH

Thanks,

Phil