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

Bug#348792: marked as done (libgcj6: string-to-double conversion can throw NullPointerException)



Your message dated Sat, 21 Jan 2006 07:02:12 -0800
with message-id <E1F0KFo-0003Ap-Vf@spohr.debian.org>
and subject line Bug#348792: fixed in gcj-4.0 4.0.2-7j1
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 ucko@debian.org Wed Jan 18 16:01:03 2006
Return-path: <ucko@debian.org>
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 submit@bugs.debian.org; 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 <ucko@debian.org>)
	id 1EzNEb-0002qD-Ry
	for submit@bugs.debian.org; 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" <ucko@debian.org>
To: Debian Bug Tracking System <submit@bugs.debian.org>
Subject: libgcj6: string-to-double conversion can throw NullPointerException
Message-ID: <[🔎] 20060119000101.10450.37907.reportbug@tux64.internal.ucko.debian.net>
X-Mailer: reportbug 3.18
Date: Wed, 18 Jan 2006 19:01:01 -0500
X-Debbugs-Cc: ucko@debian.org
Delivered-To: submit@bugs.debian.org
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; 21 Jan 2006 15:10:31 +0000
>From katie@ftp-master.debian.org Sat Jan 21 07:10:31 2006
Return-path: <katie@ftp-master.debian.org>
Received: from katie by spohr.debian.org with local (Exim 4.50)
	id 1F0KFo-0003Ap-Vf; Sat, 21 Jan 2006 07:02:12 -0800
From: Matthias Klose <doko@debian.org>
To: 348792-close@bugs.debian.org
X-Katie: $Revision: 1.65 $
Subject: Bug#348792: fixed in gcj-4.0 4.0.2-7j1
Message-Id: <E1F0KFo-0003Ap-Vf@spohr.debian.org>
Sender: Archive Administrator <katie@ftp-master.debian.org>
Date: Sat, 21 Jan 2006 07:02:12 -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: gcj-4.0
Source-Version: 4.0.2-7j1

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

gcj-4.0-base_4.0.2-7j1_powerpc.deb
  to pool/main/g/gcj-4.0/gcj-4.0-base_4.0.2-7j1_powerpc.deb
gcj-4.0_4.0.2-7j1.diff.gz
  to pool/main/g/gcj-4.0/gcj-4.0_4.0.2-7j1.diff.gz
gcj-4.0_4.0.2-7j1.dsc
  to pool/main/g/gcj-4.0/gcj-4.0_4.0.2-7j1.dsc
gcj-4.0_4.0.2-7j1_powerpc.deb
  to pool/main/g/gcj-4.0/gcj-4.0_4.0.2-7j1_powerpc.deb
gij-4.0_4.0.2-7j1_powerpc.deb
  to pool/main/g/gcj-4.0/gij-4.0_4.0.2-7j1_powerpc.deb
libgcj-common_4.0.2-7j1_all.deb
  to pool/main/g/gcj-4.0/libgcj-common_4.0.2-7j1_all.deb
libgcj6-awt_4.0.2-7j1_powerpc.deb
  to pool/main/g/gcj-4.0/libgcj6-awt_4.0.2-7j1_powerpc.deb
libgcj6-dbg_4.0.2-7j1_powerpc.deb
  to pool/main/g/gcj-4.0/libgcj6-dbg_4.0.2-7j1_powerpc.deb
libgcj6-dev_4.0.2-7j1_powerpc.deb
  to pool/main/g/gcj-4.0/libgcj6-dev_4.0.2-7j1_powerpc.deb
libgcj6-jar_4.0.2-7j1_all.deb
  to pool/main/g/gcj-4.0/libgcj6-jar_4.0.2-7j1_all.deb
libgcj6-src_4.0.2-7j1_all.deb
  to pool/main/g/gcj-4.0/libgcj6-src_4.0.2-7j1_all.deb
libgcj6_4.0.2-7j1_powerpc.deb
  to pool/main/g/gcj-4.0/libgcj6_4.0.2-7j1_powerpc.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 348792@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 gcj-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 ftpmaster@debian.org)


-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1

Format: 1.7
Date: Sat, 21 Jan 2006 11:40:26 +0100
Source: gcj-4.0
Binary: lib64gcj6 gij-4.0 libgcj6-jar lib32gcj6-dev libgcj6 libgcj6-src libgcj6-dev libgcj6-awt gcj-4.0-base lib32gcj6-dbg libgcj-common gcj-4.0 libgcj6-dbg lib32gcj6
Architecture: source powerpc all
Version: 4.0.2-7j1
Distribution: unstable
Urgency: low
Maintainer: Debian GCC Maintainers <debian-gcc@lists.debian.org>
Changed-By: Matthias Klose <doko@debian.org>
Description: 
 gcj-4.0    - The GNU compiler for Java(TM)
 gcj-4.0-base - The GNU Compiler Collection (gcj base package)
 gij-4.0    - The GNU Java bytecode interpreter
 libgcj-common - Java runtime library (common files)
 libgcj6    - Java runtime library for use with gcj
 libgcj6-awt - AWT peer runtime libraries for use with gcj
 libgcj6-dbg - Debugging symbols for libraries provided in libgcj6-dev
 libgcj6-dev - Java development headers and static library for use with gcj
 libgcj6-jar - Java runtime library for use with gcj (jar files)
 libgcj6-src - libgcj java sources for use in eclipse
Closes: 348792
Changes: 
 gcj-4.0 (4.0.2-7j1) unstable; urgency=low
 .
   * Update to SVN 20060121, taken from the gcc-4_0-branch.
     - Fix PR classpath/23863, string-to-double conversion can throw
       NullPointerException. Closes: #348792.
Files: 
 524d1fe58f0a238ec1b438e02bce1cfa 2765 devel standard gcj-4.0_4.0.2-7j1.dsc
 7f7fd51c2b6a4888d2f0298e3db2c50b 969939 devel standard gcj-4.0_4.0.2-7j1.diff.gz
 a8a0869575294a78dd92dcdd82905612 3104300 libs optional libgcj6-jar_4.0.2-7j1_all.deb
 0019f8e8f537ab54e600dc2d69edc71b 1172 libs optional libgcj-common_4.0.2-7j1_all.deb
 699018c3eb5e9ecc32ec9b72a1f6a72e 6436214 libdevel optional libgcj6-src_4.0.2-7j1_all.deb
 3b5d7e1103fcc17e8f02b2ea18790d24 77516 libs optional gcj-4.0-base_4.0.2-7j1_powerpc.deb
 eb54db739685f3742e2b2e40816f3e2c 2932840 devel optional gcj-4.0_4.0.2-7j1_powerpc.deb
 9ef8c5818c1fe12380eeb09346e21301 33110 devel optional gij-4.0_4.0.2-7j1_powerpc.deb
 5044936c8681f6c88fd582e8e2c8193d 5305684 libs optional libgcj6_4.0.2-7j1_powerpc.deb
 d1fe88442061c680da0979bbaede8d02 254068 libs optional libgcj6-awt_4.0.2-7j1_powerpc.deb
 00cb2019fd801ef28836b9acc693d037 8373468 libdevel optional libgcj6-dev_4.0.2-7j1_powerpc.deb
 0233b22021531cc2f0db20a9fa90b819 8643836 libdevel extra libgcj6-dbg_4.0.2-7j1_powerpc.deb

-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.4.2 (GNU/Linux)

iD8DBQFD0klNStlRaw+TLJwRAklWAJ9ft1l2RnOGLEuEsdzb+l13Zs5qAACglg9Z
qE9+edcWWQdmmM87CpS94ZQ=
=473D
-----END PGP SIGNATURE-----



Reply to: