boltdb/bolt

frequent "assertion failed: write: circular dependency occurred"

timestee opened this issue · 1 comments

net/http.(*conn).serve.func1(0xc42013e6e0)
	/usr/local/go/src/net/http/server.go:1721 +0xd0
panic(0xa13f00, 0xc42013c770)
	/usr/local/go/src/runtime/panic.go:489 +0x2cf
github.com/boltdb/bolt._assert(0xc420206000, 0xb4a139, 0x23, 0x0, 0x0, 0x0)
	/mnt/htdocs/go/src/github.com/boltdb/bolt/db.go:1026 +0xf6
github.com/boltdb/bolt.(*node).write(0xc42011c770, 0xc420206000)
	/mnt/htdocs/go/src/github.com/boltdb/bolt/node.go:221 +0x3a2
github.com/boltdb/bolt.(*node).spill(0xc42011c770, 0xc4201fe7b0, 0xc42004aeb0)
	/mnt/htdocs/go/src/github.com/boltdb/bolt/node.go:373 +0x28f
github.com/boltdb/bolt.(*Bucket).spill(0xc42013af00, 0xc4201fe700, 0xc42004b120)
	/mnt/htdocs/go/src/github.com/boltdb/bolt/bucket.go:541 +0x17b
github.com/boltdb/bolt.(*Bucket).spill(0xc420230558, 0x25c8642f, 0xe55ae0)
	/mnt/htdocs/go/src/github.com/boltdb/bolt/bucket.go:508 +0x8f8
github.com/boltdb/bolt.(*Tx).Commit(0xc420230540, 0x0, 0x0)
	/mnt/htdocs/go/src/github.com/boltdb/bolt/tx.go:163 +0x125
github.com/boltdb/bolt.(*DB).Update(0xc42022a1e0, 0xc42004b350, 0x0, 0x0)
	/mnt/htdocs/go/src/github.com/boltdb/bolt/db.go:602 +0xf7
...

@zsounder is there a simple test program that can reproduce this?