Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

slice bounds out of range [:18014398510996847] with capacity 4194304 #425

Open
CaledoniaProject opened this issue Sep 21, 2022 · 0 comments

Comments

@CaledoniaProject
Copy link

I got a weird panic, what's going on?

panic: runtime error: slice bounds out of range [:18014398510996847] with capacity 4194304 [recovered]
        panic: runtime error: slice bounds out of range [:18014398510996847] with capacity 4194304 [recovered]
        panic: runtime error: slice bounds out of range [:18014398510996847] with capacity 4194304
goroutine 74586376 [running]:
github.com/syndtr/goleveldb/leveldb.(*DB).mCompaction.func1()
        /root/go/pkg/mod/github.com/syndtr/[email protected]/leveldb/db_compaction.go:752 +0xc5
panic({0xb58fc0, 0xc00e3dbda0})
        /usr/lib/go-1.18/src/runtime/panic.go:838 +0x207
github.com/syndtr/goleveldb/leveldb.(*DB).compactionTransact.func1()
        /root/go/pkg/mod/github.com/syndtr/[email protected]/leveldb/db_compaction.go:158 +0x9b
panic({0xb58fc0, 0xc00e3dbda0})
        /usr/lib/go-1.18/src/runtime/panic.go:838 +0x207
github.com/syndtr/goleveldb/leveldb/memdb.(*dbIter).fill(0x1e?, 0x91?, 0xe2?)
        /root/go/pkg/mod/github.com/syndtr/[email protected]/leveldb/memdb/memdb.go:42 +0x291
github.com/syndtr/goleveldb/leveldb/memdb.(*dbIter).Next(0xc0166770e0?)
        /root/go/pkg/mod/github.com/syndtr/[email protected]/leveldb/memdb/memdb.go:131 +0x12e
github.com/syndtr/goleveldb/leveldb.(*tOps).createFrom(0xc0031825a0?, {0xcab698, 0xc00c8a6080})
        /root/go/pkg/mod/github.com/syndtr/[email protected]/leveldb/table.go:329 +0x106
github.com/syndtr/goleveldb/leveldb.(*session).flushMemdb(0xc00807e4d0, 0xc01edb5900, 0xc012fb8000, 0x7faab3f5a498?)
        /root/go/pkg/mod/github.com/syndtr/[email protected]/leveldb/session_compaction.go:27 +0x105
github.com/syndtr/goleveldb/leveldb.(*DB).memCompaction.func1(0xc016677001?)
        /root/go/pkg/mod/github.com/syndtr/[email protected]/leveldb/db_compaction.go:304 +0x9c
github.com/syndtr/goleveldb/leveldb.(*compactionTransactFunc).run(0x3337333836300000?, 0x0?)
        /root/go/pkg/mod/github.com/syndtr/[email protected]/leveldb/db_compaction.go:241 +0x1f
github.com/syndtr/goleveldb/leveldb.(*DB).compactionTransact(0xc00b0ec000, {0xb9f8b2, 0xb}, {0xca7fa0, 0xc00c896730})
        /root/go/pkg/mod/github.com/syndtr/[email protected]/leveldb/db_compaction.go:185 +0x217
github.com/syndtr/goleveldb/leveldb.(*DB).compactionTransactFunc(...)
        /root/go/pkg/mod/github.com/syndtr/[email protected]/leveldb/db_compaction.go:252
github.com/syndtr/goleveldb/leveldb.(*DB).memCompaction(0xc00b0ec000)
        /root/go/pkg/mod/github.com/syndtr/[email protected]/leveldb/db_compaction.go:302 +0x3ee
github.com/syndtr/goleveldb/leveldb.(*DB).mCompaction(0xc00b0ec000)
        /root/go/pkg/mod/github.com/syndtr/[email protected]/leveldb/db_compaction.go:766 +0x93
created by github.com/syndtr/goleveldb/leveldb.openDB
        /root/go/pkg/mod/github.com/syndtr/[email protected]/leveldb/db.go:150 +0x5d6
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant