From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 15697 invoked by alias); 17 Sep 2013 16:11:19 -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: 31730 Received: (qmail 5318 invoked from network); 17 Sep 2013 16:11:04 -0000 X-Spam-Checker-Version: SpamAssassin 3.3.2 (2011-06-06) on f.primenet.com.au X-Spam-Level: X-Spam-Status: No, score=-1.9 required=5.0 tests=BAYES_00 autolearn=ham version=3.3.2 Received-SPF: none (ns1.primenet.com.au: domain at sym2.noone.org does not designate permitted sender hosts) Date: Tue, 17 Sep 2013 18:10:59 +0200 From: Axel Beckert To: zsh-workers@zsh.org Subject: Re: Segfault on "task " with zsh 5.0.2 (minimal dataset to reproduce the issue found) Message-ID: <20130917161058.GJ3544@sym.noone.org> Mail-Followup-To: zsh-workers@zsh.org References: <20130913122426.GA19439@sym.noone.org> <20130916171841.GG3544@sym.noone.org> <20130917095657.4cb4ccbf@pwslap01u.europe.root.pri> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <20130917095657.4cb4ccbf@pwslap01u.europe.root.pri> X-Operating-System: Linux 2.6.32-5-xen-amd64 X-Machine: sym2 x86_64 X-Editor: GNU Emacs 23.2.1 Face: iVBORw0KGgoAAAANSUhEUgAAADAAAAAwBAAAAAC3mUtaAAAABGdBTUEAALGPC/xhBQAAADh0RVh0U29mdHdhcmUAWFYgVmVyc2lvbiAzLjEwYSAgUmV2OiAxMi8yOS85NCAoUE5HIHBhdGNoIDEuMindFS5JAAACGElEQVQ4jXXQMU8UYRDG8f8shNjdDH4AbpfGDjAWlKiJiZ0ajL1aGCvsNCbGaCGG1koLaztaTYz6ATy+gOyehYmF3MxVxgg3FnDsHcTpJr/M+8w7Rf6nCsaVTTDqxbg9hoOXmw83H71+Eyfg4E1d7/Z2fG9rGkZbTQiu+K+3U/C+76lmkvAhJuDndnoAiftou4V84okAGclop4U/jYACZDTxrYWP0gkxVfAm/W//GLZpxIzwIN0Hn8dw0B+IWkZmQmRsj2HfhwokEklHfNCCiQCRgAR7YyhQVRVTCKCzP4Y5zBBE0t0zY3Q8oQaBqqAMlVEcgVQd9706zGirAFium8HXumlMIeMwqQCInju+2+uB6MRENupdpMt8pRlHZyuAW0F+Mb6XSIVqtxjD+iVmVqqystLEzFTGT92YqRaXpNT5eTVjeJhbALPnrTxLUZUKZsgxcNm64hAOYisT/xhF+oKTGU5RegtC3Rt6eEDi/QnIevdTx9Md2EMmYBRmCQR1026FCGQQJJExsRUqgkMGaWSbwYLnoO4T6VgpbQbdELPMBAHWWrhYrcxXnYgAsatPWygkFCBD4K62MAsOTqA6szYRPpsu6e6Y8mPiVrBMNuGIMrgwBUu4p2DgG1Ownu6hpuTv7hScefHAzAC/yRRw5U5pALMbJ4AUALvHSZhxgHPXTsHcdWD1GadAHr9avP+c0wCr7263Df8ASLwXWHWs+KIAAAAHdElNRQfYBQEBODPr Organization: DeuxChevaux.org -- The =?iso-8859-1?Q?Citr?= =?iso-8859-1?B?b+tu?= 2CV Database User-Agent: Mutt/1.5.20 (2009-06-14) Hi, On Tue, Sep 17, 2013 at 09:56:57AM +0100, Peter Stephenson wrote: > It's not worth sending these unless they actually provide a way of > making the crash easily reproducible, in which case please repost that > information here. Granted. I tried to get a reproducible data set and it took me a while to find that TaskWarrior feature which causes the segfault: Annotations! Here's how to reproduce the segfault: abe@kiva6 % zsh -f kiva6% autoload -Uz compinit kiva6% compinit kiva6% task A configuration file could not be found in Would you like a sample /home/abe/.taskrc created, so taskwarrior can proceed? (yes/no) yes [task next] No matches. kiva6% task add foo Created task 1. kiva6% task 1 annotate bar Annotating task 1 'foo'. Annotated 1 task. kiva6% task [1] 4340 segmentation fault (core dumped) zsh -f abe@kiva6 % I built a tiny tar ball containing the resulting data files (and generated config file), so to reproduce the issue, it should be sufficient to have the following: * The attached task-tab-completion-segfaults-zsh.tgz extracted into $HOME: drwxr-xr-x abe/tar 0 2013-09-17 17:18 .task/ -rw-r--r-- abe/tar 402 2013-09-17 17:18 .task/undo.data -rw-r--r-- abe/tar 150 2013-09-17 17:18 .task/pending.data -rw-r--r-- abe/tar 0 2013-09-17 17:18 .task/completed.data -rw-r--r-- abe/tar 1129 2013-09-17 17:18 .taskrc * A recently compiled zsh 5.0.2 (probably with gcc 4.8). * TaskWarrior 2.2.0 (e.g. from http://taskwarrior.org/projects/taskwarrior/wiki/Download -- Distribution's package name is often still just "task" which was TaskWarrior's old name) * The _task tab-completion file from the source tar-ball (see http://sources.debian.net/src/task/2.2.0-3/scripts/zsh/_task to just have a look) at some place where zsh looks for completions. * Enter "task " into a zsh. > It might produce some sort of hint using "^X?" instead of the second > tab. Nothing, not even a newline or change of the cursor position. Interestingly the next time, I tried it in the same shell, it segfaulted on the _first_ Tab key-press. I used ^U and an empty enter inbetween. At least I could reproduce it that way multiple times. Kind regards, Axel -- /~\ Plain Text Ribbon Campaign | Axel Beckert \ / Say No to HTML in E-Mail and News | abe@deuxchevaux.org (Mail) X See http://www.asciiribbon.org/ | abe@noone.org (Mail+Jabber) / \ I love long mails: http://email.is-not-s.ms/ | http://noone.org/abe/ (Web)