-
Notifications
You must be signed in to change notification settings - Fork 7
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Memory corruption sometimes. #1326
Comments
Using yk master as of about 10 minutes ago ( The trace looks pretty much the same:
|
I can't replicate this. I suggest trying (in order):
My guess is that (1) is the most likely culprit, but I'm not really sure. |
I always |
I was unable to reproduce this using the following script: #!/bin/sh
set -xeu
unset YKB_YKLLVM_BIN_DIR
if [ ! -e yk ]; then
git clone --recurse-submodules https://github.com/ykjit/yk
fi
if [ ! -e yklua ]; then
git clone https://github.com/ykjit/yklua
fi
if [ ! -e try_repeat ]; then
git clone https://github.com/ltratt/try_repeat
fi
cd yk
cargo test --release
export PATH=$(pwd)/bin:${PATH}
cd ..
cd yklua
export YK_BUILD_TYPE=release
make clean
make -j $(nproc)
cd tests
YKD_SERIALISE_COMPILATION=0 ../../try_repeat/try_repeat 100 \
../src/lua -e"_U=true" all.lua
YKD_SERIALISE_COMPILATION=1 ../../try_repeat/try_repeat 100 \
../src/lua -e"_U=true" all.lua
cd ..
# Repeat using YKB_YKLLVM_BIN_DIR in case it has to do with that.
make clean
export YKB_YKLLVM_BIN_DIR=$(pwd)/../yk/target/release/ykllvm/bin
make -j $(nproc)
cd tests
YKD_SERIALISE_COMPILATION=0 ../../try_repeat/try_repeat 100 \
../src/lua -e"_U=true" all.lua
YKD_SERIALISE_COMPILATION=1 ../../try_repeat/try_repeat 100 \
../src/lua -e"_U=true" all.lua So I can only assume it's something up the local setup I was using, or a recent commit fixed it. Will close. |
We just saw some pointer corruption in a CI job. This time it was while running the awfy benchmarks. Reopening. |
I think |
With a release build of yklua you can shake various memory corruption crashes out when running the test suite.
I've only observed this with a release build and with
YKD_SERIALISE_COMPILATION=0
together.Example:
Discussed briefly with @ptersilie and this particular trace looks like
free(3)
crashing when releasing scratch memory used during stack reconstruction.The text was updated successfully, but these errors were encountered: