Skip to content

Crash: concurrent map read/write in MemoryStore during Autobrr health check #96

@blixten85

Description

@blixten85

I see this in my log occasionally.
I don’t know what’s causing it.

fatal error: concurrent map read and map write goroutine 15267 [running]: internal/runtime/maps.fatal({0x281bb0d?, 0x25e4f79aac70?}) /usr/local/go/src/runtime/panic.go:1181 +0x18 github.com/autobrr/dashbrr/internal/services/cache.(*MemoryStore).Get(0x25e4f7ad6900, {0x27e9e54?, 0x25e4f78c20a0?}, {0x25e4f7aba000, 0x1b}, {0x2280b80, 0x25e4f75e2000}) /src/internal/services/cache/memory.go:163 +0x11c github.com/autobrr/dashbrr/internal/services/core.(*ServiceCore).GetVersionFromCache(0x25e4f7d52080, {0x3040330, 0x25e4f78c20a0}, {0x25e4f7fb8000, 0x13}) /src/internal/services/core/service.go:265 +0x108 github.com/autobrr/dashbrr/internal/services/autobrr.(*AutobrrService).GetVersion(0x25e4f7d52080, {0x3040330, 0x25e4f78c20a0}, {0x25e4f7fb8000, 0x13}, {0x25e4f7e8c160, 0x20}) /src/internal/services/autobrr/autobrr.go:223 +0x7d github.com/autobrr/dashbrr/internal/services/autobrr.(*AutobrrService).CheckHealth.func1() /src/internal/services/autobrr/autobrr.go:315 +0x51 created by github.com/autobrr/dashbrr/internal/services/autobrr.(*AutobrrService).CheckHealth in goroutine 15071 /src/internal/services/autobrr/auto

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions