zsh-workers
 help / color / mirror / code / Atom feed
From: Bart Schaefer <schaefer@brasslantern.com>
To: zsh-workers@zsh.org
Subject: Re: Complex config triggering Segfault in pattern matching code.
Date: Sun, 14 Dec 2014 10:43:00 -0800	[thread overview]
Message-ID: <141214104300.ZM23759@torch.brasslantern.com> (raw)
In-Reply-To: <20141214182021.1944bbcd@pws-pc.ntlworld.com>

On Dec 14,  6:20pm, Peter Stephenson wrote:
}
} Bart Schaefer <schaefer@brasslantern.com> wrote:
} > #280 recursiveedit (args=0x7fb1f7f4ba70) at zle_main.c:181
} > 
} > So at this point we haven't even finished initializing ZLE yet, but one of
} > these "auto-fu" functions has recursively invoked it.  This is a recipe for 
} > disaster if ever I saw one.
} 
} After zle-line-init runs (in zleread),the next thing we do is zrefresh()
} and then zlecore().  So I think it *has* finished initialising ---
} zrefresh() and zlecore() are the stuff that we can only do when zsh is
} set up and we can do them at this point.

OK; that is after all why I invoked you ... (turn three times counter-
clockwise, then fling salt over your right shoulder and ...)

} > #126 completecall (args=0x7fb1f7f38918) at zle_tricky.c:208
} 
} This is utterly bizarre, but, again, I'm not really sure what the core
} shell should be disallowing.  It's up to the user rather than the shell
} not to complete anything before they've even started up the command
} line...

After thinking about this, it occurred to me that we're inside recursive-
edit, so probably the stack has grown and shrunk several times as input
was typed before we got the trace that led to this particular error.  So
the buffer likely wasn't empty after all.


  reply	other threads:[~2014-12-14 18:42 UTC|newest]

Thread overview: 14+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2014-12-13 19:49 Jonathan H
2014-12-13 23:28 ` Bart Schaefer
2014-12-13 23:36   ` Jonathan H
2014-12-14  4:40     ` Bart Schaefer
2014-12-14 18:20       ` Peter Stephenson
2014-12-14 18:43         ` Bart Schaefer [this message]
2014-12-15 21:20         ` Jonathan H
2014-12-15 23:39           ` Bart Schaefer
2014-12-16 20:58             ` Peter Stephenson
2014-12-17 17:18             ` Jonathan H
2014-12-18  6:14               ` Bart Schaefer
2014-12-18 19:09                 ` Peter Stephenson
2014-12-18 19:34                   ` Peter Stephenson
2014-12-29  0:57                   ` Daniel Shahaf

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=141214104300.ZM23759@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).