lua-users home
lua-l archive

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


When compiling it for Lua 5.2(.0) on Debian GNU/Linux (64 bits) the
included test suite completes successfully, but the test suite for my
JSON module causes a memory access violation.

My GCC version is 4.7.1(-7 Debian package), this bug only happens when
LPeg was built with optimization.  So it might be a bug in my version of
GCC.

Here is the pattern that causes the access violation for me:

    local g = require ("lpeg")
    local Space = (g.S" \n\r\t" + g.P"\239\187\191")^0
    g.match (Space, "")

Does this happen for anybody else?

Best regards,

David