www.delorie.com/archives/browse.cgi   search  
Mail Archives: djgpp/1998/04/15/12:33:26

Date: Wed, 15 Apr 1998 19:30:55 +0300 (IDT)
From: Eli Zaretskii <eliz AT is DOT elta DOT co DOT il>
To: HANRIGOU Philippe <HANRIGOU AT cgste DOT mq>
cc: DJGPP <djgpp AT delorie DOT com>,
Martin Stromberg <Martin DOT Stromberg AT lu DOT erisoft DOT se>
Subject: Re: Problem with bash
In-Reply-To: <3534E5C1.6395@CGSTE.MQ>
Message-ID: <Pine.SUN.3.91.980415192238.10767A-100000@is>
MIME-Version: 1.0

On Wed, 15 Apr 1998, HANRIGOU Philippe wrote:

> bash seems to be blocked on its first "read" call in "rl_getc" function
> (file "lib/readline/readline.c"). More precisely in the line:
> 
> result = read (fileno (stream), &c, sizeof (unsigned char));

It figures.  IIRC Bash uses the termios functions to read console input.  
The DJGPP implementation of termios (written AFIK by Daisuke Aoyama and 
used almost exclusively by Bash) hooks calls to the `read' function and
makes the library call `__libc_termios_read' instead.  See the library 
sources on src/libc/posix/unistd/read.c and 
src/libc/posix/termios/tminit.c, for the gory details.  It seems that the 
problem is somewhere inside `__libc_termios_read' or its subroutines.

So I suggest to get the sources of the above two modules from 
djlsr201.zip, compile them with -g, link Bash with them, and step inside 
`read' and `__libc_termios_hook' with GDB.  I hope you will be at least 
able to see what part there hangs on you, and we could then scratch our 
heads to try to figure out why.

- Raw text -


  webmaster     delorie software   privacy  
  Copyright © 2019   by DJ Delorie     Updated Jul 2019