public inbox for gcc-prs@sourceware.org
help / color / mirror / Atom feed
* Re: libstdc++/2913: iostreams ignore No space left on device condition
@ 2002-01-27 16:34 rodrigc
  0 siblings, 0 replies; 3+ messages in thread
From: rodrigc @ 2002-01-27 16:34 UTC (permalink / raw)
  To: donut, gcc-bugs, gcc-prs, pme

Synopsis: iostreams ignore No space left on device condition

State-Changed-From-To: feedback->closed
State-Changed-By: rodrigc
State-Changed-When: Sun Jan 27 16:34:20 2002
State-Changed-Why:
    http://gcc.gnu.org/ml/gcc-cvs/2002-01/msg00219.html

http://gcc.gnu.org/cgi-bin/gnatsweb.pl?cmd=view%20audit-trail&database=gcc&pr=2913


^ permalink raw reply	[flat|nested] 3+ messages in thread

* Re: libstdc++/2913: iostreams ignore No space left on device condition
@ 2002-01-10 21:38 bkoz
  0 siblings, 0 replies; 3+ messages in thread
From: bkoz @ 2002-01-10 21:38 UTC (permalink / raw)
  To: donut, gcc-bugs, gcc-prs, pme

Synopsis: iostreams ignore No space left on device condition

State-Changed-From-To: analyzed->feedback
State-Changed-By: bkoz
State-Changed-When: Thu Jan 10 21:38:54 2002
State-Changed-Why:
    Fixed in mainline with this, please confirm:
    
    2002-01-08  Benjamin Kosnik  <bkoz@redhat.com>
    
            libstdc++/2913
            libstdc++/4879
    	* include/bits/fstream.tcc (filebuf::_M_really_overflow): Test
    	return value of _M_file->sync().
    	(filebuf::showmanyc): Check for is_open.
    	* include/std/fstream (filebuf::sync): Tweak.
    	* testsuite/27_io/filebuf.cc: Tweak.

http://gcc.gnu.org/cgi-bin/gnatsweb.pl?cmd=view%20audit-trail&database=gcc&pr=2913


^ permalink raw reply	[flat|nested] 3+ messages in thread

* libstdc++/2913: iostreams ignore No space left on device condition
@ 2001-05-23  6:56 donut
  0 siblings, 0 replies; 3+ messages in thread
From: donut @ 2001-05-23  6:56 UTC (permalink / raw)
  To: gcc-gnats; +Cc: donut

>Number:         2913
>Category:       libstdc++
>Synopsis:       iostreams ignore No space left on device condition
>Confidential:   no
>Severity:       serious
>Priority:       high
>Responsible:    unassigned
>State:          open
>Class:          sw-bug
>Submitter-Id:   net
>Arrival-Date:   Wed May 23 06:56:02 PDT 2001
>Closed-Date:
>Last-Modified:
>Originator:     Matthew Mueller
>Release:        3.0 20010426 (Debian prerelease) (Debian testing/unstable)
>Organization:
>Environment:
System: Linux charon 2.4.4hpt #1 Thu May 3 15:30:52 MST 2001 i686 unknown
Architecture: i686

	
host: i386-pc-linux-gnu
build: i386-pc-linux-gnu
target: i386-pc-linux-gnu
configured with: ../src/configure -v --enable-languages=c,c++,java,f77,proto,objc --prefix=/usr --infodir=/share/info --mandir=/share/man --enable-shared --with-gnu-as --with-gnu-ld --with-system-zlib --enable-long-long --enable-nls --without-x --without-included-gettext --disable-checking --enable-threads=posix --enable-java-gc=boehm --with-cpp-install-dir=bin --enable-objc-gc i386-linux
>Description:
	
iostreams in the new libstc++ ignore out of space errors, no exception or
error flags are set.
>How-To-Repeat:
	
nospacetest.cpp:
#include <fstream>
#include <iostream>
using namespace std;
int main(void) {
	ofstream foo("foo.bar");
	foo << "hellohellohellohello\n";
	cout << foo.good() <<" "<< foo.eof() <<" "<< foo.fail() <<" "<< foo.bad() <<"\n";
	foo.close();
	cout << foo.good() <<" "<< foo.eof() <<" "<< foo.fail() <<" "<< foo.bad() <<"\n";
	return 0;
}

mount -t tmpfs tmpfs /mnt -o remount,defaults,size=0k,nr_inodes=1k
cd /mnt
nospacetest
1 0 0 0
1 0 0 0

output when compiled with gcc 2.95:
1 0 0 0
0 0 2 0

>Fix:
	
>Release-Note:
>Audit-Trail:
>Unformatted:


^ permalink raw reply	[flat|nested] 3+ messages in thread

end of thread, other threads:[~2002-01-28  0:34 UTC | newest]

Thread overview: 3+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2002-01-27 16:34 libstdc++/2913: iostreams ignore No space left on device condition rodrigc
  -- strict thread matches above, loose matches on Subject: below --
2002-01-10 21:38 bkoz
2001-05-23  6:56 donut

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).