Skip to content

panic: runtime error: invalid memory address or nil pointer dereference #2803

@Dexus

Description

@Dexus

Summary

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

goroutine 1 [running]:
github.com/gopasspw/gopass/internal/store/leaf.(*Store).idFiles(0x10?, {0xea9b18?, 0xc000738270?})
work/gopass/gopass/internal/store/leaf/store.go:111 +0x2a
github.com/gopasspw/gopass/internal/store/leaf.(*Store).RecipientsTree(0x20?, {0xea9b18, 0xc000738270})
work/gopass/gopass/internal/store/leaf/recipients.go:71 +0x37
github.com/gopasspw/gopass/internal/store/root.(*Store).RecipientsTree(0xc000400090, {0xea9b18, 0xc000738270}, 0x10?)
work/gopass/gopass/internal/store/root/recipients.go:98 +0xcc
github.com/gopasspw/gopass/internal/action.(*Action).recipientsList(0xc000478000, {0xea9b18?, 0xc000404900?})
work/gopass/gopass/internal/action/recipients.go:52 +0x65
github.com/gopasspw/gopass/internal/action.(*Action).RecipientsComplete(0x0?, 0x1?)
work/gopass/gopass/internal/action/recipients.go:66 +0x2f
github.com/urfave/cli/v2.ShowCompletions(...)
go/pkg/mod/github.com/urfave/cli/v2@v2.25.7/help.go:326
github.com/urfave/cli/v2.checkCompletions(0xc00072b280)
go/pkg/mod/github.com/urfave/cli/v2@v2.25.7/help.go:475 +0xd3
github.com/urfave/cli/v2.(*Command).Run(0xc000723a20, 0xc00072b280, {0xc00073d600, 0x2, 0x2})
go/pkg/mod/github.com/urfave/cli/v2@v2.25.7/command.go:158 +0x125
github.com/urfave/cli/v2.(*Command).Run(0xc000723600, 0xc00072b180, {0xc0007380c0, 0x3, 0x3})
go/pkg/mod/github.com/urfave/cli/v2@v2.25.7/command.go:267 +0xbe5
github.com/urfave/cli/v2.(*Command).Run(0xc0007274a0, 0xc00072a000, {0xc0000340a0, 0x4, 0x5})
go/pkg/mod/github.com/urfave/cli/v2@v2.25.7/command.go:267 +0xbe5
github.com/urfave/cli/v2.(*App).RunContext(0xc00047a000, {0xea9b18?, 0xc000404900}, {0xc0000340a0, 0x5, 0x5})
go/pkg/mod/github.com/urfave/cli/v2@v2.25.7/app.go:332 +0x5b7
main.main()
work/gopass/gopass/main.go:90 +0x4c5
panic: runtime error: invalid memory address or nil pointer dereference

Steps To Reproduce

  • gopass recipients rm

Expected behavior

List mounts, and users

Environment

  • OS: [e.g. Mac OS X High Sierra, Ubuntu 18.04, Windows 10, ...] Ubuntu 22.04
  • OS version: [uname -a] Linux yyyyyyyy SMP PREEMPT_DYNAMIC Thu Jan 18 02:29:42 UTC 2024 x86_64 x86_64 x86_64 GNU/Linux
  • gopass Version: [gopass version] gopass 1.15.11 go1.21.4 linux amd64
  • Installation method: [e.g. from source, brew, gopass repo]
dpkg -l | grep gopass
ii  gopass                                        1.15.11                                      amd64        gopass password manager - full featured CLI replacement for pass, designed for teams.

Additional context

Metadata

Metadata

Assignees

Labels

bugDefects

Type

No type

Projects

No projects

Milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions