Skip to content

concurrent map iteration and map write (version 1.1.0) #99

@girino

Description

@girino

I am getting a fatal error: concurrent map iteration and map write when starting the haven relay.

https://github.com/bitvora/haven/blame/cb9daef00c6b3498642b84c8e7ce0993e5d5ad6c/wot.go#L129

haven2-relay | fatal error: concurrent map iteration and map write
haven2-relay |
haven2-relay | goroutine 198 [running]:
haven2-relay | internal/runtime/maps.fatal({0x14e6725?, 0x0?})
haven2-relay | runtime/panic.go:1058 +0x20
haven2-relay | internal/runtime/maps.(*Iter).Next(0x4002143c10?)
haven2-relay | internal/runtime/maps/table.go:683 +0x94
haven2-relay | main.updateWoTMap()
haven2-relay | github.com/bitvora/haven/wot.go:129 +0x64
haven2-relay | main.refreshTrustNetwork()
haven2-relay | github.com/bitvora/haven/wot.go:86 +0x6cc
haven2-relay | main.main.func1()
haven2-relay | github.com/bitvora/haven/main.go:42 +0x28
haven2-relay | created by main.main in goroutine 1
haven2-relay | github.com/bitvora/haven/main.go:40 +0x390

Metadata

Metadata

Assignees

No one assigned

    Labels

    bugSomething isn't workingconfirmedwotWeb of trust

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions