From mboxrd@z Thu Jan 1 00:00:00 1970 From: Greg Galloway To: egcs@cygnus.com Subject: Re: linux libio status Date: Wed, 15 Oct 1997 12:10:00 -0000 Message-id: <199710151815.OAA03636@nospokes.gtri.gatech.edu> X-SW-Source: 1997-10/msg00590.html I previously wrote: > By the way strstream seems to be broken if you let it dynamically allocate > it's own buffer. The following program gives a segmentation fault: > > #include > #include > #include > main() > { > ostrstream os; > os << "testing " << 123 << ends; > string s = os.str(); > exit(0); > } > My previous problems with strstream and dynamically allocated buffers appears to be gone. Upon looking at the call trace in gdb this program goes into an infinite recursion on the basic_string<> ctor until __builtin_new() finally dies giving a segmentation fault. Greg ---- Gregory L. Galloway Research Scientist I http://eoeml.gtri.gatech.edu/home/gregg/