Zsh Mailing List Archive
Messages sorted by:
Reverse Date,
Date,
Thread,
Author
[BUG] Zsh crashes when using autocomplete because of memory unsafety (double free)
- X-seq: zsh-workers 46120
- From: Petr Šťastný <petr@xxxxxxxxxxx>
- To: zsh-workers@xxxxxxx
- Subject: [BUG] Zsh crashes when using autocomplete because of memory unsafety (double free)
- Date: Fri, 26 Jun 2020 17:03:03 +0200
- Autocrypt: addr=petr@xxxxxxxxxxx; keydata= mQINBF0sj08BEAC4bnq+h6n6quycOgsXo9SwDVXANPaFmTw4FvyWtuiQyRfFZ+IQ9AWhkYo4 zxKjeI4gzj3xyUGqFc5DrvRFa0u34a5cLv8zjfQL4vYy9qJOjg1kWb1GQkVvEdEttPK4g1DT 1s3/K+SU5EUfRKfOU+SlBE2IwIpfnF3e87CJMR6q38jlnMuqW/XEnSsixbrPW7a+6YQHs5aL znrnZN28q1mEuEUonMfQ2wlRGzmAgdSWkqmJ7b7qfB6bUxtMDxmiP9u5Td8cber/Z0BOXKnC 0huj+A+d37905XhaToFFsNW19n6Vi293TH31IwcJT2nLEusinotZFbW2p/WK8/0UMbi/ZSDj MTCE58Kafl5CrnPAooe2jlpf2NZjtzLTeqYGcJ5j+XBCYCTC10XtYCqLXeKATC/2tj5EDSJR T4t/XHJ/3g3RzgBypjbIZrpnKvMAkhPJjww/2ob264clIv+PUsK6xbg6ZirJ/wewjK+ejeUH Z5V081Px0zTrqrty3URF3TLNuloyPauITiAK/JrXLv5DaRY9yJCaLGezUzkRYY7YfwkPh2eA 6uJ06M3sZnuVZuUzOTxyiyundIr5acfknJSUt1qYFqpnoVD2vquWsNIBEvJ4Qy/yZe+MVQuI dory1O/eqlK1vAMi1ScdlpORDxEAxxA1Q6F8h6GABuinxOCMKwARAQABtDBQZXRyIMWgxaVh c3Ruw70gKHNvcHRpay50ZWNoKSA8cGV0ckBzb3B0aWsudGVjaD6JAk4EEwEIADgWIQSd+Sjf PqJ2BCGx7Tw75FB/LAwvtgUCXtU6egIbIwULCQgHAgY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owVDm1Qm/NPAb9dLt+bDE0T2hb1DBAtQF24dIS1P0G
- List-help: <mailto:zsh-workers-help@zsh.org>
- List-id: Zsh Workers List <zsh-workers.zsh.org>
- List-post: <mailto:zsh-workers@zsh.org>
- List-unsubscribe: <mailto:zsh-workers-unsubscribe@zsh.org>
- Mailing-list: contact zsh-workers-help@xxxxxxx; run by ezmlm
- Sender: zsh-workers@xxxxxxx
Note: I'm using ohmyzsh to provide autocomplete and I can't reproduce it
without ohmyzsh, but since ohmyzsh is written entirely in shell, this
should be an issue in zsh itself.
When I trigger autocomplete in one position, zsh crashes, yielding one
of the following messages, seemingly at random:
(none, zsh crashes silently) x12
double free or corruption (out) x5
Zsh crashed each time I tried it.
zsh 5.8 (x86_64-pc-linux-gnu)
ohmyzsh, commit 6152ac30bede172ba0422a8610dc796948ae1546
Minimal setup:
$ alias a='""'
^
Place cursor so it stands on the first " character and press Tab to
trigger autocomplete. Zsh crashes.
I have almost default ohmyzsh installation, the only thing I changed is
theme (to `mrtazz`) and `git` plugin, none of which should affect this.
Zsh config itself (after being modified by ohmyzsh) is unchanged, if one
doesn't count `PATH` exports. Thus I don't see the need to attach my
full config. If anyone has troubles reproducing this, let me know. But
it should be enough to have ohmyzsh installed.
--
Petr Šťastný
FIT ČVUT
soptik.tech
Attachment:
signature.asc
Description: OpenPGP digital signature
Messages sorted by:
Reverse Date,
Date,
Thread,
Author