From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 27464 invoked by alias); 13 Mar 2016 02:26:13 -0000 Mailing-List: contact zsh-workers-help@zsh.org; run by ezmlm Precedence: bulk X-No-Archive: yes List-Id: Zsh Workers List List-Post: List-Help: X-Seq: 38143 Received: (qmail 2046 invoked from network); 13 Mar 2016 02:26:11 -0000 X-Spam-Checker-Version: SpamAssassin 3.4.1 (2015-04-28) on f.primenet.com.au X-Spam-Level: X-Spam-Status: No, score=0.6 required=5.0 tests=BAYES_00,TO_NO_BRKTS_PCNT autolearn=no autolearn_force=no version=3.4.1 Date: Sun, 13 Mar 2016 03:26:05 +0100 From: Vincent Lefevre To: zsh-workers@zsh.org Subject: Re: segfault in completion for configure Message-ID: <20160313022605.GA23300@zira.vinc17.org> Mail-Followup-To: zsh-workers@zsh.org References: <20160311134729.GA32476@cventin.lip.ens-lyon.fr> <20160311143202.4008e29b@pwslap01u.europe.root.pri> <160311150056.ZM30997@torch.brasslantern.com> <20160312031116.GC28459@zira.vinc17.org> <160312082029.ZM2340@torch.brasslantern.com> MIME-Version: 1.0 Content-Type: text/plain; charset=iso-8859-1 Content-Disposition: inline Content-Transfer-Encoding: 8bit In-Reply-To: <160312082029.ZM2340@torch.brasslantern.com> X-Mailer-Info: https://www.vinc17.net/mutt/ User-Agent: Mutt/1.5.24-6562-vl-r87150 (2016-03-02) On 2016-03-12 08:20:29 -0800, Bart Schaefer wrote: > On Mar 12, 4:11am, Vincent Lefevre wrote: > } > } On 2016-03-11 15:00:56 -0800, Bart Schaefer wrote: > } > [...] if you have a TRAPCHLD function it's > } > possible that it's corrupting something. > } > } I can't reproduce the bug if I remove: > } > } [[ -n $TTY && $TERM == (xterm*|dtterm|mlterm|rxvt*|screen*) ]] && > } { > } [[ $TERM == screen* ]] || print -nP "\e]1;%m${ptsn:+[$ptsn]}:%.\x07" > } print -nP "\e]2;${jobstr}${WINTITLE:+ $WINTITLE |} %n@%m - %~ | %y\x07" > } } > /dev/tty > > What if you just remove the $TERM comparisons, i.e. leave the test of > $TTY and the print statement? I can't reproduce the crash if I remove these comparisons. I'll try the patch tomorrow. -- Vincent Lefèvre - Web: 100% accessible validated (X)HTML - Blog: Work: CR INRIA - computer arithmetic / AriC project (LIP, ENS-Lyon)