From: Clint Adams <schizo@debian.org>
To: zsh-workers@sunsite.auc.dk
Subject: trap handling segfault
Date: Fri, 9 Jun 2000 10:02:41 -0400 [thread overview]
Message-ID: <20000609100241.B21890@scowler.net> (raw)
The following snippet will cause 3.1.9 to die with a SEGV (in gdb it dumps
at the blank line just before the declaration of periodic(), without gdb
it dumps when periodic is actually called).
I haven't looked at this in depth, but it's dying in endtrapscope()
when it tries to dereference st->list->funcdef (when st->list happens to
be NULL). Reversing 11736 smoothes things out.
----8<----
function TRAPEXIT ()
{
/bin/rm -f /tmp/jobs$HOST$$
}
function set-title ()
{
if [[ "$1" = "-k" ]]
then
shift
KEPT_TITLE="$* "
else
TITLE=$*
fi
[[ "$TERM" = "xterm" ]] && print -n -D -P "\033]2;${KEPT_TITLE}${TITLE}\007"
}
function accept-line {
local cmd=${BUFFER%%" "*}
local oldtitle=$TITLE
[[ -n "$cmd" ]] && set-title $TITLE "->" $cmd
TITLE=$oldtitle
zle .accept-line
}
zle -N accept-line
function periodic () { }
----8<----
next reply other threads:[~2000-06-09 14:03 UTC|newest]
Thread overview: 4+ messages / expand[flat|nested] mbox.gz Atom feed top
2000-06-09 14:02 Clint Adams [this message]
2000-06-09 14:38 ` PATCH: " Clint Adams
2000-06-09 14:48 ` Bart Schaefer
2000-06-09 14:54 ` Clint Adams
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=20000609100241.B21890@scowler.net \
--to=schizo@debian.org \
--cc=zsh-workers@sunsite.auc.dk \
/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).