From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 24830 invoked by alias); 12 Mar 2016 16:20:17 -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: 38141 Received: (qmail 15124 invoked from network); 12 Mar 2016 16:20:17 -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=-1.9 required=5.0 tests=BAYES_00,T_DKIM_INVALID autolearn=ham autolearn_force=no version=3.4.1 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=brasslantern-com.20150623.gappssmtp.com; s=20150623; h=from:message-id:date:in-reply-to:comments:references:to:subject :mime-version; bh=xQqHFq1fc8Aw1ZAJTaiZOuVuXf2XtpemVikWmyg6NSU=; b=aTQGA2A50FLU5/tQ3CREwieh6y0uKGSAVQS/5ZEGnT/cuYi4q23L7/ZE3/loniJRV/ jU6KIWgo12byiVVhnql6YbrTayvmqoYnz6S3jRl8l+IFNm/rRTaNH1/T8HfuMMlW1y1m NvHnR5z5VEP9WpGaXUG6GBhzShdnCiIDbznXo13QJb2uP7IDWWykPpkgUCtKe4zS2ZyT s+wCmCpZxP9G0INl2tY+ROzapzrWOxI1JwjiDj8rJMZa1kRPQUZFlTF1Cr9pDllR+cNr /hfjmXo0Z4MksFX7xmEjUU8GX4ibhZVgiM8/wNVuVFVXZqUT6UaJs/gYFOyn4xUL4Dpg Jsyg== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20130820; h=x-gm-message-state:from:message-id:date:in-reply-to:comments :references:to:subject:mime-version; bh=xQqHFq1fc8Aw1ZAJTaiZOuVuXf2XtpemVikWmyg6NSU=; b=k9XMdp2qNxpUCsdG0fGVcY5kqbpPn51UFO053Vhr20ti6DpF1O15l9cAaLSr0pAQlB MwaT60o2vuQIDABR8I4N6n5JntpMJ9LHRZPMhbKtwGQ4gAr88ig/2cHXYGlvCqsooC3C JnnecKe6tKlWpFN0XaG3nH9KNNNbyb5NTge9UI11gFS4ouTijLDSSw//k/CKnoQDlqr5 41AMEqNMAr3nQhHSHJqJfTKcvUfHRMBtQG3IZD4uuh0Cwm0saqG03qXZ9UrIU0YpgSzD GFeq+wt78XGQs2rF1OhBWaEYHSFOTxGU7XAov91BUpG/xtc8DXmTsKnhqXhh0Vekd5QL oxcg== X-Gm-Message-State: AD7BkJKg99tJ/Ae4N8ClQCx8TtddAXOQm5w8tFM7F8aMqrcrQRkpaDhU9jMaDp9G7rsPKw== X-Received: by 10.98.8.200 with SMTP id 69mr17017243pfi.39.1457799615917; Sat, 12 Mar 2016 08:20:15 -0800 (PST) From: Bart Schaefer Message-Id: <160312082029.ZM2340@torch.brasslantern.com> Date: Sat, 12 Mar 2016 08:20:29 -0800 In-Reply-To: <20160312031116.GC28459@zira.vinc17.org> Comments: In reply to Vincent Lefevre "Re: segfault in completion for configure" (Mar 12, 4:11am) References: <20160311134729.GA32476@cventin.lip.ens-lyon.fr> <20160311143202.4008e29b@pwslap01u.europe.root.pri> <160311150056.ZM30997@torch.brasslantern.com> <20160312031116.GC28459@zira.vinc17.org> X-Mailer: OpenZMail Classic (0.9.2 24April2005) To: zsh-workers@zsh.org Subject: Re: segfault in completion for configure MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii 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? There are two static globals in pattern.c: /* Flags used in both compilation and execution */ static int patflags; /* flags passed down to patcompile */ static int patglobflags; /* globbing flags & approx */ I'm guessing that re-entering pattern matching during the signal handler is messing up those globals and leading eventually to the crash.