Zsh Mailing List Archive
Messages sorted by:
Reverse Date,
Date,
Thread,
Author
[BUG] Segfault when referencing $WIDGET in TRAPWINCH
- X-seq: zsh-workers 38625
- From: Paul M <tallus@xxxxxxxxx>
- To: zsh-workers@xxxxxxx
- Subject: [BUG] Segfault when referencing $WIDGET in TRAPWINCH
- Date: Mon, 06 Jun 2016 23:42:40 -0700
- Dkim-signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113; h=message-id:subject:from:to:date:mime-version :content-transfer-encoding; bh=iCG2XASh7R8ZxBmfdTtUtbcbk3n9CO08j87hRQwHrjg=; b=P65qfq7ZFIt1Ygva/ZOvCd0KFRt1f0tRV7GdYjWMitkQCTdZKKFk9CWcypn3QUGDc3 KiHowVVIU17yC/JALed1RteOFBdO0TWYrnAO2lTn6vbPvj6Dsz45yj+QqDGrGzeKbX0O Qy5QGkxhvKk+2dJv6DgnQXlQOwGmnx2U29OnX47rVY6L6ZjwhqQJJgNLORUzooqTY93U jhyxGH9qIFlKGbWeSwfFctl8ehIL8MObcxYVveT3nDPO6eJ3Tl+n5yKdmagPpUipwN5z Z6RzdsH+yn9EDlNeUT8A4Cb9hLjf8n9HTmDPFhq/BzoIO5xqsqbd/FZ8Do9/ADDpXuGo ldQw==
- List-help: <mailto:zsh-workers-help@zsh.org>
- List-id: Zsh Workers List <zsh-workers.zsh.org>
- List-post: <mailto:zsh-workers@zsh.org>
- Mailing-list: contact zsh-workers-help@xxxxxxx; run by ezmlm
Steps to reproduce:
1. add a TRAPWINCH something like this:
TRAPWINCH(){echo $WIDGET}
2. Open a terminal
3. Resize
zsh will segfault. GDB reports something like this
Program received signal SIGSERV, Segmentation fault.
0xXXXXX.. in ?? () from /usr/lib/x86_64-linux-gnu/zsh/5.0.2/zsh/zle.so
where 0xXXXXX is a memory address. This stays consistent(though varies
across machines).
N.B. This only happens if there has been no user interaction.
Pressing any key will prevent the error. Pressing the space bar will
cause it to output magic-space for example (I'm guessing this causes
$WIDGET to be set, is some way, though trying to test if it was set with
echo ${WIDGET+x} also caused the crash).
Paul M
Messages sorted by:
Reverse Date,
Date,
Thread,
Author