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

Re: Curent CVS crash on Cygwin



Andrej Borsenkow wrote:

> I got around to checking if zsh still runs on Cygwin. Looks, like no more :)
> It outputs prompt and immediately crashes after I press RETURN (or any key for
> that matter). It crashes with and without -f. I'm still struggling with this
> gdb GUI, but stack trace is:
> 
> ...
> 
> specifically it is a line with queue_signals()
> 
> I completely missed all this discussion about signal queuing - Sven, where is
> the next place to look?

It's a macro in signals.h.

Erm, I forgot to add the `mod_export's to the signal-queue-variables.

Does this patch fix it?

Bye
 Sven

Index: Src/signals.c
===================================================================
RCS file: /cvsroot/zsh/zsh/Src/signals.c,v
retrieving revision 1.14
diff -u -r1.14 signals.c
--- Src/signals.c	2001/01/16 13:44:20	1.14
+++ Src/signals.c	2001/01/25 09:18:49
@@ -44,11 +44,11 @@
 /* Variables used by signal queueing */
 
 /**/
-int queueing_enabled, queue_front, queue_rear;
+mod_export int queueing_enabled, queue_front, queue_rear;
 /**/
-int signal_queue[MAX_QUEUE_SIZE];
+mod_export int signal_queue[MAX_QUEUE_SIZE];
 /**/
-sigset_t signal_mask_queue[MAX_QUEUE_SIZE];
+mod_export sigset_t signal_mask_queue[MAX_QUEUE_SIZE];
 
 /* This is only used on machines that don't understand signal sets.  *
  * On SYSV machines this will represent the signals that are blocked *

--
Sven Wischnowsky                         wischnow@xxxxxxxxxxxxxxxxxxxxxxx



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