iou: Read test fails in release mode

Running cargo +nightly test --release --test read produces

Error: Os { code: 14, kind: Other, message: "Bad address" }
thread 'read_test' panicked at 'assertion failed: `(left == right)`
  left: `1`,
 right: `0`: the test returned a termination value with a non-zero status code (1) which indicates a failure', src/libtest/lib.rs:196:5

About this issue

  • Original URL
  • State: closed
  • Created 5 years ago
  • Comments: 16 (2 by maintainers)

Commits related to this issue

Most upvoted comments

Does moving it into the unsafe block also work?

I want to confirm that the bufs intermediate variable needs to outlive the submit call, but does not need to live until completion.

Yes, I did exactly the same to fix it