Zsh Mailing List Archive
Messages sorted by: Reverse Date, Date, Thread, Author

Re: zsh 4.3.4 released



On 23/04/07, Peter Stephenson <pws@xxxxxxx> wrote:
"Mikael Magnusson" <mikachu@xxxxxxxxx> wrote:
> > Is it possibly you have old wordcode for the dot file that might define
> > svmode?  (Obviously the shell should be robust even if this is the case;
> > since the wordcode has a version stamp this shouldn't happen with a
> > released version of the shell.)
>
> Aha, this seems to have been the problem. I renamed my .zshurxvt.zwc
> and it doesn't crash anymore. I always run zrecompile -p on all my .z*
> files after upgrading zsh but apparently it only takes effect if the
> .file is newer than the .file.zwc, maybe it should also take effect if
> $SHELL is newer than the .zwc?

I think I've found the problem: parse.c doesn't get recompiled when
version.h changes, so zcompile might output the wrong version, so the shell
can't check properly when the ZWC file is loaded.

Luckily, this won't happen if the shell is built from scratch, so it
doesn't affect the fast majority of installed versions.

I think the fix is as simple as changing the dependency, though I decided I
felt happier if the header for the ZWC file had uninitialised bits set to
null bytes rather than (say) the password that was lying around in
memory.

Thanks for your help.

No problem, and thank you too.

zrecompile:zcompile:1: zwc file has wrong version (zsh-4.3.2-dev-1):
/root/.zshrc.zwc
re-compiling /root/.zshrc.zwc: succeeded
zrecompile:zcompile:1: zwc file has wrong version (zsh-4.2.0-dev-1):
/root/.zlogout.zwc
re-compiling /root/.zlogout.zwc: succeeded
zrecompile:zcompile:1: zwc file has wrong version (zsh-4.3.3):
/root/.zcompdump.zwc
re-compiling /root/.zcompdump.zwc: succeeded
zrecompile:zcompile:1: zwc file has wrong version (zsh-4.3.3): /etc/profile.zwc
re-compiling /etc/profile.zwc: succeeded
zrecompile:zcompile:1: zwc file has wrong version (zsh-4.3.2-dev-1):
/etc/zprofile.zwc
re-compiling /etc/zprofile.zwc: succeeded
zrecompile:zcompile:1: zwc file has wrong version (zsh-4.3.2-dev-1):
/usr/local/share/zsh/site-functions.zwc
re-compiling /usr/local/share/zsh/site-functions.zwc: succeeded
zrecompile:zcompile:1: zwc file has wrong version (zsh-4.3.2-dev-1):
/home/mikaelh/.zshrc.zwc
re-compiling /home/mikaelh/.zshrc.zwc: succeeded
zrecompile:zcompile:1: zwc file has wrong version (zsh-4.3.3):
/home/mikaelh/.zshenv.zwc
re-compiling /home/mikaelh/.zshenv.zwc: succeeded
zrecompile:zcompile:1: zwc file has wrong version (zsh-4.3.3):
/home/mikaelh/.zcompdump.zwc
re-compiling /home/mikaelh/.zcompdump.zwc: succeeded
zrecompile:zcompile:1: zwc file has wrong version (zsh-4.2.0-dev-1):
/home/mikaelh/.zlogin.zwc
re-compiling /home/mikaelh/.zlogin.zwc: succeeded
zrecompile:zcompile:1: zwc file has wrong version (zsh-4.2.0-dev-1):
/home/mikaelh/.zlogout.zwc
re-compiling /home/mikaelh/.zlogout.zwc: succeeded
zrecompile:zcompile:1: zwc file has wrong version (zsh-4.3.2-dev-1):
/home/mikaelh/.delete-to.zwc
re-compiling /home/mikaelh/.delete-to.zwc: succeeded
zrecompile:zcompile:1: zwc file has wrong version (zsh-4.3.0-dev-1):
/home/mikaelh/.zshurxvt.zwc
re-compiling /home/mikaelh/.zshurxvt.zwc: succeeded

:)

--
Mikael Magnusson



Messages sorted by: Reverse Date, Date, Thread, Author