Zsh Mailing List Archive
Messages sorted by:
Reverse Date,
Date,
Thread,
Author
Bug in ZSH 5.0.0 - Segmentation fault after sending process to background
- X-seq: zsh-workers 30723
- From: BlueC0re <bluecore90@xxxxxxxxxxxxxx>
- To: zsh-workers@xxxxxxx
- Subject: Bug in ZSH 5.0.0 - Segmentation fault after sending process to background
- Date: Thu, 11 Oct 2012 15:46:49 +0200
- 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==
- List-help: <mailto:zsh-workers-help@zsh.org>
- List-id: Zsh Workers List <zsh-workers.zsh.org>
- List-post: <mailto:zsh-workers@zsh.org>
- Mailing-list: contact zsh-workers-help@xxxxxxx; run by ezmlm
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
precmd () {
{}
}
Messages sorted by:
Reverse Date,
Date,
Thread,
Author