lua-users home
lua-l archive

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


Hello,

I seem to have found a bug in LuaJIT 2 involving upvalues. I've attached a testcase that demonstrates the bug.
It's a minimal bitstream reader where the variable buf seems to get a stale value at the 60th iteration (when the JIT kicks in?).
This happens on Windows with both 32-bit and 64-bit LuaJIT with the latest code from the git rep. I have not tested other platforms.

// Erik Lindroos

Attachment: bugtest.lua
Description: Binary data