allegro / allegro/bigcache

BigCache crashes with following error

Aperta
#279 2 commenti 0 reazioni 0 assegnatari Vedi su GitHub
bug
Lingua principale
Go
Stelle
8.2k
Fork
614
Merge medio
5g 12h
PR unite (30g)
1

Descrizione

**What is the issue you are having?**
panic: runtime error: slice bounds out of range [:203144864] with capacity 7808000

goroutine 89 [running]:
github.com/allegro/bigcache/v3/queue.(*BytesQueue).peek(0xc001552128, 0x12f99c, 0xc30c8f5ffe, 0x2d3, 0x14e402, 0x2, 0x0, 0x0)
/go-thirdparty/thirdparty/pkg/mod/github.com/allegro/bigcache/v3@v3.0.0/queue/bytes_queue.go:242 +0x185
github.com/allegro/bigcache/v3/queue.(*BytesQueue).Peek(...)
/go-thirdparty/thirdparty/pkg/mod/github.com/allegro/bigcache/v3@v3.0.0/queue/bytes_queue.go:186
github.com/allegro/bigcache/v3.(*cacheShard).set(0xc001552120, 0xc087b2a000, 0x67, 0x2c31d6b943f135f4, 0xc039fee780, 0x25c, 0x280, 0xc2f0b2c980, 0xc039fee780)
/go-thirdparty/thirdparty/pkg/mod/github.com/allegro/bigcache/v3@v3.0.0/shard.go:131 +0xdc
github.com/allegro/bigcache/v3.(*BigCache).Set(0xc000abe8f0, 0xc087b2a000, 0x67, 0xc039fee780, 0x25c, 0x280, 0x0, 0x8)
/go-thirdparty/thirdparty/pkg/mod/github.com/allegro/bigcache/v3@v3.0.0/bigcache.go:133 +0xae

**What is BigCache doing that it shouldn't?**

it should not be crashing

**Minimal, Complete, and Verifiable Example**

When asking a question about a problem caused by your code, you will get much better answers if you provide code we can use to reproduce the problem. That code should be...

* ...Minimal – Use as little code as possible that still produces the same problem
* ...Complete – Provide all parts needed to reproduce the problem
* ...Verifiable – Test the code you're about to provide to make sure it reproduces the problem

For more information on how to provide an MCVE, please see the [Stack Overflow documentation](https://stackoverflow.com/help/mcve).

**Environment:**
- Version (git sha or release):
- OS (e.g. from `/etc/os-release` or winver.exe):
- go version: go1.15.3 linux/amd64

Guida per i contributori

Nessuna guida per i contributori indicizzata per questo repository

Valutazione

Questa issue non è ancora stata valutata.

Ricevi le nuove issue nella tua casella

Un breve riepilogo di issue GitHub adatte ai principianti.