zsh-workers
 help / color / mirror / code / Atom feed
From: Peter Stephenson <p.w.stephenson@ntlworld.com>
To: zsh-workers@sunsite.dk
Subject: Re: Test hang in Y01
Date: Sun, 11 Jan 2009 14:18:33 +0000	[thread overview]
Message-ID: <20090111141833.16aff555@pws-pc> (raw)
In-Reply-To: <20090111054506.GA15893@primenet.com.au>

On Sun, 11 Jan 2009 16:45:06 +1100
Geoff Wing <gcw@zsh.org> wrote:
> On Saturday 2009-01-10 21:48 +0000, Peter Stephenson output:
> :On Sat, 10 Jan 2009 10:44:49 -0500
> :"Vin Shelton" <acs@alumni.princeton.edu> wrote:
> :> With an up-to-date archive, I'm getting a hang in test Y01.
> :Haven't seen this with committed code, but I did get a hang in the
> :middle of changing it at one point.  Could you try "make clean" first?
> 
> Does it for me too.  My nightly build/test cron job first picked it up
> 12 hours ago so it only due to something in the last day or so.  It hangs
> with continuous CPU use.
> 
> #0  0xbbafba77 in read () from /usr/lib/libc.so.12
> #1  0xbbad0082 in bin_zpty (nam=0x80f96d0 "zpty", args=0xbfbe7784, ops=0xbfbe77f0, func=0) at zpty.c:573

There must be something screwy about the exit condition for the loop in
ptyread() such that read() is repeatedly being called but not returning
in such a way that the loop exits.  I did change this a few months ago,
noticed the condition was horrible, and tried to fix it up a bit without
being entirely sure what it was trying to do (you may have heard that
before...)

If "prog" is non-NULL at that point (which I can't see offhand), we are
more aggressive about continuing, but maybe need to trap some more
errors.  For example, if ret is -1 there may be (thinking about it,
almost certainly are) some values of errno where we need to exit the
loop.  Consequently it would probably be useful to find out what errno
was and if prog was non-NULL.

This is all guesswork.  I would put small amounts of money on this being
an existing race that's just shown up rather than a fundamentally new
bug that's just been introduced.

> BTW, the ChangeLog line for 26272 has some stuff elided.

Thanks, I've fixed this.

-- 
Peter Stephenson <p.w.stephenson@ntlworld.com>
Web page now at http://homepage.ntlworld.com/p.w.stephenson/


  reply	other threads:[~2009-01-11 14:19 UTC|newest]

Thread overview: 12+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2009-01-10 15:44 Vin Shelton
2009-01-10 17:34 ` Bart Schaefer
2009-01-10 18:34   ` Vin Shelton
2009-01-10 21:48 ` Peter Stephenson
     [not found]   ` <20a807210901101719p58000b77sd0e37bf8b86469a9@mail.gmail.com>
2009-01-11  1:22     ` Vin Shelton
2009-01-11  5:45   ` Geoff Wing
2009-01-11 14:18     ` Peter Stephenson [this message]
2009-01-11 17:46     ` Bart Schaefer
2009-01-12  2:25       ` Vin Shelton
2009-01-12  3:19         ` Geoff Wing
2009-01-13 12:00         ` Peter Stephenson
2009-01-13 12:23           ` Peter Stephenson

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=20090111141833.16aff555@pws-pc \
    --to=p.w.stephenson@ntlworld.com \
    --cc=zsh-workers@sunsite.dk \
    /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).