[Date Prev][Date Next] [Thread Prev][Thread Next] [Date Index] [Thread Index]

Bug#346004: marked as done (iostream can't do files > 2GB)



Your message dated Sat, 04 Mar 2006 13:45:51 +0100
with message-id <874q2e9y4g.fsf@debian.org>
and subject line Bug#346004: iostream can't do files > 2GB
has caused the attached Bug report to be marked as done.

This means that you claim that the problem has been dealt with.
If this is not the case it is now your responsibility to reopen the
Bug report if necessary, and/or fix the problem forthwith.

(NB: If you are a system administrator and have no idea what I am
talking about this indicates a serious mail system misconfiguration
somewhere.  Please contact me immediately.)

Debian bug tracking system administrator
(administrator, Debian Bugs database)

--- Begin Message ---
Package: libstdc++5-3.3
Version: 3.3.5-13

When I run this program:

big.cc:
-----------------
#include <iostream>
#include <fstream>

using namespace std;

int main()
{

  ofstream test("/scratch/bigfile.txt");
  for (long i = 0; i < 1500000000; i++) {
    test << i;
  }
  test.close();

  return 0;
}
--------------------

$ ./big
Filesize limit exceeded
$ ls -l
total 2099204
-rw-r--r--  1 oetiker oep 2147483647 Jan  4 20:58 bigfile.txt

it ends after writing two GB ...

The bug is fixed in the gcc-3.4 distro ... details here:

http://gcc.gnu.org/bugzilla/show_bug.cgi?id=8610

This is on debian sarge.

cheers
tobi

-- 
 ______    __   _
/_  __/_  / /  (_) Oetiker @ ISG.EE, ETL F24.2, ETH, CH-8092 Zurich
 / // _ \/ _ \/ /  System Manager, Time Lord, Coder, Designer, Coach
/_/ \.__/_.__/_/   http://people.ee.ethz.ch/oetiker +41(0)44-632-5286


--- End Message ---
--- Begin Message ---
Package: libstdc++6-dev
Version: 3.4.5-2

This is fixed in 3.4.
-- 
	Falk

--- End Message ---

Reply to: