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

Re: Crash when invoking vared on a non-existent shell variable



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@xxxxxxx>                  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
**********************************************************************



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