Mailing-List: contact zsh-workers-help@zsh.org; run by ezmlm
Precedence: bulk
X-No-Archive: yes
List-Id: Zsh Workers List <zsh-workers.zsh.org>
List-Post: <mailto:zsh-workers@zsh.org>
List-Help: <mailto:zsh-workers-help@zsh.org>
X-Spam-Checker-Version: SpamAssassin 3.4.1 (2015-04-28) on f.primenet.com.au
X-Spam-Level: 
X-Spam-Status: No, score=-1.8 required=5.0 tests=BAYES_00,FROM_12LTRDOM
	autolearn=no autolearn_force=no version=3.4.1
X-PDA-ORIGIN: gallois.livando.com
Message-ID: <1454972312.10740.8.camel@gladbachcity.de>
Subject: Segfault when displaying completion lists
From: Christian Heinrich <christian@gladbachcity.de>
To: Zsh hackers list <zsh-workers@zsh.org>
Date: Mon, 08 Feb 2016 23:58:32 +0100
Content-Type: multipart/signed; micalg="pgp-sha512";
	protocol="application/pgp-signature"; boundary="=-KnScaw/s3aNz3TgUSAXf"
X-Mailer: Evolution 3.18.3-1 
Mime-Version: 1.0
X-Seq: zsh-workers 37920

--=-KnScaw/s3aNz3TgUSAXf
Content-Type: text/plain; charset="UTF-8"
Content-Transfer-Encoding: quoted-printable

Hello,

I'm running ZSH 5.2-3 on my Debian Testing system. This error existed
previously, too, but I only found the time today to find a minimal
setup for this. Here we go:

% zsh --norcs
% zmodload zsh/complist
% autoload -U compinit && compinit -d ~/.zsh/cache/zcompdump=C2=A0
% zstyle ':completion:*' list-prompt '%p'
% bindkey -d
% ls /usr/lib/<TAB>
Now a huge list should be displayed with a pager. Press "Arrow Down"
and it should segfault.


This does not happen if the "zsh/complist" module is not loaded.

Another interesting observation:

After the <TAB>, press backspace instead of "arrow down" and remove the
whole command (do not accept the line). Type "bindkey -d" (yes, a 2nd
time) and accept. Type "ls /usr/lib/<TAB>" again and press backspace.
It segfaults now, although backspacing worked the first time.

Maybe someone can find the reason for this? I do have EDITOR=3D"vim" set,
but it appears as if it happens with EDITOR=3D"emacs" as well.


Thanks!

Christian
--=-KnScaw/s3aNz3TgUSAXf
Content-Type: application/pgp-signature; name="signature.asc"
Content-Description: This is a digitally signed message part
Content-Transfer-Encoding: 7bit

-----BEGIN PGP SIGNATURE-----

iQIcBAABCgAGBQJWuR2YAAoJEIvOFdNRb8w8K5AQAJE4r4mE8Fw9dLm1UtI/qrxp
tZGrUs/xg7JpQRpK+M30wu86Vk9bjQZYCt+TU0BgdouHrT4mZA4chRPLrdqVGG4L
N1GS6Jc4Y11JdCxVKen+ljh3mDrxchYUABFWBD+Lg0T8LFXIQ3AdVZd5k5uP63nH
ITmLd4J+dzKi0TLE34FiNj4KcFjILqFH4OOazJp7wVw4HAcnRKyxaMizHgpk+wSk
zdHbmp5MQVIIlVgai7Qu/bdXdgYhHDF9MvLDINruB7dhGHJJBD0R0oMbhPMKT7Jo
+XmlE8hCh9f6enV+U9xluvxQHL2zbczu67gIbzBoQI9SCdn071QkB9kYEFeAliNC
1R6YAzZFZCTJ83uCCj23G8ceQH7VawjbI9JAxfisG9BhaMWilKYCLpruyv2Vfeu3
fuSktwQOVSE3FVHWHKxR4OVhkIXAtZvh27qztsEJRVq/vLxvh5zMhbLFQlnjuJIr
nulsN6Rsn24/7ufspWdtxlGcy1EkPZ05GkxfVSMuKbknz1Jnup7UypaJ3oeh+EgV
E3PfEvztCfaXkASLioCz0How0UmTjFXl5NrmF6n4aRNYSqbmI8MIZR5baau3FO9W
eMEqvB8FhoZGclBhc0qGUmdubHRRTSgHeyWM0iMhhsNyjG8TnHxRjZQECENbaB6g
iGi/rXH5fLwYfTBKCrLK
=6mnK
-----END PGP SIGNATURE-----

--=-KnScaw/s3aNz3TgUSAXf--

