Closed zhaozg closed 1 year ago
My suggestion would be to remove the update lua to v5.4.6
and update lua-compat-5.3 to HEAD
commits from this branch to see if updating Lua is the cause of the Valgrind errors. If it is, then we should just do that separately from updating Libuv.
See https://github.com/luvit/luv/issues/646#issuecomment-1555730462
Ok, change finished.
Created a pull request with the remaining stuff: https://github.com/zhaozg/luv/pull/5
Good jobs, Let wait appveyor report status.
failed https://ci.appveyor.com/project/racker-buildbot/luv/builds/47095901
ok 58 misc - uv.version and uv.version_string
.\tests/test-misc.lua:31: assertion failed!
stack traceback:
[C]: in function 'assert'
.\tests/test-misc.lua:31: in function 'fn'
.\lib/tap.lua:59: in function <.\lib/tap.lua:48>
[C]: in function 'xpcall'
.\lib/tap.lua:48: in function 'run'
.\lib/tap.lua:146: in function 'tap'
tests\run.lua:23: in main chunk
[C]: at 0x01205430
not ok 59 misc - memory size
Strange, will figure that out in a bit. I'm currently on Linux reporting the valgrind libuv stuff :smile:
Strange, will figure that out in a bit. I'm currently on Linux reporting the valgrind libuv stuff 😄
Maybe lua cast it as signed number on 32 bits arch. I do some check.
Looks like you're right. Changing luv_get_available_memory
to use lua_pushnumber
should fix it I think.
Looks like pushunsigned
won't work, since the lua-compat-5.3
implementation just casts to lua_Integer
anyway:
I think lua_pushnumber
is okay, it's what luv_get_free_memory
, luv_get_total_memory
, etc use.
ok, I will back in 20 minutes, outsides now.
close https://github.com/luvit/luv/issues/646