~rjarry/aerc-discuss

Crash when using the header command

Details
Message ID
<aa4a17c1895d924397bb758ea64e38d8@onemoresuza.mailer.me>
DKIM signature
missing
Download raw message
Version: 0.17.0 +notmuch-5.6.0 (go1.21.7 amd64 linux 2024-02-20)

Whenever  the `header` command is run when viewing an email, aerc
crashes.

Here's the log when running `header` with the Cc argument:

```console
TRACE 2024/02/27 19:19:53.821485 commands.go:201: executing command header Cc
INFO  2024/02/27 19:19:53.821600 receive.go:59: shutting down UNIX listener

aerc has encountered a critical error and has terminated. Please help us fix
this by sending this log and the steps to reproduce the crash to:
~rjarry/aerc-devel@lists.sr.ht

Thank you

Version: 0.17.0 +notmuch-5.6.0 (go1.21.7 amd64 linux 2024-02-20)

This error was also written to: /tmp/aerc-crash-20240227-191953.log
panic: runtime error: invalid memory address or nil pointer dereference [recovered]
	panic: runtime error: invalid memory address or nil pointer dereference
[signal SIGSEGV: segmentation violation code=0x1 addr=0x8 pc=0x9dbd02]

goroutine 1 [running]:
git.sr.ht/~rjarry/aerc/log.PanicHandler()
	git.sr.ht/~rjarry/aerc/log/panic-logger.go:51 +0x6fe
panic({0xaee940?, 0x10e1140?})
	runtime/panic.go:914 +0x21f
git.sr.ht/~rjarry/aerc/app.(*Composer).PrepareHeader(0x0)
	git.sr.ht/~rjarry/aerc/app/compose.go:816 +0x22
git.sr.ht/~rjarry/aerc/commands/compose.Header.Execute({0x0, 0x0, {0xc000ed0c78, 0x2}, {0x0, 0x0}}, {0xc000a88000?, 0xc0008002c0?, 0x0?})
	git.sr.ht/~rjarry/aerc/commands/compose/header.go:58 +0xc8
git.sr.ht/~rjarry/aerc/commands.ExecuteCommand({0xcc0198?, 0xc0002de1e0}, {0xc000ed0c30?, 0x2000304000?})
	git.sr.ht/~rjarry/aerc/commands/commands.go:207 +0x437
main.execCommand({0xc000ed0c20?, 0x9?}, 0xc000ed0c20?, 0x0?)
	git.sr.ht/~rjarry/aerc/main.go:48 +0x3c
git.sr.ht/~rjarry/aerc/app.(*Aerc).BeginExCommand.func2({0xc000ed0c20, 0xa})
	git.sr.ht/~rjarry/aerc/app/aerc.go:608 +0x2f
git.sr.ht/~rjarry/aerc/app.(*ExLine).Event(0xc000948b40, {0xcba280?, 0xc000800140?})
	git.sr.ht/~rjarry/aerc/app/exline.go:90 +0xab
git.sr.ht/~rjarry/aerc/app.(*Aerc).Event(0xc000458a80?, {0xcba280?, 0xc000800140?})
	git.sr.ht/~rjarry/aerc/app/aerc.go:309 +0x427
git.sr.ht/~rjarry/aerc/lib/ui.HandleEvent({0xcba280?, 0xc000800140?})
	git.sr.ht/~rjarry/aerc/lib/ui/ui.go:146 +0x148
main.main()
	git.sr.ht/~rjarry/aerc/main.go:279 +0x8e7
```

Can anybody reproduce this error?
Reply to thread Export thread (mbox)