zsh-workers
 help / color / mirror / code / Atom feed
From: Frank Terbeck <ft@bewatermyfriend.org>
To: zsh-workers@zsh.org
Subject: Segfault in hist.c
Date: Mon, 11 Jul 2011 13:56:55 +0200	[thread overview]
Message-ID: <87pqlh81yw.fsf@ft.bewatermyfriend.org> (raw)

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

Here's a backtrace:

[snip]
Core was generated by `zsh -f'.
Program terminated with signal 11, Segmentation fault.
#0  0x0807f8b5 in hend (prog=0x0) at hist.c:1232
1232               if (save || *chline == ' ') {
(gdb)
#0  0x0807f8b5 in hend (prog=0x0) at hist.c:1232
        hookargs = 0xb7242738
        flag = 8
        save = 0
        hookret = 0
        stack_pos = 0
        hf = 0x0
#1  0x08083bc9 in loop (toplevel=1, justonce=0) at init.c:133
        prog = 0x0
        err = 50
        non_empty = 1
#2  0x08086b9b in zsh_main (argc=2, argv=0xbfe56854) at init.c:1528
        t = 0xbfe5685c
        runscript = 0x0
        t0 = 158
#3  0x0805505f in main (argc=2, argv=0xbfe56854) at ./main.c:93
No locals.
[snap]

Maybe someone here immediately knows what's going on.

Regards, Frank


             reply	other threads:[~2011-07-11 12:08 UTC|newest]

Thread overview: 4+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2011-07-11 11:56 Frank Terbeck [this message]
2011-07-11 13:46 ` Peter Stephenson
2011-07-12  4:00   ` Bart Schaefer
2011-07-11 14:21 ` 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=87pqlh81yw.fsf@ft.bewatermyfriend.org \
    --to=ft@bewatermyfriend.org \
    --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).