Return-Path: Delivered-To: apmail-incubator-harmony-commits-archive@www.apache.org Received: (qmail 47047 invoked from network); 24 Mar 2006 14:24:20 -0000 Received: from hermes.apache.org (HELO mail.apache.org) (209.237.227.199) by minotaur.apache.org with SMTP; 24 Mar 2006 14:24:19 -0000 Received: (qmail 85520 invoked by uid 500); 24 Mar 2006 14:22:52 -0000 Delivered-To: apmail-incubator-harmony-commits-archive@incubator.apache.org Received: (qmail 85485 invoked by uid 500); 24 Mar 2006 14:22:52 -0000 Mailing-List: contact harmony-commits-help@incubator.apache.org; run by ezmlm Precedence: bulk List-Help: List-Unsubscribe: List-Post: List-Id: Reply-To: harmony-dev@incubator.apache.org Delivered-To: mailing list harmony-commits@incubator.apache.org Received: (qmail 85467 invoked by uid 99); 24 Mar 2006 14:22:51 -0000 Received: from asf.osuosl.org (HELO asf.osuosl.org) (140.211.166.49) by apache.org (qpsmtpd/0.29) with ESMTP; Fri, 24 Mar 2006 06:22:51 -0800 X-ASF-Spam-Status: No, hits=0.0 required=10.0 tests= X-Spam-Check-By: apache.org Received: from [192.87.106.226] (HELO ajax.apache.org) (192.87.106.226) by apache.org (qpsmtpd/0.29) with ESMTP; Fri, 24 Mar 2006 06:22:51 -0800 Received: from ajax (localhost.localdomain [127.0.0.1]) by ajax.apache.org (Postfix) with ESMTP id 25EB76ACA9 for ; Fri, 24 Mar 2006 14:22:30 +0000 (GMT) Message-ID: <37609981.1143210150152.JavaMail.jira@ajax> Date: Fri, 24 Mar 2006 14:22:30 +0000 (GMT) From: "Tim Ellison (JIRA)" To: harmony-commits@incubator.apache.org Subject: [jira] Closed: (HARMONY-222) Stop VM crashing at end of run of unit tests. In-Reply-To: <1876272913.1142971978149.JavaMail.jira@ajax> MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: 7bit X-Virus-Checked: Checked by ClamAV on apache.org X-Spam-Rating: minotaur.apache.org 1.6.2 0/1000/N [ http://issues.apache.org/jira/browse/HARMONY-222?page=all ] Tim Ellison closed HARMONY-222: ------------------------------- Verified by George http://mail-archives.apache.org/mod_mbox/incubator-harmony-dev/200603.mbox/%3c4423E9FD.4000204@googlemail.com%3e > Stop VM crashing at end of run of unit tests. > --------------------------------------------- > > Key: HARMONY-222 > URL: http://issues.apache.org/jira/browse/HARMONY-222 > Project: Harmony > Type: Improvement > Components: Classlib > Environment: Win32 > Reporter: George Harley > Assignee: Tim Ellison > Priority: Minor > Attachments: HARMONY-222.txt > > At the very end of a run of all of the LUNI tests (whether run by themselves or as part of the larger test suite) the runtime terminates in a rather nasty way and leaves behind some pretty substantial core dump files. This is the kind of error information you might see in your console ... > Thread: main (priority 5) (LOCATION OF ERROR) > NATIVE com/ibm/icu4jni/converters/NativeConverter.resetCharToByte(J)V > 00000004 com/ibm/icu4jni/charset/CharsetEncoderICU.implReset()V > 00000006 java/nio/charset/CharsetEncoder.reset()Ljava/nio/charset/CharsetEncoder; > 0000000d > java/nio/charset/CharsetEncoder.encode(Ljava/nio/CharBuffer;)Ljava/nio/ByteBuffer; > 0000000d java/nio/charset/Charset.encode(Ljava/nio/CharBuffer;)Ljava/nio/ByteBuffer; > 00000013 java/lang/String.getBytes()[B > 00000010 com/ibm/oti/util/Util.getBytes(Ljava/lang/String;)[B > 00000010 java/io/File.properPath(Z)[B > 0000001f java/io/File.isDirectory()Z > ...etc ... > This is being caused by a nasty interaction between one of the test case methods that calls System.runFinalizersOnExit(true) and the ICU4JNI libraries that close character converter handles in a finalize() method. The result is that at VM shutdown time, the ICU4JNI charset encoder's finalize() is called and then later on in the shutdown sequence an attempt is made to use the now invalid handle. The short term fix is to ensure that the test suite does not force all finalize() methods to be run at shutdown - this will at least save a number of core files from eating up your disk. Longer term, we wil probably have to look at the ICU4JNI source itself to see if it can be made guard against attempted usage of its converter handle after it has become invalid - something which should really only happen in the scenario described above. > One line patch to follow. > Best regards, > George -- This message is automatically generated by JIRA. - If you think it was sent incorrectly contact one of the administrators: http://issues.apache.org/jira/secure/Administrators.jspa - For more information on JIRA, see: http://www.atlassian.com/software/jira