git/list[1] front-page[2] threads[3] people[4] search[5] about
 

Re: git-gui hangs on read

From
Shawn O. Pearce <spearce@spearce.org>
Date
Apr 22, 2008, 00:13 UTC
Message-ID
<20080422001311.GS29771@spearce.org>
In-Reply-To
<b3889dff0804210723s620363fdscba43c79dbb62d55@mail.gmail.com>
Benjamin Collins <ben.collins@acm.org> wrote:
> I just upgraded a few machines (RHEL 4.4) to the latest stable, and
> git-gui stopped working.  It just hangs forever if it's in a git
> repository.
...
Show 13 quoted lines
> [pid 16903] write(1, "@(#) International Ispell Versio"..., 68 <unfinished ...>
> [pid 16897] <... read resumed> "@(#) International Ispell Versio"..., 4096) = 68
> [pid 16903] <... write resumed> )       = 68
> [pid 16903] fstat(0, {st_mode=S_IFIFO|0600, st_size=0, ...}) = 0
> [pid 16903] mmap(NULL, 4096, PROT_READ|PROT_WRITE,
> MAP_PRIVATE|MAP_ANONYMOUS, -1, 0) = 0x2a983cf000
> [pid 16903] read(0,  <unfinished ...>
> [pid 16897] write(5, "!\n$$cr master\n", 14) = 14
> [pid 16903] <... read resumed> "!\n$$cr master\n", 4096) = 14
> [pid 16897] read(6,  <unfinished ...>
> [pid 16903] read(0,
> 
> Has anyone seen this before?

Nope. This was a new feature of git-gui 0.10; we now launch an aspell session in the background via a bi-directional pipe and use it to spell check the commit message area on the fly. The reason Git 1.5.4 doesn't have this problem is because it ships with git-gui 0.9.x, which doesn't have this spell check.

I'm not sure why your system is hanging. I've used git-gui 0.10 on Mac OS 10.4, 10.5 and Windows without any issues for many weeks prior to the 1.5.5 release. Doesn't mean there isn't possibly something wrong here, I just had thought this was pretty stable code at this point.

>From the strace it looks like your aspell is not giving us a
reply to the "$$cr master" command.  What does this give you?
	aspell --mode=none --encoding=UTF-8 pipe <<EOF
	!
	$$cr master
	EOF
-- 
Shawn.
Previous: Benjamin CollinsNext: Benjamin Collins
Message 3 of 12 in “git-gui hangs on read”
  1. Benjamin CollinsApr 21, 2008
  2. Benjamin CollinsApr 21, 2008
  3. Shawn O. PearceApr 22, 2008
  4. Benjamin CollinsApr 22, 2008
  5. Shawn O. PearceApr 22, 2008
  6. Gustaf HendebyApr 23, 2008
  7. Benjamin CollinsApr 23, 2008
  8. Gustaf HendebyApr 23, 2008
  9. Shawn O. PearceApr 24, 2008
  10. Gustaf HendebyApr 24, 2008
  11. Shawn O. PearceApr 25, 2008
  12. Gustaf HendebyApr 25, 2008

Read the whole thread, see it on lore, or plain text.

$ cat FOOTERMessages come from the public archive at lore.kernel.org/git, fetched every hour. The front page is chosen and written each morning by an AI editor and can be wrong; the threads themselves are the record. About and API. For agents: an MCP server at https://gitlist.dev/mcp, and any thread, story or person page as Markdown by adding .md to its URL (or sending Accept: text/markdown). Details in /llms.txt.