~sircmpwn/aerc2#308: 
segfault when reading messages

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
Status
REPORTED
Submitter
~brauner
Assigned to
No-one
Submitted
11 months ago
Updated
5 months ago
Labels
bug

~frode 11 months ago

I have the same issue when reading messages, the panic seems to be random after reading 1-5 messages

The panic happens when using aerc in tmux, I'm not able to reproduce the panic when running aerc directly

~flinterson 8 months ago

I also panic when reading HTML email after enabling the built-in filter that uses dante and w3m Here is the output

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

goroutine 1 [running]:
git.sr.ht/~sircmpwn/aerc/commands/account.ViewMessage.Execute(0xc00017c1e0, 0xc0001f4860, 0x1, 0x1, 0x0, 0xc000129530)
	/home/evan/.cache/yay/aerc/src/aerc-0.3.0/commands/account/view.go:33 +0xec
git.sr.ht/~sircmpwn/aerc/commands.(*Commands).ExecuteCommand(0xc0000101a8, 0xc00017c1e0, 0xc0001f4860, 0x1, 0x1, 0xc000020070, 0xa9ef01)
	/home/evan/.cache/yay/aerc/src/aerc-0.3.0/commands/commands.go:65 +0xa7
main.execCommand(0xc00017c1e0, 0xc0000aa500, 0xc0001f4860, 0x1, 0x1, 0xc0001f4860, 0xc0002c8300)
	/home/evan/.cache/yay/aerc/src/aerc-0.3.0/aerc.go:58 +0xc7
main.main.func2(0xc0001f4860, 0x1, 0x1, 0x1, 0x1)
	/home/evan/.cache/yay/aerc/src/aerc-0.3.0/aerc.go:155 +0x57
git.sr.ht/~sircmpwn/aerc/widgets.(*Aerc).BeginExCommand.func1(0xc00033d090, 0x4)
	/home/evan/.cache/yay/aerc/src/aerc-0.3.0/widgets/aerc.go:381 +0x83
git.sr.ht/~sircmpwn/aerc/widgets.(*ExLine).Event(0xc000079780, 0xa9f720, 0xc00000f220, 0xc00000f220)
	/home/evan/.cache/yay/aerc/src/aerc-0.3.0/widgets/exline.go:72 +0x131
git.sr.ht/~sircmpwn/aerc/widgets.(*Aerc).Event(0xc00017c1e0, 0xa9f720, 0xc00000f220, 0x924201)
	/home/evan/.cache/yay/aerc/src/aerc-0.3.0/widgets/aerc.go:201 +0x4c1
git.sr.ht/~sircmpwn/aerc/widgets.(*Aerc).simulate(0xc00017c1e0, 0xc00002b900, 0x6, 0x8)
	/home/evan/.cache/yay/aerc/src/aerc-0.3.0/widgets/aerc.go:194 +0x8d
git.sr.ht/~sircmpwn/aerc/widgets.(*Aerc).Event(0xc00017c1e0, 0xa9f720, 0xc00000f0a0, 0x1)
	/home/evan/.cache/yay/aerc/src/aerc-0.3.0/widgets/aerc.go:217 +0x3e8
git.sr.ht/~sircmpwn/aerc/lib/ui.(*UI).Tick(0xc0000aa500, 0xa03000)
	/home/evan/.cache/yay/aerc/src/aerc-0.3.0/lib/ui/ui.go:84 +0xc9
main.main()
	/home/evan/.cache/yay/aerc/src/aerc-0.3.0/aerc.go:185 +0x5da

~severeoverfl0w 5 months ago

I'm seeing this also. I am not using tmux. I am using dante/w3m.

Register here or Log in to comment, or comment via email.