al8n / stretto

Stretto is a Rust implementation for Dgraph's ristretto (https://github.com/dgraph-io/ristretto). A high performance memory-bound Rust cache.
Apache License 2.0
413 stars 28 forks source link

Pointer is not multiple of 8 in test #40

Closed peter-scholtens closed 1 year ago

peter-scholtens commented 1 year ago

When cloning the most recent commit 262f340411cf860d898ddd6f3147ea603db82a15 and running cargo test I see it fails with:

thread '<unnamed>' panicked at 'misaligned pointer dereference: address
must be a multiple of 0x8 but is 0x7f5f40010b05', src/bbloom.rs:122:22

Some background info which may be relevant

al8n commented 1 year ago

When cloning the most recent commit 262f340 and running cargo test I see it fails with:

thread '<unnamed>' panicked at 'misaligned pointer dereference: address
must be a multiple of 0x8 but is 0x7f5f40010b05', src/bbloom.rs:122:22

Some background info which may be relevant

  • kernel: 5.15.0-60-generic #66-Ubuntu SMP Fri Jan 20 14:29:49 UTC 2023 x86_64 x86_64 x86_64 GNU/Linux
  • compiler: rustc 1.71.0-nightly (7908a1d65 2023-04-17)
  • Linux Mint 21.1 Vera

Thanks! I have fixed this bug in the latest commit. This is caused by different memory model in Go and Rust.