Mail Archives: djgpp/1998/04/15/12:33:26
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 -