Path: utzoo!utgpu!jarvis.csri.toronto.edu!mailrus!tut.cis.ohio-state.edu!UUNET.UU.NET!prisma!schene From: prisma!schene@UUNET.UU.NET (Tony Schene) Newsgroups: gnu.bash.bug Subject: bash bug report Message-ID: <8907252341.AA05188@uunet.uu.net> Date: 25 Jul 89 23:06:30 GMT Sender: daemon@tut.cis.ohio-state.edu Distribution: gnu Organization: GNUs Not Usenet Lines: 18 Version: #define VERSION 1.02 Hardware: Sun 4/280 OS: SunOS 4.0.2 with Prisma enhancements and bug fixes Compiler: Sun cc with Prisma bug fixes and enhancements Bug: bash crashes if ^D is input Repeat by: 1) Start up bash 2) Type ^D Comments: The problem is in yy_readline_get() in line 430 of parse.y, on the call to readline(). Readline() returns -1 on EOF, but this is not checked for, and the -1 is later passed to strlen() on line 435. Instant death. I don't have a clue as to how to propagate this back up gracefully, but I'm sure you do. Hope this helps.