panic: runtime error: assignment to entry in nil map
goroutine 1311 [running]:
runtime.panic(0x1a0fa0, 0x2dc2f3)
/Users/crawshaw/go/src/pkg/runtime/panic.c:279 +0xf5
code.google.com/p/leveldb-go/leveldb.(*tableCache).findNode(0x2091a6080, 0x3f,
0x0)
/Users/crawshaw/gotools/src/code.google.com/p/leveldb-go/leveldb/table_cache.go:90 +0x14c
code.google.com/p/leveldb-go/leveldb.(*tableCache).find(0x2091a6080, 0x3f, 0x0,
0x0, 0x0, 0x0, 0x0, 0x0, 0x0)
/Users/crawshaw/gotools/src/code.google.com/p/leveldb-go/leveldb/table_cache.go:41 +0x74
code.google.com/p/leveldb-go/leveldb.compactionIterator(0x2091a6080,
0x2208345698, 0x20847bec0, 0x20c68b6e0, 0x0, 0x0, 0x0, 0x0)
/Users/crawshaw/gotools/src/code.google.com/p/leveldb-go/leveldb/compaction.go:414 +0x59f
code.google.com/p/leveldb-go/leveldb.(*DB).compactDiskTables(0x2091a6000,
0x20c68b6e0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0)
/Users/crawshaw/gotools/src/code.google.com/p/leveldb-go/leveldb/compaction.go:272 +0x222
code.google.com/p/leveldb-go/leveldb.(*DB).compact1(0x2091a6000, 0x0, 0x0)
/Users/crawshaw/gotools/src/code.google.com/p/leveldb-go/leveldb/compaction.go:210 +0x353
code.google.com/p/leveldb-go/leveldb.(*DB).compact(0x2091a6000)
/Users/crawshaw/gotools/src/code.google.com/p/leveldb-go/leveldb/compaction.go:166 +0x78
created by code.google.com/p/leveldb-go/leveldb.(*DB).maybeScheduleCompaction
/Users/crawshaw/gotools/src/code.google.com/p/leveldb-go/leveldb/compaction.go:159 +0x85
goroutine 16 [runnable]:
main.matchString(0x1c1110, 0x0, 0x1f5390, 0x24, 0x145301, 0x0, 0x0)
code.google.com/p/leveldb-go/leveldb/_test/_testmain.go:80
testing.RunTests(0x231160, 0x2dc360, 0x19, 0x19, 0x150b01)
/Users/crawshaw/go/src/pkg/testing/testing.go:480 +0x2c7
testing.Main(0x231160, 0x2dc360, 0x19, 0x19, 0x2e62a0, 0x0, 0x0, 0x2e62a0, 0x0,
0x0)
/Users/crawshaw/go/src/pkg/testing/testing.go:435 +0x87
main.main()
code.google.com/p/leveldb-go/leveldb/_test/_testmain.go:95 +0x9c
goroutine 19 [finalizer wait]:
runtime.park(0x14490, 0x2df9c0, 0x2ded78)
/Users/crawshaw/go/src/pkg/runtime/proc.c:1354 +0x89
runtime.parkunlock(0x2df9c0, 0x2ded78)
/Users/crawshaw/go/src/pkg/runtime/proc.c:1370 +0x3b
runfinq()
/Users/crawshaw/go/src/pkg/runtime/mgc0.c:2628 +0xcf
runtime.goexit()
/Users/crawshaw/go/src/pkg/runtime/proc.c:1430
goroutine 591 [runnable]:
code.google.com/p/leveldb-go/leveldb.(*DB).compact(0x2083a9200)
/Users/crawshaw/gotools/src/code.google.com/p/leveldb-go/leveldb/compaction.go:163
created by code.google.com/p/leveldb-go/leveldb.(*DB).maybeScheduleCompaction
/Users/crawshaw/gotools/src/code.google.com/p/leveldb-go/leveldb/compaction.go:159 +0x85
FAIL code.google.com/p/leveldb-go/leveldb 1.602s
Can be produced by running the attached stress test about ten times at tip:
go version devel +9eacb9c0d810 Thu Apr 24 12:24:22 2014 -0700 + darwin/amd64