Your message dated Sun, 29 Jan 2006 00:32:15 -0800 with message-id <[EMAIL PROTECTED]> and subject line Bug#348792: fixed in gcc-4.0 4.0.2-8 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; 19 Jan 2006 00:01:03 +0000 >From [EMAIL PROTECTED] Wed Jan 18 16:01:03 2006 Return-path: <[EMAIL PROTECTED]> Received: from smtp02.mrf.mail.rcn.net ([207.172.4.62]) by spohr.debian.org with esmtp (Exim 4.50) id 1EzNEd-0000EN-Fw for [EMAIL PROTECTED]; Wed, 18 Jan 2006 16:01:03 -0800 Received: from 208-58-77-33.c3-0.grg-ubr3.lnh-grg.md.cable.rcn.com (HELO tux64.internal.ucko.debian.net) ([208.58.77.33]) by smtp02.mrf.mail.rcn.net with ESMTP; 18 Jan 2006 19:01:02 -0500 X-IronPort-AV: i="3.99,382,1131339600"; d="scan'208"; a="196446530:sNHT47919348" Received: from amu by tux64.internal.ucko.debian.net with local (Exim 4.60) (envelope-from <[EMAIL PROTECTED]>) id 1EzNEb-0002qD-Ry for [EMAIL PROTECTED]; Wed, 18 Jan 2006 19:01:01 -0500 Content-Type: text/plain; charset="us-ascii" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit From: "Aaron M. Ucko" <[EMAIL PROTECTED]> To: Debian Bug Tracking System <[EMAIL PROTECTED]> Subject: libgcj6: string-to-double conversion can throw NullPointerException Message-ID: <[EMAIL PROTECTED]> X-Mailer: reportbug 3.18 Date: Wed, 18 Jan 2006 19:01:01 -0500 X-Debbugs-Cc: [EMAIL PROTECTED] Delivered-To: [EMAIL PROTECTED] X-Spam-Checker-Version: SpamAssassin 2.60-bugs.debian.org_2005_01_02 (1.212-2003-09-23-exp) on spohr.debian.org X-Spam-Level: X-Spam-Status: No, hits=-11.0 required=4.0 tests=BAYES_00,HAS_PACKAGE, X_DEBBUGS_CC autolearn=ham version=2.60-bugs.debian.org_2005_01_02 Package: libgcj6 Version: 4.0.2-7 Severity: important For some reason, attempting to convert decimal strings that correspond to numbers below a certain threshold (between 4.24374e-214 and 4.24375e-214) to doubles (which should have an appreciably wider range) ends up segfaulting within the guts of libgcj: $ cat DoubleConvTest.java class DoubleConvTest { public static void main(String[] args) { String s = args[0]; System.out.print("in: " + s + "\n"); Double d = new Double(s); System.out.print("out: " + d + "\n"); } } $ gcj -g --main=DoubleConvTest DoubleConvTest.java -o DoubleConvTest $ gdb --args ./DoubleConvTest 4e-214 GNU gdb 6.4-debian Copyright 2005 Free Software Foundation, Inc. GDB is free software, covered by the GNU General Public License, and you are welcome to change it and/or distribute copies of it under certain conditions. Type "show copying" to see the conditions. There is absolutely no warranty for GDB. Type "show warranty" for details. This GDB was configured as "x86_64-linux-gnu"...Using host libthread_db library "/lib/libthread_db.so.1". (gdb) run Starting program: /home/amu/tmp/DoubleConvTest 4e-214 [Thread debugging using libthread_db enabled] [New Thread 46912531307856 (LWP 10872)] [New Thread 1082132832 (LWP 10875)] in: 4e-214 Program received signal SIGSEGV, Segmentation fault. [Switching to Thread 46912531307856 (LWP 10872)] 0x00002aaaab8dd4bb in _Jv_mult (ptr=0x7fffffaa9b30, a=0x7fffffaaa640, b=0xffff) at ../../../src/libjava/java/lang/mprec.c:328 328 ../../../src/libjava/java/lang/mprec.c: No such file or directory. in ../../../src/libjava/java/lang/mprec.c (gdb) where #0 0x00002aaaab8dd4bb in _Jv_mult (ptr=0x7fffffaa9b30, a=0x7fffffaaa640, b=0xffff) at ../../../src/libjava/java/lang/mprec.c:328 #1 0x00002aaaab8dd64d in _Jv_pow5mult (ptr=0x7fffffaa9b30, b=0x7fffffaaa640, k=13) at ../../../src/libjava/java/lang/mprec.c:432 #2 0x00002aaaab8db0d9 in _Jv_strtod_r (ptr=0x7fffffaa9b30, s00=<value optimized out>, se=0x7fffffaaacd8) at ../../../src/libjava/java/lang/strtod.c:473 #3 0x00002aaaab8cc170 in java::lang::Double::parseDouble (str=0x2aaaaab82b40) at ../../../src/libjava/java/lang/natDouble.cc:208 #4 0x00002aaaaba61563 in java.lang.Double.Double(java.lang.String) ( this=0x2aaaaab43d30, s=0x2aaaaab82b40) at Double.java:140 #5 0x0000000000401089 in DoubleConvTest.main(java.lang.String[]) ( args=0x2aaaaab8afd8) at DoubleConvTest.java:5 #6 0x00002aaaab8d1b40 in _Jv_ThreadRun (thread=0x2aaaaab51d90) at ../../../src/libjava/java/lang/natThread.cc:296 #7 0x00002aaaab899398 in _Jv_RunMain (vm_args=<value optimized out>, klass=0x5018a0, name=0x0, argc=2, argv=0x7fffffaaaf38, is_jar=false) at ../../../src/libjava/prims.cc:1356 #8 0x0000000000400f68 in main (argc=2, argv=0x7fffffaaaf38) at /tmp/amu/_0/ccKhN7Bl.i:11 (gdb) cont Continuing. Exception in thread "main" [New Thread 1090525536 (LWP 10876)] java.lang.NullPointerException at java.lang.Double.parseDouble(java.lang.String) (/usr/lib/libgcj.so.6.0.0) at java.lang.Double.Double(java.lang.String) (/usr/lib/libgcj.so.6.0.0) at DoubleConvTest.main(java.lang.String[]) (/home/amu/tmp/DoubleConvTest.java:5) at .main (/tmp/amu/_0/ccKhN7Bl.i:12) at .__libc_start_main (/lib/libc-2.3.5.so) at ._start (/home/amu/tmp/../sysdeps/x86_64/elf/start.S:116) Program exited with code 01. The same lossage occurs when compiling to bytecode and running it with gij. This is causing kaffe to FTBFS on amd64, because it cannot compile the definition of java.lang.Double.MIN_VALUE. (Likewise for ikvm, but that's been FTBFSing lately for unrelated reasons, so it's unclear how much fixing this would help with that.) -- System Information: Debian Release: testing/unstable APT prefers unstable APT policy: (500, 'unstable'), (500, 'testing'), (500, 'stable'), (1, 'sarge-unsupported') Architecture: amd64 (x86_64) Shell: /bin/sh linked to /bin/bash Kernel: Linux 2.6.15 Locale: LANG=en_US.UTF-8, LC_CTYPE=en_US.UTF-8 (charmap=UTF-8) Versions of packages libgcj6 depends on: ii gcj-4.0-base 4.0.2-7 The GNU Compiler Collection (gcj b ii libc6 2.3.5-12 GNU C Library: Shared libraries an ii libgcj-common 1:4.0.2-7 Java runtime library (common files ii zlib1g 1:1.2.3-9 compression library - runtime Versions of packages libgcj6 recommends: ii libgcj6-jar 4.0.2-7 Java runtime library for use with -- no debconf information --------------------------------------- Received: (at 348792-close) by bugs.debian.org; 29 Jan 2006 08:40:30 +0000 >From [EMAIL PROTECTED] Sun Jan 29 00:40:30 2006 Return-path: <[EMAIL PROTECTED]> Received: from katie by spohr.debian.org with local (Exim 4.50) id 1F37yp-0003tu-Nv; Sun, 29 Jan 2006 00:32:15 -0800 From: Matthias Klose <[EMAIL PROTECTED]> To: [EMAIL PROTECTED] X-Katie: $Revision: 1.65 $ Subject: Bug#348792: fixed in gcc-4.0 4.0.2-8 Message-Id: <[EMAIL PROTECTED]> Sender: Archive Administrator <[EMAIL PROTECTED]> Date: Sun, 29 Jan 2006 00:32:15 -0800 X-Spam-Checker-Version: SpamAssassin 2.60-bugs.debian.org_2005_01_02 (1.212-2003-09-23-exp) on spohr.debian.org X-Spam-Level: X-Spam-Status: No, hits=-6.0 required=4.0 tests=BAYES_00,HAS_BUG_NUMBER autolearn=no version=2.60-bugs.debian.org_2005_01_02 Source: gcc-4.0 Source-Version: 4.0.2-8 We believe that the bug you reported is fixed in the latest version of gcc-4.0, which is due to be installed in the Debian FTP archive: cpp-4.0-doc_4.0.2-8_all.deb to pool/main/g/gcc-4.0/cpp-4.0-doc_4.0.2-8_all.deb cpp-4.0_4.0.2-8_i386.deb to pool/main/g/gcc-4.0/cpp-4.0_4.0.2-8_i386.deb fastjar_4.0.2-8_i386.deb to pool/main/g/gcc-4.0/fastjar_4.0.2-8_i386.deb fixincludes_4.0.2-8_i386.deb to pool/main/g/gcc-4.0/fixincludes_4.0.2-8_i386.deb g++-4.0_4.0.2-8_i386.deb to pool/main/g/gcc-4.0/g++-4.0_4.0.2-8_i386.deb gcc-4.0-base_4.0.2-8_i386.deb to pool/main/g/gcc-4.0/gcc-4.0-base_4.0.2-8_i386.deb gcc-4.0-doc_4.0.2-8_all.deb to pool/main/g/gcc-4.0/gcc-4.0-doc_4.0.2-8_all.deb gcc-4.0-locales_4.0.2-8_all.deb to pool/main/g/gcc-4.0/gcc-4.0-locales_4.0.2-8_all.deb gcc-4.0_4.0.2-8.diff.gz to pool/main/g/gcc-4.0/gcc-4.0_4.0.2-8.diff.gz gcc-4.0_4.0.2-8.dsc to pool/main/g/gcc-4.0/gcc-4.0_4.0.2-8.dsc gcc-4.0_4.0.2-8_i386.deb to pool/main/g/gcc-4.0/gcc-4.0_4.0.2-8_i386.deb gfortran-4.0-doc_4.0.2-8_all.deb to pool/main/g/gcc-4.0/gfortran-4.0-doc_4.0.2-8_all.deb gfortran-4.0_4.0.2-8_i386.deb to pool/main/g/gcc-4.0/gfortran-4.0_4.0.2-8_i386.deb gnat-4.0-doc_4.0.2-8_all.deb to pool/main/g/gcc-4.0/gnat-4.0-doc_4.0.2-8_all.deb gnat-4.0_4.0.2-8_i386.deb to pool/main/g/gcc-4.0/gnat-4.0_4.0.2-8_i386.deb gobjc-4.0_4.0.2-8_i386.deb to pool/main/g/gcc-4.0/gobjc-4.0_4.0.2-8_i386.deb lib64gcc1_4.0.2-8_i386.deb to pool/main/g/gcc-4.0/lib64gcc1_4.0.2-8_i386.deb lib64gfortran0_4.0.2-8_i386.deb to pool/main/g/gcc-4.0/lib64gfortran0_4.0.2-8_i386.deb lib64objc1_4.0.2-8_i386.deb to pool/main/g/gcc-4.0/lib64objc1_4.0.2-8_i386.deb lib64stdc++6-4.0-dbg_4.0.2-8_i386.deb to pool/main/g/gcc-4.0/lib64stdc++6-4.0-dbg_4.0.2-8_i386.deb lib64stdc++6_4.0.2-8_i386.deb to pool/main/g/gcc-4.0/lib64stdc++6_4.0.2-8_i386.deb libffi4-dev_4.0.2-8_i386.deb to pool/main/g/gcc-4.0/libffi4-dev_4.0.2-8_i386.deb libffi4_4.0.2-8_i386.deb to pool/main/g/gcc-4.0/libffi4_4.0.2-8_i386.deb libgcc1_4.0.2-8_i386.deb to pool/main/g/gcc-4.0/libgcc1_4.0.2-8_i386.deb libgfortran0-dev_4.0.2-8_i386.deb to pool/main/g/gcc-4.0/libgfortran0-dev_4.0.2-8_i386.deb libgfortran0_4.0.2-8_i386.deb to pool/main/g/gcc-4.0/libgfortran0_4.0.2-8_i386.deb libgnat-4.0_4.0.2-8_i386.deb to pool/main/g/gcc-4.0/libgnat-4.0_4.0.2-8_i386.deb libmudflap0-dev_4.0.2-8_i386.deb to pool/main/g/gcc-4.0/libmudflap0-dev_4.0.2-8_i386.deb libmudflap0_4.0.2-8_i386.deb to pool/main/g/gcc-4.0/libmudflap0_4.0.2-8_i386.deb libobjc1_4.0.2-8_i386.deb to pool/main/g/gcc-4.0/libobjc1_4.0.2-8_i386.deb libstdc++6-4.0-dbg_4.0.2-8_i386.deb to pool/main/g/gcc-4.0/libstdc++6-4.0-dbg_4.0.2-8_i386.deb libstdc++6-4.0-dev_4.0.2-8_i386.deb to pool/main/g/gcc-4.0/libstdc++6-4.0-dev_4.0.2-8_i386.deb libstdc++6-4.0-doc_4.0.2-8_all.deb to pool/main/g/gcc-4.0/libstdc++6-4.0-doc_4.0.2-8_all.deb libstdc++6-4.0-pic_4.0.2-8_i386.deb to pool/main/g/gcc-4.0/libstdc++6-4.0-pic_4.0.2-8_i386.deb libstdc++6_4.0.2-8_i386.deb to pool/main/g/gcc-4.0/libstdc++6_4.0.2-8_i386.deb protoize_4.0.2-8_i386.deb to pool/main/g/gcc-4.0/protoize_4.0.2-8_i386.deb treelang-4.0_4.0.2-8_i386.deb to pool/main/g/gcc-4.0/treelang-4.0_4.0.2-8_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 [EMAIL PROTECTED], and the maintainer will reopen the bug report if appropriate. Debian distribution maintenance software pp. Matthias Klose <[EMAIL PROTECTED]> (supplier of updated gcc-4.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 [EMAIL PROTECTED]) -----BEGIN PGP SIGNED MESSAGE----- Hash: SHA1 Format: 1.7 Date: Sat, 28 Jan 2006 23:57:35 +0100 Source: gcc-4.0 Binary: gcc-4.0-base libstdc++6 lib32ffi4 libobjc1 libgcc1 libstdc++6-4.0-dev lib32stdc++6-4.0-dbg libgcc2 protoize treelang-4.0 libgnat-4.0 libstdc++6-4.0-dbg gcc-4.0-doc lib64stdc++6 lib32gfortran0 libffi4 gfortran-4.0-doc g++-4.0 lib64ffi4 lib32gcc1 lib64stdc++6-4.0-dbg libgfortran0 gobjc-4.0 lib64objc1 cpp-4.0 gcc-4.0-soft-float gcc-4.0 gfortran-4.0 gcc-4.0-locales lib32objc1 libffi4-dev gnat-4.0-doc libgfortran0-dev libstdc++6-4.0-pic cpp-4.0-doc lib64gcc1 gcc-4.0-hppa64 fastjar fixincludes libmudflap0-dev libstdc++6-4.0-doc lib32stdc++6 gnat-4.0 libmudflap0 lib64gfortran0 Architecture: source i386 all Version: 4.0.2-8 Distribution: unstable Urgency: low Maintainer: Debian GCC Maintainers <debian-gcc@lists.debian.org> Changed-By: Matthias Klose <[EMAIL PROTECTED]> Description: cpp-4.0 - The GNU C preprocessor cpp-4.0-doc - Documentation for the GNU C preprocessor (cpp) fastjar - Jar creation utility fixincludes - Fix non-ANSI header files g++-4.0 - The GNU C++ compiler gcc-4.0 - The GNU C compiler gcc-4.0-base - The GNU Compiler Collection (base package) gcc-4.0-doc - Documentation for the GNU compilers (gcc, gobjc, g++) gcc-4.0-locales - The GNU C compiler (native language support files) gfortran-4.0 - The GNU Fortran 95 compiler gfortran-4.0-doc - Documentation for the GNU Fortran compiler (gfortran) gnat-4.0 - The GNU Ada compiler gnat-4.0-doc - Documentation for the GNU Ada compiler (gnat) gobjc-4.0 - The GNU Objective-C compiler lib64gcc1 - GCC support library (64bit) lib64gfortran0 - Runtime library for GNU Fortran applications (64bit) lib64objc1 - Runtime library for GNU Objective-C applications (64bit) lib64stdc++6 - The GNU Standard C++ Library v3 (64bit) lib64stdc++6-4.0-dbg - The GNU Standard C++ Library v3 (debugging files) libffi4 - Foreign Function Interface library runtime libffi4-dev - Foreign Function Interface library (development files) libgcc1 - GCC support library libgfortran0 - Runtime library for GNU Fortran applications libgfortran0-dev - GNU Fortran library development libgnat-4.0 - Runtime library for GNU Ada applications libmudflap0 - GCC mudflap shared support libraries libmudflap0-dev - GCC mudflap support libraries (development files) libobjc1 - Runtime library for GNU Objective-C applications libstdc++6 - The GNU Standard C++ Library v3 libstdc++6-4.0-dbg - The GNU Standard C++ Library v3 (debugging files) libstdc++6-4.0-dev - The GNU Standard C++ Library v3 (development files) libstdc++6-4.0-doc - The GNU Standard C++ Library v3 (documentation files) libstdc++6-4.0-pic - The GNU Standard C++ Library v3 (shared library subset kit) protoize - Create/remove ANSI prototypes from C code treelang-4.0 - The GNU Treelang compiler Closes: 348792 Changes: gcc-4.0 (4.0.2-8) unstable; urgency=low . * Update to SVN 20060128, taken from the gcc-4_0-branch. - Fix PR classpath/23863, string-to-double conversion can throw NullPointerException. Closes: #348792. Files: 01221c695820b2c4a7dee70b6d928ab5 2783 devel standard gcc-4.0_4.0.2-8.dsc 0ddb6495fd59261c6577800eab41a046 978540 devel standard gcc-4.0_4.0.2-8.diff.gz c56613693d8a66c3cef52ffff65b1bab 183294 doc optional cpp-4.0-doc_4.0.2-8_all.deb 4fe17a5157a8699c154618e4099f572a 6137718 doc optional libstdc++6-4.0-doc_4.0.2-8_all.deb 43e4c06129ea5854fb8baca0f7d11856 105990 doc optional gfortran-4.0-doc_4.0.2-8_all.deb 95626627da172f90a3501df776e4c060 946284 doc optional gnat-4.0-doc_4.0.2-8_all.deb ef91e5a8677717d9eef8c842e557057a 1577210 doc optional gcc-4.0-doc_4.0.2-8_all.deb 7e6ba5e26801a21163d7c3de6d5b7da2 1018058 devel optional gcc-4.0-locales_4.0.2-8_all.deb d56edec997d36314e1f95ffb1472b627 179786 devel required gcc-4.0-base_4.0.2-8_i386.deb 1c1c253d63469c899668bef833ab88d8 95970 libs required libgcc1_4.0.2-8_i386.deb d04a623bbfe52380d263a16e1288e50d 100040 libs optional lib64gcc1_4.0.2-8_i386.deb 36937b7bd2b450885cbe895a5c5b651c 2118418 interpreters standard cpp-4.0_4.0.2-8_i386.deb aa43f630062b9de185f62ffc57c1b0b8 27610 devel optional protoize_4.0.2-8_i386.deb b0aebe6913a7c901fbc4a21d849fbc66 80254 devel optional fixincludes_4.0.2-8_i386.deb bc614133118bd05c6e09471443f58ab7 158568 libs optional libmudflap0_4.0.2-8_i386.deb 6f9073814dcff8f180d2005bd48c03ca 98718 libdevel optional libmudflap0-dev_4.0.2-8_i386.deb 34c0c86d8ff0b49bcb1a64ae1f850e1d 2213986 devel optional gobjc-4.0_4.0.2-8_i386.deb afb7e8c5fb2f7c46f360c98b35cb64d5 124664 libs optional libobjc1_4.0.2-8_i386.deb 09dd5c5bbe72b23b155ce50367fb5408 43962 libs optional lib64objc1_4.0.2-8_i386.deb fbd31ad86f8d18144da411a3aa5ef1e7 131966 devel optional fastjar_4.0.2-8_i386.deb 2c02457b4307adac3e1f493d38f3828f 94936 libs optional libffi4_4.0.2-8_i386.deb 750c6455db8f85629e5c0dd9206ad634 8956 libdevel optional libffi4-dev_4.0.2-8_i386.deb b6221ab7ab0528d83e785770728c60f3 2418430 devel standard g++-4.0_4.0.2-8_i386.deb 0a26f7b35db02f874ffbe06c6b24955f 287818 libs required libstdc++6_4.0.2-8_i386.deb 0227dd4c6243ecbf202f035d6e51448d 288110 libs optional lib64stdc++6_4.0.2-8_i386.deb 56696e99831854f126f44b2f0a8c0d1c 8598886 libdevel extra lib64stdc++6-4.0-dbg_4.0.2-8_i386.deb c52ee531db5a3d61041d139e67088166 1493444 libdevel standard libstdc++6-4.0-dev_4.0.2-8_i386.deb c2c55c7328a54e303446be8f9bd897ee 915486 libdevel extra libstdc++6-4.0-pic_4.0.2-8_i386.deb 9a2a9c9e4df7f260c75306fb123b3bec 5715638 libdevel extra libstdc++6-4.0-dbg_4.0.2-8_i386.deb 70bf4d7bd1204a88bea76b4d3aa1ab22 120512 libs optional libgfortran0_4.0.2-8_i386.deb dd0023c16d6db09427a44e85f8b789c9 109002 libs optional lib64gfortran0_4.0.2-8_i386.deb 0a4bc7bf8f52aafc447447f8f3868aa3 2228516 devel optional gfortran-4.0_4.0.2-8_i386.deb 85aadb274a1cb44e7df6ab4672195317 286706 libdevel optional libgfortran0-dev_4.0.2-8_i386.deb c473f22330db054170b6a1bd58350693 911608 libs optional libgnat-4.0_4.0.2-8_i386.deb f2e7361f266ae39d8904282ea9541fb4 9962128 devel optional gnat-4.0_4.0.2-8_i386.deb 542431abf935e4c2e623c5f7e800a3ca 1996818 devel optional treelang-4.0_4.0.2-8_i386.deb 06070f7c56e7476da45ef9dd0a816d13 514774 devel standard gcc-4.0_4.0.2-8_i386.deb -----BEGIN PGP SIGNATURE----- Version: GnuPG v1.4.2 (GNU/Linux) iD8DBQFD3F1yStlRaw+TLJwRAsJjAJ9j39TPBn/JLVygz5TGi17CiCdTiACePnYz s7heNXBPYjitwbhse3meqTw= =QZeE -----END PGP SIGNATURE----- -- To UNSUBSCRIBE, email to [EMAIL PROTECTED] with a subject of "unsubscribe". Trouble? Contact [EMAIL PROTECTED]