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=u6VKduVVC6pWPGWfTRt4eNedmXDNXxPZX75TBEWDgJY=;
        b=d7K7X6XwVtKosZ7AY9yU/b7zeZlY0OLRcGx9NNaQAdcRHMGIxeGIIgreBSo/NrPH7w
         c+/SrM1qpGC44ZQfVpXTamh1UYN1+wuMhLJgTqf1rVvTpbS3Ofqv5o9bI+biSvilaZGj
         ssKpA2WE4mKnMyePC4SP0mLt0eFsySYyf7waX8vTp5WWtXhukN0CF9UyugHktb9JGQqG
         kaz1M1cYQh3xyIu8w6wZ0EPrEika4F9EZNXLN7hz1jqUidaZz0qItMuzEUoLu/NJD7Q5
         LlQm2cyljuYPQIEsWkwZKYSXQ8omEuzur20dw5cAECqzM6IQnxGlMXhKU0PBLbDftJ3b
         OJcQ==
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=u6VKduVVC6pWPGWfTRt4eNedmXDNXxPZX75TBEWDgJY=;
        b=ZEpP4YWXh+npVwwmNvNYqRIyvFt+fz9+f/RXkCGOMLadmb8HmTZmqjQgLDFJ1RcqdR
         uGh6o/IWX0S2cmr3CqEYz2GTNeinVa19zeshqZcpNuAx5J599RRSkoLW3EeQy6zo8YgN
         sm6duCKLxcF+TzPaT3fLCHCge1AZW8hOXAEqj5nlv8IWxrqtbWzjYjB9YVHr6XFkvifM
         itRji0Y9n0rSL+HiTSDClJHKlvkAwPBUB5dq7Dl7IWqWX8qsKZjSWALfsL+APmdXbbas
         mzE0aQO0ktXJW04kAzVCgF5aHZe2Y2jA4ZbVlIXAaQKu98o7/6IdwsrHghTtSSd74ES3
         1TPA==
X-Gm-Message-State: AOPr4FVKbGZz0NGb7UZZxe1zXZnHaIjucxmuOxO4sYZFMn7FYQbE2xzibcao6GGvGcWrkg==
X-Received: by 10.98.19.131 with SMTP id 3mr61591962pft.17.1462911184309;
        Tue, 10 May 2016 13:13:04 -0700 (PDT)
From: Bart Schaefer <schaefer@brasslantern.com>
Message-Id: <160510131355.ZM1828@torch.brasslantern.com>
Date: Tue, 10 May 2016 13:13:55 -0700
In-Reply-To: <20160510184031.GA27856@tarsus.local2>
Comments: In reply to Daniel Shahaf <d.s@daniel.shahaf.name>
        "Re: Completion in empty double-quotes generates error" (May 10,  6:40pm)
References: <160330110652.ZM1432@torch.brasslantern.com> 
	<20160401053633.GA17993@tarsus.local2> 
	<160401181824.ZM23675@torch.brasslantern.com> 
	<20160402032950.GA10638@tarsus.local2> 
	<160401232021.ZM25900@torch.brasslantern.com> 
	<160402111815.ZM1925@torch.brasslantern.com> 
	<160406121053.ZM31877@torch.brasslantern.com> 
	<20160510184031.GA27856@tarsus.local2>
X-Mailer: OpenZMail Classic (0.9.2 24April2005)
To: zsh-workers@zsh.org
Subject: Re: Completion in empty double-quotes generates error
MIME-Version: 1.0
Content-Type: text/plain; charset=us-ascii
X-Seq: zsh-workers 38467

On May 10,  6:40pm, Daniel Shahaf wrote:
} Subject: Re: Completion in empty double-quotes generates error
}
} 'tmux new <TAB>' segfaults:
} 
}     $ zsh -f
}     % echo $ZSH_PATCHLEVEL
}     zsh-5.2-dev-1-130-g98f670c

That's odd:

burner% echo $ZSH_PATCHLEVEL
zsh-5.2-403-gb359b80
burner% echo $ZSH_VERSION
5.2-dev-1

I never get the "-dev-1" part in PATCHLEVEL.

}     % autoload compinit
}     % compinit
}     % tmux new <TAB>5: compcore.c:1657: expecting 'x' at offset -7 of "x"
}     
}     Program received signal SIGSEGV, Segmentation fault.

Well, that's got to be because of this:

} > The change in gotword() is necessary but of a little concern.  AFAICT
} > we only care about wb when examining the word under the cursor, so it
} > shouldn't hurt to skip updating it when doing so would violate the
} > wb <= zlemetacs <= we constraint, but there may be some corner case I
} > haven't tried that depends on the old behavior.

Apparently here is a case that depends on wb / we always being updated,
or at least being initialized in some way that has been missed.

I won't have a chance to look at this for at least another 3 weeks, so if
anyone else cares to try deciphering the interaction of the lexer with
compcore, it's all yours.

