Closed Pavel-Durov closed 1 year ago
bors try
So this fixes the crashes?
It fixes the crashes but only for serialised compilation.
YKD_SERIALISE_COMPILATION=1 ${LUA} -e"_U=true" all.lua
WORKS :+1:
YKD_SERIALISE_COMPILATION=0 ${LUA} -e"_U=true" all.lua
FAILS :-1:
looks like bors try
didn't trigger the buildbot...
bors try
Already running a review
If the try
succeeds, please squash.
I don't thing bors try
triggered anything...
bors try-
bors ping
pong
bors try
@Pavel-Durov Sometimes bors is a bit lazy and needs a try-
. I don't know why! It's running now https://ci.soft-dev.org/#/builders/1/builds/2487
failed cause of my typo in buildbot.sh
OK, please push a new commit with the fix.
fixed :point_right: f499cb1c6a6da56d72164a270b377dbd167772ae
bors try
Please squash if try
succeeds.
Build succeeded!
The publicly hosted instance of bors-ng is deprecated and will go away soon.
If you want to self-host your own instance, instructions are here. For more help, visit the forum.
If you want to switch to GitHub's built-in merge queue, visit their help page.
squashed :point_right: ff503ebf58421ff468fb95e7efeb4d92009117d9
bors r+
Build succeeded!
The publicly hosted instance of bors-ng is deprecated and will go away soon.
If you want to self-host your own instance, instructions are here. For more help, visit the forum.
If you want to switch to GitHub's built-in merge queue, visit their help page.
Partially fixes (only for serial compilation) - https://github.com/ykjit/yklua/issues/62
Changes
test.sh
was tested for resiliency multiple times:Issues
Uninitialised locations memory
reallocarray
does not initialise memory with default zero bytes locations ascalloc
. Moving tocalloc
and using pointers allowed to check for NULL with default values set at initialisation time.Tests
When lua tests are executed one by one as single files it produces different results from when it's executed via
all.lua
test suite.Example:
When run through
all.lua
it passes:Since
all.lua
is what we base the stability of yklua, I think we should include it in the tests as is, currently only serialised compilation works.Running
all.lua
prior to these changes results in error (main/56c5787799b876f36babbae24e9afc025806b831
):That's cause we're freeing uninitialised yk locations.