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

Time going backwards??? #453

Closed
bjorn3 opened this issue May 18, 2019 · 3 comments · Fixed by #457
Closed

Time going backwards??? #453

bjorn3 opened this issue May 18, 2019 · 3 comments · Fixed by #457
Labels
bug Something isn't working

Comments

@bjorn3
Copy link

bjorn3 commented May 18, 2019

Describe the bug

thread 'main' panicked at 'supplied instant is later than self', src/libcore/option.rs:1036:5

Steps to reproduce

  1. Unpack rustc_binary.wasm.zip.
  2. wasmer run rustc_binary.wasm --backend singlepass --dir . --dir $(rustc --print sysroot)  -- example.rs --sysroot $(rustc --print sysroot) -Zcodegen-backend=metadata_only --target x86_64-unknown-linux-gnu
    

Expected behavior

No panic.

Actual behavior

Panic.

Additional context

Using Rust + WASI.

@bjorn3 bjorn3 added the bug Something isn't working label May 18, 2019
@bjorn3
Copy link
Author

bjorn3 commented May 18, 2019

It seems to work every now and then.

@MarkMcCaskey
Copy link
Contributor

Thanks for the report! I'll add a regression test that exercises the clock code!

@MarkMcCaskey
Copy link
Contributor

Okay, so I've figured out the issue!

There are two bugs with our time implementation:

bors bot added a commit that referenced this issue May 20, 2019
457: fix file metadata wasi test r=MarkMcCaskey a=MarkMcCaskey

gets the test working by properly filling in data into the stat

also resolves #453 

Co-authored-by: Mark McCaskey <[email protected]>
Co-authored-by: Mark McCaskey <[email protected]>
@bors bors bot closed this as completed in #457 May 20, 2019
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

Successfully merging a pull request may close this issue.

2 participants