~rjarry/aerc-devel

2 2

aerc crashes on dovecot maildirpp

Details
Message ID
<CNX1QN6KLHL4.2EB42KZT5R0VQ@PhilippN-Vostro-5490>
DKIM signature
missing
Download raw message
Hey,

I tried using aerc (which is awesome, btw) on the tilde.club public ssh
server. There, every user has a ~/.mail folder managed by dovecot which
is in the maildir++ format. When i have this in my accounts.conf, aerc
crashes at start:

> [tilde]
> source = maildirpp://~/.mail
> from = laalsaas <laalsaas@tilde.club>
> outgoing = /usr/sbin/sendmail

I also tried using just maildir:// instead, then it detects only the
.sent-mail folder.

Below you'll find the crash trace. If I can provide any additional
data that is relevant to you, let me know what. 

regards,
laalsaas

panic: runtime error: index out of range [0] with length 0 [recovered]                                               [200/1927]
        panic: runtime error: index out of range [0] with length 0

goroutine 1 [running]:
panic({0x55be69f99de0, 0xc000288030})
        /usr/lib/golang/src/runtime/panic.go:941 +0x397 fp=0xc0001c19c0 sp=0xc0001c1900 pc=0x55be69945317
git.sr.ht/~rjarry/aerc/logging.PanicHandler()
        /builddir/build/BUILD/aerc-0.10.0/_build/src/git.sr.ht/~rjarry/aerc/logging/panic-logger.go:47 +0x6de fp=0xc0001c1af8 s
p=0xc0001c19c0 pc=0x55be69b755fe
panic({0x55be69f99de0, 0xc000288030})
        /usr/lib/golang/src/runtime/panic.go:844 +0x258 fp=0xc0001c1bb8 sp=0xc0001c1af8 pc=0x55be699451d8
runtime.goPanicIndex(0x0, 0x0)
        /usr/lib/golang/src/runtime/panic.go:89 +0x7f fp=0xc0001c1bf8 sp=0xc0001c1bb8 pc=0x55be6994341f
git.sr.ht/~rjarry/aerc/widgets.(*Aerc).SelectedTab(...)
        /builddir/build/BUILD/aerc-0.10.0/_build/src/git.sr.ht/~rjarry/aerc/widgets/aerc.go:335
git.sr.ht/~rjarry/aerc/widgets.(*Aerc).SelectedAccount(...)
        /builddir/build/BUILD/aerc-0.10.0/_build/src/git.sr.ht/~rjarry/aerc/widgets/aerc.go:311
git.sr.ht/~rjarry/aerc/widgets.(*Aerc).SelectedAccountUiConfig(_)
        /builddir/build/BUILD/aerc-0.10.0/_build/src/git.sr.ht/~rjarry/aerc/widgets/aerc.go:327 +0x18b fp=0xc0001c1ef0 sp=0xc00
01c1bf8 pc=0x55be69d8aa8b
git.sr.ht/~rjarry/aerc/widgets.(*StatusLine).uiConfig(...)
        /builddir/build/BUILD/aerc-0.10.0/_build/src/git.sr.ht/~rjarry/aerc/widgets/status.go:112
git.sr.ht/~rjarry/aerc/widgets.(*StatusLine).SetError(0xc00009ae40, {0xc000282a20, 0x20})
        /builddir/build/BUILD/aerc-0.10.0/_build/src/git.sr.ht/~rjarry/aerc/widgets/status.go:66 +0x4d fp=0xc0001c2510 sp=0xc00
01c1ef0 pc=0x55be69dac6cd
git.sr.ht/~rjarry/aerc/widgets.(*Aerc).SetError(0x55be69dea7c4?, {0xc000282a20?, 0xc0001c2ad0?})
        /builddir/build/BUILD/aerc-0.10.0/_build/src/git.sr.ht/~rjarry/aerc/widgets/aerc.go:438 +0x25 fp=0xc0001c2538 sp=0xc000
1c2510 pc=0x55be69d8b565
git.sr.ht/~rjarry/aerc/widgets.NewAccountView(0xc00028a000, 0xc0001b6e00, 0xc000270140, 0xc0000a4730, {0x55be69fd3fb8?, 0xc0002
8a000}, 0xc000047aa0)
        /builddir/build/BUILD/aerc-0.10.0/_build/src/git.sr.ht/~rjarry/aerc/widgets/account.go:76 +0xada fp=0xc0001c3278 sp=0xc
0001c2538 pc=0x55be69d868da
git.sr.ht/~rjarry/aerc/widgets.NewAerc(0xc0001b6e00, 0xc0000a4730, {0x55be69fd44a8?, 0xc000010898}, 0xc00000e8d0, 0xc[168/1927]
 {0x55be69fd2b18?, 0x55be6a3a6420}, 0x2?)
        /builddir/build/BUILD/aerc-0.10.0/_build/src/git.sr.ht/~rjarry/aerc/widgets/aerc.go:92 +0x8e5 fp=0xc0001c3d20 sp=0xc000
1c3278 pc=0x55be69d89105
main.main()
        /builddir/build/BUILD/aerc-0.10.0/_build/src/git.sr.ht/~rjarry/aerc/aerc.go:176 +0x5ff fp=0xc0001c3f80 sp=0xc0001c3d20
pc=0x55be69dddd5f
runtime.main()
        /usr/lib/golang/src/runtime/proc.go:250 +0x213 fp=0xc0001c3fe0 sp=0xc0001c3f80 pc=0x55be69947f53
runtime.goexit()
        /usr/lib/golang/src/runtime/asm_amd64.s:1571 +0x1 fp=0xc0001c3fe8 sp=0xc0001c3fe0 pc=0x55be69975801

goroutine 2 [force gc (idle)]:
runtime.gopark(0x0?, 0x0?, 0x0?, 0x0?, 0x0?)
        /usr/lib/golang/src/runtime/proc.go:361 +0xd6 fp=0xc000070fb0 sp=0xc000070f90 pc=0x55be69948316
runtime.goparkunlock(...)
        /usr/lib/golang/src/runtime/proc.go:367
runtime.forcegchelper()
        /usr/lib/golang/src/runtime/proc.go:301 +0xad fp=0xc000070fe0 sp=0xc000070fb0 pc=0x55be699481ad
runtime.goexit()
        /usr/lib/golang/src/runtime/asm_amd64.s:1571 +0x1 fp=0xc000070fe8 sp=0xc000070fe0 pc=0x55be69975801
created by runtime.init.7
        /usr/lib/golang/src/runtime/proc.go:289 +0x25

goroutine 3 [GC sweep wait]:
runtime.gopark(0x0?, 0x0?, 0x0?, 0x0?, 0x0?)
        /usr/lib/golang/src/runtime/proc.go:361 +0xd6 fp=0xc000071790 sp=0xc000071770 pc=0x55be69948316
runtime.goparkunlock(...)
        /usr/lib/golang/src/runtime/proc.go:367
runtime.bgsweep(0x0?)
        /usr/lib/golang/src/runtime/mgcsweep.go:278 +0x8e fp=0xc0000717c8 sp=0xc000071790 pc=0x55be69934fae
runtime.gcenable.func1()
        /usr/lib/golang/src/runtime/mgc.go:177 +0x26 fp=0xc0000717e0 sp=0xc0000717c8 pc=0x55be6992ab66
runtime.goexit()
        /usr/lib/golang/src/runtime/asm_amd64.s:1571 +0x1 fp=0xc0000717e8 sp=0xc0000717e0 pc=0x55be69975801          [134/1927]
created by runtime.gcenable
        /usr/lib/golang/src/runtime/mgc.go:177 +0x6b

goroutine 4 [GC scavenge wait]:
runtime.gopark(0x0?, 0x0?, 0x0?, 0x0?, 0x0?)
        /usr/lib/golang/src/runtime/proc.go:361 +0xd6 fp=0xc000071f20 sp=0xc000071f00 pc=0x55be69948316
runtime.goparkunlock(...)
        /usr/lib/golang/src/runtime/proc.go:367
runtime.bgscavenge(0x0?)
        /usr/lib/golang/src/runtime/mgcscavenge.go:272 +0xec fp=0xc000071fc8 sp=0xc000071f20 pc=0x55be69932c4c
runtime.gcenable.func2()
        /usr/lib/golang/src/runtime/mgc.go:178 +0x26 fp=0xc000071fe0 sp=0xc000071fc8 pc=0x55be6992ab06
runtime.goexit()
        /usr/lib/golang/src/runtime/asm_amd64.s:1571 +0x1 fp=0xc000071fe8 sp=0xc000071fe0 pc=0x55be69975801
created by runtime.gcenable
        /usr/lib/golang/src/runtime/mgc.go:178 +0xaa

goroutine 5 [finalizer wait]:
runtime.gopark(0xc000003860?, 0x0?, 0x70?, 0x7?, 0x55be69954dd1?)
        /usr/lib/golang/src/runtime/proc.go:361 +0xd6 fp=0xc000070630 sp=0xc000070610 pc=0x55be69948316
runtime.goparkunlock(...)
        /usr/lib/golang/src/runtime/proc.go:367
runtime.runfinq()
        /usr/lib/golang/src/runtime/mfinal.go:177 +0xb3 fp=0xc0000707e0 sp=0xc000070630 pc=0x55be69929c13
runtime.goexit()
        /usr/lib/golang/src/runtime/asm_amd64.s:1571 +0x1 fp=0xc0000707e8 sp=0xc0000707e0 pc=0x55be69975801
created by runtime.createfing
        /usr/lib/golang/src/runtime/mfinal.go:157 +0x45
Aborted (core dumped)
Details
Message ID
<CNXJ2XOAZ8JL.FSNPYS5FGGCB@TimDev-One>
In-Reply-To
<CNX1QN6KLHL4.2EB42KZT5R0VQ@PhilippN-Vostro-5490> (view parent)
DKIM signature
missing
Download raw message
On Thu Oct 27, 2022 at 5:07 PM CDT, laalsaas wrote:
> Hey,
>
> I tried using aerc (which is awesome, btw) on the tilde.club public ssh
> server. There, every user has a ~/.mail folder managed by dovecot which
> is in the maildir++ format. When i have this in my accounts.conf, aerc
> crashes at start:
>
> > [tilde]
> > source = maildirpp://~/.mail
> > from = laalsaas <laalsaas@tilde.club>
> > outgoing = /usr/sbin/sendmail
>
> I also tried using just maildir:// instead, then it detects only the
> .sent-mail folder.
>
> Below you'll find the crash trace. If I can provide any additional
> data that is relevant to you, let me know what. 
>
> regards,
> laalsaas

Hi laalsaas -

I checked through the release notes, and maildir ++ support wasn't added until
0.11.0, and from your crash log it looks like you are on 0.10.0.

--
Tim
Details
Message ID
<CNXKDWU7M1IJ.RE5GL7Q4EOHB@PhilippN-Vostro-5490>
In-Reply-To
<CNXJ2XOAZ8JL.FSNPYS5FGGCB@TimDev-One> (view parent)
DKIM signature
missing
Download raw message
On Fri Oct 28, 2022 at 1:43 PM CEST, Tim Culverhouse wrote:
> I checked through the release notes, and maildir ++ support wasn't added until
> 0.11.0, and from your crash log it looks like you are on 0.10.0.

True, i didn't check this! I guess I'll have to nag my system
administrators to upgrade aerc then. Sorry if i created noise.

regards,
laalsaas.
Reply to thread Export thread (mbox)