This is the mail archive of the java-prs@gcc.gnu.org mailing list for the Java project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

[Bug libgcj/16204] New: File I/O fails on files >= 2^31 bytes (2GB)


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


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]