zsh-workers
 help / color / mirror / code / Atom feed
From: Peter Stephenson <pws@csr.com>
To: John Cooper <john.cooper@eu.citrix.com>,
	zsh-workers@sunsite.dk (Zsh hackers list)
Subject: Re: Crash when invoking vared on a non-existent shell variable
Date: Wed, 24 Mar 2004 16:30:50 +0000	[thread overview]
Message-ID: <9469.1080145850@csr.com> (raw)
In-Reply-To: "John Cooper"'s message of "Wed, 24 Mar 2004 16:07:40 GMT." <B5885AA769039C49BD9295955CB2E0E40589799B@lonpexch501.ctxuk.citrix.com>

John Cooper wrote:
> When I invoke vared on a variable that doesn't exist, the shell crashes with
> the following:

Are you runing over a problem I sometimes have with cygwin that zwarnnam
doesn't get linked into modules properly and the shell crashes when a
module tries to call it?  If so, it's not just me and it should be
reported.  You should be able to see warnings about trying to import
zwarnnam as a data symbol.

It seems that the last symbol in the export list is not scanned properly
by dlltool.  My simple-minded workaround is to add another one even later.
(Remake until the warnings go away.  I'm not sure if the dependencies
are quite up to this.)

Index: Src/utils.c
===================================================================
RCS file: /cvsroot/zsh/zsh/Src/utils.c,v
retrieving revision 1.57
diff -u -r1.57 utils.c
--- Src/utils.c	17 Dec 2003 20:47:39 -0000	1.57
+++ Src/utils.c	24 Mar 2004 16:16:29 -0000
@@ -110,6 +110,13 @@
     zerrmsg(fmt, str, num);
 }
 
+#ifdef __CYGWIN__
+mod_export void
+zz_plural_z_alpha(void)
+{
+}
+#endif
+
 /**/
 void
 zerrmsg(const char *fmt, const char *str, int num)

-- 
Peter Stephenson <pws@csr.com>                  Software Engineer
CSR Ltd., Science Park, Milton Road,
Cambridge, CB4 0WH, UK                          Tel: +44 (0)1223 692070


**********************************************************************
This email and any files transmitted with it are confidential and
intended solely for the use of the individual or entity to whom they
are addressed. If you have received this email in error please notify
the system manager.

This footnote also confirms that this email message has been swept by
MIMEsweeper for the presence of computer viruses.

www.mimesweeper.com
**********************************************************************


       reply	other threads:[~2004-03-24 16:31 UTC|newest]

Thread overview: 3+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
     [not found] <B5885AA769039C49BD9295955CB2E0E40589799B@lonpexch501.ctxuk.citrix.com>
2004-03-24 16:30 ` Peter Stephenson [this message]
     [not found] <B5885AA769039C49BD9295955CB2E0E40589799E@lonpexch501.ctxuk.citrix.com>
2004-03-25 10:10 ` Peter Stephenson
     [not found] <B5885AA769039C49BD9295955CB2E0E4058979A1@lonpexch501.ctxuk.citrix.com>
2004-03-25 12:52 ` 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=9469.1080145850@csr.com \
    --to=pws@csr.com \
    --cc=john.cooper@eu.citrix.com \
    --cc=zsh-workers@sunsite.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).