From: Bart Schaefer <schaefer@brasslantern.com>
To: zsh-workers@zsh.org
Subject: Re: Segfault in hist.c
Date: Mon, 11 Jul 2011 07:21:19 -0700 [thread overview]
Message-ID: <110711072119.ZM10154@torch.brasslantern.com> (raw)
In-Reply-To: <87pqlh81yw.fsf@ft.bewatermyfriend.org>
On Jul 11, 1:56pm, Frank Terbeck wrote:
} Subject: Segfault in hist.c
}
} This just came up on IRC:
}
} zsh% alias foo=bar
} zsh% foo\<RET>
} > <C-c>
} zsh% <RET>
} hist.c:1165: BUG: chline is NULL in hend()
} [1] 8401 segmentation fault (core dumped) PS1="zsh%# " zsh -f
Well ... the problem is that the global inbufflags == INP_ALIAS which
means the shell believes it is still expanding "foo". This causes it
to zero out everything when hbegin() is called, instead of allocating
a new chline etc., so when hend() is finally called ... boom.
What I don't follow is why inbufflags isn't getting cleared properly
on send-break ... because I can't figure out where it's ever cleared
at all. I'm not very familiar with teh flow of control in input.c.
prev parent reply other threads:[~2011-07-11 14:21 UTC|newest]
Thread overview: 4+ messages / expand[flat|nested] mbox.gz Atom feed top
2011-07-11 11:56 Frank Terbeck
2011-07-11 13:46 ` Peter Stephenson
2011-07-12 4:00 ` Bart Schaefer
2011-07-11 14:21 ` Bart Schaefer [this message]
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=110711072119.ZM10154@torch.brasslantern.com \
--to=schaefer@brasslantern.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).