I am running emacsclient -t to compose my mail, that is Emacs. I'm using Tilix as my terminal emulator. I pasted some text using Ctrl+Shift+C into the message I was composing and got the following:
/home/cas/go/pkg/mod/github.com/emersion/go-imap@v1.0.4/client/client .go:151 +0x50
github.com/emersion/go-
imap/client.(*Client).reader(0xc0004200a0)
/home/cas/go/pkg/mod/github.com/emersion/go-imap@v1.0.4/client/clie
nt.go:136 +0x6d
created by github.com/emersion/go-
imap/client.(*Client).handleGreetAndStartReading
/home/cas/go/pkg/mod/github.com/emersion/go-imap@v1.0.4/client/client.g o:525 +0x16b
goroutine 78 [select, 11 minutes]:
g
ithub.com/emersion/go-imap/client.(*Client).execute(0xc0004200a0, 0xb271e0, 0xfaf538, 0xb27200, 0xc000278100, 0x459380, 0xc0001d73e0, 0xc000385f90)
/home/cas/go/pkg/mod/github.com/emersion/go-imap@v1.0.4/client/client .go:284 +0x3b9
github.com/emersion/go-imap/client.(*Client).Execute(...)
/home/cas/go/pkg/mod/github.com/emersion/go-imap@v1.0.4/client/client .go:340
github.com/emersion/go-imap-idle.(*Client).idle(0xc0002cc990, 0xc00008cb40, 0x43a166, 0xa8d870)
/home/cas/go/pkg/mod/github.com/emersion/go-imap-idle@v0.0.0-20190519112320-2704abd7050e /client.go:38 +0xb1
github.com/
emersion/go-imap-idle.(*Client).Idle.func1(0xc0004e00c0, 0xc0002cc990, 0xc00008cb40)
/home/cas/go/pkg/mod/github.com/emersion/go-imap-idle@v0.0.0-20190519112320-2704abd7050e /client.go:60 +0x35 created by github.com/emersion/go-imap-idle.(*Client).Idle
/home/cas/go/pkg/mod/github.com/emersion/go-imap-idle@v0.0.0-20190519112320-2704abd7050e /client.go:59 +0x10c [signa l SIGSEGV: segmentation violation code=0x2 addr=0x7fb8a8024000 pc=0x7fb8d867a995]
runtime stack:
runtime.throw(0xa7dac5, 0x2a)
/usr/lib/golang
/src/runtime/panic.go:774 +0x72
runtime.sigpanic()
/usr/lib/golan
g/src/runtime/signal_unix.go:378 +0x47c alex@melanobombus:~$
I continue to experience a panic when I paste drafted text into aerc's compose window. One workaround I've found is switching over to iTerm2 on my mac. If I use iTerm's "paste slowly" feature, I can usually get the whole thing pasted without the panic. Otherwise, the content begins to paste but after a certain amount the panic occurs.
I put what I could recover from the panic message at https://paste.sr.ht/~exprez135/f0f7051758e89c4ce5c400bd7d9f18eb1a91065e.
I am regularly having the same crash. I avoid this by :read-ing a file in vim, but it's not ideal
P.S. the link above is broken due to the ., https://paste.sr.ht/~exprez135/f0f7051758e89c4ce5c400bd7d9f18eb1a91065e works
~sijmen are you on OSX as well? (or whatever the mac os is called nowdays)
~labrat no, Arch Linux/sway/alacritty/neovim
I’ve experienced this as well a few times recently but haven’t had the chance to debug it at all.
Macos/Alacritty/vim
I also experienced it on Manjaro Linux/XFCE/alacritty and xfce4-terminal/neovim and nano.
Steps to reproduce:
- Copy a lot of data into your clipboard (
python3 -c 'print("A"*9999)' | clipcopy
should do it )- Start aerc, and compose a new email
- Directly go to the plaintext editor ( Press Tab two times )
- Paste your clipboard and then press enter
- Repeat step 4 until aerc crashes
Log: https://paste.sr.ht/~max1truc/17b03dc0fa1b77a6f7f86ddc67179840b00cbeea
I'm seeing this as well. aerc 0.6.0 on Manjaro Gnome w/ Alacritty and nvim.
Got it to crash eventually with nano, but took much more text.
Anyone got a clue? My Go isn't great but I could try to look into it if somebody has a pointer.
I do not have much clues unfortunately. Maybe adding an upper limit to the pending keypress events here would help:
https://git.sr.ht/~rjarry/aerc/tree/master/item/widgets/aerc.go#L235-239