🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

Article View: gnu.g++.lib.bug
Article #310

bug report

#310
From: William Hails
Date: Mon, 05 Oct 1992 13:17
37 lines
1449 bytes
As you request, here's a report of what appears to be a bug in the
libg++-2.0 iostream library. We've installed the library on both sun386
(SunOs 4.02) and Interactive (i386 SysV 3.2) and get the same result:

#include <iostream.h>
#include <stdlib.h>

main(int argc, char *argv[])
{
    char buf[512];

    while (cin >> buf)
	cout << buf << "\n";

    exit(0);
}

appears to work initially but then core dumps after what seems to be
about 1K or so of output.  Our gdb is limping but did enough to locate
the problem:

streambuf::sputc(int c) calling filebuf::overflow(int c) calling
streambuf::sputc(int c) calling filebuf::overflow(int c) calling ...

until it runs out of stack.

It doesn't seem to be an installation problem because as I say we see
the same behaviour on two distinct systems.

Any assistance would be greatly appreciated.

Cheers

       _
      / )   /) /)
     /_/ o // //
    /_)_(_(/_(/_
Technical Details
Message-ID: <4377.9210051317@devone.tardis.co.uk>
Path: arc1-ca.pugleaf.net!sparky!uunet!charon.amdahl.com!pacbell.com!iggy.GW.Vitalink.COM!cs.widener.edu!umn.edu!spool.mu.edu!sol.ctr.columbia.edu!zaphod.mps.ohio-state.edu!cis.ohio-state.edu!tarduk.UUCP!bill

Show Full Headers
Complete Article Headers
Newsgroups: gnu.g++.lib.bug
Path: arc1-ca.pugleaf.net!sparky!uunet!charon.amdahl.com!pacbell.com!iggy.GW.Vitalink.COM!cs.widener.edu!umn.edu!spool.mu.edu!sol.ctr.columbia.edu!zaphod.mps.ohio-state.edu!cis.ohio-state.edu!tarduk.UUCP!bill
From: bill@tarduk.UUCP (William Hails)
Subject: bug report
Message-ID: <4377.9210051317@devone.tardis.co.uk>
Sender: gnulists@ai.mit.edu
Organization: GNUs Not Usenet
Distribution: gnu
Date: Mon, 5 Oct 1992 13:17:43 GMT
Approved: bug-lib-g++@prep.ai.mit.edu
Lines: 39