Path: utzoo!utgpu!jarvis.csri.toronto.edu!mailrus!wuarchive!gem.mps.ohio-state.edu!tut.cis.ohio-state.edu!ucbvax!ernie.Berkeley.EDU!eklee From: eklee@ernie.Berkeley.EDU (Edward K. Lee) Newsgroups: gnu.g++.lib.bug Subject: Bug in streambuf.cc of libg++.a version 1.36 Message-ID: <31773@ucbvax.BERKELEY.EDU> Date: 7 Oct 89 02:56:04 GMT Sender: usenet@ucbvax.BERKELEY.EDU Reply-To: eklee@ernie.Berkeley.EDU.UUCP (Edward K. Lee) Organization: University of California, Berkeley Lines: 20 In function 'int Filebuf::underflow()' of file streambuff.cc, the first assignment to 'eptr' which reads: eptr = base + Fp->fp->_bufsize; should be: eptr = base + Fp->fp->_cnt+1; The supplied test programs tended to hang before I made this change. Misc. Questions/Comments: Is it really necessary to directly access the members of the FILE structure? (I'm running on Sprite which uses a different FILE structure than unix, requiring me to manually change all such references.) Has anyone gotten gdb 3.2 to run properly? In particular, I can't get 'info method' to work at all. Ed