hashicorp / hashicorp/consul

panic: cannot free page 0 or 1: 0

Open
#3,771 8 comments 0 reactions 0 assignees View on GitHub
type/bug type/crash
Dominant language
Go
Stars
30.1k
Forks
4.6k
Avg merge
2d 6h
Merged PRs (30d)
43

Description

version: 0.8.4
scenario: disaster recovery with peers.json

==> Starting Consul agent...
panic: cannot free page 0 or 1: 0

goroutine 1 [running]:
github.com/hashicorp/consul/vendor/github.com/boltdb/bolt.(*freelist).free(0xc4203afe90, 0x455, 0x7f36c702a000)
/gopath/src/github.com/hashicorp/consul/vendor/github.com/boltdb/bolt/freelist.go:109 +0x3f0
github.com/hashicorp/consul/vendor/github.com/boltdb/bolt.(*Tx).Commit(0xc4201abdc0, 0x18df07c, 0x4)
/gopath/src/github.com/hashicorp/consul/vendor/github.com/boltdb/bolt/tx.go:176 +0x205
github.com/hashicorp/consul/vendor/github.com/hashicorp/raft-boltdb.(*BoltStore).initialize(0xc4203ad760, 0x0, 0x0)
/gopath/src/github.com/hashicorp/consul/vendor/github.com/hashicorp/raft-boltdb/bolt_store.go:75 +0x139
github.com/hashicorp/consul/vendor/github.com/hashicorp/raft-boltdb.NewBoltStore(0xc4203b2800, 0x33, 0x2, 0xc4203b2800, 0x33)
/gopath/src/github.com/hashicorp/consul/vendor/github.com/hashicorp/raft-boltdb/bolt_store.go:51 +0xc4
github.com/hashicorp/consul/consul.(*Server).setupRaft(0xc420358780, 0x0, 0x0)
/gopath/src/github.com/hashicorp/consul/consul/server.go:492 +0xabc
github.com/hashicorp/consul/consul.NewServerLogger(0xc420358500, 0xc42023ee60, 0x0, 0x0, 0x0)
/gopath/src/github.com/hashicorp/consul/consul/server.go:320 +0xc1f
github.com/hashicorp/consul/command/agent.(*Agent).makeServer(0xc4201a06c0, 0x1, 0xc420153c80, 0x0)
/gopath/src/github.com/hashicorp/consul/command/agent/agent.go:860 +0x112
github.com/hashicorp/consul/command/agent.(*Agent).Start(0xc4201a06c0, 0xc4201a06c0, 0x0)
/gopath/src/github.com/hashicorp/consul/command/agent/agent.go:238 +0x4f6
github.com/hashicorp/consul/command/agent.(*Command).run(0xc4201ac0f0, 0xc42000e140, 0xf, 0x10, 0x0)
/gopath/src/github.com/hashicorp/consul/command/agent/command.go:720 +0x4db
github.com/hashicorp/consul/command/agent.(*Command).Run(0xc4201ac0f0, 0xc42000e140, 0xf, 0x10, 0xc420290140)
/gopath/src/github.com/hashicorp/consul/command/agent/command.go:669 +0x56
github.com/hashicorp/consul/vendor/github.com/mitchellh/cli.(*CLI).Run(0xc420170840, 0xc420170840, 0x40, 0xc42028e240)
/gopath/src/github.com/hashicorp/consul/vendor/github.com/mitchellh/cli/cli.go:160 +0x1cc
main.realMain(0xc4200001a0)
/gopath/src/github.com/hashicorp/consul/main.go:54 +0x40d
main.main()
/gopath/src/github.com/hashicorp/consul/main.go:18 +0x22

Contributor guide

Open the contributing guide

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.