From: BlueC0re <bluecore90@googlemail.com>
To: zsh-workers@zsh.org
Subject: Bug in ZSH 5.0.0 - Segmentation fault after sending process to background
Date: Thu, 11 Oct 2012 15:46:49 +0200 [thread overview]
Message-ID: <5076CDC9.9040908@googlemail.com> (raw)
[-- Attachment #1: Type: text/plain, Size: 767 bytes --]
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
[-- Attachment #2: test2.zshrc --]
[-- Type: text/plain, Size: 20 bytes --]
precmd () {
{}
}
next reply other threads:[~2012-10-11 13:47 UTC|newest]
Thread overview: 3+ messages / expand[flat|nested] mbox.gz Atom feed top
2012-10-11 13:46 BlueC0re [this message]
2012-10-11 14:35 ` Peter Stephenson
2012-10-11 15:52 ` Bart Schaefer
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=5076CDC9.9040908@googlemail.com \
--to=bluecore90@googlemail.com \
--cc=zsh-workers@zsh.org \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
Code repositories for project(s) associated with this public inbox
https://git.vuxu.org/mirror/zsh/
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).