From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 11988 invoked by alias); 11 Oct 2012 13:47:13 -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: 30723 Received: (qmail 25652 invoked from network); 11 Oct 2012 13:47:02 -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.6 required=5.0 tests=BAYES_00,DKIM_ADSP_CUSTOM_MED, DKIM_SIGNED,FREEMAIL_FROM,NML_ADSP_CUSTOM_MED,RCVD_IN_DNSWL_LOW, T_DKIM_INVALID,T_TO_NO_BRKTS_FREEMAIL autolearn=no version=3.3.2 Received-SPF: pass (ns1.primenet.com.au: SPF record at _spf.google.com designates 209.85.215.43 as permitted sender) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=googlemail.com; s=20120113; h=message-id:date:from:user-agent:mime-version:to:subject :content-type; bh=Fg31c0GKJaaORn/O1CS+XhIw6XI6OjqcdEPg6rHoOhY=; b=bCKgOwXNQA9hgTs1AEatuGGpQGWqhNs0ekut8In1dCb/nLg7hDiS3jAkUK8SOj7kSO YVdEfygT4w6/G3gFw7qsHQduhlh7kKwlDKV8SJsNmVcYN8x3JKxgl7bY82+PwuKJcxiM XnnmWER8fGXp3Q39daD7fwuQ1kU+/cNtrvfRg8vI2VsNX7qSFP9DrWTNLAFJsIjXN0H/ JRM57ii0s/GYa8bM1oUt5/YEBb6OVH915RPjpLj8EPHAVRDv/9592OME9P+N1EBlPqqS CRehVb86wZHaw1sdyPQselUMYSewx/bhzlz8LKN0GLUSCe75+ikPyKsKPIoPuXNH+Xi0 uhFg== Message-ID: <5076CDC9.9040908@googlemail.com> Date: Thu, 11 Oct 2012 15:46:49 +0200 From: BlueC0re User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:15.0) Gecko/20120910 Thunderbird/15.0.1 MIME-Version: 1.0 To: zsh-workers@zsh.org Subject: Bug in ZSH 5.0.0 - Segmentation fault after sending process to background Content-Type: multipart/mixed; boundary="------------080806010700010801070805" --------------080806010700010801070805 Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: 7bit Hi, zsh version 5.0.0 crashes with a segfault if you have a custom precmd specified (containing an additional command block), and sending a process to the background. The following steps are required to reproduce the bug: scratchy% zsh --version zsh 5.0.0 (x86_64-unknown-linux-gnu) scratchy% cat test2.zshrc precmd () { {} } scratchy% source test2.zshrc scratchy% sleep 50 &; sleep 30 [1] 30889 ^Z zsh: suspended sleep 30 zsh: segmentation fault zsh The segfault occurs in the hasprocs function in jobs.c, because the job parameter has the value -1 (causes to an invalid memory access). zsh was compiled with default settings. No special flags were set with the configure script. OS: Arch Linux x64 Hope this informations are helpful. Greets, bluec0re --------------080806010700010801070805 Content-Type: text/plain; charset=us-ascii; name="test2.zshrc" Content-Transfer-Encoding: 7bit Content-Disposition: attachment; filename="test2.zshrc" precmd () { {} } --------------080806010700010801070805--