~sircmpwn/aerc2#344
panic on findNextNonDeleted

I will occasionally get a panic when I attempt to delete a message that I have used :filter to search for. For example:

  • :filter -f
  • highlight message
  • :delete

Then aerc crashes. Log is below.

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

goroutine 1 [running]:
git.sr.ht/~sircmpwn/aerc/commands/msg.findNextNonDeleted(0xc0016a323c, 0x1, 0x1, 0xc000195d40, 0xc0026a7c50)
    /home/user/repos/aerc/commands/msg/delete.go:84 +0x94
git.sr.ht/~sircmpwn/aerc/commands/msg.Delete.Execute(0xc0000b1cc0, 0xc0026a7c30, 0x1, 0x1, 0x1, 0xc000133790)
    /home/user/repos/aerc/commands/msg/delete.go:61 +0x1d0
git.sr.ht/~sircmpwn/aerc/commands.(*Commands).ExecuteCommand(0xc0000a4190, 0xc0000b1cc0, 0xc0026a7c30, 0x1, 0x1, 0xa79fc0, 0xc0026a7c40)
    /home/user/repos/aerc/commands/commands.go:66 +0xfe
main.execCommand(0xc0000b1cc0, 0xc0001e4140, 0xc0026a7c30, 0x1, 0x1, 0xc0026a7c30, 0xc002656840)
    /home/user/repos/aerc/aerc.go:58 +0xc5
main.main.func2(0xc0026a7c30, 0x1, 0x1, 0x1, 0x1)
    /home/user/repos/aerc/aerc.go:154 +0x57
git.sr.ht/~sircmpwn/aerc/widgets.(*Aerc).BeginExCommand.func1(0xc0016a3210, 0x6)
    /home/user/repos/aerc/widgets/aerc.go:382 +0x83
git.sr.ht/~sircmpwn/aerc/widgets.(*ExLine).Event(0xc002172e00, 0xa792e0, 0xc001f14d60, 0xc001f14d60)
    /home/user/repos/aerc/widgets/exline.go:79 +0x133
git.sr.ht/~sircmpwn/aerc/widgets.(*Aerc).Event(0xc0000b1cc0, 0xa792e0, 0xc001f14d60, 0x90c501)
    /home/user/repos/aerc/widgets/aerc.go:202 +0x4cf
git.sr.ht/~sircmpwn/aerc/widgets.(*Aerc).simulate(0xc0000b1cc0, 0xc0001a8400, 0x8, 0x8)
    /home/user/repos/aerc/widgets/aerc.go:195 +0x9b
git.sr.ht/~sircmpwn/aerc/widgets.(*Aerc).Event(0xc0000b1cc0, 0xa792e0, 0xc001f14c40, 0x92f500)
    /home/user/repos/aerc/widgets/aerc.go:218 +0x3f6
git.sr.ht/~sircmpwn/aerc/lib/ui.(*UI).Tick(0xc0001e4140, 0xc00008a500)
    /home/user/repos/aerc/lib/ui/ui.go:92 +0x190
main.main()
    /home/user/repos/aerc/aerc.go:184 +0x5b7
Status
REPORTED
Submitter
~lukehsiao
Assigned to
No-one
Submitted
14 days ago
Updated
14 days ago
Labels
No labels applied.