Return-Path: Delivered-To: apmail-harmony-commits-archive@www.apache.org Received: (qmail 31436 invoked from network); 4 May 2007 15:53:38 -0000 Received: from hermes.apache.org (HELO mail.apache.org) (140.211.11.2) by minotaur.apache.org with SMTP; 4 May 2007 15:53:38 -0000 Received: (qmail 88176 invoked by uid 500); 4 May 2007 15:53:44 -0000 Delivered-To: apmail-harmony-commits-archive@harmony.apache.org Received: (qmail 88159 invoked by uid 500); 4 May 2007 15:53:44 -0000 Mailing-List: contact commits-help@harmony.apache.org; run by ezmlm Precedence: bulk List-Help: List-Unsubscribe: List-Post: List-Id: Reply-To: dev@harmony.apache.org Delivered-To: mailing list commits@harmony.apache.org Received: (qmail 88146 invoked by uid 99); 4 May 2007 15:53:44 -0000 Received: from herse.apache.org (HELO herse.apache.org) (140.211.11.133) by apache.org (qpsmtpd/0.29) with ESMTP; Fri, 04 May 2007 08:53:44 -0700 X-ASF-Spam-Status: No, hits=-100.0 required=10.0 tests=ALL_TRUSTED 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; Fri, 04 May 2007 08:53:35 -0700 Received: from brutus (localhost [127.0.0.1]) by brutus.apache.org (Postfix) with ESMTP id 71494714049 for ; Fri, 4 May 2007 08:53:15 -0700 (PDT) Message-ID: <14705236.1178293995459.JavaMail.jira@brutus> Date: Fri, 4 May 2007 08:53:15 -0700 (PDT) From: "Rustem Rafikov (JIRA)" To: commits@harmony.apache.org Subject: [jira] Created: (HARMONY-3817) [drlvm][jit] size == 1 and illegal address reported to jvmti for inlined methods causes a crash 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] size == 1 and illegal address reported to jvmti for inlined methods causes a crash ----------------------------------------------------------------------------------------------- Key: HARMONY-3817 URL: https://issues.apache.org/jira/browse/HARMONY-3817 Project: Harmony Issue Type: Bug Components: DRLVM Environment: at least win32 and linux64 Reporter: Rustem Rafikov Starting on r528408 (after H-3189 commit; April, Friday 13 :)) method size == 1 and illegal address are reported for inlined methods. Look at the stack traces: 1. Release build Right after crashing: SIGSEGV in VM code. Stack trace: 0: DumpMethodLoad (jvmtisym/src/jvmtisym.c:871) 1: jvmti_send_region_compiled_method_load_event (??:-1) 2: java/lang/EMThreadSupport.onTimeout()V (EMThreadSupport.java:-2) 3: java/lang/EMThreadSupport.run()V (EMThreadSupport.java:68) 4: java/lang/EMThreadSupport$1.run()V (EMThreadSupport.java:44) 5: java/lang/Thread.run()V (Thread.java:-1) 6: java/lang/Thread.runImpl()V (Thread.java:-1) Using gdb: gdb -c core ./java: [...] (gdb) bt #0 0x00002aab0cb73cfe in DumpMethodLoad (jvmti_env=0x5d43e0, functionID=0x1263b50, meth_sz=1, address=0x2aab2ec41c61, map_length=1, map=0x2aab0e35a500, compile_info=0x0) at jvmtisym.c:871 #1 0x00002aaaaac63209 in jvmti_send_region_compiled_method_load_event () from /home/lab_perfstat/rrafikov/spec/platform/r528408-2/bin/default/libharmonyvm.so #2 0x00002aaaaac35856 in compiled_method_load () from /home/lab_perfstat/rrafikov/spec/platform/r528408-2/bin/default/libharmonyvm.so #3 0x00002aaaacfc14b4 in Jitrino::CompilationInterface::sendCompiledMethodLoadEvent () from /home/lab_perfstat/rrafikov/spec/platform/r528408-2/bin/default//libjitrino.so #4 0x00002aaaacfe7d09 in Jitrino::Ia32::CodeEmitter::reportInlinedMethod () from /home/lab_perfstat/rrafikov/spec/platform/r528408-2/bin/default//libjitrino.so #5 0x00002aaaacfe7f8e in Jitrino::Ia32::CodeEmitter::reportCompiledInlinees () from /home/lab_perfstat/rrafikov/spec/platform/r528408-2/bin/default//libjitrino.so #6 0x00002aaaacfe545d in Jitrino::Ia32::CodeEmitter::runImpl () [...] (gdb) disass 0x2aab2ec41c61 0x2aab2ec41c62 Dump of assembler code from 0x2aab2ec41c61 to 0x2aab2ec41c62: 0x00002aab2ec41c61: Cannot access memory at address 0x2aab2ec41c61 [...] Adding 'printf's shows a lot of methods are reported with meth_sz=1. The crash can be workarounded by commenting reportCompiledInlinees call in codegenerator/ia32/Ia32CodeEmitter.cpp. 2. Debug build Debug build fails on assertion: java: platform/r528408/drlvm/trunk/vm/jitrino/src/codegenerator/ia32/Ia32CodeEmitter.cpp:175: void Jitrino::Ia32::CompiledMethodInfo::includeInst(Jitrino::Ia32::Inst*, long long unsigned int): Assertion `!locationMap.has(instStartAddr)' failed. SIGABRT in VM code. Stack trace: 0: raise (??:-1) 1: ?? (??:-1) 2: java/lang/EMThreadSupport.onTimeout()V (EMThreadSupport.java:-2) 3: java/lang/EMThreadSupport.run()V (EMThreadSupport.java:68) 4: java/lang/EMThreadSupport$1.run()V (EMThreadSupport.java:44) 5: java/lang/Thread.run()V (Thread.java:-1) 6: java/lang/Thread.runImpl()V (Thread.java:-1) -- This message is automatically generated by JIRA. - You can reply to this email to add a comment to the issue online.