~brauner


#308 segfault when reading messages 28 days ago

bug added by ~brauner on ~sircmpwn/aerc2

#308 segfault when reading messages 28 days ago

Ticket created by ~brauner on ~sircmpwn/aerc2

Hey,

I encountered a segfault while reading mails. I don't have a lot to go on other than the go trace:

> aerc
panic: runtime error: invalid memory address or nil pointer dereference
[signal SIGSEGV: segmentation violation code=0x1 addr=0x18 pc=0x550540]

goroutine 1 [running]:
bufio.(*Reader).fill(0xc0001a25a0)
        /usr/lib/go-1.12/src/bufio/bufio.go:100 +0xe0
bufio.(*Reader).ReadSlice(0xc0001a25a0, 0x40fa0a, 0x3, 0xc00003a570, 0xc00003a500, 0xc0006cba18, 0xc000294fc0)
        /usr/lib/go-1.12/src/bufio/bufio.go:356 +0x3d
mime/quotedprintable.(*Reader).Read(0xc000590480, 0xc000873000, 0x1000, 0x1000, 0x0, 0x0, 0xc0002de2a0)
        /usr/lib/go-1.12/src/mime/quotedprintable/reader.go:87 +0x3af
bufio.(*Scanner).Scan(0xc0006cbc00, 0xc0006ea750)
        /usr/lib/go-1.12/src/bufio/scan.go:213 +0xa4
git.sr.ht/~sircmpwn/aerc/commands/msg.reply.Execute.func2(0x0, 0x0)
        /home/brauner/src/git/aerc/commands/msg/reply.go:178 +0x595
git.sr.ht/~sircmpwn/aerc/lib.(*MessageStore).FetchBodyPart.func1(0x9669a0, 0xc00025e140)
        /home/brauner/src/git/aerc/lib/msgstore.go:133 +0x52
git.sr.ht/~sircmpwn/aerc/worker/types.(*Worker).ProcessMessage(0xc0000be940, 0x9669a0, 0xc00025e140, 0xc0006cbdd0, 0x412759)
        /home/brauner/src/git/aerc/worker/types/worker.go:82 +0x294
git.sr.ht/~sircmpwn/aerc/widgets.(*AccountView).Tick(0xc0000c04b0, 0xc00018d6e0)
        /home/brauner/src/git/aerc/widgets/account.go:89 +0x7f
git.sr.ht/~sircmpwn/aerc/widgets.(*Aerc).Tick(0xc0000c79a0, 0xc000020000)
        /home/brauner/src/git/aerc/widgets/aerc.go:123 +0x91
main.main()
        /home/brauner/src/git/aerc/aerc.go:182 +0x59c