Giter Site home page Giter Site logo

Comments (3)

dominikschulz avatar dominikschulz commented on July 17, 2024

This should not happen. I don't see any unhandled potential nil pointers in the call.

I'd be curious to get the debug log for this failure.

If you could run it with GOPASS_DEBUG_LOG=/tmp/gopass.log and provide the outpuit that would be helpful.

from gopass.

Dexus avatar Dexus commented on July 17, 2024
GOPASS_DEBUG_LOG=/tmp/gopass.log gopass recipients rm 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?, 0xc00010f200?})
        work/gopass/gopass/internal/store/leaf/store.go:111 +0x2a
github.com/gopasspw/gopass/internal/store/leaf.(*Store).RecipientsTree(0x20?, {0xea9b18, 0xc00010f200})
        work/gopass/gopass/internal/store/leaf/recipients.go:71 +0x37
github.com/gopasspw/gopass/internal/store/root.(*Store).RecipientsTree(0xc000120210, {0xea9b18, 0xc00010f200}, 0x10?)
        work/gopass/gopass/internal/store/root/recipients.go:98 +0xcc
github.com/gopasspw/gopass/internal/action.(*Action).recipientsList(0xc000544000, {0xea9b18?, 0xc0004f09c0?})
        work/gopass/gopass/internal/action/recipients.go:52 +0x65
github.com/gopasspw/gopass/internal/action.(*Action).RecipientsComplete(0x0?, 0x0?)
        work/gopass/gopass/internal/action/recipients.go:66 +0x2f
github.com/urfave/cli/v2.ShowCompletions(...)
        go/pkg/mod/github.com/urfave/cli/[email protected]/help.go:326
github.com/urfave/cli/v2.checkCompletions(0xc000296900)
        go/pkg/mod/github.com/urfave/cli/[email protected]/help.go:475 +0xd3
github.com/urfave/cli/v2.(*Command).Run(0xc00054fa20, 0xc000296900, {0xc00004d870, 0x1, 0x1})
        go/pkg/mod/github.com/urfave/cli/[email protected]/command.go:158 +0x125
github.com/urfave/cli/v2.(*Command).Run(0xc00054f600, 0xc000296800, {0xc000127b00, 0x2, 0x2})
        go/pkg/mod/github.com/urfave/cli/[email protected]/command.go:267 +0xbe5
github.com/urfave/cli/v2.(*Command).Run(0xc0005514a0, 0xc000035580, {0xc000140040, 0x3, 0x4})
        go/pkg/mod/github.com/urfave/cli/[email protected]/command.go:267 +0xbe5
github.com/urfave/cli/v2.(*App).RunContext(0xc000546000, {0xea9b18?, 0xc0004f09c0}, {0xc000140040, 0x4, 0x4})
        go/pkg/mod/github.com/urfave/cli/[email protected]/app.go:332 +0x5b7
main.main()
        work/gopass/gopass/main.go:90 +0x4c5
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?, 0xc000524210?})
        work/gopass/gopass/internal/store/leaf/store.go:111 +0x2a
github.com/gopasspw/gopass/internal/store/leaf.(*Store).RecipientsTree(0x20?, {0xea9b18, 0xc000524210})
        work/gopass/gopass/internal/store/leaf/recipients.go:71 +0x37
github.com/gopasspw/gopass/internal/store/root.(*Store).RecipientsTree(0xc0003b0090, {0xea9b18, 0xc000524210}, 0x10?)
        work/gopass/gopass/internal/store/root/recipients.go:98 +0xcc
github.com/gopasspw/gopass/internal/action.(*Action).recipientsList(0xc0004e0000, {0xea9b18?, 0xc0003ee900?})
        work/gopass/gopass/internal/action/recipients.go:52 +0x65
github.com/gopasspw/gopass/internal/action.(*Action).RecipientsComplete(0x0?, 0x0?)
        work/gopass/gopass/internal/action/recipients.go:66 +0x2f
github.com/urfave/cli/v2.ShowCompletions(...)
        go/pkg/mod/github.com/urfave/cli/[email protected]/help.go:326
github.com/urfave/cli/v2.checkCompletions(0xc0004ff300)
        go/pkg/mod/github.com/urfave/cli/[email protected]/help.go:475 +0xd3
github.com/urfave/cli/v2.(*Command).Run(0xc0004eda20, 0xc0004ff300, {0xc0004efc20, 0x1, 0x1})
        go/pkg/mod/github.com/urfave/cli/[email protected]/command.go:158 +0x125
github.com/urfave/cli/v2.(*Command).Run(0xc0004ed600, 0xc0004ff200, {0xc0005231e0, 0x2, 0x2})
        go/pkg/mod/github.com/urfave/cli/[email protected]/command.go:267 +0xbe5
github.com/urfave/cli/v2.(*Command).Run(0xc0004f94a0, 0xc0004fe080, {0xc0000340c0, 0x3, 0x4})
        go/pkg/mod/github.com/urfave/cli/[email protected]/command.go:267 +0xbe5
github.com/urfave/cli/v2.(*App).RunContext(0xc0004e2000, {0xea9b18?, 0xc0003ee900}, {0xc0000340c0, 0x4, 0x4})
        go/pkg/mod/github.com/urfave/cli/[email protected]/app.go:332 +0x5b7
main.main()
        work/gopass/gopass/main.go:90 +0x4c5
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?, 0xc000766210?})
        work/gopass/gopass/internal/store/leaf/store.go:111 +0x2a
github.com/gopasspw/gopass/internal/store/leaf.(*Store).RecipientsTree(0x20?, {0xea9b18, 0xc000766210})
        work/gopass/gopass/internal/store/leaf/recipients.go:71 +0x37
github.com/gopasspw/gopass/internal/store/root.(*Store).RecipientsTree(0xc000700090, {0xea9b18, 0xc000766210}, 0x10?)
        work/gopass/gopass/internal/store/root/recipients.go:98 +0xcc
github.com/gopasspw/gopass/internal/action.(*Action).recipientsList(0xc00073e000, {0xea9b18?, 0xc000704900?})
        work/gopass/gopass/internal/action/recipients.go:52 +0x65
github.com/gopasspw/gopass/internal/action.(*Action).RecipientsComplete(0x0?, 0x0?)
        work/gopass/gopass/internal/action/recipients.go:66 +0x2f
github.com/urfave/cli/v2.ShowCompletions(...)
        go/pkg/mod/github.com/urfave/cli/[email protected]/help.go:326
github.com/urfave/cli/v2.checkCompletions(0xc000755300)
        go/pkg/mod/github.com/urfave/cli/[email protected]/help.go:475 +0xd3
github.com/urfave/cli/v2.(*Command).Run(0xc00074ba20, 0xc000755300, {0xc00074dc40, 0x1, 0x1})
        go/pkg/mod/github.com/urfave/cli/[email protected]/command.go:158 +0x125
github.com/urfave/cli/v2.(*Command).Run(0xc00074b600, 0xc000755200, {0xc0007651e0, 0x2, 0x2})
        go/pkg/mod/github.com/urfave/cli/[email protected]/command.go:267 +0xbe5
github.com/urfave/cli/v2.(*Command).Run(0xc00074f4a0, 0xc000754080, {0xc0000340c0, 0x3, 0x4})
        go/pkg/mod/github.com/urfave/cli/[email protected]/command.go:267 +0xbe5
github.com/urfave/cli/v2.(*App).RunContext(0xc000740000, {0xea9b18?, 0xc000704900}, {0xc0000340c0, 0x4, 0x4})
        go/pkg/mod/github.com/urfave/cli/[email protected]/app.go:332 +0x5b7
main.main()
        work/gopass/gopass/main.go:90 +0x4c5
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?, 0xc0005e6210?})
        work/gopass/gopass/internal/store/leaf/store.go:111 +0x2a
github.com/gopasspw/gopass/internal/store/leaf.(*Store).RecipientsTree(0x20?, {0xea9b18, 0xc0005e6210})
        work/gopass/gopass/internal/store/leaf/recipients.go:71 +0x37
github.com/gopasspw/gopass/internal/store/root.(*Store).RecipientsTree(0xc0003e8090, {0xea9b18, 0xc0005e6210}, 0x10?)
        work/gopass/gopass/internal/store/root/recipients.go:98 +0xcc
github.com/gopasspw/gopass/internal/action.(*Action).recipientsList(0xc0005c0000, {0xea9b18?, 0xc0003ec900?})
        work/gopass/gopass/internal/action/recipients.go:52 +0x65
github.com/gopasspw/gopass/internal/action.(*Action).RecipientsComplete(0x0?, 0x0?)
        work/gopass/gopass/internal/action/recipients.go:66 +0x2f
github.com/urfave/cli/v2.ShowCompletions(...)
        go/pkg/mod/github.com/urfave/cli/[email protected]/help.go:326
github.com/urfave/cli/v2.checkCompletions(0xc0005d5300)
        go/pkg/mod/github.com/urfave/cli/[email protected]/help.go:475 +0xd3
github.com/urfave/cli/v2.(*Command).Run(0xc0005cda20, 0xc0005d5300, {0xc0005cfc30, 0x1, 0x1})
        go/pkg/mod/github.com/urfave/cli/[email protected]/command.go:158 +0x125
github.com/urfave/cli/v2.(*Command).Run(0xc0005cd600, 0xc0005d5200, {0xc0005e51e0, 0x2, 0x2})
        go/pkg/mod/github.com/urfave/cli/[email protected]/command.go:267 +0xbe5
github.com/urfave/cli/v2.(*Command).Run(0xc0005d14a0, 0xc0005d4080, {0xc0000340c0, 0x3, 0x4})
        go/pkg/mod/github.com/urfave/cli/[email protected]/command.go:267 +0xbe5
github.com/urfave/cli/v2.(*App).RunContext(0xc0005c2000, {0xea9b18?, 0xc0003ec900}, {0xc0000340c0, 0x4, 0x4})
        go/pkg/mod/github.com/urfave/cli/[email protected]/app.go:332 +0x5b7
main.main()
        work/gopass/gopass/main.go:90 +0x4c5
^C

no created logfile

from gopass.

dominikschulz avatar dominikschulz commented on July 17, 2024

You encounter the error during autocomplete (pressing TAB)?
In that case you must set the log file first, e.g. export GOPASS_DEBUG_LOG=/tmp/gopass.log.

Otherwise it doesn't take effect (your shell hasn't evaluated to line, yet).

from gopass.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.