Skip to content
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

The test_thread test interacts badly with Lua's GC #1

Open
kennytm opened this issue Aug 29, 2017 · 0 comments
Open

The test_thread test interacts badly with Lua's GC #1

kennytm opened this issue Aug 29, 2017 · 0 comments

Comments

@kennytm
Copy link

kennytm commented Aug 29, 2017

Repro step:

  1. Run cargo test --lib test_thread.
  2. Repeat 10 times.
  3. There will be 50% chance the test is stuck with the "median" thread never finishing.

It seems to have problem with the GC collection step. Adding collectgarbage('stop') to the Lua test code is able to workaround this.


Tested using lua53-ext = "0.1.1".

$ rustc -vV
rustc 1.21.0-nightly (e26688824 2017-08-27)
binary: rustc
commit-hash: e2668882406b68739c6ed33d420358d5d710e67b
commit-date: 2017-08-27
host: x86_64-apple-darwin
release: 1.21.0-nightly
LLVM version: 4.0
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant