wvwwvwwv / scalable-concurrent-containers

High performance containers and utilities for concurrent and asynchronous programming
Apache License 2.0
319 stars 16 forks source link

AsyncWait runs into unreachable state #118

Closed sammyne closed 9 months ago

sammyne commented 9 months ago

Environment

Data structure

Error log

thread 'tokio-runtime-worker' panicked at /usr/local/cargo/registry/src/github.com-1ecc6299db9ec823/scc-2.0.5/src/wait_queue.rs:178:13:
internal error: entered unreachable code
wvwwvwwv commented 9 months ago

Hello @sammyne

Thanks for reporting this issue. In order for me to understand the problem, can you possibly provide additional information?

  1. Data structure used in the scenario: e.g., TreeIndex? or HashMap?
  2. Architecture: e.g., AMD64? AARCH64?
sammyne commented 9 months ago

Hello @sammyne

Thanks for reporting this issue. In order for me to understand the problem, can you possibly provide additional information?

  1. Data structure used in the scenario: e.g., TreeIndex? or HashMap?
  2. Architecture: e.g., AMD64? AARCH64?

It's HashMap in use, and architecture is AMD64.

wvwwvwwv commented 9 months ago

Thanks! It seems to me that a Future was dropped without having been awaited. I’ll look into it!

wvwwvwwv commented 9 months ago

Confirm that the problem is reproducible if AsyncAwait is dropped without being awaited.

wvwwvwwv commented 9 months ago

@sammyne Sure, that's exactly what I'm trying to fix! I'll need to upload a few changes, and hopefully, I'll be able to upload SCC 2.0.6 by tomorrow.

sammyne commented 9 months ago

@sammyne Sure, that's exactly what I'm trying to fix! I'll need to upload a few changes, and hopefully, I'll be able to upload SCC 2.0.6 by tomorrow.

Great thanks 😄 Waiting for 2.0.6.

wvwwvwwv commented 9 months ago

Uploaded 2.0.6! Reopen this when it does not work :-)