cloudhead / cloudhead/nakamoto
Empty waker commands crashing the process
- Dominant language
- Rust
- Stars
- 391
- Forks
- 64
- PR merge metrics
- No merged PRs in 30d
Description
Experiencing a crash that seems to originate from the fact that the number of waker commands should never be zero. Is this caused by `popol`?
```
[TRACE nakamoto_net_poll::reactor] Woke up with 2 source(s) ready
[TRACE nakamoto_net_poll::reactor] Woken up by waker (0 command(s))
thread '' panicked at 'assertion failed: !commands.is_empty()', /home/[redacted]/.cargo/git/checkouts/nakamoto-7d1fe53db3dde129/e3b1cf9/net/poll/src/reactor.rs:249:33
```
Contributor guide
Research direction
Start in net/poll/src/reactor.rs around line 249 and trace the waker path that logs "0 command(s)" before the assertion. Check whether the crash can be reproduced with an empty command queue; done means the empty-waker case is handled without panicking, with relevant behavior covered by the existing test setup if present.
Written by the indexing model from the issue text.
Assessment
- Tech stack
- rust
- Domain
- networking
- Issue type
- Bug
- Difficulty
- 3/5
- Estimated time
- 1-2 days
- Activity status
- Stale
- Clarity
- Mostly clear
- Newbie friendliness
- 35/100