libp2p / libp2p/rust-libp2p

libp2p-request-response: debug assertion is hit

Open
#6,376 1 comment 0 reactions 0 assignees View on GitHub

Nobody has claimed this yet.

Dominant language
Rust
Stars
5.6k
Forks
1.3k
Avg merge
8h 47m
Merged PRs (30d)
19

Description

### Summary

```
thread 'main' panicked at /Users/_/.cargo/registry/src/index.crates.io-1949cf8c6b5b557f/libp2p-request-response-0.26.3/src/lib.rs:651:9:
assertion `left == right` failed
left: false
right: true
note: run with `RUST_BACKTRACE=1` environment variable to display a backtrace
```

### Expected behavior

Should not be hit.

### Actual behavior

Assert is hit.

### Relevant log output

```shell

```

### Possible Solution

_No response_

### Version

_No response_

### Would you like to work on fixing this bug?

Yes

Contributor guide

Open the contributing guide

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. Open a pull request that references the issue number.

Research direction

Start by reproducing the panic and capturing the full backtrace with RUST_BACKTRACE=1; the report identifies the assertion at libp2p-request-response/src/lib.rs:651 in version 0.26.3. Trace the request-response state around that assertion and establish a reproducible case; done means the assertion is no longer hit and regression coverage demonstrates the behavior.

Written by the indexing model from the issue text.

Assessment

Tech stack
rust
Domain
networking
Issue type
Bug
Difficulty
4/5
Estimated time
3-5 days
Activity status
Quiet
Clarity
Needs clarification
Newbie friendliness
35/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.