zsh-workers
 help / color / mirror / code / Atom feed
From: "Bart Schaefer" <schaefer@candle.brasslantern.com>
To: zsh-workers@sunsite.auc.dk
Subject: BUG: hrealloc() wants to realloc pushed memory
Date: Mon, 28 Aug 2000 14:52:44 +0000	[thread overview]
Message-ID: <1000828145244.ZM15657@candle.brasslantern.com> (raw)

The zstyle command from zsh-users/3404 produces the error.  It may have
something to do with invoking completion at the PS2 prompts -- I see it
when cut'n'pasting lines with leading tabs like this:

zstyle -e ':completion:*:ssh:*' hosts \
	'reply=($(sed -e "/^#/d" -e "s/ .*\$//" -e "s/,/ /g" \
		/etc/ssh_known_hosts ~/.ssh/known_hosts 2>/dev/null))'

And so:

zagzig<353> zstyle -e ':completion:*:ssh:*' hosts \
> 'reply=($(sed -e "/^#/d" -e "s/ .*\$//" -e "s/,/ /g" \
quote> /etc/ssh_known_hosts ~/.ssh/known_hosts 2>/dev/null))'
Breakpoint 1, dputs (
    message=0x80fb44e "BUG: hrealloc() wants to realloc pushed memory")
    at ../../zsh-3.1.6/Src/utils.c:3717
3717        fprintf(stderr, "%s\n", message);
(gdb) where
#0  dputs (message=0x80fb44e "BUG: hrealloc() wants to realloc pushed memory")
    at ../../zsh-3.1.6/Src/utils.c:3717
#1  0x807a786 in hrealloc (
    p=0x400e1918 "\230reply=($(sed -e \"/^#/d\" -e \"s/ .*\\$//\" -e \"s/,/ /g\" \\\n/etc/ssh_", ' ' <repeats 80 times>, old=64, new=128)
    at ../../zsh-3.1.6/Src/mem.c:369
#2  0x8072370 in add (c=95) at ../../zsh-3.1.6/Src/lex.c:520
#3  0x8073bdd in gettokstr (c=95, sub=0) at ../../zsh-3.1.6/Src/lex.c:1185
#4  0x807310b in gettok () at ../../zsh-3.1.6/Src/lex.c:868
#5  0x8071e5d in yylex () at ../../zsh-3.1.6/Src/lex.c:344
#6  0x8089169 in par_simple (complex=0xbffff644, nr=0)
    at ../../zsh-3.1.6/Src/parse.c:1485
#7  0x8087247 in par_cmd (complex=0xbffff644)
    at ../../zsh-3.1.6/Src/parse.c:834
#8  0x80867f3 in par_pline (complex=0xbffff644)
    at ../../zsh-3.1.6/Src/parse.c:687
#9  0x80867a8 in par_sublist2 (complex=0xbffff644)
    at ../../zsh-3.1.6/Src/parse.c:669
#10 0x80865f1 in par_sublist (complex=0xbffff668)
    at ../../zsh-3.1.6/Src/parse.c:624
#11 0x8086024 in par_event () at ../../zsh-3.1.6/Src/parse.c:446
#12 0x8085fa4 in parse_event () at ../../zsh-3.1.6/Src/parse.c:427
#13 0x806ad0f in loop (toplevel=1, justonce=0)
    at ../../zsh-3.1.6/Src/init.c:123
#14 0x806d45c in zsh_main (argc=1, argv=0xbffff6f0)
    at ../../zsh-3.1.6/Src/init.c:1197
#15 0x804a694 in main (argc=1, argv=0xbffff6f0)
    at ../../zsh-3.1.6/Src/main.c:37

-- 
Bart Schaefer                                 Brass Lantern Enterprises
http://www.well.com/user/barts              http://www.brasslantern.com

Zsh: http://www.zsh.org | PHPerl Project: http://phperl.sourceforge.net   


                 reply	other threads:[~2000-08-28 14:53 UTC|newest]

Thread overview: [no followups] expand[flat|nested]  mbox.gz  Atom feed

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=1000828145244.ZM15657@candle.brasslantern.com \
    --to=schaefer@candle.brasslantern.com \
    --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).