~sircmpwn/aerc

7 2

Runtime error fatal error: unexpected signal during runtime execution

Ondřej Synáček
Details
Message ID
<c6318896-4bce-44bc-8fd5-5489682bdc0f@www.fastmail.com>
DKIM signature
missing
Download raw message
I compile `aerc` on MacOS (not using `brew`) and I 
just upgraded Mac OS to v11.6 and also updated 
some dependencies on my system (including Go programming language).
However after running `make` and `make install`, `aerc` is not
able to start. Here's the stack trace

```
fatal error: unexpected signal during runtime execution
[signal SIGSEGV: segmentation violation code=0x1 addr=0xb01dfacedebac1e pc=0x7fff2051ec9e]

runtime stack:
runtime: unexpected return pc for runtime.sigpanic called from 0x7fff2051ec9e
stack: frame={sp:0x7ffeefbff438, fp:0x7ffeefbff488} stack=[0x7ffeefb804d8,0x7ffeefbff540)
0x00007ffeefbff338:  0x01007ffeefbff358  0x0000000000000004
0x00007ffeefbff348:  0x000000000000001f  0x00007fff2051ec9e
0x00007ffeefbff358:  0x0b01dfacedebac1e  0x0000000000000001
0x00007ffeefbff368:  0x0000000004035931 <runtime.throw+0x0000000000000071>  0x00007ffeefbff408
0x00007ffeefbff378:  0x0000000004563897  0x00007ffeefbff3c0
0x00007ffeefbff388:  0x0000000004035be8 <runtime.fatalthrow.func1+0x0000000000000048>  0x00000000049f9020
0x00007ffeefbff398:  0x0000000000000001  0x0000000000000001
0x00007ffeefbff3a8:  0x00007ffeefbff408  0x0000000004035931 <runtime.throw+0x0000000000000071>
0x00007ffeefbff3b8:  0x00000000049f9020  0x00007ffeefbff3f8
0x00007ffeefbff3c8:  0x0000000004035b70 <runtime.fatalthrow+0x0000000000000050>  0x00007ffeefbff3d8
0x00007ffeefbff3d8:  0x0000000004035ba0 <runtime.fatalthrow.func1+0x0000000000000000>  0x00000000049f9020
0x00007ffeefbff3e8:  0x0000000004035931 <runtime.throw+0x0000000000000071>  0x00007ffeefbff408
0x00007ffeefbff3f8:  0x00007ffeefbff428  0x0000000004035931 <runtime.throw+0x0000000000000071>
0x00007ffeefbff408:  0x00007ffeefbff410  0x0000000004035960 <runtime.throw.func1+0x0000000000000000>
0x00007ffeefbff418:  0x000000000456afe6  0x000000000000002a
0x00007ffeefbff428:  0x00007ffeefbff478  0x000000000404b516 <runtime.sigpanic+0x0000000000000396>
0x00007ffeefbff438: <0x000000000456afe6  0x00000000049f9020
0x00007ffeefbff448:  0x00007ffeefbff4b8  0x00000000040286c6 <runtime.(*mheap).allocSpan+0x0000000000000546>
0x00007ffeefbff458:  0x000000c000214000  0x0000000000002000
0x00007ffeefbff468:  0x00007fff00000008  0x0000000000000000
0x00007ffeefbff478:  0x00007ffeefbff4c0 !0x00007fff2051ec9e
0x00007ffeefbff488: >0x00007ffeefbff4c0  0x00000000048f8000
0x00007ffeefbff498:  0x0000000000000491  0x00000000040f4505 <golang.org/x/sys/unix.libc_ioctl_trampoline+0x0000000000000005>
0x00007ffeefbff4a8:  0x00000000040680df <runtime.syscall+0x000000000000001f>  0x000000c0001fbc40
0x00007ffeefbff4b8:  0x0000000004067a4c <runtime.nanotime_trampoline+0x000000000000000c>  0x000000c0001fbc10
0x00007ffeefbff4c8:  0x0000000004065f50 <runtime.asmcgocall+0x0000000000000070>  0x0000000000000001
0x00007ffeefbff4d8:  0x0000000004006700 <runtime.cgoCheckUnknownPointer+0x00000000000000c0>  0x6700000000001018
0x00007ffeefbff4e8:  0x0000000000000010  0x0000000004a2d458
0x00007ffeefbff4f8:  0x0000000000000418  0x000000c0000001a0
0x00007ffeefbff508:  0x0000000004064069 <runtime.systemstack+0x0000000000000049>  0x0000000000000004
0x00007ffeefbff518:  0x00000000045f9230  0x00000000049f9020
0x00007ffeefbff528:  0x00007ffeefbff570  0x0000000004063f65 <runtime.mstart+0x0000000000000005>
0x00007ffeefbff538:  0x0000000004063f1d <runtime.rt0_go+0x000000000000013d>
runtime.throw({0x456afe6, 0x49f9020})
        /usr/local/Cellar/go/1.17.1/libexec/src/runtime/panic.go:1198 +0x71
runtime: unexpected return pc for runtime.sigpanic called from 0x7fff2051ec9e
stack: frame={sp:0x7ffeefbff438, fp:0x7ffeefbff488} stack=[0x7ffeefb804d8,0x7ffeefbff540)
0x00007ffeefbff338:  0x01007ffeefbff358  0x0000000000000004
0x00007ffeefbff348:  0x000000000000001f  0x00007fff2051ec9e
0x00007ffeefbff358:  0x0b01dfacedebac1e  0x0000000000000001
0x00007ffeefbff368:  0x0000000004035931 <runtime.throw+0x0000000000000071>  0x00007ffeefbff408
0x00007ffeefbff378:  0x0000000004563897  0x00007ffeefbff3c0
0x00007ffeefbff388:  0x0000000004035be8 <runtime.fatalthrow.func1+0x0000000000000048>  0x00000000049f9020
0x00007ffeefbff398:  0x0000000000000001  0x0000000000000001
0x00007ffeefbff3a8:  0x00007ffeefbff408  0x0000000004035931 <runtime.throw+0x0000000000000071>
0x00007ffeefbff3b8:  0x00000000049f9020  0x00007ffeefbff3f8
0x00007ffeefbff3c8:  0x0000000004035b70 <runtime.fatalthrow+0x0000000000000050>  0x00007ffeefbff3d8
0x00007ffeefbff3d8:  0x0000000004035ba0 <runtime.fatalthrow.func1+0x0000000000000000>  0x00000000049f9020
0x00007ffeefbff3e8:  0x0000000004035931 <runtime.throw+0x0000000000000071>  0x00007ffeefbff408
0x00007ffeefbff3f8:  0x00007ffeefbff428  0x0000000004035931 <runtime.throw+0x0000000000000071>
0x00007ffeefbff408:  0x00007ffeefbff410  0x0000000004035960 <runtime.throw.func1+0x0000000000000000>
0x00007ffeefbff418:  0x000000000456afe6  0x000000000000002a
0x00007ffeefbff428:  0x00007ffeefbff478  0x000000000404b516 <runtime.sigpanic+0x0000000000000396>
0x00007ffeefbff438: <0x000000000456afe6  0x00000000049f9020
0x00007ffeefbff448:  0x00007ffeefbff4b8  0x00000000040286c6 <runtime.(*mheap).allocSpan+0x0000000000000546>
0x00007ffeefbff458:  0x000000c000214000  0x0000000000002000
0x00007ffeefbff468:  0x00007fff00000008  0x0000000000000000
0x00007ffeefbff478:  0x00007ffeefbff4c0 !0x00007fff2051ec9e
0x00007ffeefbff488: >0x00007ffeefbff4c0  0x00000000048f8000
0x00007ffeefbff498:  0x0000000000000491  0x00000000040f4505 <golang.org/x/sys/unix.libc_ioctl_trampoline+0x0000000000000005>
0x00007ffeefbff4a8:  0x00000000040680df <runtime.syscall+0x000000000000001f>  0x000000c0001fbc40
0x00007ffeefbff4b8:  0x0000000004067a4c <runtime.nanotime_trampoline+0x000000000000000c>  0x000000c0001fbc10
0x00007ffeefbff4c8:  0x0000000004065f50 <runtime.asmcgocall+0x0000000000000070>  0x0000000000000001
0x00007ffeefbff4d8:  0x0000000004006700 <runtime.cgoCheckUnknownPointer+0x00000000000000c0>  0x6700000000001018
0x00007ffeefbff4e8:  0x0000000000000010  0x0000000004a2d458
0x00007ffeefbff4f8:  0x0000000000000418  0x000000c0000001a0
0x00007ffeefbff508:  0x0000000004064069 <runtime.systemstack+0x0000000000000049>  0x0000000000000004
0x00007ffeefbff518:  0x00000000045f9230  0x00000000049f9020
0x00007ffeefbff528:  0x00007ffeefbff570  0x0000000004063f65 <runtime.mstart+0x0000000000000005>
0x00007ffeefbff538:  0x0000000004063f1d <runtime.rt0_go+0x000000000000013d>
runtime.sigpanic()
        /usr/local/Cellar/go/1.17.1/libexec/src/runtime/signal_unix.go:719 +0x396

goroutine 1 [syscall]:
syscall.syscall(0x40f4500, 0x1, 0x40487413, 0xc0001fbcd0)
        /usr/local/Cellar/go/1.17.1/libexec/src/runtime/sys_darwin.go:22 +0x3b fp=0xc0001fbc40 sp=0xc0001fbc20 pc=0x4062b9b
syscall.syscall(0x101000000000000, 0x6a113c0, 0x0, 0x60)
        <autogenerated>:1 +0x26 fp=0xc0001fbc88 sp=0xc0001fbc40 pc=0x40688e6
golang.org/x/sys/unix.ioctl(0x49f95a0, 0xc0000b7200, 0x0)
        /Users/ondrejsynacek/go/pkg/mod/golang.org/x/sys@v0.0.0-20200302150141-5c8b2ff67527/unix/zsyscall_darwin_amd64.go:746 +0x39 fp=0xc0001fbcb8 sp=0xc0001fbc88 pc=0x40f3df9
golang.org/x/sys/unix.IoctlGetTermios(...)
        /Users/ondrejsynacek/go/pkg/mod/golang.org/x/sys@v0.0.0-20200302150141-5c8b2ff67527/unix/ioctl.go:63
github.com/mattn/go-isatty.IsTerminal(0xc0000981e0)
        /Users/ondrejsynacek/go/pkg/mod/github.com/mattn/go-isatty@v0.0.12/isatty_bsd.go:10 +0x50 fp=0xc0001fbd28 sp=0xc0001fbcb8 pc=0x40f4610
main.main()
        /Users/ondrejsynacek/Source/aerc/aerc.go:137 +0x2dd fp=0xc0001fbf80 sp=0xc0001fbd28 pc=0x44615dd
runtime.main()
        /usr/local/Cellar/go/1.17.1/libexec/src/runtime/proc.go:255 +0x227 fp=0xc0001fbfe0 sp=0xc0001fbf80 pc=0x4038087
runtime.goexit()
        /usr/local/Cellar/go/1.17.1/libexec/src/runtime/asm_amd64.s:1581 +0x1 fp=0xc0001fbfe8 sp=0xc0001fbfe0 pc=0x4066241
```

I'm not a Go programmer so not sure if I'll be helpful in
anyway.
Ondřej Synáček
Details
Message ID
<d6a7a31c-2389-41c4-9d45-c3155ceeffe9@www.fastmail.com>
In-Reply-To
<c6318896-4bce-44bc-8fd5-5489682bdc0f@www.fastmail.com> (view parent)
DKIM signature
missing
Download raw message
Sorry forgot to add version info:

`aerc 0.5.2.r50.g0b19b5e`

I'm on latest commit on master branch: 0b19b5e70e408bbaac5555b0b61a9451189406f8
Ondřej Synáček
Details
Message ID
<3dd3922e-df58-4d93-9172-1e469722c372@www.fastmail.com>
In-Reply-To
<d6a7a31c-2389-41c4-9d45-c3155ceeffe9@www.fastmail.com> (view parent)
DKIM signature
missing
Download raw message
FYI I tried compiling with Go v1.17.1 and v1.16.8 but the result
is the same unfortunately :(

So it might be some other dependency that my system has
upgraded I guess. Any tips on what I could try?
Details
Message ID
<3ebcee3c-7846-40e5-a522-cdd1331db208@www.fastmail.com>
In-Reply-To
<3dd3922e-df58-4d93-9172-1e469722c372@www.fastmail.com> (view parent)
DKIM signature
pass
Download raw message
> So it might be some other dependency that my system has
> upgraded I guess. Any tips on what I could try?

It seems to be breaking during a system call made by mattn/go-isatty, are you using some strange terminal or something?
Ondřej Synáček
Details
Message ID
<CEI1G6QMSW6O.RV2SK7AKCLLL@Prefab.local>
In-Reply-To
<3ebcee3c-7846-40e5-a522-cdd1331db208@www.fastmail.com> (view parent)
DKIM signature
missing
Download raw message
On Fri Sep 24, 2021 at 12:09 PM CEST, Daniel Patterson wrote:
> It seems to be breaking during a system call made by mattn/go-isatty,
> are you using some strange terminal or something?

I'm using Alacritty terminal.
Details
Message ID
<CEIGHBUH37FQ.2KP7MOPGXDDZU@pop-os>
In-Reply-To
<CEI1G6QMSW6O.RV2SK7AKCLLL@Prefab.local> (view parent)
DKIM signature
fail
Download raw message
DKIM signature: fail
I don't have a mac to check, but I believe this issue is due to an out
of date version of golang.org/x/sys used by mattn/go-isatty.
This has been fixed in the most recent release but I don't have a way to
check if it correctly fixes the problem you're having. I will submit a
patch with the changes and you could try it out and see if it works.
Details
Message ID
<CEIH6QKY8L9M.135VEQ5EXKRTE@pop-os>
In-Reply-To
<CEIGHBUH37FQ.2KP7MOPGXDDZU@pop-os> (view parent)
DKIM signature
fail
Download raw message
DKIM signature: fail
I've seen that a patch for this was submitted 10 days ago. Perhaps you
could try applying that patch and seeing if it fixes your problem?

https://lists.sr.ht/~sircmpwn/aerc/patches/25163
Ondřej Synáček
Details
Message ID
<CEKGNCMADV34.1HP8W4RLAANPG@Prefab.local>
In-Reply-To
<CEIH6QKY8L9M.135VEQ5EXKRTE@pop-os> (view parent)
DKIM signature
missing
Download raw message
On Sat Sep 25, 2021 at 12:40 AM CEST, Daniel Patterson wrote:
> I've seen that a patch for this was submitted 10 days ago. Perhaps you
> could try applying that patch and seeing if it fixes your problem?
>
> https://lists.sr.ht/~sircmpwn/aerc/patches/25163

That fixes it. Thank you.
Reply to thread Export thread (mbox)