From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 12901 invoked from network); 23 Apr 2007 17:18:58 -0000 X-Spam-Checker-Version: SpamAssassin 3.1.8 (2007-02-13) on f.primenet.com.au X-Spam-Level: X-Spam-Status: No, score=-2.5 required=5.0 tests=BAYES_00,FORGED_RCVD_HELO autolearn=ham version=3.1.8 Received: from news.dotsrc.org (HELO a.mx.sunsite.dk) (130.225.247.88) by ns1.primenet.com.au with SMTP; 23 Apr 2007 17:18:58 -0000 Received-SPF: none (ns1.primenet.com.au: domain at sunsite.dk does not designate permitted sender hosts) Received: (qmail 47291 invoked from network); 23 Apr 2007 17:18:52 -0000 Received: from sunsite.dk (130.225.247.90) by a.mx.sunsite.dk with SMTP; 23 Apr 2007 17:18:52 -0000 Received: (qmail 2744 invoked by alias); 23 Apr 2007 17:18:49 -0000 Mailing-List: contact zsh-workers-help@sunsite.dk; run by ezmlm Precedence: bulk X-No-Archive: yes X-Seq: 23314 Received: (qmail 2732 invoked from network); 23 Apr 2007 17:18:46 -0000 Received: from news.dotsrc.org (HELO a.mx.sunsite.dk) (130.225.247.88) by sunsite.dk with SMTP; 23 Apr 2007 17:18:46 -0000 Received: (qmail 46957 invoked from network); 23 Apr 2007 17:18:46 -0000 Received: from wr-out-0506.google.com (64.233.184.230) by a.mx.sunsite.dk with SMTP; 23 Apr 2007 17:18:42 -0000 Received: by wr-out-0506.google.com with SMTP id i28so1637783wra for ; Mon, 23 Apr 2007 10:18:41 -0700 (PDT) DKIM-Signature: a=rsa-sha1; c=relaxed/relaxed; d=gmail.com; s=beta; h=domainkey-signature:received:received:message-id:date:from:to:subject:cc:in-reply-to:mime-version:content-type:content-transfer-encoding:content-disposition:references; b=d/mwb90ppHKQCV9DjydoenXH6hAlKEKDZyDZ/T1z9BSLMWTEOz/TXrHvgYZ9kcVRCZqWTehTadteXpeMwQMhRlkRkyE4+4MIS79cHR/NL1Q7p3p3vU24llJWodYro6uwDR7WvX71FB1d2pmL9GkLPP2stDT9UM8lUhMgPGImWj8= DomainKey-Signature: a=rsa-sha1; c=nofws; d=gmail.com; s=beta; h=received:message-id:date:from:to:subject:cc:in-reply-to:mime-version:content-type:content-transfer-encoding:content-disposition:references; b=t6S3sgaB/umavGWVJbLD4nuW+sEKeTCa/yhV7s6YVNke6MyGBee5zrmVY6mfb+iMXSM4MdkASP26YyYu4T8SYtDeeQ/X6WldG8b9VsfbWQVhtu1XjkkQ2EipfmtbCquWgbN2cuXFADMElkfdNbBG7384rQ7+ta0W3iPSX7dSyd0= Received: by 10.78.151.3 with SMTP id y3mr1157207hud.1177348720755; Mon, 23 Apr 2007 10:18:40 -0700 (PDT) Received: by 10.78.45.10 with HTTP; Mon, 23 Apr 2007 10:18:40 -0700 (PDT) Message-ID: <237967ef0704231018j988a959xbe86c041d1d576fb@mail.gmail.com> Date: Mon, 23 Apr 2007 19:18:40 +0200 From: "Mikael Magnusson" To: "Peter Stephenson" Subject: Re: zsh 4.3.4 released Cc: "Zsh hackers list" In-Reply-To: <20070423174029.1e8293a9.pws@csr.com> MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8; format=flowed Content-Transfer-Encoding: 7bit Content-Disposition: inline References: <200704161647.l3GGl2FE027950@news01.csr.com> <20070419120758.e9774528.pws@csr.com> <237967ef0704201440g1c072ca8l451439d2ec8578bf@mail.gmail.com> <20070423104151.1f5f368e.pws@csr.com> <237967ef0704230550k41ddb13fy60deebd526ecc5ec@mail.gmail.com> <200704231318.l3NDIONr006499@news01.csr.com> <237967ef0704230722u7546461ehd6b3280df79352a0@mail.gmail.com> <200704231506.l3NF6Njx011759@news01.csr.com> <237967ef0704230900r21af3aa1od42cd0b41abe2251@mail.gmail.com> <20070423174029.1e8293a9.pws@csr.com> On 23/04/07, Peter Stephenson wrote: > "Mikael Magnusson" 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