public inbox for java-prs@sourceware.org
help / color / mirror / Atom feed
* [Bug libgcj/16204] New: File I/O fails on files >= 2^31 bytes (2GB)
@ 2004-06-25 19:28 mckinlay at redhat dot com
  2004-06-25 19:47 ` [Bug libgcj/16204] " mckinlay at redhat dot com
                   ` (4 more replies)
  0 siblings, 5 replies; 6+ messages in thread
From: mckinlay at redhat dot com @ 2004-06-25 19:28 UTC (permalink / raw)
  To: java-prs

libgcj does not appear to support files > 2GB. However the Sun implementation
works fine on the same system & file system. The attached test case fails with
the following error:

$ gij LargeFile
Exception in thread "main" java.io.IOException: Invalid argument
   at gnu.java.nio.channels.FileChannelImpl.seek(long)
(/local/gcc-clean/lib/libgcj.so.6.0.0)
   at gnu.java.nio.channels.FileChannelImpl.position(long)
(/local/gcc-clean/lib/libgcj.so.6.0.0)
   at java.io.RandomAccessFile.seek(long) (/local/gcc-clean/lib/libgcj.so.6.0.0)

It appears we need to enable LFS support. see:

http://www.suse.de/~aj/linux_lfs.html

-- 
           Summary: File I/O fails on files >= 2^31 bytes (2GB)
           Product: gcc
           Version: unknown
            Status: UNCONFIRMED
          Severity: normal
          Priority: P2
         Component: libgcj
        AssignedTo: unassigned at gcc dot gnu dot org
        ReportedBy: mckinlay at redhat dot com
                CC: gcc-bugs at gcc dot gnu dot org,java-prs at gcc dot gnu
                    dot org
  GCC host triplet: i686-pc-linux-gnu


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


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

* [Bug libgcj/16204] File I/O fails on files >= 2^31 bytes (2GB)
  2004-06-25 19:28 [Bug libgcj/16204] New: File I/O fails on files >= 2^31 bytes (2GB) mckinlay at redhat dot com
@ 2004-06-25 19:47 ` mckinlay at redhat dot com
  2004-06-25 21:11 ` pinskia at gcc dot gnu dot org
                   ` (3 subsequent siblings)
  4 siblings, 0 replies; 6+ messages in thread
From: mckinlay at redhat dot com @ 2004-06-25 19:47 UTC (permalink / raw)
  To: java-prs


------- Additional Comments From mckinlay at redhat dot com  2004-06-25 19:28 -------
Created an attachment (id=6631)
 --> (http://gcc.gnu.org/bugzilla/attachment.cgi?id=6631&action=view)
Test case


-- 


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


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

* [Bug libgcj/16204] File I/O fails on files >= 2^31 bytes (2GB)
  2004-06-25 19:28 [Bug libgcj/16204] New: File I/O fails on files >= 2^31 bytes (2GB) mckinlay at redhat dot com
  2004-06-25 19:47 ` [Bug libgcj/16204] " mckinlay at redhat dot com
@ 2004-06-25 21:11 ` pinskia at gcc dot gnu dot org
  2004-06-26 12:52 ` pinskia at gcc dot gnu dot org
                   ` (2 subsequent siblings)
  4 siblings, 0 replies; 6+ messages in thread
From: pinskia at gcc dot gnu dot org @ 2004-06-25 21:11 UTC (permalink / raw)
  To: java-prs


------- Additional Comments From pinskia at gcc dot gnu dot org  2004-06-25 21:02 -------
I should note on sane OS's (all *BSD [Darwin is included]) offset_t is always 64bit.

-- 
           What    |Removed                     |Added
----------------------------------------------------------------------------
   GCC host triplet|i686-pc-linux-gnu           |
 GCC target triplet|                            |i686-pc-linux-gnu


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


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

* [Bug libgcj/16204] File I/O fails on files >= 2^31 bytes (2GB)
  2004-06-25 19:28 [Bug libgcj/16204] New: File I/O fails on files >= 2^31 bytes (2GB) mckinlay at redhat dot com
  2004-06-25 19:47 ` [Bug libgcj/16204] " mckinlay at redhat dot com
  2004-06-25 21:11 ` pinskia at gcc dot gnu dot org
@ 2004-06-26 12:52 ` pinskia at gcc dot gnu dot org
  2004-07-15  0:58 ` cvs-commit at gcc dot gnu dot org
  2004-07-15  1:01 ` mckinlay at redhat dot com
  4 siblings, 0 replies; 6+ messages in thread
From: pinskia at gcc dot gnu dot org @ 2004-06-26 12:52 UTC (permalink / raw)
  To: java-prs



-- 
           What    |Removed                     |Added
----------------------------------------------------------------------------
            Version|unknown                     |3.5.0


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


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

* [Bug libgcj/16204] File I/O fails on files >= 2^31 bytes (2GB)
  2004-06-25 19:28 [Bug libgcj/16204] New: File I/O fails on files >= 2^31 bytes (2GB) mckinlay at redhat dot com
                   ` (2 preceding siblings ...)
  2004-06-26 12:52 ` pinskia at gcc dot gnu dot org
@ 2004-07-15  0:58 ` cvs-commit at gcc dot gnu dot org
  2004-07-15  1:01 ` mckinlay at redhat dot com
  4 siblings, 0 replies; 6+ messages in thread
From: cvs-commit at gcc dot gnu dot org @ 2004-07-15  0:58 UTC (permalink / raw)
  To: java-prs


------- Additional Comments From cvs-commit at gcc dot gnu dot org  2004-07-15 00:58 -------
Subject: Bug 16204

CVSROOT:	/cvs/gcc
Module name:	gcc
Changes by:	bryce@gcc.gnu.org	2004-07-15 00:58:41

Modified files:
	libjava        : ChangeLog Makefile.am Makefile.in 
Added files:
	libjava/testsuite/libjava.lang: LargeFile.java LargeFile.out 

Log message:
	2004-07-14  Bryce McKinlay  <mckinlay@redhat.com>
	
	PR libgcj/16204
	* Makefile.am (AM_CXXFLAGS): Add -D_FILE_OFFSET_BITS=64 to enable
	large file support.
	* Makefile.in: Rebuilt.
	* testsuite/libjava.lang/LargeFile.java: New test case.
	* testsuite/libjava.lang/LargeFile.out: New file.

Patches:
http://gcc.gnu.org/cgi-bin/cvsweb.cgi/gcc/libjava/ChangeLog.diff?cvsroot=gcc&r1=1.2932&r2=1.2933
http://gcc.gnu.org/cgi-bin/cvsweb.cgi/gcc/libjava/Makefile.am.diff?cvsroot=gcc&r1=1.388&r2=1.389
http://gcc.gnu.org/cgi-bin/cvsweb.cgi/gcc/libjava/Makefile.in.diff?cvsroot=gcc&r1=1.412&r2=1.413
http://gcc.gnu.org/cgi-bin/cvsweb.cgi/gcc/libjava/testsuite/libjava.lang/LargeFile.java.diff?cvsroot=gcc&r1=NONE&r2=1.1
http://gcc.gnu.org/cgi-bin/cvsweb.cgi/gcc/libjava/testsuite/libjava.lang/LargeFile.out.diff?cvsroot=gcc&r1=NONE&r2=1.1



-- 


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


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

* [Bug libgcj/16204] File I/O fails on files >= 2^31 bytes (2GB)
  2004-06-25 19:28 [Bug libgcj/16204] New: File I/O fails on files >= 2^31 bytes (2GB) mckinlay at redhat dot com
                   ` (3 preceding siblings ...)
  2004-07-15  0:58 ` cvs-commit at gcc dot gnu dot org
@ 2004-07-15  1:01 ` mckinlay at redhat dot com
  4 siblings, 0 replies; 6+ messages in thread
From: mckinlay at redhat dot com @ 2004-07-15  1:01 UTC (permalink / raw)
  To: java-prs


------- Additional Comments From mckinlay at redhat dot com  2004-07-15 01:01 -------
Fix committed to HEAD.

-- 
           What    |Removed                     |Added
----------------------------------------------------------------------------
             Status|UNCONFIRMED                 |RESOLVED
         Resolution|                            |FIXED
   Target Milestone|---                         |3.5.0


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


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

end of thread, other threads:[~2004-07-15  1:01 UTC | newest]

Thread overview: 6+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2004-06-25 19:28 [Bug libgcj/16204] New: File I/O fails on files >= 2^31 bytes (2GB) mckinlay at redhat dot com
2004-06-25 19:47 ` [Bug libgcj/16204] " mckinlay at redhat dot com
2004-06-25 21:11 ` pinskia at gcc dot gnu dot org
2004-06-26 12:52 ` pinskia at gcc dot gnu dot org
2004-07-15  0:58 ` cvs-commit at gcc dot gnu dot org
2004-07-15  1:01 ` mckinlay at redhat dot com

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).