zsh-workers
 help / color / mirror / code / Atom feed
* signal handling bug
@ 1996-03-13 22:59 Zoltan Hidvegi
  1996-03-14  8:29 ` Peter Stephenson
  0 siblings, 1 reply; 5+ messages in thread
From: Zoltan Hidvegi @ 1996-03-13 22:59 UTC (permalink / raw)
  To: Zsh hacking and development

Try

% zsh -c 'trap exit INT ; while true ; do sleep 1 ; done'

It is not interruptible with ^C.  The INT signal terminates the sleep 1
process but zsh ignores this and starts an other sleep.  Without sleep
^C works.  It also works without `trap exit INT' or in interractive shells.

Bye,

Zoltan
 



^ permalink raw reply	[flat|nested] 5+ messages in thread
* signal handling bug
@ 1996-06-20 23:09 Zoltan Hidvegi
  0 siblings, 0 replies; 5+ messages in thread
From: Zoltan Hidvegi @ 1996-06-20 23:09 UTC (permalink / raw)
  To: Zsh hacking and development

Here is a strange bug:

% zsh -f
hzoli% trap 'echo interrupt' INT
hzoli% while true ; do ; done
<press ^C many times quickly (eg. with an auto-repeating keyboard)>
interrupt
interrupt
BUG: empty(args) in exec.c
zsh: 1459 segmentation fault (core dumped)  zsh -f

The empry args message is very strange.  It can only happen if the
interrupt handler changes the args list of the interrupted execcmd()
function somehow.

The core dump comes from dotrap() in signals.c line 712 where the arguments
of the trap is freed after execution because someone already free'd that
(zsh-mem-warning  notices this).  Sometimes there is no coredump but after
a few interrupts the shell blocks the INT signal and continues execution.

Zoltan



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

end of thread, other threads:[~1996-06-20 23:26 UTC | newest]

Thread overview: 5+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
1996-03-13 22:59 signal handling bug Zoltan Hidvegi
1996-03-14  8:29 ` Peter Stephenson
1996-03-31 18:14   ` Zoltan Hidvegi
1996-04-16 15:56     ` Peter Stephenson
1996-06-20 23:09 Zoltan Hidvegi

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