Zsh Mailing List Archive
Messages sorted by:
Reverse Date,
Date,
Thread,
Author
Re: [BUG] Redirect between two parameter assignments causes misbehaviour
- X-seq: zsh-workers 42106
- From: Daniel Shahaf <d.s@xxxxxxxxxxxxxxxxxx>
- To: zsh-workers@xxxxxxx
- Subject: Re: [BUG] Redirect between two parameter assignments causes misbehaviour
- Date: Mon, 11 Dec 2017 01:07:00 +0000
- Dkim-signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d= daniel.shahaf.name; h=content-transfer-encoding:content-type :date:from:in-reply-to:message-id:mime-version:references :subject:to:x-me-sender:x-me-sender:x-sasl-enc; s=fm2; bh=76vMDC Kwfa1xpXdEoHmvKcOo9htp/2okvRNuSQzdPxA=; b=UPBdAPcg9YY1IMnzN4Ylhf jmuy8enRnIwnTwTrxN4ar2PWeR2AxJLzrioDdUEF6FbYUCW9AQRKxh20OKglUCuR F3pEycC6tbVDakvQhlBa5EZvxEocESvp2VOhOdR1DFA7nhVbqhAIDF5/Ub8qiTTA qRVuQfExN6s4iZDWcu8Z/ZvtqVFhjrXvd2//lzRyMhlTdLg5RmjXt+o3lLDrXpaw fhdAhm4IDlIfP/OMGnhh/abT5RdBQg/uNq181v+AzKyIWmum979fYDOtU/kWMa+L ZaNOMi5gMUjiY9qV92rv+HDqMKQEWd4TQglsHsO0HDlVXleETA4zZiOM6BZhk0cw ==
- Dkim-signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d= messagingengine.com; h=content-transfer-encoding:content-type :date:from:in-reply-to:message-id:mime-version:references :subject:to:x-me-sender:x-me-sender:x-sasl-enc; s=fm1; bh=76vMDC Kwfa1xpXdEoHmvKcOo9htp/2okvRNuSQzdPxA=; b=EZTxduCEv7SAPvcqhCIQfs VebgezXvmydIBfCa++LkddUjIjD+c80FjS1zGTgnj52ZcVWIXBZ1FIzZkSOz0tdW AqDpIx4GYIiO1BS0Yg7yFm4iJFD4Q73mQ7Q6ozoA68V24CLWyh7y6HfYngeNMSXZ iAvNu6OgwLNlVePCS4aARMDDbY7tDv/6hiFaJHQGiNlwggg2JMX40/eyzc7JU04K EkvpAPhfe/x5tIuqzQqICn/48Z3mOykOQyRbKXt4ssmWO/2dmahlXu3B7IvFpo9w c/q63mLTZ039qG/h4D7ONwiuPzm0lbsWR3vv4ba+CkTmxeCSxV15Ayt8j83IiJYw ==
- In-reply-to: <86CB677F-70BF-43B2-8F6D-E8F0AC4C43A3@dana.is>
- 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
- References: <86CB677F-70BF-43B2-8F6D-E8F0AC4C43A3@dana.is>
dana wrote on Sun, 10 Dec 2017 18:19 -0600:
> One more before i forget. Someone found this on IRC today and it puzzled us.
Thanks for bringing this to the list.
> Though it seems that certain interactions with other code can be quite serious.
> If i run this without -f, something in my profile causes this series of commands
> to hard-lock zsh with 100% CPU. Entering the first command and then the second
> one separately avoids this lock-up. Unfortunately `set -x` didn't reveal
> anything and i don't have any more time to look at it today, but i thought i'd
> mention it.
It's spinning in the 'while (1)' in gettext2() on WC_END.
If I change the definition of WC_END to 0 then it hits the 'default'
branch of the case, returns from gettext2(), and doesn't spin.
Without having looked any further into it, I wonder whether we should
change WC_END to zero, so if we ever calloc() something and forget to
initialise it, it won't be mistaken for valid data.
Messages sorted by:
Reverse Date,
Date,
Thread,
Author