Mailing-List: contact zsh-workers-help@zsh.org; run by ezmlm
Precedence: bulk
X-No-Archive: yes
List-Id: Zsh Workers List <zsh-workers.zsh.org>
List-Post: <mailto:zsh-workers@zsh.org>
List-Help: <mailto:zsh-workers-help@zsh.org>
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=GmmLP6e8ZylGoBUUq1m+Qy99KjYYEarsgb1riyg7N3E=;
        b=RnsioQpGz2goUB3mrURugwBlSPwbn7uEO1Zn0VEtd8CdvxRcacNuHQ8IckdtPVeLE3
         p3TwPVB6xHiI8zkeXsp6pBZe3e2naBi8Sz3OmSVapTIBvrE0B0BMhwivGl8mO/k97BP3
         hNu2vns61bmIlqGiHs2hc3v69ebW76U3aQzwV8ZaA5EQ+0YsysoOZS2sKQrb/7vz9/vr
         hHd6Rf+Ka9y04vgLFTpYtQAM/b4xIm25LT7kVgRFNZ5OjaJYi0WZ+aeO1s60FWtMqq6t
         dLwQ6xWG5xy7eesHQ3hbx6Lmopd3FaXM29jeP/24ABDffj3a1squJ8mS8lfPgVP5xJPh
         nIxg==
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=GmmLP6e8ZylGoBUUq1m+Qy99KjYYEarsgb1riyg7N3E=;
        b=Rz2w2su96c+WPhJMg3j38mLl1lvo9XieXaypJPP9QvlZ1QOMjntDtZ99KI4xDjeoy5
         w5RhR+imck6OhShPRvaBUp/XNaBriW1rUTh8+naVmKDFdELLrs4TW+zoazNwNLP0V8BW
         Uss9Jm9W14+ZgoRIS6LksJ1jLz+HvhQ0XXWGt4iixdgqKxlwOqrhxAMaIP4Hs9aTvv4V
         eNARHsPHZ8jJ2LRgVv3f7gWipuEOFzTB5Qd40e/caap/wBezuvt7yuwmjSISjZ65rqeK
         9jQYs4XyF+bez51DiRIrq0gUXecpxSl76j4+w/DRUIFKmQNSkfkxkLFxJCSQqufXWUOi
         1H1Q==
X-Gm-Message-State: AD7BkJLJdUz4fWfCYV1oys1D3/0v05UoUDeT32emLvF51NpPsqewerRL9/mF4M0W2gIggg==
X-Received: by 10.98.7.135 with SMTP id 7mr504576pfh.124.1457737245299;
        Fri, 11 Mar 2016 15:00:45 -0800 (PST)
From: Bart Schaefer <schaefer@brasslantern.com>
Message-Id: <160311150056.ZM30997@torch.brasslantern.com>
Date: Fri, 11 Mar 2016 15:00:56 -0800
In-Reply-To: <20160311143202.4008e29b@pwslap01u.europe.root.pri>
Comments: In reply to Peter Stephenson <p.stephenson@samsung.com>
        "Re: segfault in completion for configure" (Mar 11,  2:32pm)
References: <20160311134729.GA32476@cventin.lip.ens-lyon.fr> 
	<20160311143202.4008e29b@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
X-Seq: zsh-workers 38136

On Mar 11,  2:32pm, Peter Stephenson wrote:
}
} On Fri, 11 Mar 2016 14:47:29 +0100
} Vincent Lefevre <vincent@vinc17.net> wrote:
} > With zsh 5.2 under Debian/unstable, zsh sometimes crashes when
} > I do:
} > 
} > cventin:~/software/mutt/mutt> ./configure --[TAB]
} 
} Looks like something's already gone wrong by this point

Yes, this is the kind of crash where the stack trace is probably not
very helpful, because frames have returned and/or new frames entered
an unknown number of times after the pointers went awry but before
the bad dereference that trips the fault.

Shot in the [mostly] dark:  I see TRAPCHLD embedded in one of the strings
in your backtrace.  Completion after "configure --" forks at least one
child process (says valgrind) so if you have a TRAPCHLD function it's
possible that it's corrupting something.  We do attempt signal handling
during pattern matching in order that deep recursive globs can be stopped
with SIGINT; it could be that needs a bit more regulation.

