Skip to content

[v1.0.1] panic in bbolt.(*Bucket).Cursor(...) when running analyze #365

@AwesomePatrol

Description

@AwesomePatrol

For command auger analyze -f db encountered a panic:

panic: runtime error: invalid memory address or nil pointer dereference
[signal SIGSEGV: segmentation violation code=0x1 addr=0x8 pc=0xa4a6a5]

goroutine 1 [running]:
go.etcd.io/bbolt.(*Bucket).Cursor(...)
	/root/go/pkg/mod/go.etcd.io/[email protected]/bucket.go:84
github.com/etcd-io/auger/pkg/data.walk.func1(0x400000?)
	/root/go/pkg/mod/github.com/etcd-io/[email protected]/pkg/data/data.go:413 +0x45
go.etcd.io/bbolt.(*DB).View(0x2066f40?, 0xc000175608)
	/root/go/pkg/mod/go.etcd.io/[email protected]/db.go:917 +0x6c
github.com/etcd-io/auger/pkg/data.walk(0x7ffd5eb3de6d?, 0x2c?)
	/root/go/pkg/mod/github.com/etcd-io/[email protected]/pkg/data/data.go:411 +0x29
github.com/etcd-io/auger/pkg/data.ListKeySummaries({0xc00027e9a0, {0x16687c0, 0xc000013098}, {0xc00027c8c0, 0x3, 0x4}, {0x166ffd0, 0xc0001333b0}}, {0x7ffd5eb3de6d, 0x2c}, ...)
	/root/go/pkg/mod/github.com/etcd-io/[email protected]/pkg/data/data.go:221 +0x475
github.com/etcd-io/auger/cmd.analyzeValidateAndRun()
	/root/go/pkg/mod/github.com/etcd-io/[email protected]/cmd/analyze.go:48 +0x99
github.com/etcd-io/auger/cmd.init.func1(0xc000208800?, {0x14521f2?, 0x4?, 0x145210a?})
	/root/go/pkg/mod/github.com/etcd-io/[email protected]/cmd/analyze.go:32 +0xf
github.com/spf13/cobra.(*Command).execute(0x20510e0, {0xc0003f74e0, 0x2, 0x2})
	/root/go/pkg/mod/github.com/spf13/[email protected]/command.go:985 +0xaaa
github.com/spf13/cobra.(*Command).ExecuteC(0x2051f40)
	/root/go/pkg/mod/github.com/spf13/[email protected]/command.go:1117 +0x3ff
github.com/spf13/cobra.(*Command).Execute(...)
	/root/go/pkg/mod/github.com/spf13/[email protected]/command.go:1041
main.main()
	/root/go/pkg/mod/github.com/etcd-io/[email protected]/main.go:26 +0x1a

Unfortunately I can't provide DB file or retry with a different auger version, so this is more of "FYI"

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions