Return-Path: Delivered-To: apmail-incubator-harmony-commits-archive@www.apache.org Received: (qmail 28958 invoked from network); 7 Nov 2006 20:27:14 -0000 Received: from hermes.apache.org (HELO mail.apache.org) (140.211.11.2) by minotaur.apache.org with SMTP; 7 Nov 2006 20:27:14 -0000 Received: (qmail 260 invoked by uid 500); 7 Nov 2006 20:27:25 -0000 Delivered-To: apmail-incubator-harmony-commits-archive@incubator.apache.org Received: (qmail 228 invoked by uid 500); 7 Nov 2006 20:27:25 -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 217 invoked by uid 99); 7 Nov 2006 20:27:25 -0000 Received: from herse.apache.org (HELO herse.apache.org) (140.211.11.133) by apache.org (qpsmtpd/0.29) with ESMTP; Tue, 07 Nov 2006 12:27:25 -0800 X-ASF-Spam-Status: No, hits=0.0 required=10.0 tests= X-Spam-Check-By: apache.org Received: from [140.211.11.4] (HELO brutus.apache.org) (140.211.11.4) by apache.org (qpsmtpd/0.29) with ESMTP; Tue, 07 Nov 2006 12:27:13 -0800 Received: from brutus (localhost [127.0.0.1]) by brutus.apache.org (Postfix) with ESMTP id 335017142EC for ; Tue, 7 Nov 2006 12:26:53 -0800 (PST) Message-ID: <30081485.1162931213206.JavaMail.jira@brutus> Date: Tue, 7 Nov 2006 12:26:53 -0800 (PST) From: "Gregory Shimansky (JIRA)" To: harmony-commits@incubator.apache.org Subject: [jira] Updated: (HARMONY-1650) [drlvm][exception handling] enqueuing references, doing finalization, running finalizers can lose a risen exception In-Reply-To: <18522610.1159608019565.JavaMail.root@brutus> MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: 7bit X-Virus-Checked: Checked by ClamAV on apache.org [ http://issues.apache.org/jira/browse/HARMONY-1650?page=all ] Gregory Shimansky updated HARMONY-1650: --------------------------------------- Patch Info: [Patch Available] > [drlvm][exception handling] enqueuing references, doing finalization, running finalizers can lose a risen exception > ------------------------------------------------------------------------------------------------------------------- > > Key: HARMONY-1650 > URL: http://issues.apache.org/jira/browse/HARMONY-1650 > Project: Harmony > Issue Type: Bug > Components: DRLVM > Reporter: Serguei Zapreyev > Priority: Minor > Attachments: a4.java, H1650.ex_impl.2.patch, H1650.ex_impl.3.patch, H1650.ex_impl.patch, lin.log, testGetMeth.java, testGetMeth1.java, win.log > > > Memory allocation within VM causes irregularly enqueuing references, doing finalization, running > finalizers. These processes lead to losing an exception risen within a java programm executed by VM. > Please look at the following stack: > harmonyvm.dll!exn_clear() Line 113 C++ > harmonyvm.dll!Objects_To_Finalize::run_finalizers() Line 343 C++ > harmonyvm.dll!vm_run_pending_finalizers() Line 472 C++ > harmonyvm.dll!vm_hint_finalize() Line 193 C++ > gc.dll!gc_alloc(unsigned int in_size=0x0000000c, unsigned int ah=0x013c1f40, void * thread_pointer=0x0102d1e8) Line 243 + 0x8 C++ > <<<...>>> > or at the following: > vmcore.dll!exn_clear() Line 106 C++ > vmcore.dll!References_To_Enqueue::enqueue_references() Line 453 + 0x5 C++ > vmcore.dll!vm_enqueue_references() Line 516 C++ > vmcore.dll!vm_hint_finalize() Line 192 C++ > gc.dll!Garbage_Collector::check_hint_to_finalize() Line 208 + 0xc C++ > gc.dll!gc_alloc(unsigned int size=0x0000000c, unsigned int ah=0x00d71b90, void * tp=0x003be070) Line 961 C++ > <<<...>>> > So, this intricated enough bug leads to instability of VM's behaviour. > I'm going to attach the fix of the issue. > The detecting test will be attached as well. -- 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