From owner-freebsd-java@FreeBSD.ORG Sun Aug 1 02:32:44 2004 Return-Path: Delivered-To: freebsd-java@freebsd.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id 7491216A4CE for ; Sun, 1 Aug 2004 02:32:44 +0000 (GMT) Received: from fly.ebs.gr (fly.ebs.gr [62.103.84.177]) by mx1.FreeBSD.org (Postfix) with ESMTP id 5114043D48 for ; Sun, 1 Aug 2004 02:32:36 +0000 (GMT) (envelope-from past@ebs.gr) Received: from ebs.gr (root@hal.ebs.gr [10.1.1.2]) by fly.ebs.gr (8.12.9p1/8.12.9) with ESMTP id i6UETGP8004198; Fri, 30 Jul 2004 17:29:16 +0300 (EEST) (envelope-from past@ebs.gr) Received: from [10.1.1.52] (edgar.ebs.gr [10.1.1.52]) by ebs.gr (8.12.11/8.12.11) with ESMTP id i6UETF5x033328; Fri, 30 Jul 2004 17:29:16 +0300 (EEST) (envelope-from past@ebs.gr) Message-ID: <410A5B39.1050409@ebs.gr> Date: Fri, 30 Jul 2004 17:29:13 +0300 From: Panagiotis Astithas Organization: EBS Ltd. User-Agent: Mozilla Thunderbird 0.7 (X11/20040702) X-Accept-Language: en-us, en MIME-Version: 1.0 To: Nick Johnson References: <200407241051.i6OApKuq024726@smtp.hispeed.ch> <41024D54.2070304@s-ar.de> <4104ADA9.9060206@ebs.gr> <20040727070121.A86418@turing.morons.org> <410A1DED.8020900@ebs.gr> <20040730064539.O86418@turing.morons.org> In-Reply-To: <20040730064539.O86418@turing.morons.org> Content-Type: text/plain; charset=us-ascii; format=flowed Content-Transfer-Encoding: 7bit cc: java@freebsd.org Subject: Re: native jdk release schedule question X-BeenThere: freebsd-java@freebsd.org X-Mailman-Version: 2.1.1 Precedence: list List-Id: Porting Java to FreeBSD List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Sun, 01 Aug 2004 02:32:44 -0000 Nick Johnson wrote: > FWIW, it looks like the trouble comes from > hotspot/src/share/vm/prims/jvmdi.cpp because monitor->monitor().raw_notify > (or raw_wait or raw_notifyAll or raw_exit) is returning > ObjectMonitor::OM_ILLEGAL_MONITOR_STATE. > > That seems to be triggered from > hotspot/src/os/bsd/vm/objectMonitor_bsd.cpp like this: > > int ObjectMonitor::raw_notify(TRAPS) { > if (THREAD != _owner) { > return OM_ILLEGAL_MONITOR_STATE; > } > > So at first glance it looks like a thread ownership problem. Don't have > time to dig any deeper ATM. The funny thing is that the behavior is not consistent: edgar% cat dummy.java class dummy { public static void main(String[] args) {} } edgar% javac dummy.java edgar% java dummy edgar% jdb dummy Initializing jdb ... > run run dummy java.io.IOException: Target failed to handshake. at com.sun.tools.jdi.VirtualMachineManagerImpl.handshake(VirtualMachineManagerImpl.java:190) at com.sun.tools.jdi.VirtualMachineManagerImpl.createVirtualMachine(VirtualMachineManagerImpl.java:201) at com.sun.tools.jdi.AbstractLauncher.launch(AbstractLauncher.java:107) at com.sun.tools.jdi.SunCommandLineLauncher.launch(SunCommandLineLauncher.java:144) at com.sun.tools.example.debug.tty.VMConnection.launchTarget(VMConnection.java:333) at com.sun.tools.example.debug.tty.VMConnection.open(VMConnection.java:166) at com.sun.tools.example.debug.tty.Commands.commandRun(Commands.java:547) at com.sun.tools.example.debug.tty.TTY.executeCommand(TTY.java:299) at com.sun.tools.example.debug.tty.TTY.(TTY.java:539) at com.sun.tools.example.debug.tty.TTY.main(TTY.java:850) Fatal error: Unable to launch target VM. I was usually getting the previous error that I mentioned, but the last 6-7 runs consistently give me this output. It could be some sort of heap corruption or something like that. The machine is a July 10 -CURRENT. Rebuilding the jdk with WITH_DEBUG is going to take the rest of the day on my system, but since I am leaving on vacation in a few hours, it will have to wait :-) Cheers, -- Panagiotis Astithas, PhD R&D Manager EBS, Electronic Business Systems Ltd. 18 Evgenidou Street, 115 25, Athens GREECE Phone: +30 210 674 7631 Fax: +30 210 674 7601 http://www.ebs.gr