Return-Path: Delivered-To: apmail-incubator-harmony-commits-archive@www.apache.org Received: (qmail 66258 invoked from network); 9 Nov 2006 02:32:58 -0000 Received: from hermes.apache.org (HELO mail.apache.org) (140.211.11.2) by minotaur.apache.org with SMTP; 9 Nov 2006 02:32:58 -0000 Received: (qmail 93284 invoked by uid 500); 9 Nov 2006 02:33:09 -0000 Delivered-To: apmail-incubator-harmony-commits-archive@incubator.apache.org Received: (qmail 93215 invoked by uid 500); 9 Nov 2006 02:33:09 -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 93193 invoked by uid 99); 9 Nov 2006 02:33:09 -0000 Received: from herse.apache.org (HELO herse.apache.org) (140.211.11.133) by apache.org (qpsmtpd/0.29) with ESMTP; Wed, 08 Nov 2006 18:33:09 -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; Wed, 08 Nov 2006 18:32:57 -0800 Received: from brutus (localhost [127.0.0.1]) by brutus.apache.org (Postfix) with ESMTP id 594537142FA for ; Wed, 8 Nov 2006 18:32:37 -0800 (PST) Message-ID: <5307825.1163039557363.JavaMail.jira@brutus> Date: Wed, 8 Nov 2006 18:32:37 -0800 (PST) From: "Egor Pasko (JIRA)" To: harmony-commits@incubator.apache.org Subject: [jira] Created: (HARMONY-2113) [drlvm][jit][opt] Jitrino.OPT loops infinitely in inlineJSR() when an exception from a subroutine (JSR->RET) is expected MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: 7bit X-Virus-Checked: Checked by ClamAV on apache.org [drlvm][jit][opt] Jitrino.OPT loops infinitely in inlineJSR() when an exception from a subroutine (JSR->RET) is expected ------------------------------------------------------------------------------------------------------------------------ Key: HARMONY-2113 URL: http://issues.apache.org/jira/browse/HARMONY-2113 Project: Harmony Issue Type: Bug Components: DRLVM Environment: any Reporter: Egor Pasko Priority: Minor Attachments: ExcInFinallyTest.j Jitrino.OPT loops infinitely in inlineJSR() when an exception from a subroutine (JSR->RET) is expected To reproduce: * compile the attached hand-crafted Jasmin source ExcInFinallyTest.j: java -jar jasmin.jar ExcInFinallyTest.j * run on OPT: $HARMONY -Xem:opt ExcInFinallyTest you will get an infinite loop (in compilation). This test passes on Jitrino.JET and interpreter. If you rebuild Jitrino in debug mode, the following assertion would be caught: java: /export/users/evpasko/svn/3/trunk/working_vm/vm/jitrino/src/optimizer/FlowGraph.cpp:457: void Jitrino::findNodesInRegion(Jitrino::Node*, Jitrino::Node*, Jitrino::StlBitVector&): Assertion `!inEdges.empty()' failed. SIGABRT in VM code. Stack trace: 1: ?? (??:-1) 2: abort (??:-1) 3: __assert_fail (??:-1) 4: findNodesInRegion (/export/users/evpasko/svn/3/trunk/working_vm/vm/jitrino/src/optimizer/FlowGraph.cpp:458) 5: inlineJSR (/export/users/evpasko/svn/3/trunk/working_vm/vm/jitrino/src/optimizer/FlowGraph.cpp:572) 6: inlineJSRs (/export/users/evpasko/svn/3/trunk/working_vm/vm/jitrino/src/optimizer/FlowGraph.cpp:658) 7: Jitrino::FlowGraph::doTranslatorCleanupPhase(Jitrino::IRManager&) (/export/users/evpasko/svn/3/trunk/working_vm/vm/jitrino/src/optimizer/FlowGraph.cpp:833) 8: Jitrino::TranslatorSession::postTranslatorCleanup() (/export/users/evpasko/svn/3/trunk/working_vm/vm/jitrino/src/translator/TranslatorIntfc.cpp:77) [snip] obviously, the bug is in the subroutine inlining algorithm -- 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