zsh-workers
 help / color / mirror / code / Atom feed
* Curent CVS crash on Cygwin
@ 2001-01-25  9:11 Andrej Borsenkow
  2001-01-25  9:24 ` Porgramming style (Was: Curent CVS crash on Cygwin) Andrej Borsenkow
  0 siblings, 1 reply; 4+ messages in thread
From: Andrej Borsenkow @ 2001-01-25  9:11 UTC (permalink / raw)
  To: ZSH workers mailing list

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:

#0  execzlefunc (func=0x6b1e0d40, args=0x6b1e3154) at
/tools/src/zsh/Src/Zle/zle_main.c:663
#1  0x6b1c9198 in zleread (lp=0xa03a8d8 "%S%n@%m%#%s ", rp=0x0, flags=3) at
/tools/src/zsh/Src/Zle/zle_main.c:571
#2  0x6766b825 in inputline () at /tools/src/zsh/Src/input.c:265
#3  0x6766b70d in ingetc () at /tools/src/zsh/Src/input.c:210
#4  0x67662924 in ihgetc () at /tools/src/zsh/Src/hist.c:236
#5  0x676712b4 in gettok () at /tools/src/zsh/Src/lex.c:628
#6  0x676709a9 in yylex () at /tools/src/zsh/Src/lex.c:344
#7  0x6768a4ad in parse_event () at /tools/src/zsh/Src/parse.c:425
#8  0x676680a5 in loop (toplevel=1, justonce=0) at
/tools/src/zsh/Src/init.c:123
#9  0x6766b358 in zsh_main (argc=1, argv=0xa0124b0) at
/tools/src/zsh/Src/init.c:1200
#10 0x40105f in main (argc=1, argv=0xa0124b0) at /tools/src/zsh/Src/main.c:37
#11 0x610038c5 in _size_of_stack_reserve__ ()
#12 0x61003aad in _size_of_stack_reserve__ ()
#13 0x61003aec in _size_of_stack_reserve__ ()
#14 0x4010b7 in cygwin_crt0 ()

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?

-andrej

Hmm ... actually this gdb insterface is not bad. And it finally works!

Have a nice DOS!
B >>


^ permalink raw reply	[flat|nested] 4+ messages in thread

* Porgramming style (Was: Curent CVS crash on Cygwin)
  2001-01-25  9:11 Curent CVS crash on Cygwin Andrej Borsenkow
@ 2001-01-25  9:24 ` Andrej Borsenkow
  0 siblings, 0 replies; 4+ messages in thread
From: Andrej Borsenkow @ 2001-01-25  9:24 UTC (permalink / raw)
  To: ZSH workers mailing list

>
> specifically it is a line with queue_signals()
>

O.K. it was missing mod_export for queueing_enabled. Which (new) variables
else are exported outside of main zsh executable?

-andrej


^ permalink raw reply	[flat|nested] 4+ messages in thread

* RE: Curent CVS crash on Cygwin
  2001-01-25  9:19 Curent CVS crash on Cygwin Sven Wischnowsky
@ 2001-01-25  9:48 ` Andrej Borsenkow
  0 siblings, 0 replies; 4+ messages in thread
From: Andrej Borsenkow @ 2001-01-25  9:48 UTC (permalink / raw)
  To: Sven Wischnowsky, zsh-workers


> 
> Erm, I forgot to add the `mod_export's to the signal-queue-variables.
> 
> Does this patch fix it?
> 

Yes.

-andrej


^ permalink raw reply	[flat|nested] 4+ messages in thread

* Re: Curent CVS crash on Cygwin
@ 2001-01-25  9:19 Sven Wischnowsky
  2001-01-25  9:48 ` Andrej Borsenkow
  0 siblings, 1 reply; 4+ messages in thread
From: Sven Wischnowsky @ 2001-01-25  9:19 UTC (permalink / raw)
  To: zsh-workers


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@informatik.hu-berlin.de


^ permalink raw reply	[flat|nested] 4+ messages in thread

end of thread, other threads:[~2001-01-25  9:49 UTC | newest]

Thread overview: 4+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2001-01-25  9:11 Curent CVS crash on Cygwin Andrej Borsenkow
2001-01-25  9:24 ` Porgramming style (Was: Curent CVS crash on Cygwin) Andrej Borsenkow
2001-01-25  9:19 Curent CVS crash on Cygwin Sven Wischnowsky
2001-01-25  9:48 ` Andrej Borsenkow

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).