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

Bug#116128: marked as done ([fixed in gcj-3.1] FileWriter problems)



Your message dated Sat, 11 Jan 2003 04:32:43 -0500
with message-id <E18XI0R-00062w-00@auric.debian.org>
and subject line Bug#116128: fixed in gcc-3.0 1:3.0.4ds3-14
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)

--------------------------------------
Received: (at submit) by bugs.debian.org; 18 Oct 2001 18:59:55 +0000
>From inet@zombie.inka.de Thu Oct 18 13:59:55 2001
Return-path: <inet@zombie.inka.de>
Received: from quechua.inka.de (mail.inka.de) [212.227.14.2] (mail)
	by master.debian.org with esmtp (Exim 3.12 1 (Debian))
	id 15uIOZ-0007by-00; Thu, 18 Oct 2001 13:59:55 -0500
Received: from zombie.inka.de 
	by mail.inka.de with uucp (rmailwrap 0.4) 
	id 15uIOX-0005mZ-00; Thu, 18 Oct 2001 20:59:53 +0200
Received: from inet by zombie with local (Exim 3.32 #1 (Debian))
	id 15uIBl-0002qw-00; Thu, 18 Oct 2001 20:46:41 +0200
Date: Thu, 18 Oct 2001 20:46:41 +0200
From: Eduard Bloch <blade@debian.org>
To: Debian Bug Tracking System <submit@bugs.debian.org>
Subject: gcj-3.0: FileWriter problems
Message-ID: <20011018204641.A10891@zombie.inka.de>
Mime-Version: 1.0
Content-Type: multipart/mixed; boundary="Qxx1br4bt0+wmkIi"
Content-Disposition: inline
User-Agent: Mutt/1.3.23i
X-Reportbug-Version: 1.31
Sender: Eduard Bloch <inet@zombie.inka.de>
Delivered-To: submit@bugs.debian.org


--Qxx1br4bt0+wmkIi
Content-Type: text/plain; charset=us-ascii
Content-Disposition: inline

Package: gcj-3.0
Version: 1:3.0.2-0pre011014
Severity: normal

Hello, following simple Java program crashes when compiled with gcj. If
I compile with javac and run it in kaffe, it works flawless. When
compiled with gcj...
gcj-3.0 -g fromFileToFile.java --main=fromFileToFile
then following happens:
./a.out einsteiger.txt asdf
Error while creating the new file...

And if I change the Exception to IOExcepion (as it should be), it
crashes or exits.

./a.out einsteiger.txt asdf
Exception in thread "main" java.lang.ArrayIndexOutOfBoundsException
   at 0x4018e174: java.lang.Throwable.Throwable() (/usr/lib/libgcj.so.2)
   at 0x4018475c: java.lang.Exception.Exception() (/usr/lib/libgcj.so.2)
   at 0x40188Abgebrochen
inet@zombie:~/studium/essy2/aufg.bl.2> addr2line: /proc/10926/exe: No such file or directory
inet@zombie:~/studium/essy2/aufg.bl.2> ./a.out einsteiger.txt asdf
Exception in thread "main" Abgebrochen

Gruss/Regards,
Eduard.
-- System Information
Debian Release: testing/unstable
Architecture: i386
Kernel: Linux zombie 2.4.10-ac12 #5 Son Okt 14 18:55:14 CEST 2001 i686
Locale: LANG=de_DE@euro, LC_CTYPE=de_DE@euro

Versions of packages gcj-3.0 depends on:
ii  gcc-3.0               1:3.0.2-0pre011014 The GNU C compiler.
ii  gcc-3.0-base          1:3.0.2-0pre011014 The GNU Compiler Collection (base 
ii  java-common           0.7                Base of all Java packages
ii  libc6                 2.2.4-3            GNU C Library: Shared libraries an
ii  libgcj2-dev           1:3.0.2-0pre011014 Java development headers and stati
ii  zlib1g                1:1.1.3-16         compression library - runtime

-- 
Akkulicht-Radler!
Foliengriller!
Anonymspender!
Vorfahrtverzichter!

--Qxx1br4bt0+wmkIi
Content-Type: text/x-java; charset=us-ascii
Content-Disposition: attachment; filename="fromFileToFile.java"

/* Eduard Bloch <blade@debian.org>, 2001
   Demo programm, aka FromHumanToKlingon
   Writtes each line in reverted char order from file a to file b
   License: GPL, feel free to modify */
import java.io.*;
public class fromFileToFile {
   private static String line;
   private static BufferedReader quelle;
   private static BufferedWriter ziel;

   public static void main(String[] args) {
      String fromFile;
      String toFile;

      try {
         fromFile = args[0];
         toFile = args[1];
      }
      catch (ArrayIndexOutOfBoundsException e) {
         System.err.println("Please give me a file to read from and one to write to.");
         return;
      }

      try {
         quelle = new BufferedReader(new FileReader(fromFile));
      } catch (FileNotFoundException e) {
         System.err.println("Source file not found, aborting...");
         return;
      }
      try {
         ziel = new BufferedWriter(new FileWriter(toFile));
      } catch (IOException e) {
         System.err.println("Error while creating the new file...");
      }
      try {
         while ( (line = quelle.readLine()) != null) {
            for(int i=line.length()-1; i>=0; i--) {
               try {
//                  System.out.println("Will crash soon!");
                  ziel.write(line,i,1);
// debug
//                  System.out.print(line.charAt(i));
               }
// "IOException" is broken too, the whole program crashes instead of doing the
// catch routine
               catch (IOException e) {
//               catch (Exception e) {
                  System.err.println("Error while creating the new file...");
                  quelle.close();
                  ziel.close();
                  return;
               }
            }
            ziel.newLine();
         }
      } catch (IOException e) {
         System.err.println("Error while creating the new file...");
      }
      try {
         quelle.close(); /* IMPORTANT */
         ziel.close();
      } catch (IOException e) {
         System.err.println("Error closing files.");
      }
   }
}

--Qxx1br4bt0+wmkIi--


---------------------------------------
Received: (at 116128-close) by bugs.debian.org; 11 Jan 2003 09:36:19 +0000
>From katie@auric.debian.org Sat Jan 11 03:36:18 2003
Return-path: <katie@auric.debian.org>
Received: from auric.debian.org [206.246.226.45] (mail)
	by master.debian.org with esmtp (Exim 3.12 1 (Debian))
	id 18XI3u-0006ZI-00; Sat, 11 Jan 2003 03:36:18 -0600
Received: from katie by auric.debian.org with local (Exim 3.35 1 (Debian))
	id 18XI0R-00062w-00; Sat, 11 Jan 2003 04:32:43 -0500
From: Matthias Klose <doko@debian.org>
To: 116128-close@bugs.debian.org
X-Katie: $Revision: 1.29 $
Subject: Bug#116128: fixed in gcc-3.0 1:3.0.4ds3-14
Message-Id: <E18XI0R-00062w-00@auric.debian.org>
Sender: Archive Administrator <katie@auric.debian.org>
Date: Sat, 11 Jan 2003 04:32:43 -0500
Delivered-To: 116128-close@bugs.debian.org

We believe that the bug you reported is fixed in the latest version of
gcc-3.0, which is due to be installed in the Debian FTP archive:

gcc-3.0-base_3.0.4-14_i386.deb
  to pool/main/g/gcc-3.0/gcc-3.0-base_3.0.4-14_i386.deb
gcc-3.0_3.0.4ds3-14.diff.gz
  to pool/main/g/gcc-3.0/gcc-3.0_3.0.4ds3-14.diff.gz
gcc-3.0_3.0.4ds3-14.dsc
  to pool/main/g/gcc-3.0/gcc-3.0_3.0.4ds3-14.dsc
libstdc++3_3.0.4-14_i386.deb
  to pool/main/g/gcc-3.0/libstdc++3_3.0.4-14_i386.deb



A summary of the changes between this version and the previous one is
attached.

Thank you for reporting the bug, which will now be closed.  If you
have further comments please address them to 116128@bugs.debian.org,
and the maintainer will reopen the bug report if appropriate.

Debian distribution maintenance software
pp.
Matthias Klose <doko@debian.org> (supplier of updated gcc-3.0 package)

(This message was generated automatically at their request; if you
believe that there is a problem with it please contact the archive
administrators by mailing ftpmaster@debian.org)


-----BEGIN PGP SIGNED MESSAGE-----

Format: 1.7
Date: Fri, 27 Dec 2002 18:53:57 +0100
Source: gcc-3.0
Binary: gcc-3.0-soft-float libstdc++3 gcc-3.0-base gcc-3.0-nof
Architecture: source i386
Version: 1:3.0.4ds3-14
Distribution: unstable
Urgency: low
Maintainer: Debian GCC maintainers <debian-gcc@lists.debian.org>
Changed-By: Matthias Klose <doko@debian.org>
Description: 
 gcc-3.0-base - The GNU Compiler Collection (base package)
 libstdc++3 - The GNU stdc++ library version 3
Closes: 94974 97904 100722 102353 105741 107633 108036 111613 116128 119635 121636 121668 123687 125649 127802 127890 128026 131399 134315 135967 137017 137959 140606 140995 141899 141900 141902 143912 144232 144584 146634 150232 155900 156792 158371 164135 165180 167569 167673 172353 173290
Changes: 
 gcc-3.0 (1:3.0.4ds3-14) unstable; urgency=low
 .
   * Build libstdc++ runtime only (on HPPA build gcc-3.0 as well as the
     default compiler).
     Note: The libstdc++ runtime does not build on a glibc-2.3.1 based
     system!
   * Add SH support.
   * Backport patch from HEAD to build with bison > 1.35.
   * Install gcj-wrapper (closes: #143912, #156792, #173290). Well this
     doesn't help much as we don't build gcj-3.0 anymore ...
   * Install fixed gij-wrapper (closes: #167569). Doesn't help anymore.
   * Closing reports for the packages that are not built anymore from
     this source package and are fixed in a newer version (gcc-3.2.x),
     which becomes the default version now:
     - General:
       + Use mkstemp instead of mktemp (closes: #127802).
     - Preprocessor:
       + Fix redundant error message from cpp (closes: #100722).
     - C:
       + Optimization issue on ix86 (pointless moving) (closes: #97904).
       + Miscompilation of allegro on ix86 (closes: #105741).
       + Fix generation of ..ng references for static aliases (alpha-linux).
         (closes: #108036).
       + ICE compiling pari on hppa (closes: #111613).
       + ICE on ia64 in instantiate_virtual_regs_1 (closes: #121668).
       + ICE in c-typeck.c (closes: #123687).
       + ICE in gen_subprogram_die on alpha (closes: #127890).
       + SEGV in initialization of flexible char array member (closes: #131399).
       + ICE on arm compiling lapack (closes: #135967).
       + ICE in incomplete_type_error (closes: #140606).
       + Fix -Wswitch (also part of -Wall) (closes: #140995).
       + Wrong code in mke2fs on hppa (closes: #150232).
       + sin(a) * sin(b) gives wrong result (closes: #164135).
     - C++:
       + Error in std library headers on arm (closes: #107633).
       + ICE nr. 19970302 (closes: #119635).
       + std::wcout does not perform encoding conversions (closes: #128026).
       + SEGV, when compiling iostream.h with -fPIC (closes: #134315).
       + Fixed segmentation fault in included code for <rope> (closes: #137017).
       + Fix with exception handling and -O (closes: #144232).
       + Fix octave-2.1 build failure on ia64 (closes: #144584).
       + nonstandard overloads in num_get facet (closes: #155900).
       + ICE in expand_end_loop with -O (closes: #158371).
     - Fortran:
       + Fix blas build failure on arm (closes: #137959).
     - Java:
       + Interface members are public by default (closes: #94974).
       + Strange message with -fno-bounds-check in combination with -W.
         (closes: #102353).
       + Crash in FileWriter using IOException (closes: #116128).
       + Fix ObjectInputStream.readObject() calling constructors.
         (closes: #121636).
       + gij: better error reporting on `class not found' (closes: #125649).
       + Lockup during .java->.class compilation (closes: #141899).
       + Compile breaks using temporary inner class instance (closes: #141900).
       + Default constructor for inner class causes broken bytecode.
         (closes: #141902).
       + gij-3.2 linked against libgcc1 (closes: #165180).
       + gij-wrapper understands -classpath parameter (closes: #146634).
       + gij-3.2 doesn't ignore -jar when run as "java" (closes: #167673).
     - ObjC;
       + ICE on alpha (closes: #172353).
   * Reassign unfixed bugs to the corresponding -3.2.x package:
     reassign 94701 gcc-3.2
     reassign 95318 gcc-3.2
     reassign 105309 gcc-3.2
     reassign 106866 gcc-3.2
     reassign 121282 gcc-3.2
     reassign 122103 gcc-3.2
     reassign 128950 gcc-3.2
     reassign 128993 gcc-3.2
     reassign 140201 libstdc++5
     reassign 151357 g++-3.2
     reassign 165635 gcj-3.2
Files: 
 ba55ec232ff94f84b493028fada10f61 1317 devel standard gcc-3.0_3.0.4ds3-14.dsc
 c39d2af4372576c676f374f5669c0048 4988358 devel standard gcc-3.0_3.0.4ds3-14.diff.gz
 39f6491a8438a6bf4ea5f2c85a571cc6 114972 devel oldlibs gcc-3.0-base_3.0.4-14_i386.deb
 d540a3f1876db903f74a7202129ee90f 203406 base standard libstdc++3_3.0.4-14_i386.deb

-----BEGIN PGP SIGNATURE-----
Version: 2.6.3ia
Charset: noconv
Comment: Requires PGP version 2.6 or later.

iQEVAwUBPhCoJguDzMCIcnEhAQGgjwgAqhlamoPOz3LtFEwsJVuKpVPse46uqTkF
pslL9tam7LCm33tU5n5sla90r2K79p9Nw4XE+PCIoudcUIgBvCuSeanS6Fp/MTjP
nPkIL928SWtMcTz134h2bxRr4gGJ0O4xcwcJFe5wD9BnZo8IDgNL7cMDEkI0Qe1j
mBS8wuEEy12GWUKYtxqAqnFtYN9OEizc48HBMrf/MTK9ND0Yg6WmlAK+G7L0qI7i
p0yJNarZ/CZ3jCzxieeXfaRHpxdmpwq44d3ppRuNZcKgQ2AnrNO57FBdJJeqpRCb
jCEqIxDn4VrimXhpyTX84Kdd3k1sEwpJ8ibz/tZDIKU/H2SGujWmbw==
=o8J1
-----END PGP SIGNATURE-----



Reply to: