Return-Path: Delivered-To: apmail-harmony-dev-archive@www.apache.org Received: (qmail 18992 invoked from network); 26 Dec 2006 10:54:55 -0000 Received: from hermes.apache.org (HELO mail.apache.org) (140.211.11.2) by minotaur.apache.org with SMTP; 26 Dec 2006 10:54:54 -0000 Received: (qmail 15759 invoked by uid 500); 26 Dec 2006 10:55:01 -0000 Delivered-To: apmail-harmony-dev-archive@harmony.apache.org Received: (qmail 15141 invoked by uid 500); 26 Dec 2006 10:55:00 -0000 Mailing-List: contact dev-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 dev@harmony.apache.org Received: (qmail 15132 invoked by uid 99); 26 Dec 2006 10:54:59 -0000 Received: from herse.apache.org (HELO herse.apache.org) (140.211.11.133) by apache.org (qpsmtpd/0.29) with ESMTP; Tue, 26 Dec 2006 02:54:59 -0800 X-ASF-Spam-Status: No, hits=-0.0 required=10.0 tests=SPF_HELO_PASS,SPF_PASS X-Spam-Check-By: apache.org Received-SPF: pass (herse.apache.org: domain of gcjhd-harmony-dev@m.gmane.org designates 80.91.229.2 as permitted sender) Received: from [80.91.229.2] (HELO ciao.gmane.org) (80.91.229.2) by apache.org (qpsmtpd/0.29) with ESMTP; Tue, 26 Dec 2006 02:54:48 -0800 Received: from list by ciao.gmane.org with local (Exim 4.43) id 1Gz9wp-0004sX-Q5 for dev@harmony.apache.org; Tue, 26 Dec 2006 11:54:19 +0100 Received: from msfwpr01.ims.intel.com ([62.118.80.132]) by main.gmane.org with esmtp (Gmexim 0.1 (Debian)) id 1AlnuQ-0007hv-00 for ; Tue, 26 Dec 2006 11:54:19 +0100 Received: from egor.pasko by msfwpr01.ims.intel.com with local (Gmexim 0.1 (Debian)) id 1AlnuQ-0007hv-00 for ; Tue, 26 Dec 2006 11:54:19 +0100 X-Injected-Via-Gmane: http://gmane.org/ To: dev@harmony.apache.org From: Egor Pasko Subject: Re: [drlvm][jit] DRLVM segfault with Jitrino built in debug mode (was Re: [jira] Created: (HARMONY-2805) VM segfault) Date: 26 Dec 2006 16:54:04 +0600 Lines: 158 Message-ID: References: <7921834.1166554700976.JavaMail.jira@brutus> <54B46323-32F9-4B0A-BD8A-DD30B8C91EF4@uiuc.edu> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii X-Complaints-To: usenet@sea.gmane.org X-Gmane-NNTP-Posting-Host: msfwpr01.ims.intel.com User-Agent: Gnus/5.09 (Gnus v5.9.0) Emacs/21.3 Sender: news X-Virus-Checked: Checked by ClamAV on apache.org On the 0x24A day of Apache Harmony George Timoshenko wrote: > I've got the same recently. George, I fixed my debug mode issue in HARMONY-2805 (and notified in the list already), did you try it? IMHO, it is at a rather high priority for commit > The problem (As I understand) is in STL std::sprt method which works > incorrectly when gcc is of 3.3.3 version > > > Mikhail Fursov will, probably, provides some details. > > > Naveen Neelakantam wrote: > > Upon Egor's suggestion, I have changed the subject line for the JIRA > > and email thread. > > Naveen > > On Dec 19, 2006, at 3:05 PM, Naveen Neelakantam wrote: > > > >> I am currently working to finish Egor Pasko's re-implementation of > >> ABCD, and as a result I like to build vm.jitrino in debug mode (so > >> that I can use asserts). However, building vm.jitrino in debug > >> mode breaks DRLVM. I've created 2 JIRAs that reflect this > >> HARMONY-2805 and HARMONY-2804. > >> > >> This raises a question in my mind. Is anyone testing DRLVM built > >> fully in debug mode? The default Cruise Control setup does not do > >> this and I find that troubling. > >> > >> Naveen > >> > >> Begin forwarded message: > >> > >>> From: "Naveen Neelakantam (JIRA)" > >>> Date: December 19, 2006 12:58:20 PM CST > >>> To: neelakan@uiuc.edu > >>> Subject: [jira] Created: (HARMONY-2805) VM segfault > >>> > >>> VM segfault > >>> ----------- > >>> > >>> Key: HARMONY-2805 > >>> URL: http://issues.apache.org/jira/browse/HARMONY-2805 > >>> Project: Harmony > >>> Issue Type: Bug > >>> Components: DRLVM > >>> Environment: RHEL 4 update 4, gcc 3.4.6, core2 (i386) > >>> Reporter: Naveen Neelakantam > >>> Priority: Blocker > >>> > >>> > >>> If I build vm.jitrino in debug mode, the VM segfaults on any Java > >>> app that runs for a non-trivial amount of time. > >>> > >>> The bug also manifests iteself if you type: > >>>> java -Xem:server_static -showversion > >>> Apache Harmony Launcher : (c) Copyright 1991, 2006 The Apache > >>> Software Foundation or its licensors, as applicable. > >>> java version "1.5.0" > >>> pre-alpha : not complete or compatible > >>> svn = r488351, (Dec 18 2006), Linux/ia32/gcc 3.4.6, debug build > >>> http://incubator.apache.org/harmony > >>> SIGSEGV in VM code. > >>> Stack trace: > >>> 1: Jitrino::Ia32::GCSafePoint::isHardwareExceptionPoint() > >>> const > >>> (/home/dcsfiles/neelakan/Sandbox/Harmony/trunk/working_vm/vm/jitrino/src/codegenerator/ia32/Ia32GCMap.h:102) > >>> 2: > >>> Jitrino::Ia32::hwecompare::operator()(Jitrino::Ia32::GCSafePoint > >>> const*, Jitrino::Ia32::GCSafePoint const*) const > >>> (/home/dcsfiles/neelakan/Sandbox/Harmony/trunk/working_vm/vm/jitrino/src/codegenerator/ia32/Ia32GCMap.cpp:221) > >>> 3: ?? (00313f5d > >>> :313) > >>> 4: ?? (00313931 > >>> :313931) > >>> 5: ?? (00312d8a > >>> :312) > >>> 6: ?? (003115d0 > >>> :3115) > >>> 7: Jitrino::Ia32::GCMap::write(unsigned char*) > >>> (/home/dcsfiles/neelakan/Sandbox/Harmony/trunk/working_vm/vm/jitrino/src/codegenerator/ia32/Ia32GCMap.cpp:239) > >>> 8: Jitrino::Ia32::InfoBlockWriter::runImpl() > >>> (/home/dcsfiles/neelakan/Sandbox/Harmony/trunk/working_vm/vm/jitrino/src/codegenerator/ia32/Ia32GCMap.cpp:528) > >>> 9: Jitrino::Ia32::SessionAction::run() > >>> (/home/dcsfiles/neelakan/Sandbox/Harmony/trunk/working_vm/vm/jitrino/src/codegenerator/ia32/Ia32IRManager.cpp:2155) > >>> 10: Jitrino::runPipeline(Jitrino::CompilationContext*) > >>> (/home/dcsfiles/neelakan/Sandbox/Harmony/trunk/working_vm/vm/jitrino/src/main/Jitrino.cpp:226) > >>> 11: Jitrino::compileMethod(Jitrino::CompilationContext*) > >>> (/home/dcsfiles/neelakan/Sandbox/Harmony/trunk/working_vm/vm/jitrino/src/main/Jitrino.cpp:261) > >>> 12: Jitrino::Jitrino::CompileMethod(Jitrino::CompilationContext*) > >>> (/home/dcsfiles/neelakan/Sandbox/Harmony/trunk/working_vm/vm/jitrino/src/main/Jitrino.cpp:286) > >>> 13: JIT_compile_method_with_params > >>> (/home/dcsfiles/neelakan/Sandbox/Harmony/trunk/working_vm/vm/jitrino/src/vm/drl/DrlJITInterface.cpp:278) > >>> 14: Dll_JIT::compile_method_with_params(void*, Method*, > >>> OpenMethodExecutionParams) > >>> (/home/dcsfiles/neelakan/Sandbox/Harmony/trunk/working_vm/vm/vmcore/include/dll_jit_intf.h:86) > >>> 15: compile_do_compilation_jit(Method*, JIT*) > >>> (/home/dcsfiles/neelakan/Sandbox/Harmony/trunk/working_vm/vm/vmcore/src/jit/compile.cpp:709) > >>> 16: vm_compile_method > >>> (/home/dcsfiles/neelakan/Sandbox/Harmony/trunk/working_vm/vm/vmcore/src/class_support/C_Interface.cpp:2454) > >>> 17: DrlEMImpl::compileMethod(Method*) > >>> (/home/dcsfiles/neelakan/Sandbox/Harmony/trunk/working_vm/vm/em/src/DrlEMImpl.cpp:545) > >>> 18: CompileMethod > >>> (/home/dcsfiles/neelakan/Sandbox/Harmony/trunk/working_vm/vm/em/src/em_intf.cpp:49) > >>> 19: compile_do_compilation > >>> (/home/dcsfiles/neelakan/Sandbox/Harmony/trunk/working_vm/vm/vmcore/src/jit/compile.cpp:789) > >>> 20: compile_jit_a_method(Method*) > >>> (/home/dcsfiles/neelakan/Sandbox/Harmony/trunk/working_vm/vm/vmcore/src/jit/compile.cpp:840) > >>> 21: IP is 0xB6974162 > >>> 22: vm_invoke_native_array_stub > >>> (/home/dcsfiles/neelakan/Sandbox/Harmony/trunk/working_vm/vm/vmcore/src/util/ia32/base/invoke_native_stub_ia32.asm:41) > >>> 23: JIT_execute_method_default(void*, _jmethodID*, jvalue*, > >>> jvalue*) > >>> (/home/dcsfiles/neelakan/Sandbox/Harmony/trunk/working_vm/vm/vmcore/src/util/ia32/base/ini_iA32.cpp:199) > >>> 24: DrlEMImpl::executeMethod(_jmethodID*, jvalue*, jvalue*) > >>> (/home/dcsfiles/neelakan/Sandbox/Harmony/trunk/working_vm/vm/em/src/DrlEMImpl.cpp:514) > >>> 25: ExecuteMethod > >>> (/home/dcsfiles/neelakan/Sandbox/Harmony/trunk/working_vm/vm/em/src/em_intf.cpp:43) > >>> 26: vm_execute_java_method_array(_jmethodID*, jvalue*, jvalue*) > >>> (/home/dcsfiles/neelakan/Sandbox/Harmony/trunk/working_vm/vm/vmcore/src/jit/ini.cpp:51) > >>> 27: vm_create_jthread > >>> (/home/dcsfiles/neelakan/Sandbox/Harmony/trunk/working_vm/vm/vmcore/src/init/vm_init.cpp:549) > >>> 28: vm_attach_internal(JNIEnv_External**, _jobject**, > >>> JavaVM_External*, _jobject*, char*, unsigned char) > >>> (/home/dcsfiles/neelakan/Sandbox/Harmony/trunk/working_vm/vm/vmcore/src/init/vm_init.cpp:588) > >>> 29: JNI_CreateJavaVM > >>> (/home/dcsfiles/neelakan/Sandbox/Harmony/trunk/working_vm/vm/vmcore/src/jni/jni.cpp:499) > >>> 30: ?? (??:-1) > >>> 31: ?? (??:-1) > >>> 32: ?? (??:-1) > >>> 33: hysig_protect > >>> (/home/dcsfiles/neelakan/Sandbox/Harmony/trunk/working_classlib/modules/portlib/src/main/native/port/unix/hysignal.c:283) > >>> 34: ?? (??:-1) > >>> 35: ?? (??:-1) > >>> 36: ?? (??:-1) > >>> > >>> Segmentation fault > >>> > >>> > >>> --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 > >>> > >>> > >> > > > > -- Egor Pasko