From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 23175 invoked by alias); 21 Mar 2016 15:25:50 -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: 38197 Received: (qmail 4818 invoked from network); 21 Mar 2016 15:25:50 -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=XKyrJaa6Cjlr8YKLDuaDJ2iTR5G1xYFykidSstbwL+E=; b=DaaFnitSugwSdDx6Zzp0nYBHs/FfB/aOEuTrhLWEoyItyLO6VT1LwLkpQUU8BWGly0 iOdqMyQF5rUO5hkjlLgdcQhymJYcznq4cf1WqbQXnAacPnhg6NxR1jcPU3RvoT1O/Tu6 Ro6tzIrpPRYvTcT3jrRGh5vpVLuem5DlsFPEDDYVJieP4EuYsg2O8t4Hed+OoRlJJXdd rAnaeGGGCrn6UplWl0zx/BH6N56o6UF11LJ/UQTCa51MvszFP4QHeGyylK6TYniUnUyl N9mq9W7GYo/l80WKYvsUZKbOH8HSvSde12ynFiEHmc73g9RbSbixfz32i1BqFNuXWmAs cs0g== 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=XKyrJaa6Cjlr8YKLDuaDJ2iTR5G1xYFykidSstbwL+E=; b=RNdNdlqx+FQMthFL4CU/Vu5lpJWnUg3JmoPfOxRdb8txzYLl+xPOxAhV85Nx/cjHY0 vDN9kTaboTnjKO5n+FvpKDUe0QXgPsGMe92bTUdIyA/cejfcMr1PiRrnpCkQWT9CWwSo DiWoqHpdgNGWpL+uDGxocMs+//O+geLgHD3jCA/QITGbwTLCY8+tjbede4rgEkBIky3s XnIonFLk2tCecII9p3CvkA3jqVXRqCjC8QX0STfF3l9dr2lMWnFmZT7305O7gbf57XXb 7bsI0XxobJ09FwRm5+DvdieigvodccyA84amkMU2k92crBEEB2z9Z3SXoe5GBWjRID4O Hp+A== X-Gm-Message-State: AD7BkJJe9E+etv17nZ6Ojv8RlMEq3C2gM72L3OsfGSXVSLd/CugbVkNISRvb+Y9xBlufYQ== X-Received: by 10.98.75.28 with SMTP id y28mr16236598pfa.126.1458573947155; Mon, 21 Mar 2016 08:25:47 -0700 (PDT) From: Bart Schaefer Message-Id: <160321082611.ZM25776@torch.brasslantern.com> Date: Mon, 21 Mar 2016 08:26:11 -0700 In-Reply-To: <20160321105611.57bf054a@pwslap01u.europe.root.pri> Comments: In reply to Peter Stephenson "Re: segfault in completion for configure" (Mar 21, 10:56am) 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> <160312093420.ZM14020@torch.brasslantern.com> <20160313215831.GA23404@zira.vinc17.org> <160314194323.ZM6887@torch.brasslantern.com> <20160317152435.GC11303@cventin.lip.ens-lyon.fr> <160317111515.ZM16697@torch.brasslantern.com> <160319190757.ZM28874@torch.brasslantern.com> <20160321105611.57bf054a@pwslap01u.europe.root.pri> 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 21, 10:56am, Peter Stephenson wrote: } } Are you simply worried that a pattern match that happens } asynchronously might not leave behind $MATCH / $match etc. values } after return owing to other asynchronous goings on with pattern } matching? The point is that a pattern match that happens asynchronously might not leave behind $MATCH / $match etc. values owing to other pattern matches going on, period, whether synchronous or async. Two signal handlers in the example was just to set up a way to get into the situation; a glob that takes several seconds to complete might just as easily do it, but is hard to invent for purposes of example code. I'm the tiniest bit worried that there's a way $MATCH et al. might be left pointing at garbage memory, but I don't really think so. } I don't think that's an issue. I don't think it's an issue either, but it's going to do the potentially unexpected thing more consistently now, so I wondered if it should be documented.