zsh-workers
 help / color / mirror / code / Atom feed
From: Joel Bernstein <joel@fysh.org>
To: zsh-workers@zsh.org
Subject: Re: segfault due to chpwd_function
Date: Fri, 11 Dec 2009 17:52:10 +0000	[thread overview]
Message-ID: <492E001A-FC35-4405-A0E0-60263C1AC2D1@fysh.org> (raw)
In-Reply-To: <0742D8B8-F67E-48F7-BCCC-3F578A78D4B7@fysh.org>

On 11 Dec 2009, at 17:36, Joel Bernstein wrote:
> I believe I can workaround this issue by setting the desired prompt theme to a var in my chpwd_function and calling prompt() from my precmd_function 

Actually, this doesn't work, I still get a segfault:
Program received signal EXC_BAD_ACCESS, Could not access memory.
Reason: 13 at address: 0x0000000000000000
0x0000000100020be4 in hasher ()
(gdb) bt
#0  0x0000000100020be4 in hasher ()
#1  0x0000000100020c2b in gethashnode ()
#2  0x0000000100069995 in callhookfunc ()
#3  0x000000010006d075 in preprompt ()
#4  0x000000010002ac33 in loop ()
#5  0x000000010002bf74 in zsh_main ()
#6  0x0000000100001374 in start ()

Is this a zsh bug?

Any ideas how to achieve dynamic prompt theme changing based on some command being run against the directory being entered?

/joel

  reply	other threads:[~2009-12-11 17:52 UTC|newest]

Thread overview: 6+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2009-12-11 17:36 Joel Bernstein
2009-12-11 17:52 ` Joel Bernstein [this message]
2009-12-11 18:11 ` Bart Schaefer
2009-12-11 18:41 ` Peter Stephenson
2009-12-11 19:01   ` Bart Schaefer
2009-12-11 22:16     ` Peter Stephenson

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=492E001A-FC35-4405-A0E0-60263C1AC2D1@fysh.org \
    --to=joel@fysh.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).