zsh-workers
 help / color / mirror / code / Atom feed
From: hzoli@cs.elte.hu (Zoltan Hidvegi)
To: chen@adi.com
Subject: Re: Serious HP-UX problem ! Shell hangs !
Date: Fri, 7 Jul 1995 21:05:01 +0100 (MET DST)	[thread overview]
Message-ID: <9507071905.AA21584@turan.elte.hu> (raw)
In-Reply-To: <9507071358.AA04372@grunt> from "chen@adi.com" at Jul 7, 95 09:58:41 am

Franklin Chen wrote:
> Richard Coleman writes:
> > > > This is a *serious* HP-UX 9 problem of the zsh, which it didn't have
> > > > with previous versions (not with beta6 at least).
> > > > 
> > > >   Situation :
> > > > 
> > > >   $ sleep 10 (any process will do)
> > > >   [Ctrl-Z] 
> > > >   zsh: 16763 suspended  sleep 10
> > > >   $ sleep 5 (any process)
> > > >   *hang*
> > > > 
> > > > Fiddling with gdb shows that we are hanging in sigsuspend(), which is
> > > > called exactly once: signals.c with POSIX_SIGNALS defined.
> > > 
> > > This is a quite old problem (it is present at least since beta6). It is OS
> > > dependent, and it is also present on ULTRIX. As I remember it appeared after
> > > Richard rewrote the signals code. He promised to fix that.
> > 
> > I don't have any HP or DEC machines, so it is difficult for me to
> > track down.  Does this still happen if you change POSIX_SIGNALS to
> > BSD_SIGNALS?  It might be bugs in the Posix code for these machines.
> > If this fixes it, I can just force configure to use BSD signals on
> > these machines.
> 
> I have been unable to reproduce this problem.
> 
> 6 ~ chen@gar$ uname -a
> HP-UX gar A.09.03 A 9000/720 2000519265 two-user license
> 7 ~ chen@gar$ echo $ZSH_VERSION
> 2.6-beta10
> 8 ~ chen@gar$ sleep 10
> 
> zsh: 11651 suspended  sleep 10
> 9 ~ chen@gar$ sleep 5
> 10 ~ chen@gar$ jobs
> [1]  + suspended  sleep 10
> 11 ~ chen@gar$ fg
> [1]  + continued  sleep 10
> 12 ~ chen@gar$ jobs
> 13 ~ chen@gar$
> 
> 
> 
> I build zsh (and all other autoconf-based software) with
> 	CC="c89 -D_HPUX_SOURCE" configure

This bug seems to be compiler dependent. Here is a quotion from my BUGS file:


------------------------------------------------------------------------
On ULTRIX 4.2, if NOTIFY is unset, zsh gets SEGV each time a background
job terminates if compiled with gcc-2.6.3 or c89. It does not happen
with cc (non-ANSI compiler, ansi2knr is used). Terminal suspension
does not seem work regardless of the compiler. HP-UX seems to have
similar problems.
------------------------------------------------------------------------

And with gcc 2.6.3 on ultrix 4.2 ^Z does not work. The job won'n continue
after ^Z but the shell also hangs.

Bye,
  Zoltan


      reply	other threads:[~1995-07-07 19:09 UTC|newest]

Thread overview: 6+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
1995-07-05 18:38 Felix von Leitner
1995-07-06 19:04 ` Zoltan Hidvegi
1995-07-06 22:45   ` Richard Coleman
1995-07-07 11:30     ` P.Stephenson
1995-07-07 13:58     ` chen
1995-07-07 20:05       ` Zoltan Hidvegi [this message]

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=9507071905.AA21584@turan.elte.hu \
    --to=hzoli@cs.elte.hu \
    --cc=chen@adi.com \
    /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).